﻿:root {
            --primary: #FDC500;
            --primary-hover: #e1b000;
            --secondary: #ececec;
            --surface: #ffffff;
            --surface-soft: #f7f7f7;
            --line: #dedede;
            --text: #1f2937;
            --muted: #6b7280;
            --success: #2f5d42;
            --success-soft: #f2f7f3;
            --danger: #b44d4d;
            --danger-soft: #fbefef;
            --shadow-soft: 0 18px 40px rgba(31, 41, 55, 0.08);
            --shadow-card: 0 12px 28px rgba(31, 41, 55, 0.08);
            --radius-lg: 28px;
            --radius-md: 18px;
            --radius-sm: 12px;
        }

        * {
            box-sizing: border-box;
        }

        body.theme-guest {
            --page-accent-soft: rgba(253, 197, 0, 0.16);
            --page-accent-border: rgba(253, 197, 0, 0.28);
            --page-accent-text: #8a6d00;
            --page-mark-bg: rgba(253, 197, 0, 0.16);
            --page-mark-text: #8a6d00;
            --page-chip-bg: #fff8db;
            --page-chip-text: #7a6200;
        }

        body.theme-corporate {
            --page-accent-soft: rgba(31, 41, 55, 0.08);
            --page-accent-border: rgba(31, 41, 55, 0.16);
            --page-accent-text: #243041;
            --page-mark-bg: #243041;
            --page-mark-text: #ffffff;
            --page-chip-bg: #eef1f4;
            --page-chip-text: #243041;
        }

        body.theme-member {
            --page-accent-soft: rgba(47, 93, 66, 0.10);
            --page-accent-border: rgba(47, 93, 66, 0.18);
            --page-accent-text: #2f5d42;
            --page-mark-bg: #2f5d42;
            --page-mark-text: #ffffff;
            --page-chip-bg: #eef6f0;
            --page-chip-text: #2f5d42;
        }

        body {
            min-height: 100vh;
            margin: 0;
            background: var(--secondary);
            font-family: 'Manrope', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            color: var(--text);
            padding: 1.25rem;
        }

        .page-shell {
            width: min(980px, 100%);
            margin: 0 auto;
        }

        .page-topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            background: rgba(255, 255, 255, 0.9);
            border: 1px solid var(--line);
            border-radius: 18px;
            padding: 0.9rem 1rem;
            box-shadow: var(--shadow-card);
            margin-bottom: 1rem;
        }

        .brand-link {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            color: inherit;
            text-decoration: none;
        }

        .brand-mark {
            width: 44px;
            height: 44px;
            border-radius: 14px;
            background: var(--page-mark-bg, rgba(253, 197, 0, 0.16));
            color: var(--page-mark-text, #8a6d00);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 800;
            font-size: 0.95rem;
        }

        .brand-copy strong {
            display: block;
            font-size: 0.95rem;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: #172033;
        }

        .brand-copy span {
            display: block;
            font-size: 0.78rem;
            color: var(--muted);
        }

        .card {
            width: 100%;
            border-radius: var(--radius-lg);
            padding: 1.5rem;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: var(--shadow-soft);
            border: 1px solid var(--line);
        }

        .hero-head {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 1rem;
            margin-bottom: 1.25rem;
        }

        .eyebrow {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            background: var(--page-mark-bg, rgba(253, 197, 0, 0.16));
            color: var(--page-mark-text, #8a6d00);
            border: 1px solid var(--page-accent-border, rgba(253, 197, 0, 0.28));
            border-radius: 999px;
            padding: 0.38rem 0.72rem;
            font-size: 0.68rem;
            font-weight: 800;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            margin-bottom: 0.85rem;
        }

        h2 {
            margin: 0;
            text-align: left;
            color: #172033;
            font-size: clamp(1.55rem, 2.6vw, 2.2rem);
            line-height: 1.08;
            letter-spacing: -0.04em;
        }

        .hero-copy p {
            margin: 0.65rem 0 0;
            max-width: 600px;
            color: var(--muted);
            font-size: 0.92rem;
            line-height: 1.65;
        }

        .info-chip {
            display: inline-flex;
            align-items: center;
            gap: 0.45rem;
            background: var(--page-chip-bg, var(--surface-soft));
            border: 1px solid var(--line);
            border-radius: 999px;
            padding: 0.55rem 0.8rem;
            color: var(--page-chip-text, #5b6470);
            font-size: 0.76rem;
            font-weight: 700;
            white-space: nowrap;
        }

        .step {
            display: none;
        }

        .step.active {
            display: block;
        }

        .field-block + .field-block {
            margin-top: 0.95rem;
        }

        label {
            display: block;
            font-size: 0.82rem;
            font-weight: 700;
            color: #4b5563;
            margin-bottom: 0.42rem;
        }

        input,
        select {
            width: 100%;
            padding: 0.88rem 0.95rem;
            border: 1px solid var(--line);
            border-radius: var(--radius-sm);
            background: var(--page-chip-bg, var(--surface-soft));
            font-size: 0.9rem;
            color: var(--text);
            margin-top: 0;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        input:focus,
        select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(253, 197, 0, 0.14);
        }

        .btn {
            background: var(--primary);
            color: #1b1b1b;
            border: 1px solid var(--primary);
            padding: 0.82rem 1.1rem;
            border-radius: 999px;
            cursor: pointer;
            margin-top: 0;
            font-size: 0.86rem;
            font-weight: 800;
            min-height: 46px;
            transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
        }

        .btn:hover {
            background: var(--primary-hover);
            border-color: var(--primary-hover);
            transform: translateY(-1px);
        }

        .btn.btn-secondary-light {
            background: var(--page-chip-bg, var(--surface-soft));
            border-color: var(--line);
            color: #475467;
        }

        .btn.btn-secondary-light:hover {
            background: #e2e2e2;
            border-color: #d1d1d1;
        }

        .btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .choice-step-shell {
            display: grid;
            gap: 1.4rem;
            padding: 0.6rem 0 0.2rem;
        }

        .choice-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 1.25rem;
            align-items: stretch;
        }

        .choice-card {
            width: 100%;
            min-height: 180px;
            padding: 1.5rem;
            border: 1px solid rgba(203, 213, 225, 0.95);
            border-radius: 24px;
            background: #ffffff;
            display: flex;
            align-items: center;
            gap: 1rem;
            text-align: left;
            color: inherit;
            box-shadow: 0 16px 34px rgba(31, 41, 55, 0.08);
            transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
        }

        .choice-card:hover {
            transform: translateY(-3px);
            border-color: rgba(253, 197, 0, 0.6);
            box-shadow: 0 22px 40px rgba(31, 41, 55, 0.12);
        }

        .choice-card:focus-visible {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(253, 197, 0, 0.16), 0 18px 36px rgba(31, 41, 55, 0.12);
        }

        .choice-card-booking {
            background: #fcfcfa;
        }

        .choice-icon {
            width: 64px;
            height: 64px;
            border-radius: 20px;
            background: rgba(253, 197, 0, 0.18);
            color: var(--page-mark-text, #7b6500);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 1.15rem;
            font-weight: 800;
            flex-shrink: 0;
            box-shadow: inset 0 0 0 1px rgba(253, 197, 0, 0.2);
        }

        .choice-copy {
            display: flex;
            align-items: center;
            min-height: 100%;
        }

        .choice-copy strong {
            font-size: 1.12rem;
            line-height: 1.35;
            color: #111827;
            letter-spacing: 0.01em;
        }

        .choice-actions {
            display: flex;
            justify-content: flex-start;
            margin-top: 0.2rem;
        }
        #servicesContainer {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
            gap: 14px;
            margin-top: 0.9rem;
        }

        .service-card {
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 0.75rem;
            padding: 0.95rem;
            border: 1px solid var(--line);
            border-radius: 16px;
            transition: all 0.25s ease;
            cursor: pointer;
            background: var(--surface);
            box-shadow: 0 6px 14px rgba(31, 41, 55, 0.05);
        }

        .service-card:hover {
            border-color: rgba(253, 197, 0, 0.5);
            box-shadow: 0 12px 24px rgba(31, 41, 55, 0.08);
            transform: translateY(-2px);
        }

        .service-card label {
            margin-bottom: 0;
            font-weight: 700;
            color: #1f2937;
        }

        .service-card input[type="radio"],
        .service-card input {
            transform: scale(1.08);
            accent-color: var(--primary);
            margin-right: 8px;
        }

        #timeSlotWrapper {
            display: none;
            margin-top: 1rem;
            background: var(--page-chip-bg, var(--surface-soft));
            border: 1px solid var(--line);
            border-radius: 16px;
            padding: 0.95rem;
        }

        #generatedCode {
            margin-top: 0.9rem;
            padding: 1rem;
            text-align: center;
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 1.3rem;
            border: 1px dashed #d1d1d1;
            border-radius: 14px;
            background: var(--page-chip-bg, var(--surface-soft));
            min-height: 62px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .courts-grid {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: auto;
            padding-top: 5px;
            padding-bottom: 3px;
            gap: 6px;
        }

        .court-btn {
            padding: 6px 12px;
            font-size: 0.8rem;
            font-weight: 700;
            border: 1px solid var(--line);
            border-radius: 999px;
            background-color: #fff;
            color: #5a6472;
            cursor: pointer;
            white-space: nowrap;
            transition: 0.2s;
        }

        .court-btn:hover {
            background-color: #fff8db;
            border-color: rgba(253, 197, 0, 0.5);
            color: var(--page-mark-text, #8a6d00);
        }

        .court-btn.selected {
            background-color: var(--primary);
            border-color: var(--primary);
            color: #1b1b1b;
        }

        .courts-grid::-webkit-scrollbar {
            height: 5px;
        }

        .courts-grid::-webkit-scrollbar-thumb {
            background-color: #ccc;
            border-radius: 3px;
        }

        .step-indicators {
            display: flex;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 1.4rem;
            position: relative;
        }

        .step-indicators::before {
            content: "";
            position: absolute;
            top: 11px;
            left: 6%;
            right: 6%;
            height: 2px;
            background: #dadada;
            z-index: 0;
        }

        .step-indicator {
            flex: 1;
            position: relative;
            text-align: center;
            font-weight: 700;
            color: #9aa2ad;
            z-index: 1;
            font-size: 0.76rem;
            line-height: 1.4;
            background: transparent;
        }

        .step-indicator::before {
            content: "";
            display: block;
            width: 22px;
            height: 22px;
            margin: 0 auto 8px;
            border-radius: 50%;
            background: #d8d8d8;
            border: 3px solid var(--surface);
            transition: all 0.3s ease;
        }

        .step-indicator.active {
            color: var(--page-mark-text, #8a6d00);
        }

        .step-indicator.active::before {
            background: var(--primary);
            box-shadow: 0 0 0 6px rgba(253, 197, 0, 0.18);
            transform: scale(1.06);
        }

        .spinner {
            display: inline-block;
            width: 18px;
            height: 18px;
            border: 3px solid rgba(253, 197, 0, 0.28);
            border-radius: 50%;
            border-top-color: #8a6d00;
            animation: spin 0.8s linear infinite;
            vertical-align: middle;
            margin-right: 8px;
        }

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

        .notification-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 9999;
            max-width: 400px;
        }

        .notification {
            background: white;
            padding: 16px 20px;
            margin-bottom: 10px;
            border-radius: 14px;
            box-shadow: 0 12px 28px rgba(31, 41, 55, 0.12);
            display: flex;
            align-items: center;
            gap: 12px;
            animation: slideIn 0.3s ease;
            border: 1px solid transparent;
        }

        .notification.success {
            background: #eaf7ee;
            border-color: #bfdcc8;
            color: #1f4f33;
        }

        .notification.error {
            background: #fbeaea;
            border-color: #e3bcbc;
            color: #8f2f2f;
        }

        .notification.warning {
            background: #fff2dd;
            border-color: #f2c98a;
            color: #8a5a00;
        }

        .notification.info {
            background: #fff8db;
            border-color: #f2d36d;
            color: #7a6200;
        }

        @keyframes slideIn {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        .notification-icon {
            font-size: 24px;
            flex-shrink: 0;
        }

        .notification-content { flex: 1; }
        .notification-title { font-weight: 700; margin-bottom: 4px; color: inherit; }
        .notification-message { font-size: 13px; color: inherit; opacity: 0.9; }
        .notification-close {
            cursor: pointer;
            font-size: 20px;
            color: #999;
            background: none;
            border: none;
            padding: 0;
            line-height: 1;
        }
        .notification-close:hover { color: #333; }

        input.invalid,
        select.invalid {
            border-color: var(--danger) !important;
            box-shadow: 0 0 0 4px rgba(180, 77, 77, 0.12) !important;
        }

        input.valid,
        select.valid {
            border-color: #5f8b6d !important;
            box-shadow: 0 0 0 4px rgba(95, 139, 109, 0.12) !important;
        }

        .validation-message {
            font-size: 13px;
            margin-top: 6px;
            display: none;
        }

        .validation-message.error { color: var(--danger); display: block; }
        .validation-message.success { color: var(--success); display: block; }

        .step-actions {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.75rem;
            margin-top: 1rem;
            flex-wrap: wrap;
        }

        .step-actions.right {
            justify-content: flex-end;
        }

        .code-actions {
            display: flex;
            justify-content: center;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-top: 1rem;
        }

        @media (max-width: 640px) {
            body {
                padding: 0.75rem;
            }

            .page-topbar,
            .card {
                padding: 1rem;
            }

            .hero-head {
                flex-direction: column;
            }

            .step-indicator {
                font-size: 0.68rem;
            }

            #servicesContainer {
                grid-template-columns: 1fr;
            }

            .step-actions,
            .code-actions {
                flex-direction: column;
                align-items: stretch;
            }

            .btn {
                width: 100%;
            }
        }
.btn-primary {
    background: var(--primary);
    color: #1b1b1b;
    border: 1px solid var(--primary);
    padding: 0.82rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 800;
    min-height: 46px;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-back {
    background: var(--surface-soft);
    color: #475467;
    border: 1px solid var(--line);
}

.btn-back:hover {
    background: #e2e2e2;
    border-color: #d1d1d1;
}

