﻿/* form-fields.css - .contact-form: inputs, textarea, checkbox, labels, submit button, privacy consent */

/* Block: contact-form */
.contact-form {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
    position: relative;
    overflow: visible;
}

.contact-form__outside-title {
    font-size: clamp(2.8rem, 10vw, 3.6rem);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-white);
    line-height: 0.95;
}

#calendarHeaderTitle,
#servicesSectionTitle,
#faqSectionTitle {
    display: block;
    font-size: 2.8rem !important;
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;
    text-transform: uppercase;
    color: rgba(255, 248, 239, 0.98) !important;
    text-shadow: 0 1px 8px rgba(var(--site-bg-shadow-rgb), 0.12) !important;
    text-align: center;
}

#calendarHeaderTitle {
    width: min(100%, var(--calendar-main-max-width));
    max-width: min(100%, var(--calendar-main-max-width));
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#servicesSectionTitle {
    width: 100%;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: block;
}

#calendarHeaderTitle.calendar-title--hidden {
    display: none !important;
}

#calendarHeaderTitle.calendar-title--warning {
    color: #f3cd53 !important;
    text-shadow: 0 0 12px rgba(243, 205, 83, 0.42) !important;
}

.contact-form__group {
    margin-bottom: 2rem;
    overflow: visible !important;
}

.contact-form__group.dropdown-open {
    position: relative;
    z-index: 1000000;
}

.file-attach {
    margin-bottom: 2rem;
}

.contact-form__label {
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(146deg, rgba(212, 184, 154, 0.2) 0%, rgba(139, 111, 90, 0.2) 100%);
    border: 1px solid rgba(191, 167, 146, 0.5);
    border-radius: 0.8rem;
    color: var(--text-white);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
    /* Remove iOS inner shadow */
    line-height: 1.3;
}

.contact-form__input,
.custom-select__trigger {
    min-height: 3.3rem;
    height: 3.3rem;
    box-sizing: border-box;
}

.file-attach__btn {
    min-height: 5.25rem;
    height: 5.25rem;
    box-sizing: border-box;
}

.contact-form__input:focus,
.contact-form__textarea:focus,
.contact-form__input--has-content {
    background: linear-gradient(146deg, rgba(212, 184, 154, 0.4) 0%, rgba(139, 111, 90, 0.4) 100%);
    color: #5a3d2a;
    caret-color: #5a3d2a;
    box-shadow: 0 2px 0.5rem rgba(0, 0, 0, 0.12);
    border-color: rgba(191, 167, 146, 0.8);
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: var(--placeholder-color);
}

.contact-form__input:focus::placeholder,
.contact-form__textarea:focus::placeholder {
    color: transparent;
}

.contact-form__textarea {
    resize: none;
    min-height: 7.9rem;
    overflow-y: hidden;
}

.contact-form__checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.contact-form__checkbox {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 0.48rem;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid rgba(90, 61, 42, 0.8);
    background: linear-gradient(135deg, #5a3d2a 0%, #432a1a 100%);
    cursor: pointer;
    flex-shrink: 0;
    transform: scale(1);
    position: relative;
    transition: transform 0.14s ease, filter 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.contact-form__checkbox::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0.44rem;
    height: 0.8rem;
    box-sizing: border-box;
    border-right: 0.19rem solid transparent;
    border-bottom: 0.19rem solid transparent;
    transform: translate(-50%, -58%) rotate(45deg) scale(0.62);
    opacity: 0;
    transition: opacity 0.14s ease, transform 0.14s ease;
}

.contact-form__checkbox:hover {
    transform: scale(1.03);
    filter: none;
}

.contact-form__checkbox:active {
    transform: scale(0.98);
}

.contact-form__checkbox:focus-visible {
    outline: 2px solid rgba(212, 184, 154, 0.72);
    outline-offset: 2px;
}

.contact-form__checkbox:checked {
    transform: scale(1);
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(212, 184, 154, 0.94);
}

.contact-form__checkbox:checked::after {
    border-right-color: #5a3d2a;
    border-bottom-color: #5a3d2a;
    opacity: 1;
    transform: translate(-50%, -58%) rotate(45deg) scale(1);
}

.contact-form__checkbox:checked:hover {
    transform: scale(1.03);
}

.contact-form__checkbox-label {
    font-size: 1.08rem;
    font-weight: 900;
    cursor: pointer;
    font-family: 'Lato', sans-serif !important;
    letter-spacing: 0.01em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#bookingModal .contact-form__checkbox-wrapper.file-attach__terms {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    width: min(100%, 32rem);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__terms-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox-label {
    display: inline-block;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    /* TODO-DELETE if stable after test: font-size: 12px !important */
    font-weight: 900;
    letter-spacing: 0.01em;
}

#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox {
    margin-top: 0.1rem;
}

#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__terms-disclaimer {
    margin: 0;
    text-align: center;
    line-height: 1.25;
    font-weight: 900;
    /* TODO-DELETE if stable after test: font-size: 12px !important */
    letter-spacing: 0.01em;
    /* TODO-DELETE if stable after test: font-family: 'Lato', sans-serif !important */
}


