:root {
    --black: #0a0a0a;
    --white: #fafafa;
    --accent: #E50914;
    --accent-dark: #69050a;
    --gray-100: #f4f4f2;
    --gray-200: #e8e8e4;
    --gray-400: #9c9c96;
    --gray-600: #5a5a56;
    --card-bg: #ffffff;
    --surface: #f7f7f4;
    --radius: 16px;
    --radius-sm: 10px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* — HEADER — */
header {
    padding: 2rem 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: var(--white);
}

.logo span {
    color: var(--accent);
}

.logo a {
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 1px;
}

.header-pill {
    background: rgba(247, 24, 24, 0.12);
    border: 1px solid rgba(206, 11, 11, 0.25);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    letter-spacing: 0.3px;
}

/* — HERO — */
.hero {
    padding: 3rem 3rem 0rem 3rem;
    max-width: 1200px;
    margin: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(247, 24, 24, 0.12);
    border: 1px solid rgba(206, 11, 11, 0.25);
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 2px 5px;
    border-radius: 100px;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.7);
    }
}

h1 {
    font-family: 'Syne', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1.25rem;
}

h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    max-width: 480px;
    line-height: 1.7;
}

/* — MAIN LAYOUT — */
.booking-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 3rem 5rem;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.5rem;
    align-items: start;
}

/* — CALENDAR PANEL — */
.panel {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 1.4rem;
    color: var(--black);
}

.panel-title {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--black);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title svg {
    opacity: 0.6;
}

/* Calendar nav */
.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.cal-month {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}

.cal-nav {
    display: flex;
    gap: 3px;
}

.cal-btn {
    width: 28px;
    height: 28px;
    border: 1.5px solid var(--gray-200);
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: all 0.15s;
    font-size: 0.8rem;
}

.cal-btn:hover {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

.cal-grid-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 4px;
}

.cal-day-name {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 0;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.cal-day {
    aspect-ratio: 3 / 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 400;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--black);
    position: relative;
    border: 1.5px solid transparent;
}

.cal-day.empty {
    cursor: default;
}

.cal-day.past {
    color: #9c9c96;
    cursor: not-allowed;
}

.cal-day.available:hover {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

.cal-day.has-slots::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.cal-day.selected {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    font-weight: 600;
}

.cal-day.today {
    border-color: var(--accent-dark);
    color: var(--black);
    font-weight: 600;
}

.cal-day.today.selected {
    color: var(--accent);
}

/* — SLOTS — */
.slots-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1.5px solid var(--gray-100);
}

.slots-label {
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.slot-btn {
    padding: 10px 6px;
    border: 1.5px solid var(--gray-200);
    background: var(--surface);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: all 0.15s;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
}

.slot-btn:hover {
    border-color: var(--black);
    color: var(--black);
    background: var(--white);
}

.slot-btn.selected {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
    font-weight: 600;
}

.slot-btn.booked {
    background: var(--gray-100);
    color: var(--gray-200);
    cursor: not-allowed;
    text-decoration: line-through;
    border-color: transparent;
}

.no-slots {
    text-align: center;
    color: var(--gray-400);
    font-size: 0.9rem;
    padding: 1.5rem 0;
}

/* — FORM PANEL — */
.form-panel {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    color: var(--black);
}

.selection-preview {
    background: var(--black);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    display: none;
}

.selection-preview.visible {
    display: block;
}

.sel-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 4px;
    font-weight: 500;
}

