/* ============================================================================
   Booking page + thank-you page.

   Built on the same tokens as the rest of the site. The form controls
   deliberately reuse forms.css conventions (.form-group, .form-row) so the
   booking form and the contact form stay visually identical.
   ============================================================================ */

/* Shorter hero than the marketing pages — the form is the point of this page,
   so it should be visible without scrolling on a laptop. */
.hero-compact {
    min-height: 0;
    padding: 130px 24px 60px;
}

.booking-section {
    padding: 56px 0 80px;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .booking-grid {
        grid-template-columns: 1.5fr 1fr;
        align-items: start;
        gap: 40px;
    }
}

/* ---------------------------------------------------------------- the form */

.booking-form-wrapper {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.booking-form-wrapper h2 {
    margin-top: 0;
    margin-bottom: 8px;
    color: var(--color-text);
}

.booking-form-intro {
    margin: 0 0 24px;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.form-fieldset {
    border: none;
    border-top: 1px solid var(--color-border);
    padding: 24px 0 4px;
    margin: 0;
}

.form-fieldset:first-of-type {
    border-top: none;
    padding-top: 0;
}

.form-fieldset legend {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text);
    padding: 0 8px 0 0;
    margin-bottom: 4px;
}

.booking-form .form-group {
    margin-bottom: 16px;
}

.booking-form .form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 16px;
}

@media (min-width: 560px) {
    .booking-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.booking-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-text);
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form input[type="date"],
.booking-form input[type="number"],
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg-white);
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 1px;
    border-color: var(--color-primary);
}

.booking-form textarea {
    resize: vertical;
}

.form-hint {
    margin: 6px 0 0;
    font-size: 0.83rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* The header is position:fixed, so any scroll that brings a control into
   view — focus, keyboard tabbing, the browser's own validation — would
   otherwise park it underneath. Header (76px) plus the topbar when shown. */
.booking-form input,
.booking-form select,
.booking-form textarea {
    scroll-margin-top: 150px;
}

/* Inline validation, added and removed by booking.js. */
.booking-form .has-error input,
.booking-form .has-error select,
.booking-form .has-error textarea {
    border-color: #d64545;
    background: #fffafa;
}

.field-error {
    margin: 6px 0 0;
    font-size: 0.85rem;
    font-weight: 500;
    color: #b42828;
    line-height: 1.4;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
    font-weight: 500 !important;
    cursor: pointer;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.form-required-note {
    margin: 20px 0 12px;
    font-size: 0.83rem;
    color: var(--color-text-muted);
}

.form-no-payment-note {
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.form-no-payment-note i {
    color: var(--color-green-dark);
    margin-inline-end: 4px;
}

/* Hidden until a submit actually fails. */
.form-error {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: #fdecea;
    border-inline-start: 4px solid #d64545;
    color: #8f2c2c;
    font-size: 0.92rem;
}

/* Honeypot. Off-screen rather than display:none — some bots skip inputs whose
   computed style is none, and the whole point is that they fill this one in.

   `inset-inline-start` rather than `left`, and that is load-bearing: a browser
   only grows the scrollable area for overflow past the *end* edge, so pushing
   the field past the start edge is invisible to the scroll extent in both
   directions. The old `left: -9999px` was start-side only in LTR — under RTL it
   overflowed the end edge and made the booking page 9999px wide. */
.hp-field {
    position: absolute;
    inset-inline-start: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------------------------------------------------------- the aside */

.booking-aside {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-steps-card {
    background: var(--color-bg-warm-light);
    border-radius: var(--radius-xl);
    padding: 26px;
}

.booking-steps-card h2 {
    margin: 0 0 18px;
    font-size: 1.25rem;
    color: var(--color-text);
}

.booking-step {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.booking-step:last-child {
    margin-bottom: 0;
}

.booking-step-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.booking-step strong {
    display: block;
    margin-bottom: 3px;
    color: var(--color-text);
    font-size: 0.97rem;
}

.booking-step p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

.booking-reassurance {
    list-style: none;
    margin: 0;
    padding: 0;
}

.booking-reassurance li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 0;
    font-size: 0.9rem;
    color: var(--color-text-light);
    border-bottom: 1px solid var(--color-border);
}

.booking-reassurance li:last-child {
    border-bottom: none;
}

.booking-reassurance i {
    color: var(--color-green-dark);
    margin-top: 3px;
    flex-shrink: 0;
}

.booking-help-card {
    background: var(--color-bg-warm);
    border-radius: var(--radius-xl);
    padding: 24px;
}

.booking-help-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
    color: var(--color-text);
}

.booking-help-card p {
    margin: 0 0 16px;
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

.booking-help-card .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
}

.booking-help-card .btn:last-child {
    margin-bottom: 0;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    border: none;
}

.btn-whatsapp:hover {
    background: #1eb855;
    color: #fff;
}

/* ------------------------------------------------------------- thank you */

.thankyou-check {
    font-size: 3.4rem;
    color: var(--color-green-dark);
    margin-bottom: 12px;
    line-height: 1;
}

.thankyou-wrap {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.thankyou-note {
    margin: 0;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    background: var(--color-bg-warm);
    border-inline-start: 4px solid var(--color-primary);
    font-size: 0.93rem;
    color: var(--color-text);
}

.thankyou-note i {
    margin-inline-end: 6px;
    color: var(--color-primary-darker);
}

.thankyou-steps {
    margin: 0;
    padding-inline-start: 20px;
    color: var(--color-text-light);
}

.thankyou-steps li {
    margin-bottom: 12px;
    line-height: 1.6;
    font-size: 0.94rem;
}

.thankyou-steps li:last-child {
    margin-bottom: 0;
}

.thankyou-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
