/* =========================================
   Booking form: validation, consent, extras
   (sits on top of booking.css)
   ========================================= */

/* keep the form clear of the sticky navbar when jumping to it after an error */
#booking-form {
    scroll-margin-top: 110px;
}

.form-alert {
    margin-bottom: 22px;
    padding: 14px 16px;
    border: 1px solid #f5c2c0;
    border-radius: var(--radius-md);
    background: #fdf1f0;
    color: #a2231d;
    font-size: 0.92rem;
    font-weight: 500;
}

.form-error {
    margin-top: 6px;
    color: #b42318;
    font-size: 0.85rem;
    font-weight: 500;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #d92d20;
    box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12);
}

.form-optional {
    color: var(--color-muted);
    font-weight: 400;
}

/* honeypot: off-screen, not display:none (some bots skip hidden fields) */
.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* Consent */

.form-consent {
    margin: 6px 0 22px;
}

.form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    cursor: pointer;
}

.form-consent input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    flex: none;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.form-consent.has-error label {
    color: #b42318;
}


/* =========================================
   Prefer to talk? panel
   ========================================= */

.booking-direct {
    margin-top: 36px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: var(--color-navy);
    color: var(--color-white);
}

.booking-direct__title {
    margin-bottom: 4px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
}

.booking-direct__text {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.92rem;
}

.booking-direct__actions {
    display: grid;
    gap: 10px;
}

.booking-direct__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.booking-direct__link:hover {
    border-color: rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
}

.booking-direct__link .icon {
    width: 18px;
    height: 18px;
    color: var(--color-lime);
}

.booking-direct__link strong {
    margin-right: 6px;
    color: var(--color-white);
}


/* =========================================
   Thank-you page
   ========================================= */

.booking-success {
    padding: clamp(56px, 8vw, 100px) 0;
    background:
        radial-gradient(40rem 22rem at 50% -10%, rgba(42, 125, 225, 0.12), transparent 65%),
        var(--color-background);
}

.booking-success__card {
    max-width: 640px;
    margin: 0 auto;
    padding: clamp(32px, 5vw, 52px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.booking-success__icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--color-green);
    color: var(--color-white);
    box-shadow: 0 10px 24px rgba(46, 139, 52, 0.3);
}

.booking-success__icon .icon {
    width: 34px;
    height: 34px;
    stroke-width: 3;
}

.booking-success .eyebrow {
    justify-content: center;
}

.booking-success h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.booking-success__lead {
    margin-bottom: 28px;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.booking-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-border);
    text-align: left;
}

.booking-summary div {
    padding: 14px 16px;
    background: var(--color-background);
}

.booking-summary dt {
    margin-bottom: 2px;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.booking-summary dd {
    font-weight: 600;
}

.booking-success__note {
    margin-bottom: 26px;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.booking-success__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

@media (max-width: 520px) {
    .booking-summary {
        grid-template-columns: 1fr;
    }

    .booking-success__actions .button {
        flex: 1 1 100%;
    }
}


/* =========================================
   Compact page header (booking page)
   ========================================= */

.page-header--compact {
    padding: clamp(40px, 6vw, 64px) 0 clamp(36px, 5vw, 52px);
    background:
        radial-gradient(40rem 20rem at 95% 0%, rgba(42, 125, 225, 0.1), transparent 65%),
        var(--color-white);
}

.page-header--compact__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
}

.page-header--compact .page-header__content {
    max-width: none;
}

.page-header--compact h1 {
    margin-bottom: 14px;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.page-header--compact .page-header__description {
    max-width: 560px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.booking-assurances {
    display: grid;
    gap: 12px;
    list-style: none;
}

.booking-assurances li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.booking-assurances .tick {
    margin-top: 2px;
}

.booking-assurances li > span:last-child {
    display: flex;
    flex-direction: column;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.booking-assurances strong {
    color: var(--color-text);
    font-size: 0.98rem;
}


/* =========================================
   Left column follows the form on desktop
   ========================================= */

.booking-section {
    padding-top: clamp(40px, 5vw, 64px);
}

@media (min-width: 901px) {
    .booking-layout {
        align-items: start;
    }

    .booking-intro {
        position: sticky;
        top: 104px;
    }
}

@media (max-width: 900px) {
    .page-header--compact__grid {
        grid-template-columns: 1fr;
    }

    .booking-assurances {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .booking-assurances {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .booking-assurances li {
        padding: 12px 14px;
    }
}

/* on phones and tablets, show the form first; intro and contact panel follow */
@media (max-width: 900px) {
    .booking-card {
        order: -1;
    }

    .booking-direct {
        margin-top: 28px;
    }
}
