:root {
    --black: #0d0d0d;
    --charcoal: #111111;
    --white: #f5f5f3;
    --white-soft: #cecec8;
    --gold: #b89a64;
    --line: rgba(184, 154, 100, 0.38);
    --line-soft: rgba(245, 245, 243, 0.16);
    --green: #8ecf8c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100svh;
    background: var(--black);
    color: var(--white);
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
    width: min(100% - 2rem, 980px);
    margin-inline: auto;
}

.booking-header {
    padding: 2rem 0 1.2rem;
    border-bottom: 1px solid var(--line-soft);
}

.back-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

h1 {
    margin: 0.8rem 0 0.3rem;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 7vw, 3.2rem);
}

.booking-header p { color: var(--white-soft); margin: 0; }

.booking-card {
    margin: 1.5rem 0 2.4rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: clamp(1rem, 2.5vw, 1.8rem);
    background: rgba(17, 17, 17, 0.76);
}

.booking-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.booking-top h2 {
    margin: 0;
    color: var(--gold);
    font-size: 0.92rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

main {
    padding-bottom: 6rem;
}

.price-note {
    margin: 0.3rem 0 0;
    color: var(--white-soft);
    font-size: 0.9rem;
}

.wizard-progress {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.progress-step {
    flex: 1;
    height: 3px;
    min-width: 0;
    border-radius: 999px;
    background: var(--line-soft);
}

.progress-step.active,
.progress-step.done {
    background: var(--gold);
}

.wizard-step {
    border-top: 1px solid var(--line-soft);
    padding-top: 1rem;
}

.calendar-shell {
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    padding: 0.9rem;
    margin-bottom: 1rem;
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.calendar-title {
    flex: 1;
    text-align: center;
}

.calendar-head h3 {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
}

.step { margin-bottom: 1rem; }
.step-label,
label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--white);
    margin: 0.5rem 0 0.45rem;
    display: block;
}

.icon-btn {
    border: 1px solid var(--line-soft);
    background: transparent;
    color: var(--white);
    border-radius: 999px;
    width: 2.4rem;
    height: 2.4rem;
    cursor: pointer;
}

.icon-btn:hover,
.icon-btn:focus-visible {
    border-color: var(--gold);
    color: var(--gold);
}

.weekday-row,
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.45rem;
}

.weekday {
    text-align: center;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--white-soft);
}

.calendar-cell {
    min-height: 5.2rem;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(5, 5, 5, 0.65);
    color: var(--white);
    padding: 0.4rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-cell:not(.blank) {
    cursor: pointer;
}

.calendar-cell:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.calendar-cell.blank {
    border-style: dashed;
    opacity: 0.2;
    pointer-events: none;
}

.calendar-cell.active {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(184, 154, 100, 0.22) inset;
}

.calendar-cell.skeleton {
    position: relative;
    overflow: hidden;
    border-color: rgba(245, 245, 243, 0.08);
    background: rgba(245, 245, 243, 0.04);
    cursor: wait;
}

.calendar-cell.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(245, 245, 243, 0.14), transparent);
    animation: shimmer 1.2s infinite;
}

.calendar-skeleton-day{
    display: block;
    border-radius: 1rem;
    aspect-ratio: 1;
    margin: 0 auto;
    background: rgba(245, 245, 243, 0.1);
}

.calendar-skeleton-day {
    width: 4ch;
    height: 4ch;
}

.day-num {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

.day-meta {
    display: none;
    margin-top: 0.28rem;
    font-size: 0.7rem;
    color: var(--white-soft);
}

input, textarea {
    width: 100%;
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    background: rgba(5, 5, 5, 0.7);
    color: var(--white);
    padding: 0.72rem 0.85rem;
    font: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 154, 100, 0.25);
}

.hint {
    color: var(--white-soft);
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
}

