/* Booking page — reuses tokens from style.css (:root) */

.booking-hero {
    background: var(--gradient-brown);
    color: var(--cream);
    text-align: center;
    padding: 130px 1rem 50px;
}

.booking-title {
    font-family: 'SOV_poster', 'Sarabun', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: .5rem;
    letter-spacing: .02em;
}

.booking-tagline {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    color: #ffe9a8;
    margin-bottom: 1.2rem;
}

.booking-info-pills,
.price-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
    margin-top: .6rem;
}

.booking-info-pills span {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .3);
    padding: .4rem .9rem;
    border-radius: 50px;
    font-size: .95rem;
}

.price-pills span {
    background: var(--primary-gold);
    color: #fff;
    padding: .35rem .9rem;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 600;
}

.booking-section {
    padding: 50px 0 90px;
    background: var(--warm-white);
}

/* Stepper */
.stepper {
    display: flex;
    justify-content: center;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 0 auto 2.5rem;
    flex-wrap: wrap;
}

.stepper .step {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #b9a98f;
    font-weight: 600;
    font-size: .95rem;
}

.stepper .step span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e6dcc8;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}

.stepper .step:not(:last-child)::after {
    content: '→';
    margin-left: .5rem;
    color: #d8ccb4;
}

.stepper .step.active {
    color: var(--primary-brown);
}

.stepper .step.active span {
    background: var(--gradient-gold);
}

.stepper .step.done span {
    background: #4caf50;
}

.step-panel.hidden,
.hidden {
    display: none !important;
}

.loading-note {
    text-align: center;
    color: var(--primary-brown);
    padding: 1rem;
}

/* Session cards */
.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.session-card {
    background: #fff;
    border: 2px solid #eadfca;
    border-radius: 14px;
    padding: 1.1rem;
    cursor: pointer;
    transition: all .2s ease;
    text-align: center;
}

.session-card:hover:not(.disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px var(--shadow);
    border-color: var(--primary-gold);
}

.session-card.selected {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, .25);
}

.session-card.disabled {
    opacity: .55;
    cursor: not-allowed;
    background: #f3eee3;
}

.session-card .sc-date {
    font-weight: 700;
    color: var(--primary-brown);
    font-size: 1.05rem;
}

.session-card .sc-slot {
    color: var(--dark-brown);
    margin: .3rem 0 .6rem;
}

.badge {
    display: inline-block;
    padding: .25rem .7rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
}

.badge.plenty {
    background: #e3f5e6;
    color: #2e7d32;
}

.badge.ok {
    background: #e3f5e6;
    color: #2e7d32;
}

.badge.low {
    background: #fff3df;
    color: #c47f17;
}

.badge.full {
    background: #f2e3e3;
    color: #b22222;
}

/* Cards / form */
.booking-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    max-width: 620px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.chosen-session {
    text-align: center;
    font-weight: 600;
    color: var(--primary-brown);
    background: var(--cream);
    border-radius: 10px;
    padding: .7rem;
    margin-bottom: 1.2rem;
}

.form-row {
    margin-bottom: 1.1rem;
}

.form-row label {
    display: block;
    font-weight: 600;
    color: var(--primary-brown);
    margin-bottom: .4rem;
}

.form-row input[type=text],
.form-row input[type=tel],
.form-row textarea {
    width: 100%;
    padding: .8rem 1rem;
    border: 2px solid #e6dcc8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color .2s;
    box-sizing: border-box;
    resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.form-row input[type=file] {
    width: 100%;
    padding: .6rem;
    border: 2px dashed #d8ccb4;
    border-radius: 10px;
    background: var(--cream);
}

.ticket-rows {
    margin: 1.2rem 0;
}

.ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .8rem 0;
    border-bottom: 1px solid #f0e9da;
}

.ticket-label small {
    display: block;
    color: #9a8a70;
    font-size: .85rem;
}

.stepper-input {
    display: flex;
    align-items: center;
    gap: .8rem;
}

.stepper-input button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    background: #fff;
    color: var(--primary-gold);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: all .15s;
}

.stepper-input button:hover {
    background: var(--primary-gold);
    color: #fff;
}

.stepper-input span {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.seat-note {
    color: #9a8a70;
    font-size: .88rem;
    text-align: right;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f0e9da;
    font-size: 1.15rem;
    color: var(--primary-brown);
}

.total-line strong {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.booking-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.booking-actions .cta-button {
    flex: 1;
    min-width: 150px;
    justify-content: center;
    cursor: pointer;
    font-family: inherit;
    border: none;
}

/* secondary buttons sit on a white card here — override the dark-bg style */
.booking-actions .cta-button.secondary {
    background: #fff;
    color: var(--primary-brown);
    border: 2px solid var(--primary-gold);
}

.booking-actions .cta-button.secondary:hover {
    background: var(--cream);
    color: var(--primary-brown);
}

.form-error {
    color: var(--red-accent);
    font-weight: 600;
    min-height: 1.2em;
    margin-top: .6rem;
    text-align: center;
}

/* Payment step */
.countdown-bar {
    background: var(--cream);
    border-radius: 10px;
    padding: .7rem;
    text-align: center;
    color: var(--primary-brown);
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.countdown-bar.urgent {
    background: #f2e3e3;
    color: var(--red-accent);
}

.pay-summary {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-brown);
}

.pay-box {
    background: var(--cream);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.3rem;
}

.pay-box {
    text-align: center;
}

.pay-box h4 {
    color: var(--primary-brown);
    margin-bottom: .8rem;
}

.pay-qr {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto .8rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px var(--shadow);
}

.pay-amount {
    font-size: 1.1rem;
    margin-bottom: .8rem;
}

.pay-amount strong {
    color: var(--primary-gold);
    font-size: 1.5rem;
}

.pay-steps {
    text-align: left;
    margin: 0 auto .6rem;
    max-width: 360px;
    padding-left: 1.1rem;
    color: var(--dark-brown);
    line-height: 1.8;
    font-size: .94rem;
}

.pay-steps li {
    margin-bottom: .2rem;
}

.pay-receiver {
    color: #9a8a70;
    font-size: .9rem;
}

.slip-preview {
    display: block;
    max-width: 240px;
    margin: 1rem auto;
    border-radius: 10px;
    box-shadow: 0 4px 14px var(--shadow);
}

/* Success */
.success-card {
    text-align: center;
}

.success-icon {
    font-size: 3.5rem;
}

.success-card h2 {
    color: var(--primary-brown);
    margin: .5rem 0 1rem;
}

#successDetails {
    background: var(--cream);
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    line-height: 1.9;
    color: var(--dark-brown);
}

.success-note {
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
}

@media (max-width:600px) {
    .booking-card {
        padding: 1.3rem;
    }

    .stepper .step {
        font-size: .82rem;
    }

    .booking-actions .cta-button {
        min-width: 120px;
        padding: .9rem 1rem;
        font-size: 1rem;
    }
}
