/*
 * MSV Tours — contact page enquiry form states (pages/contact.blade.php,
 * public/js/msv/contact-form.js). Plain CSS next to msv-booking.css, so the
 * Tailwind build is untouched; colours match the booking form's error states.
 * Unlayered rules here win over Tailwind utilities, which live in @layer.
 */

.contact-form [aria-invalid="true"] {
    border-color: #e11d48;
    background-color: #fff1f2;
}
.contact-form [aria-invalid="true"]:focus {
    --tw-ring-color: #e11d48;
}

.contact-error {
    margin: 0.375rem 0 0;
    color: #be123c;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
}

.contact-alert {
    padding: 0.75rem 0.9rem;
    border: 1px solid #fecdd3;
    border-radius: 0.75rem;
    background: #fff1f2;
    color: #9f1239;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
}

.contact-field-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}
.contact-count {
    margin-top: 0.375rem;
    margin-left: auto;
    color: #94a3b8;
    font-size: 0.6875rem;
    white-space: nowrap;
}

/* Tentative Travel Date: Flatpickr (booking-pickers.js) makes the input a read-only
   text field; the calendar icon mirrors the booking widget's .msv-sched__icon.
   Without the picker the native date input keeps its own icon, so ours hides. */
.contact-date { position: relative; }
.contact-date input.flatpickr-input { padding-right: 2.75rem; cursor: pointer; }
.contact-date__icon {
    position: absolute;
    top: 50%;
    right: 0.95rem;
    width: 1.05rem;
    height: 1.05rem;
    color: #047857;
    transform: translateY(-50%);
    pointer-events: none;
}
.contact-date input:not(.flatpickr-input) ~ .contact-date__icon { display: none; }

.contact-clear {
    margin-top: 0.375rem;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    color: #065f46;
    font-size: 0.6875rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}
.contact-clear:hover { color: #022c22; text-decoration: underline; }
.contact-clear:focus-visible { outline: 2px solid #047857; outline-offset: 2px; border-radius: 0.25rem; }

/* The thank-you heading takes focus (tabindex -1) so screen readers announce it; it is not a control. */
[data-contact-success-heading]:focus {
    outline: none;
}

.contact-submit:disabled {
    cursor: progress;
    opacity: 0.75;
}
