/* Booking page styles. Self-contained; does NOT touch the bundled styles.css.
   Brand tokens mirror the inline styles used across index.html. */

:root {
    --bk-gold: #b7965d;
    --bk-gold-dark: #8B6535;
    --bk-green: #263d2e;
    --bk-cream: #f0eae3;
    --bk-beige: #e6dcd2;
    --bk-text-cream: #f1ebe6;
    --bk-ink: #2b2b2b;
    --bk-serif: 'Cormorant Garamond', serif;
    --bk-sans: 'Merriweather Sans', sans-serif;
}

.booking-body {
    background-color: var(--bk-cream);
    font-family: var(--bk-sans);
    color: var(--bk-ink);
    margin: 0;
    min-height: 100vh;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.booking-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--bk-green);
}

.booking-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.booking-brand-logo {
    filter: brightness(0) saturate(100%) invert(65%) sepia(40%) saturate(600%) hue-rotate(5deg);
}

.booking-brand-name {
    font-family: var(--bk-serif);
    color: var(--bk-gold);
    font-size: 1.4rem;
    letter-spacing: 0.2em;
}

.booking-header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lang-toggle {
    display: flex;
    gap: 0.25rem;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(241, 235, 230, 0.35);
    color: var(--bk-text-cream);
    font-family: var(--bk-sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
}

.lang-btn.active {
    background: var(--bk-gold);
    border-color: var(--bk-gold);
    color: var(--bk-green);
}

.booking-back {
    color: rgba(241, 235, 230, 0.85);
    font-size: 0.85rem;
}

.booking-back:hover {
    color: #fff;
}

/* ── Card ───────────────────────────────────────────────────────────────── */
.booking-wrap {
    max-width: 640px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.booking-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(38, 61, 46, 0.08);
    padding: 2.25rem 2rem;
}

.booking-title {
    font-family: var(--bk-serif);
    color: var(--bk-green);
    text-align: center;
    margin: 0 0 0.25rem;
    font-size: 2.2rem;
}

.booking-subtitle {
    text-align: center;
    color: var(--bk-gold-dark);
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
}

/* ── Stepper ────────────────────────────────────────────────────────────── */
.booking-stepper {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 0 0 1.75rem;
    counter-reset: step;
}

.booking-stepper li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
    position: relative;
}

.booking-stepper .dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bk-beige);
    color: var(--bk-gold-dark);
    font-size: 0.85rem;
    z-index: 1;
}

.booking-stepper .lbl {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: #999;
    text-align: center;
}

.booking-stepper li.active .dot {
    background: var(--bk-gold);
    color: #fff;
}

.booking-stepper li.done .dot {
    background: var(--bk-green);
    color: #fff;
}

.booking-stepper li.active .lbl,
.booking-stepper li.done .lbl {
    color: var(--bk-green);
}

/* connector line */
.booking-stepper li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    width: 100%;
    height: 1px;
    background: var(--bk-beige);
    z-index: 0;
}

/* ── Steps & controls ───────────────────────────────────────────────────── */
.step-heading {
    font-family: var(--bk-serif);
    color: var(--bk-green);
    font-size: 1.5rem;
    margin: 0 0 1rem;
}

.service-list,
.duration-list,
.slot-list {
    display: grid;
    gap: 0.6rem;
}

.service-list {
    grid-template-columns: 1fr;
}

.duration-list,
.slot-list {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    margin-top: 0.5rem;
}

.choice {
    border: 1px solid var(--bk-beige);
    background: #fff;
    border-radius: 8px;
    padding: 0.9rem 1rem;
    cursor: pointer;
    text-align: left;
    font-family: var(--bk-sans);
    transition: border-color .15s, background .15s;
}

.choice:hover {
    border-color: var(--bk-gold);
}

.choice.selected {
    border-color: var(--bk-gold);
    background: var(--bk-cream);
}

.choice .choice-name {
    font-weight: 700;
    color: var(--bk-green);
    display: block;
}

.choice .choice-sub {
    font-size: 0.85rem;
    color: #777;
}

.choice .choice-price {
    color: var(--bk-gold-dark);
    font-weight: 700;
}

.duration-heading {
    font-family: var(--bk-serif);
    color: var(--bk-green);
    font-size: 1.15rem;
    margin: 1.25rem 0 0;
}

.slot-status {
    font-size: 0.9rem;
    color: #777;
    margin: 0.75rem 0;
}

/* ── Form fields ────────────────────────────────────────────────────────── */
.details-form {
    display: flex;
    flex-direction: column;
}

.field-label {
    font-size: 0.85rem;
    color: var(--bk-green);
    font-weight: 700;
    margin: 0.75rem 0 0.25rem;
}

.field-help {
    color: #999;
    font-size: 0.78rem;
    margin-top: 0.2rem;
}

.brand-input {
    border: 1px solid var(--bk-beige);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-family: var(--bk-sans);
    font-size: 0.95rem;
    color: var(--bk-ink);
    background: #fff;
    width: 100%;
}

.brand-input:focus {
    outline: none;
    border-color: var(--bk-gold);
    box-shadow: 0 0 0 3px rgba(183, 150, 93, 0.15);
}

/* ── Summary ────────────────────────────────────────────────────────────── */
.summary {
    background: var(--bk-cream);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 1px solid var(--bk-beige);
    margin-top: 0.5rem;
    padding-top: 0.6rem;
    font-weight: 700;
    color: var(--bk-green);
}

#payment-element {
    margin: 0.5rem 0 0.5rem;
}

/* ── Buttons ────────────────────────────────────────────────────────────── */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.75rem;
}

.btn-brand {
    background: var(--bk-gold);
    color: var(--bk-text-cream);
    border: none;
    border-radius: 6px;
    padding: 0.7rem 1.6rem;
    font-family: var(--bk-sans);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-brand:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-ghost {
    background: transparent;
    color: var(--bk-gold-dark);
    border: 1px solid var(--bk-beige);
    border-radius: 6px;
    padding: 0.7rem 1.4rem;
    font-family: var(--bk-sans);
    font-size: 0.95rem;
    cursor: pointer;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: bk-spin 0.7s linear infinite;
    display: inline-block;
}

@keyframes bk-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Error banner & confirmation ────────────────────────────────────────── */
.booking-error {
    background: #fbeaea;
    border: 1px solid #e7b7b7;
    color: #9a3b3b;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.booking-confirm {
    text-align: center;
}

.confirm-logo {
    filter: brightness(0) saturate(100%) invert(65%) sepia(40%) saturate(600%) hue-rotate(5deg);
    margin-bottom: 1rem;
}

.booking-confirm p {
    color: #555;
    margin-bottom: 1.5rem;
}

@media (max-width: 520px) {
    .booking-card {
        padding: 1.5rem 1.1rem;
    }

    .booking-stepper .lbl {
        display: none;
    }
}
