/* Booking pages. Uses the site's colour and type tokens from /assets/styles.css. */

.booking-section {
    max-width: 820px;
    padding-top: 1rem;
}

.booking-card {
    background: var(--surface);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.booking-card h2 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.booking-card p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.booking-step {
    border: 0;
    margin: 0 0 2.5rem;
    padding: 0;
    min-width: 0;
}

.booking-step legend {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* Fields */
.booking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
}

.booking-field-wide {
    grid-column: 1 / -1;
}

.booking-field label,
.slot-fallback-label {
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.booking-field .optional {
    color: var(--slate);
    font-weight: 400;
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form select,
.booking-form textarea {
    width: 100%;
    font: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid rgba(26, 42, 58, 0.25);
    border-radius: 12px;
    padding: 0.75rem 0.9rem;
}

.booking-form textarea {
    resize: vertical;
    min-height: 7rem;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus,
.slot-day:focus-visible,
.slot-time:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.has-error input,
.has-error select,
.has-error textarea {
    border-color: #b3261e;
}

.booking-error {
    color: #b3261e;
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

.booking-error-main {
    background: #fdecea;
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

/* Honeypot: off-screen for people, visible to simple bots */
.booking-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.booking-submit {
    font-size: 1rem;
    padding: 0.95rem 2.2rem;
}

.booking-small {
    color: var(--slate);
    font-size: 0.85rem;
    margin-top: 1rem;
}

.booking-cancel-btn {
    background: var(--white);
    border: 1.5px solid var(--ink);
}

/* Time picker (built by booking.js) */
.slot-picker.is-enhanced select,
.slot-picker.is-enhanced .slot-fallback-label {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.slot-note {
    color: var(--slate);
    font-size: 0.9rem;
    margin-bottom: 0.9rem;
}

.slot-days {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.75rem;
    margin: 0 -0.25rem 1rem;
    scroll-snap-type: x proximity;
}

.slot-day {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 4.6rem;
    padding: 0.6rem 0.8rem;
    font: inherit;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid rgba(26, 42, 58, 0.2);
    border-radius: 14px;
    cursor: pointer;
}

.slot-day-name {
    font-size: 0.8rem;
    color: var(--slate);
}

.slot-day-date {
    font-weight: 600;
    white-space: nowrap;
}

.slot-day[aria-pressed="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.slot-day[aria-pressed="true"] .slot-day-name {
    color: rgba(255, 255, 255, 0.75);
}

.slot-times {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.slot-time {
    font: inherit;
    font-weight: 500;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid rgba(26, 42, 58, 0.2);
    border-radius: var(--radius-pill);
    padding: 0.55rem 1.2rem;
    cursor: pointer;
}

.slot-time:hover,
.slot-day:hover {
    border-color: var(--navy);
}

.slot-time[aria-pressed="true"] {
    background: var(--cta);
    border-color: var(--navy);
}

/* Client page: "Book a call with Lol" heading with Lol's photo beside it */
.book-with {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.book-with h1 {
    margin-bottom: 0;
}

.book-face {
    flex: 0 0 auto;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--white);
}

@media (max-width: 640px) {
    .book-with {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .book-face {
        width: 80px;
        height: 80px;
    }
}

/* Client page: call length choice (plain links, so it works without JavaScript) */
.length-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

a.length-option {
    display: inline-block;
    text-decoration: none;
}

a.length-option[aria-current="true"] {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.slot-chosen {
    font-weight: 600;
    margin: 1rem 0 0;
    min-height: 1.5em;
}

.local-time-extra {
    font-weight: 400;
}

@media (max-width: 640px) {
    .booking-card {
        padding: 1.5rem;
    }
    .booking-grid {
        grid-template-columns: 1fr;
    }
}