.hint.error { color: #ef8b8b; }

.slot-groups {
    display: grid;
    gap: 0.85rem;
}

.slot-group-title {
    margin: 0 0 0.45rem;
    color: var(--white-soft);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
    gap: 0.55rem;
}

.slot {
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    padding: 0.56rem 0.45rem;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.slot:hover:not(:disabled) {
    border-color: var(--gold);
}

.slot:disabled {
    border-color: rgba(245, 245, 243, 0.08);
    color: rgba(245, 245, 243, 0.35);
    cursor: not-allowed;
}

.slot.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(184, 154, 100, 0.09);
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.chip {
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: transparent;
    color: var(--white);
    padding: 0.55rem 0.8rem;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.chip.active {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(184, 154, 100, 0.09);
}

.period-summary,
.review-box {
    border: 1px solid var(--line-soft);
    border-radius: 10px;
    padding: 0.8rem 0.9rem;
    color: var(--white-soft);
}

.review-box strong,
.period-summary strong {
    color: var(--white);
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.wizard-actions {
    display: flex;
    margin-top: 0.9rem;
}

.wizard-actions.between {
    justify-content: space-between;
    gap: 0.6rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.75rem 1.05rem;
    text-decoration: none;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(184, 154, 100, 0.08);
    cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
    border-color: var(--gold);
    color: var(--gold);
}

.btn.ghost {
    background: transparent;
    border-color: var(--line-soft);
    color: var(--white-soft);
}

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

.form-message {
    min-height: 1.2rem;
    margin: 0.7rem 0 0;
    color: var(--white-soft);
}

.form-message.error { color: #ef8b8b; }
.form-message.success { color: var(--green); }

.confirmation {
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1rem;
    background: rgba(184, 154, 100, 0.08);
}

.confirmation h3 {
    margin: 0 0 0.4rem;
    color: var(--gold);
}

.support-fab {
    position: fixed;
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(1rem, env(safe-area-inset-bottom));
    z-index: 30;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    background: rgba(17, 17, 17, 0.95);
    color: var(--white-soft);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
}

.support-fab:hover,
.support-fab:focus-visible {
    border-color: var(--gold);
    color: var(--gold);
}

.support-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.support-modal[hidden] {
    display: none !important;
}

.support-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.72);
    backdrop-filter: blur(6px);
}

.support-modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: min(90svh, 760px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--charcoal);
    padding: 1rem;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.support-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.support-modal-head h2 {
    margin: 0.12rem 0 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.6rem;
}

.support-copy {
    margin: 0.35rem 0 1rem;
    color: var(--white-soft);
}

.support-form {
    display: grid;
    gap: 0.55rem;
}

.support-form .wizard-actions {
    margin-top: 0.35rem;
}

.payment-modal-panel {
    width: min(100%, 760px);
}

.payment-checkout {
    min-height: 420px;
    border: 1px solid var(--line-soft);
    border-radius: 12px;
    background: rgba(5, 5, 5, 0.45);
    padding: 0.65rem;
}

.payment-checkout .__PrivateStripeElement,
.payment-checkout iframe {
    border-radius: 10px;
}

.support-close {
    flex: 0 0 auto;
    width: 2.8rem;
    height: 2.8rem;
    padding: 0;
    border-radius: 999px;
    font-size: 1.55rem;
    line-height: 1;
}

body.support-open {
    overflow: hidden;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 780px) {
    .booking-header { padding-top: 1.4rem; }
    .booking-card { margin-top: 1rem; }
    main { padding-bottom: 7rem; }

    .payment-checkout {
        min-height: 360px;
        padding: 0.45rem;
    }

    .support-fab {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: min(calc(100% - 2rem), 320px);
        text-align: center;
    }

    .weekday-row,
    .calendar-grid {
        gap: 0.32rem;
    }

    .calendar-cell {
        min-height: 4.9rem;
        padding: 0.25rem;
    }

    .weekday {
        font-size: 0.68rem;
        letter-spacing: 0.04em;
    }

    .day-num {
        font-size: 1.18rem;
    }
}

/* Policy notice on review step */
.booking-policy-notice {
    background: rgba(255, 200, 100, 0.08);
    border: 1px solid rgba(255, 200, 100, 0.25);
    border-radius: 0.5rem;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
}
.booking-policy-notice p {
    font-size: 0.825rem;
    line-height: 1.55;
    color: var(--text-muted, #aaa);
    margin: 0;
}
.booking-policy-notice a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