.sel-value {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--accent);
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    color: var(--black);
    background: var(--surface);
    transition: all 0.15s;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--black);
    background: var(--white);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.book-btn {
    width: 100%;
    padding: 15px;
    background: var(--black);
    color: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.2px;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.book-btn:hover {
    background: #1a1a1a;
    transform: translateY(-1px);
}

.book-btn:active {
    transform: translateY(0);
}

.book-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* — SUCCESS STATE — */
.success-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.96);
    z-index: 999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.success-overlay.show {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

@keyframes popIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.success-title {
    font-family: 'Syne', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -1px;
}

.success-sub {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    max-width: 380px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.success-detail {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    padding: 1.25rem 2rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.success-detail strong {
    color: var(--accent);
    font-weight: 600;
}

.success-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-outline {
    padding: 12px 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--white);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-outline:hover {
    border-color: var(--white);
}

.btn-accent {
    padding: 12px 24px;
    border: none;
    background: var(--accent);
    color: var(--black);
    border-radius: var(--radius-sm);
    font-family: 'Syne', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-accent:hover {
    background: #d4e83a;
}

/* — CONFIG NOTICE — */
.config-notice {
    background: rgba(232, 255, 71, 0.07);
    border: 1px solid rgba(232, 255, 71, 0.2);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    color: rgba(232, 255, 71, 0.8);
    line-height: 1.6;
}

.config-notice code {
    background: rgba(0, 0, 0, 0.3);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85em;
}

/* — TOAST — */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #ff4444;
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    z-index: 9999;
    transition: transform 0.3s ease;
    max-width: 380px;
    text-align: center;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

/* - BOOKING OVERVIEW - */

.booking-overview {
    max-width: 1150px;
    margin: 0 auto 4rem;
    padding: 2.5rem 3rem;
    background-color: var(--accent);
    border-radius: 20px;
}

.session-details h1 {
    margin-bottom: 0.5rem;
    color: var(--black);
}

.session-desc {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1rem;
    max-width: 750px;
    line-height: 1.7;
    margin-bottom: 0;
}

.plan {
    margin: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 640px;
}

.plan-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
    color: rgba(10, 10, 10, 0.5);
    margin-bottom: 0.5rem;
}

.hour-plan,
.membership {
    background-color: var(--card-bg);
    padding: 1.75rem 1.5rem;
    border-radius: 14px;
}

.plan-price {
    font-size: 1.4rem;
    color: var(--black);
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.plan-price b {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--black);
}

.plan-price span {
    font-size: 0.9rem;
    color: rgba(10, 10, 10, 0.5);
    font-weight: 400;
}

span {
    font-size: 0.9rem;
    color: rgba(10, 10, 10, 0.5);
    font-weight: 400;
}

/* Guidelines */
.guidelines {
    background: rgba(10, 10, 10, 0.08);
    border-radius: 14px;
    padding: 1.5rem 1.75rem;
    margin-top: 0.5rem;
}

.guidelines-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 1rem;
}

.guidelines-title svg {
    opacity: 0.7;
}

.guidelines-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.guidelines-list li {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.5;
}

.guidelines-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: rgba(10, 10, 10, 0.35);
    font-size: 0.8rem;
}

.guidelines-list li b {
    color: var(--white);
}

/* Responsive */
@media (max-width: 900px) {
    .booking-overview {
        margin: 0 1.5rem 3rem;
        padding: 1.75rem 1.5rem;
    }

    .plan {
        grid-template-columns: 1fr;
        margin: 1.5rem 0;
    }
}

@media (max-width: 900px) {
    header {
        padding: 1.25rem 1.5rem;
    }

    .hero {
        padding: 3rem 1.5rem 2rem;
    }

    .booking-wrapper {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    h1 {
        font-size: 2.4rem;
    }

    .form-panel .panel-title {
        margin-bottom: 10px;
    }

    .cal-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 2px;
    }

    .cal-day {
        aspect-ratio: 1;
    }
}

/* ── SESSION TYPE TOGGLE ── */
.session-type-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.75rem;
}

.session-toggle {
    display: flex;
    gap: 0;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 5px;
    width: fit-content;
}

.session-toggle input[type="radio"] {
    display: none;
}

.session-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #666;
    transition: all 0.25s ease;
    user-select: none;
}

.session-toggle label svg {
    opacity: 0.5;
    transition: opacity 0.25s;
}

.session-toggle input[type="radio"]:checked+label {
    background: #E50914;
    color: #fff;
}

.session-toggle input[type="radio"]:checked+label svg {
    opacity: 1;
}

/* ── DURATION SELECTOR ── */
.duration-section {
    display: none;
}

.duration-section.visible {
    display: block;
}

.duration-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 0.6rem;
}

.duration-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dur-btn {
    background: #111;
    border: 1px solid #2a2a2a;
    color: #aaa;
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}

.dur-btn:hover {
    border-color: #555;
    color: #ddd;
}

.dur-btn.selected {
    background: #E50914;
    color: #fff;
    border-color: #E50914;
}

/* ── STUDIO SERVICE DROPDOWN ── */
.studio-service-group {
    display: none;
}

.studio-service-group.visible {
    display: block;
}

.studio-service-group select {
    width: 100%;
    background: #111;
    border: 1px solid #2a2a2a;
    color: #ccc;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 24 24' stroke='%23666' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.2s;
}

.studio-service-group select:focus {
    outline: none;
    border-color: #E50914;
}

.studio-service-group select option {
    background: #111;
    color: #ccc;
}

/* ── PAYMENT SECTION ── */
.payment-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #1e1e1e;
}

.payment-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 1rem;
}

.payment-inner {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.qr-placeholder {
    flex-shrink: 0;
    width: 130px;
    height: 150px;
    border: 2px dashed #333;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #555;
    font-size: 0.65rem;
    font-family: 'DM Sans', sans-serif;
    text-align: center;
    background: #0d0d0d;
    overflow: hidden;
}

.qr-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.qr-placeholder svg {
    opacity: 0.4;
}

.qr-placeholder span {
    line-height: 1.3;
    padding: 0 8px;
}

.payment-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.payment-note {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    color: #666;
    line-height: 1.5;
}

.payment-note b {
    color: #aaa;
}


.overview-panel {
    display: none;
}

.overview-panel.visible {
    display: block;
}

/* Studio pricing cards — match jam room plan card style */
.studio-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.price-card {
    background: #ffffff;
    border: 1px solid #222;
    border-radius: 12px;
    padding: 1.1rem 1rem;
}

.price-card .pc-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 0.4rem;
}

.price-card .pc-price {
    font-family: 'Syne', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #E50914;
    margin-bottom: 0.2rem;
}

.price-card .pc-price span {
    font-size: 0.75rem;
    font-weight: 400;
    color: #888;
}

.price-card .pc-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    color: #888;
    line-height: 1.4;
}

.price-card.highlight {
    border-color: #E50914;
}

.price-card.muted .pc-price {
    font-size: 1rem;
    color: #aaa;
}

/* ── SLOT SPAN HIGHLIGHT ── */
.slot-btn.span-slot {
    background: rgba(229, 9, 20, 0.12) !important;
    border-color: #E50914 !important;
    color: #E50914 !important;
    cursor: default;
}

.slot-btn.selected {
    background: #E50914 !important;
    color: #fff !important;
    border-color: #E50914 !important;
}