/* Booking page. Loaded after /styles.css, which provides the tokens, header, footer and .action styles. */

.book-main {
    min-height: calc(100vh - 176px);
    padding: clamp(5.5rem, 12vh, 8rem) 5vw 5rem;
    position: relative;
    z-index: 2;
}

.book-intro {
    margin-bottom: 1.6rem;
    max-width: 52rem;
}

.book-kicker {
    color: #d8d5d5;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.book-main h1 {
    color: #f0eded;
    font-size: clamp(1.9rem, 2.8vw, 2.3rem);
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 1.08;
    margin-top: 0.35rem;
}

.book-lede {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.55;
    margin-top: 0.7rem;
    max-width: 40rem;
}

.book-lede a {
    border-bottom: 1px solid rgba(241, 238, 238, 0.5);
    color: var(--white);
}

.book-lede a:hover,
.book-lede a:focus-visible {
    border-color: var(--red);
    outline: none;
}

.book-panel {
    background: rgba(21, 21, 21, 0.94);
    border: 1px solid var(--line);
    color-scheme: dark;
    max-width: 52rem;
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.form-grid {
    display: grid;
    gap: 1.15rem 1.4rem;
    grid-template-columns: 1fr 1fr;
}

.span-2 {
    grid-column: 1 / -1;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.field-label {
    color: #d8d5d5;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.field-label .optional {
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: none;
}

.field-hint {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.field input,
.field select,
.field textarea {
    appearance: none;
    -webkit-appearance: none;
    background: #0b0b0b;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--white);
    font: inherit;
    font-size: 0.98rem;
    line-height: 1.4;
    padding: 0.75rem 0.85rem;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.field textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.field select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23f1eeee' stroke-width='1.5' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-position: right 0.85rem center;
    background-repeat: no-repeat;
    background-size: 12px 8px;
    padding-right: 2.4rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(213, 43, 30, 0.28);
    outline: none;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--dim);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: #ff6b5e;
}

.field-error {
    color: #ff8a7f;
    font-size: 0.8rem;
    font-weight: 600;
}

.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.4rem;
    padding-top: 0.15rem;
}

.choice {
    align-items: center;
    color: var(--white);
    cursor: pointer;
    display: inline-flex;
    font-size: 0.95rem;
    gap: 0.5rem;
}

.choice input {
    accent-color: var(--red);
    height: 1rem;
    margin: 0;
    width: 1rem;
}

.form-errors {
    background: rgba(213, 43, 30, 0.12);
    border: 1px solid var(--red);
    color: var(--white);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    padding: 0.85rem 1rem;
}

.form-errors ul {
    margin: 0.35rem 0 0 1.1rem;
    padding: 0;
}

.form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.4rem;
    margin-top: 1.6rem;
}

.book-submit {
    background: transparent;
    border: 1px solid var(--red);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    padding: 0.9rem 1.5rem;
    text-transform: uppercase;
    transition: background 160ms ease, border-color 160ms ease;
}

.book-submit:hover,
.book-submit:focus-visible {
    background: rgba(213, 43, 30, 0.28);
    border-color: #ffffff;
    outline: none;
}

.form-note {
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.hp {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

/* Confirmation */

.confirm-ref {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.confirm h1 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
}

.confirm p {
    color: #d8d5d5;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 0.9rem;
    max-width: 40rem;
}

.confirm dl {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 0.55rem 1.2rem;
    grid-template-columns: max-content 1fr;
    margin-top: 1.4rem;
    padding-top: 1.1rem;
}

.confirm dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    padding-top: 0.15rem;
    text-transform: uppercase;
}

.confirm dd {
    color: var(--white);
    font-size: 0.98rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.confirm .form-actions .action {
    font-size: 0.82rem;
    padding: 0.7rem 1.1rem;
}

@media (max-width: 700px) {
    .book-main {
        padding-top: 5.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .confirm dl {
        gap: 0.2rem;
        grid-template-columns: 1fr;
    }

    .confirm dd {
        margin-bottom: 0.6rem;
    }
}