/* High-contrast palette for terms/disclaimer row on dark modal background. */
#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox-label,
#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox-label span {
    color: rgba(255, 246, 235, 0.98) !important;
    text-shadow: none;
}

.contact-form__terms-link {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: none;
    font-weight: 900;
    font-size: 1.02em;
    display: flex;
    align-items: center;
    text-shadow: none;
}

.contact-form__checkbox-wrapper.file-attach__terms {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    width: min(100%, 32rem);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.contact-form__checkbox-wrapper.file-attach__terms .contact-form__terms-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox-label {
    display: inline-block;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    /* TODO-DELETE if stable after test: font-size: 12px !important */
    font-weight: 900;
    letter-spacing: 0.01em;
}

.contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox {
    margin-top: 0.1rem;
}

.contact-form__checkbox-wrapper.file-attach__terms .contact-form__terms-disclaimer {
    margin: 0;
    text-align: center;
    line-height: 1.25;
    font-weight: 900;
    /* TODO-DELETE if stable after test: font-size: 12px !important */
    letter-spacing: 0.01em;
    /* TODO-DELETE if stable after test: font-family: 'Lato', sans-serif !important */
}



.contact-form__checkbox-wrapper.file-attach__terms .contact-form__terms-row {
    /* TODO-DELETE if stable after test: display: flex !important */
    /* TODO-DELETE if stable after test: align-items: center !important */
    /* TODO-DELETE if stable after test: justify-content: center !important */
    /* TODO-DELETE if stable after test: gap: 0.55rem !important */
    /* TODO-DELETE if stable after test: width: 100% !important */
    margin: 0 auto !important;
    /* TODO-DELETE if stable after test: text-align: center !important */
}


.contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox {
    margin-top: 0.1rem !important;
}



#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__terms-link {
    display: inline;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    text-shadow: inherit !important;
    font-weight: 400 !important;
    /* TODO-DELETE if stable after test: font-size: inherit !important */
    letter-spacing: inherit;
    text-decoration: underline;
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.12em;
}

#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__terms-link:hover {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    text-shadow: inherit !important;
}

#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__terms-link .contact-form__terms-word {
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font-weight: inherit !important;
}

#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox {
    /* TODO-DELETE if stable after test: border-color: var(--form-hint-tone) !important */
    /* TODO-DELETE if stable after test: background: var(--form-hint-tone) !important */
    box-shadow:
        inset 0 1px 0 rgba(255, 235, 214, 0.2),
        0 0 0 0 rgba(var(--modal-design-tone-rgb), 0);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background-color 180ms ease,
        transform 140ms ease;
}






/* Terms checkbox must stay flat: no glow/flash that can overlap sticky fades. */
#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox,
#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox:hover,
#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox:active,
#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox:checked,
#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox:checked:hover {
    filter: none !important;
}

#bookingModal .contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox:focus-visible {
    outline: none !important;
    /* TODO-DELETE if stable after test: box-shadow: inset 0 1px 0 rgba(255, 235, 214, 0.22), 0 0 0 2px rgba(255, 237, 218, 0.68), 0 0 0 4px rgba(var(--modal-design-tone-rgb), 0.34) !important */
}

#bookingModal .contact-form__checkbox-wrapper.file-attach__terms.checkbox-need-tap-flash .contact-form__checkbox {
    animation:
        bookingCheckboxHypnoticBreath 2.2s cubic-bezier(0.42, 0, 0.2, 1) infinite,
        bookingCheckboxLightSweep 2.2s ease-in-out infinite !important;
    box-shadow:
        0 0 0 0 rgba(var(--modal-design-tone-rgb), 0),
        0 0 0 rgba(var(--modal-design-tone-rgb), 0.42),
        0 0 0.26rem rgba(var(--modal-design-tone-rgb), 0.32);
    filter: saturate(1.05);
    transform-origin: center;
    will-change: transform, box-shadow, filter;
}

#bookingModal .contact-form__checkbox-wrapper.file-attach__terms.checkbox-need-tap-flash .contact-form__checkbox:hover,
#bookingModal .contact-form__checkbox-wrapper.file-attach__terms.checkbox-need-tap-flash .contact-form__checkbox:active {
    animation-play-state: running;
}

@keyframes bookingCheckboxHypnoticBreath {

    0%,
    100% {
        transform: scale(1);
        border-color: rgba(var(--modal-design-tone-rgb), 0.86);
    }

    38% {
        transform: scale(1.09);
        border-color: rgba(var(--modal-design-tone-rgb), 0.96);
    }

    62% {
        transform: scale(1.12);
        border-color: rgba(var(--modal-design-tone-rgb), 0.78);
    }
}

