:root {
    --contact-magenta: #ff5073;
    --contact-magenta-dark: #db3659;
    --contact-ink: #282828;
    --contact-muted: #656565;
    --contact-rule: rgba(0, 0, 0, .16);
}

html.contact-lock,
html.contact-lock body {
    overflow: hidden;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.contact-modal.is-open {
    display: flex;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, .7);
    backdrop-filter: blur(4px);
}

.contact-modal__card {
    position: relative;
    z-index: 1;
    width: min(100%, 590px);
    max-height: calc(100dvh - 32px);
    padding: 34px;
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid var(--contact-rule);
    border-top: 7px solid var(--contact-magenta);
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, .34);
    color: var(--contact-ink);
    font-family: GTAmerica, Arial, Helvetica, sans-serif;
    overscroll-behavior: contain;
}

.contact-modal__card:focus {
    outline: none;
}

.contact-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f2f0;
    cursor: pointer;
}

.contact-modal__close span::before,
.contact-modal__close span::after {
    content: "";
    position: absolute;
    top: 20px;
    left: 11px;
    width: 20px;
    height: 2px;
    background: var(--contact-ink);
}

.contact-modal__close span::before { transform: rotate(45deg); }
.contact-modal__close span::after { transform: rotate(-45deg); }

.contact-modal__close:hover,
.contact-modal__close:focus-visible {
    background: #e8e8e5;
    outline: 2px solid var(--contact-magenta);
    outline-offset: 2px;
}

.contact-modal__header {
    padding: 0 42px 22px 0;
}

.contact-modal__eyebrow {
    margin: 0 0 8px;
    color: var(--contact-magenta);
    font: 700 12px/1.3 GTAmerica, Arial, Helvetica, sans-serif;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.contact-modal__header h2 {
    margin: 0 0 10px;
    color: var(--contact-ink);
    font: 500 clamp(29px, 5vw, 40px)/1.08 TiemposHeadline, Georgia, "Times New Roman", serif;
    letter-spacing: -.01em;
}

.contact-modal__header > p:last-child {
    margin: 0;
    color: var(--contact-muted);
    font-size: 15px;
    line-height: 1.5;
}

.contact-form,
.contact-form__field {
    display: block;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form__field {
    margin: 0 0 15px;
    color: #393939;
    font-size: 13px;
    font-weight: 700;
}

.contact-form__field > span {
    display: block;
    margin-bottom: 6px;
}

.contact-form__field input {
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #bbb;
    border-radius: 2px;
    background: #fff;
    color: var(--contact-ink);
    font: 400 16px/1.2 GTAmerica, Arial, Helvetica, sans-serif;
}

.contact-form__field input:focus {
    border-color: var(--contact-magenta);
    box-shadow: 0 0 0 3px rgba(255, 80, 115, .18);
    outline: 0;
}

.contact-form__field.has-error input {
    border-color: #b4233b;
}

.contact-form__field.has-error::after {
    content: attr(data-error);
    display: block;
    margin-top: 5px;
    color: #a91832;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.contact-form .iti {
    display: block;
    width: 100%;
    max-width: 100%;
}

.contact-form .iti__selected-dial-code {
    color: #242424;
    font-weight: 600;
}

.iti--container:not(.iti--fullscreen-popup) {
    width: min(520px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    overflow-x: hidden;
}

.iti--container:not(.iti--fullscreen-popup) .iti__dropdown-content {
    width: 100% !important;
    max-width: 100%;
    overflow-x: hidden;
    border: 1px solid #bbb;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .2);
}

.iti__country-list,
.iti__country {
    max-width: 100%;
}

.iti__country-list {
    overflow-x: hidden;
}

.iti__country-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.iti--fullscreen-popup.iti--container {
    z-index: 12000;
    padding: 14px;
    overflow: hidden;
}

.contact-form__agreements {
    min-width: 0;
    margin: 3px 0 0;
    padding: 0;
    border: 0;
}

.contact-form__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0;
    color: #444;
    font: 400 13px/1.42 GTAmerica, Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.contact-form__consent input {
    width: 19px;
    height: 19px;
    min-width: 19px;
    margin: 0;
    accent-color: var(--contact-magenta);
}

.contact-form__agreements.has-error {
    padding-left: 10px;
    border-left: 3px solid #b4233b;
}

.contact-form__message {
    display: none;
    margin-top: 13px;
    padding: 11px 12px;
    border: 1px solid #efb7c2;
    border-radius: 2px;
    background: #fff0f3;
    color: #98162e;
    font-size: 14px;
    line-height: 1.4;
}

.contact-form__message.is-visible {
    display: block;
}

.contact-form__message.is-success {
    border-color: #a9d4bd;
    background: #edf8f1;
    color: #146c43;
}

.contact-form__submit {
    width: 100%;
    min-height: 54px;
    margin-top: 14px;
    padding: 15px 22px;
    border: 0;
    border-radius: 3px;
    background: var(--contact-magenta);
    color: #fff;
    font: 700 16px/1.25 GTAmerica, Arial, Helvetica, sans-serif;
    letter-spacing: .02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.contact-form__submit:hover {
    background: var(--contact-magenta-dark);
    transform: translateY(-1px);
}

.contact-form__submit:focus-visible {
    outline: 3px solid rgba(255, 80, 115, .35);
    outline-offset: 3px;
}

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

.contact-form__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 600px) {
    .contact-modal { padding: 10px; }

    .contact-modal__card {
        max-height: calc(100dvh - 20px);
        padding: 27px 20px 22px;
    }

    .contact-modal__header { padding-right: 28px; }
    .contact-form__row { grid-template-columns: 1fr; gap: 0; }
    .contact-form__submit { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .contact-form__submit { transition: none; }
}
