/* ==========================================================================
   AudienceView — CONTACT US modal styles.
   Loaded globally
   ========================================================================== */

.mkt-contact-modal {
    width: min(calc(100vw - 32px), 560px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
}

.mkt-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 26px 14px;
    border-bottom: 1px solid var(--border);
}

.mkt-modal-head h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
}

.mkt-modal-head h2 em {
    color: var(--blue);
    font-style: italic;
}

.mkt-modal-section {
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 26px 10px;
}

.mkt-modal-section::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.mkt-modal-body {
    padding: 0 26px;
}

.mkt-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 14px;
    margin-bottom: 8px;
}

.mkt-modal-grid > .full {
    grid-column: 1 / -1;
}

.mkt-modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mkt-modal-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ink2);
    letter-spacing: 0.01em;
}

.mkt-modal-label .req {
    color: #c0392b;
    margin-left: 2px;
}

.mkt-modal-input,
.mkt-modal-textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--ink);
    background: var(--white);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mkt-modal-input:focus,
.mkt-modal-textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 172, 232, 0.1);
}

.mkt-modal-textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.55;
}

.mkt-modal-input.is-invalid,
.mkt-modal-textarea.is-invalid {
    border-color: #c0392b;
}

.mkt-modal-input.is-invalid:focus,
.mkt-modal-textarea.is-invalid:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.mkt-modal-error {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #c0392b;
}

.mkt-modal-error[hidden] {
    display: none;
}

/* The consent error sits outside the field grid, so it carries the row's own margins. */
.mkt-modal-error-wide {
    margin: 6px 26px 0;
}

.mkt-modal-captcha {
    margin-top: 14px;
    /* Turnstile renders a fixed-width iframe; let it shrink rather than widen the dialog. */
    max-width: 100%;
    overflow-x: auto;
}

.mkt-modal-captcha:empty {
    margin-top: 0;
}

.mkt-contact-alert {
    margin: 14px 26px 0;
    padding: 10px 12px;
    border: 1px solid rgba(192, 57, 43, 0.3);
    border-radius: 10px;
    background: rgba(192, 57, 43, 0.06);
    font-size: 12.5px;
    line-height: 1.5;
    color: #c0392b;
}

.mkt-contact-alert[hidden] {
    display: none;
}

.mkt-contact-alert a {
    color: inherit;
    font-weight: 600;
}

.mkt-contact-unavailable {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 32px 26px 26px;
}

.mkt-contact-unavailable[hidden] {
    display: none;
}

.mkt-contact-unavailable h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.mkt-contact-unavailable p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    max-width: 380px;
}

.mkt-contact-unavailable a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.mkt-modal-tc {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 14px 26px 0;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.55;
    cursor: pointer;
    user-select: none;
}

.mkt-modal-tc input {
    accent-color: var(--blue);
    width: 15px;
    height: 15px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.mkt-modal-tc a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

.mkt-modal-tc a:hover {
    text-decoration: underline;
}

.mkt-modal-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 18px 26px 22px;
    margin-top: 14px;
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.mkt-contact-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 32px 26px 26px;
}

.mkt-contact-form[hidden],
.mkt-contact-success[hidden] {
    display: none;
}

.mkt-contact-success-ic {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 191, 168, 0.12);
    border: 2px solid var(--teal);
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mkt-contact-success-ic svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2.4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mkt-contact-success h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.mkt-contact-success p {
    font-size: 13.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    max-width: 380px;
}

.mkt-contact-success a {
    color: var(--blue);
    font-weight: 600;
    text-decoration: none;
}

/* Required-field marker used inside the contact modal labels. */
.req {
    color: #c0392b;
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 599px) {
    .mkt-modal-head { padding: 16px 18px 12px; }
    .mkt-modal-section { margin: 14px 18px 8px; }
    .mkt-modal-body { padding: 0 18px; }
    .mkt-modal-grid { grid-template-columns: 1fr; }
    .mkt-modal-foot { padding: 16px 18px 20px; }
    .mkt-modal-error-wide { margin: 6px 18px 0; }
    .mkt-contact-alert { margin: 12px 18px 0; }
    .mkt-contact-unavailable { padding: 26px 18px 22px; }
    /* Stack the actions so neither button is cramped once "Submitting…" widens the label. */
    .mkt-modal-foot { flex-direction: column-reverse; }
    .mkt-modal-foot .mkt-btn { width: 100%; }
}

/* Comfortable targets on touch devices at any width. */
@media (pointer: coarse) {
    .mkt-modal-foot .mkt-btn { min-height: 44px; }
    .mkt-modal-tc { min-height: 44px; align-items: center; }
}

/* iOS Safari zoom prevention: keep inputs >= 16px on mobile. */
@media (max-width: 899px) {
    .mkt-modal-input,
    .mkt-modal-textarea { font-size: 16px; }
}