@keyframes bookingCheckboxLightSweep {

    0%,
    100% {
        box-shadow:
            0 0 0 0 rgba(var(--modal-design-tone-rgb), 0),
            0 0 0 rgba(var(--modal-design-tone-rgb), 0.3),
            0 0 0.26rem rgba(var(--modal-design-tone-rgb), 0.2);
        filter: saturate(1.03) brightness(1);
    }

    40% {
        box-shadow:
            0 0 0 0.3rem rgba(var(--modal-design-tone-rgb), 0.24),
            0 0 1rem rgba(var(--modal-design-tone-rgb), 0.46),
            0 0 1.8rem rgba(var(--modal-design-tone-rgb), 0.32);
        filter: saturate(1.05) brightness(1.04);
    }

    70% {
        box-shadow:
            0 0 0 0.45rem rgba(var(--modal-design-tone-rgb), 0.2),
            0 0 1.25rem rgba(var(--modal-design-tone-rgb), 0.38),
            0 0 2rem rgba(var(--modal-design-tone-rgb), 0.28);
        filter: saturate(1.04) brightness(1.02);
    }
}

.contact-form__terms-word {
    text-decoration: underline;
    text-decoration-thickness: 0.09em;
    text-underline-offset: 0.1em;
}

.contact-form__terms-plain {
    font-weight: 400 !important;
}

.contact-form__terms-link:hover {
    color: #ffffff;
    text-shadow: none;
}

/* Global terms/disclaimer layout (desktop style applied everywhere) */
.contact-form__checkbox-wrapper.file-attach__terms {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-align: center;
    width: min(100%, 32rem);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.contact-form__checkbox-wrapper.file-attach__terms .contact-form__terms-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox-label {
    display: inline-block;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
    /* TODO-DELETE if stable after test: font-size: 12px !important */
    font-weight: 900;
    letter-spacing: 0.01em;
}

.contact-form__checkbox-wrapper.file-attach__terms .contact-form__checkbox {
    margin-top: 0.1rem;
}

.contact-form__checkbox-wrapper.file-attach__terms .contact-form__terms-disclaimer {
    margin: 0;
    text-align: center;
    line-height: 1.25;
    font-weight: 900;
    /* TODO-DELETE if stable after test: font-size: 13px !important */
    letter-spacing: 0.01em;
    /* TODO-DELETE if stable after test: font-family: 'Lato', sans-serif !important */
}

.contact-form__terms-disclaimer {
    text-align: center;
    line-height: 1.25;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.01em;
    font-family: 'Lato', sans-serif;
}


.faq-google-form-link {
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 700;
    text-decoration: underline !important;
    text-underline-offset: 0.12em;
    text-decoration-thickness: 2px;
    background: none !important;
    border: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.faq-google-form-link:hover {
    color: #ffffff !important;
}


/* v3 runs without a visible widget: keep wrapper fully neutral */


@keyframes bookingHintSoftPulse {

    0%,
    100% {
        opacity: 0.92;
    }

    50% {
        opacity: 1;
    }
}





.contact-form__submit-button {
    width: 100%;
    padding: 0.8rem 2rem;
    background: linear-gradient(146deg, rgba(212, 184, 154, 0.8) 0%, rgba(139, 111, 90, 0.8) 100%);
    color: #ffffff;
    border: none;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem auto 2rem auto;
    position: relative;
    box-shadow: 0 2px 12px 0 rgba(255, 255, 255, 0.12);
}

#confirmBookingBtn {
    display: inline-block;
    width: auto;
    min-width: 14rem;
    max-width: 96%;
    padding: 0.8rem 2rem;
    min-height: 4.5rem;
    line-height: 1;
    font-weight: 900;
    font-size: clamp(1.2rem, 4vw, 2rem);
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #72523a 0%, #5a3d2a 100%);
    color: #ffffff;
    border: 1px solid rgba(var(--modal-design-tone-rgb), 0.98);
    box-shadow: none;
    border-radius: 999px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

#confirmBookingBtn:hover {
    background: linear-gradient(135deg, #7d5b41 0%, #643020 100%) !important;
    border-color: rgba(90, 61, 42, 0.98) !important;
    color: #ffffff !important;
    transform: none;
    box-shadow: none;
}

#confirmBookingBtn:active {
    background: linear-gradient(135deg, #5a3d2a 0%, #432a1a 100%) !important;
    border-color: rgba(90, 61, 42, 0.98) !important;
    color: #ffffff !important;
    transform: none;
}

#confirmBookingBtn {
    position: relative;
    z-index: 4;
    pointer-events: auto !important;
    white-space: normal;
}

#confirmBookingBtn:disabled,
#confirmBookingBtn[aria-disabled="true"] {
    background: rgba(var(--modal-design-tone-rgb), 0.88) !important;
    border-color: rgba(var(--modal-design-tone-rgb), 0.9) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
    box-shadow: none !important;
    opacity: 0.88;
}

#bookingForm.booking-form--intake-paused>.contact-form__group,
#bookingForm.booking-form--intake-paused .contact-form__checkbox-wrapper {
    opacity: 0.58;
    transition: opacity 180ms ease;
}

.contact-form__submit-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(146deg, rgba(212, 184, 154, 1) 0%, rgba(139, 111, 90, 1) 100%);
    box-shadow: 0 0.5rem 1.3rem rgba(255, 255, 255, 0.35);
}

/* Shadow Removal for Buttons inside Modals */
.modal .contact-form__submit-button,
.modal .contact-form__submit-button:hover {
    box-shadow: none !important;
}

