.iptlv-contact-modal,
.iptlv-contact-modal * {
    box-sizing: border-box;
}

.iptlv-contact-modal[hidden],
.iptlv-contact-modal [hidden] {
    display: none !important;
}

body.iptlv-contact-open {
    overflow: hidden;
}

.iptlv-contact-modal {
    --iptlv-green: #369b12;
    --iptlv-orange: #ff7f11;
    --iptlv-deep: #244516;
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 28px;
    color: #172416;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    opacity: 0;
    transition: opacity .18s ease;
}

.iptlv-contact-modal.is-open {
    opacity: 1;
}

.iptlv-contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 31, 12, .72);
    backdrop-filter: blur(7px);
}

.iptlv-contact-dialog {
    position: relative;
    width: min(760px, 100%);
    max-height: min(880px, calc(100vh - 56px));
    overflow: auto;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 26px;
    background: #fffdf8;
    box-shadow: 0 34px 100px rgba(10, 25, 7, .38);
    transform: translateY(14px) scale(.985);
    transition: transform .18s ease;
}

.iptlv-contact-modal.is-open .iptlv-contact-dialog {
    transform: translateY(0) scale(1);
}

.iptlv-contact-dialog__close {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
    font: 400 28px/1 Arial, sans-serif;
}

.iptlv-contact-dialog__close:hover {
    background: rgba(255, 255, 255, .22);
}

.iptlv-contact-dialog__heading {
    padding: 34px 76px 30px 34px;
    border-radius: 25px 25px 0 0;
    color: #fff;
    background:
        radial-gradient(circle at 92% 8%, rgba(255, 154, 60, .28), transparent 32%),
        var(--iptlv-deep);
}

.iptlv-contact-dialog__heading > span,
.iptlv-contact-success > span {
    display: block;
    margin-bottom: 8px;
    color: #ffbd7b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.iptlv-contact-dialog__heading h2,
.iptlv-contact-success h2 {
    margin: 0 0 10px;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(31px, 5vw, 43px);
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.iptlv-contact-dialog__heading p {
    max-width: 580px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
}

.iptlv-contact-form {
    padding: 30px 34px 34px;
}

.iptlv-contact-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.iptlv-contact-field {
    display: block;
}

.iptlv-contact-field--wide {
    grid-column: 1 / -1;
}

.iptlv-contact-field > span,
.iptlv-contact-preference legend {
    display: block;
    margin-bottom: 7px;
    color: #34452f;
    font-size: 12px;
    font-weight: 850;
}

.iptlv-contact-field small {
    color: #7b8777;
    font-size: 10px;
    font-weight: 650;
}

.iptlv-contact-field input,
.iptlv-contact-field textarea {
    display: block;
    width: 100%;
    margin: 0;
    padding: 13px 14px;
    border: 1px solid rgba(36, 69, 22, .18);
    border-radius: 12px;
    color: #172416;
    background: #fff;
    box-shadow: inset 0 1px 2px rgba(36, 69, 22, .035);
    font: inherit;
    font-size: 15px;
}

.iptlv-contact-field textarea {
    min-height: 128px;
    resize: vertical;
}

.iptlv-contact-field input:focus,
.iptlv-contact-field textarea:focus {
    border-color: var(--iptlv-green);
    outline: 3px solid rgba(54, 155, 18, .13);
}

.iptlv-contact-preference {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 20px 0 17px;
    padding: 0;
    border: 0;
}

.iptlv-contact-preference legend {
    width: 100%;
}

.iptlv-contact-preference label {
    position: relative;
    cursor: pointer;
}

.iptlv-contact-preference input {
    position: absolute;
    opacity: 0;
}

.iptlv-contact-preference span {
    display: block;
    padding: 9px 13px;
    border: 1px solid rgba(36, 69, 22, .16);
    border-radius: 999px;
    color: #4b5b47;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.iptlv-contact-preference input:checked + span {
    border-color: var(--iptlv-green);
    color: #236d0b;
    background: #eef8e9;
    box-shadow: inset 0 0 0 1px var(--iptlv-green);
}

.iptlv-contact-preference input:focus-visible + span {
    outline: 3px solid rgba(255, 127, 17, .4);
    outline-offset: 3px;
}

.iptlv-contact-consent {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0 0 20px;
    color: #566452;
    cursor: pointer;
    font-size: 12px;
}

.iptlv-contact-consent input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: var(--iptlv-green);
}

.iptlv-contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.iptlv-contact-form__status {
    margin: 0 0 14px;
    padding: 11px 13px;
    border-left: 4px solid #b32d2e;
    border-radius: 8px;
    color: #702020;
    background: #fff0f0;
    font-size: 13px;
    font-weight: 700;
}

.iptlv-contact-form__submit,
.iptlv-contact-success button {
    min-height: 50px;
    padding: 13px 21px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: var(--iptlv-green);
    box-shadow: 0 12px 28px rgba(54, 155, 18, .2);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
}

.iptlv-contact-form__submit:hover,
.iptlv-contact-success button:hover {
    background: #2d8610;
}

.iptlv-contact-form__submit:disabled {
    cursor: wait;
    opacity: .7;
}

.iptlv-contact-success {
    padding: 62px 40px 58px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0, rgba(255, 154, 60, .22), transparent 35%),
        var(--iptlv-deep);
}

.iptlv-contact-success > i {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 19px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    color: var(--iptlv-deep);
    background: #9de57e;
    box-shadow: 0 0 0 12px rgba(157, 229, 126, .1);
    font-size: 30px;
    font-style: normal;
    font-weight: 900;
}

.iptlv-contact-success p {
    max-width: 520px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
}

.iptlv-contact-success button {
    color: var(--iptlv-deep);
    background: #fff;
    box-shadow: none;
}

.iptlv-contact-success button:hover {
    color: #fff;
}

.iptlv-footer button[data-iptlv-contact-open] {
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

@media (max-width: 620px) {
    .iptlv-contact-modal {
        align-items: end;
        padding: 0;
    }

    .iptlv-contact-dialog {
        width: 100%;
        max-height: 94vh;
        border-radius: 24px 24px 0 0;
        transform: translateY(24px);
    }

    .iptlv-contact-dialog__heading {
        padding: 30px 62px 25px 23px;
        border-radius: 23px 23px 0 0;
    }

    .iptlv-contact-dialog__heading h2 {
        font-size: 32px;
    }

    .iptlv-contact-form {
        padding: 23px;
    }

    .iptlv-contact-form__grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .iptlv-contact-field--wide {
        grid-column: auto;
    }

    .iptlv-contact-form__submit {
        width: 100%;
    }

    .iptlv-contact-success {
        min-height: 480px;
        padding: 64px 24px 45px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iptlv-contact-modal,
    .iptlv-contact-dialog {
        transition: none;
    }
}
