@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Light Theme (Default System) */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-glass: rgba(255, 255, 255, 0.75);
    --border-color: rgba(226, 232, 240, 0.8);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary: #2563eb;       /* Safety blue */
    --primary-hover: #1d4ed8;
    --accent: #d97706;        /* Warning amber */
    --accent-light: #fef3c7;
    --accent-vibrant: #f59e0b; /* Road yellow */
    --success: #10b981;
    --danger: #ef4444;
    
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 16px -4px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 10px 10px -5px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.2);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --glass-blur: 16px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --bg-main: #0b0f19;
    --bg-surface: #111827;
    --bg-surface-glass: rgba(17, 24, 39, 0.75);
    --border-color: rgba(255, 255, 255, 0.07);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary: #3b82f6;
    --primary-hover: #60a5fa;
    --accent: #fbbf24;
    --accent-light: rgba(251, 191, 36, 0.15);
    --accent-vibrant: #fbbf24;
    --success: #34d399;
    --danger: #f87171;
    
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 16px -4px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- UTILITY CLASSES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.glass {
    background: var(--bg-surface-glass);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-accent {
    background-color: var(--accent-vibrant);
    color: #0f172a;
}

.btn-accent:hover {
    background-color: #d97706;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: var(--accent-light);
    color: var(--accent);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-vibrant) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- HEADER / NAVIGATION --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

header.scrolled {
    background-color: var(--bg-surface-glass);
    box-shadow: var(--shadow-md);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
}

.logo-container:hover .logo-img {
    transform: rotate(-10deg) scale(1.05);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.logo-text span {
    color: var(--accent-vibrant);
}

nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-vibrant);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

/* Mobile Menu Button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-media {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.03);
}

.hero-floating-card {
    position: absolute;
    bottom: 24px;
    left: -24px;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 240px;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.floating-icon {
    width: 48px;
    height: 48px;
    background-color: var(--accent-light);
    color: var(--accent-vibrant);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.floating-info h5 {
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.floating-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- SECTION STYLES --- */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 4rem;
}

.section-badge {
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* --- FEATURES SECTION --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon-wrapper {
    width: 56px;
    height: 56px;
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: var(--primary);
    color: #ffffff;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- SERVICES & PACKAGES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-content: center;
    align-items: stretch;
    max-width: 1140px;
    margin: 0 auto;
}

.service-card {
    border-radius: var(--radius-lg);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card.popular {
    border-color: var(--accent-vibrant);
    box-shadow: 0 10px 30px -10px rgba(245, 158, 11, 0.2);
}

.popular-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: var(--accent-vibrant);
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    z-index: 10;
}

.service-img-wrapper {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-duration {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
}

.service-price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.service-price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-features li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li i {
    color: var(--success);
    font-size: 1rem;
}

/* --- INSTRUCTORS SECTION --- */
.instructors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.instructor-card {
    border-radius: var(--radius-lg);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.instructor-img-wrapper {
    height: 300px;
    position: relative;
    background-color: #e2e8f0;
}

.instructor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.instructor-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
    color: #ffffff;
}

.instructor-info {
    padding: 1.5rem;
}

.instructor-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.instructor-role {
    font-size: 0.85rem;
    color: var(--accent-vibrant);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.instructor-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.rating-stars {
    color: #f59e0b;
}

.instructor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.instructor-tag {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* --- BOOKING SECTION --- */
.booking-section {
    position: relative;
}

.booking-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
}

.booking-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-lg);
}

.booking-form-step {
    display: none;
}

.booking-form-step.active {
    display: block;
    animation: fadeIn var(--transition-normal) ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.indicator-step {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--bg-main);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    z-index: 2;
    transition: all var(--transition-normal);
}

.indicator-step.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-glow);
}

.indicator-step.completed {
    background-color: var(--success);
    border-color: var(--success);
    color: #ffffff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Service Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-card:hover {
    border-color: var(--primary-hover);
    background-color: rgba(37, 99, 235, 0.02);
}

.option-card.selected {
    border-color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
}

.option-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.option-card.selected .option-dot {
    border-color: var(--primary);
}

.option-card.selected .option-dot::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
}

.option-details h5 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.option-details p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Calendar Control */
.calendar-wrapper {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: var(--bg-surface);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-main);
}

.calendar-month {
    font-weight: 700;
    font-size: 1.05rem;
}

.calendar-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.calendar-nav-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0.75rem;
    text-align: center;
}

.calendar-weekday {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0.5rem 0;
    text-transform: uppercase;
}

.calendar-day {
    padding: 0.75rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    user-select: none;
}

.calendar-day:hover:not(.disabled):not(.selected) {
    background-color: var(--border-color);
}

.calendar-day.disabled {
    color: var(--text-muted);
    opacity: 0.35;
    cursor: not-allowed;
}

.calendar-day.selected {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--accent-vibrant);
}

.calendar-day.selected.today::after {
    background-color: #ffffff;
}

/* Time slots */
.slots-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.slot-btn {
    border: 1px solid var(--border-color);
    background-color: var(--bg-surface);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    color: var(--text-primary);
}

.slot-btn:hover:not(.disabled):not(.selected) {
    border-color: var(--primary);
    color: var(--primary);
}

.slot-btn.selected {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.slot-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: var(--bg-main);
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

/* Booking Dashboard (My Bookings) */
.bookings-dashboard {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    height: 100%;
}

.bookings-dashboard h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.dashboard-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

/* Scrollbar styles */
.dashboard-list::-webkit-scrollbar,
.reviews-container::-webkit-scrollbar {
    width: 6px;
}
.dashboard-list::-webkit-scrollbar-thumb,
.reviews-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 99px;
}

.booking-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    border-left: 4px solid var(--primary);
    animation: slideIn var(--transition-normal) ease-in-out;
}

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

.booking-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-item-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.booking-cancel-btn {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-fast);
}

.booking-cancel-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
}

.booking-item-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.booking-item-details span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.booking-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.booking-empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

.booking-empty-state p {
    font-size: 0.9rem;
}

/* --- REVIEWS SECTION --- */
.reviews-layout {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 4rem;
}

/* Review Left Col: Summary & Write Form */
.reviews-summary-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.rating-huge {
    text-align: center;
    margin-bottom: 2rem;
}

.rating-huge-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.rating-huge-stars {
    color: #f59e0b;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.rating-huge-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.rating-bar-label {
    width: 24px;
    font-weight: 600;
}

.rating-bar-container {
    flex-grow: 1;
    height: 8px;
    background-color: var(--bg-main);
    border-radius: 99px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background-color: #f59e0b;
    border-radius: 99px;
    width: 0;
    transition: width 1s ease-in-out;
}

.rating-bar-count {
    width: 24px;
    text-align: right;
    color: var(--text-muted);
}

/* Write Review Form Card */
.write-review-card {
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.write-review-card h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.star-rating-picker {
    display: flex;
    gap: 0.5rem;
    font-size: 1.75rem;
    color: var(--text-muted);
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.star-rating-picker i {
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.star-rating-picker i:hover {
    transform: scale(1.15);
}

.star-rating-picker i.selected,
.star-rating-picker i.hovered {
    color: #f59e0b;
}

/* Review Right Col: List & Filter */
.reviews-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.reviews-filter-container {
    display: flex;
    gap: 0.5rem;
}

.filter-chip {
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    background-color: var(--bg-surface);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-chip.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-height: 720px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.review-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    animation: fadeIn var(--transition-normal) ease-in-out;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary);
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.review-user-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-rating-stars {
    color: #f59e0b;
    font-size: 0.9rem;
}

.review-comment {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* --- FAQ SECTION --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-radius: var(--radius-md);
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.faq-item.active {
    border-color: var(--primary);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    user-select: none;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 0.9rem;
    transition: transform var(--transition-normal);
    color: var(--text-secondary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal) ease-out;
    background-color: rgba(0, 0, 0, 0.015);
}

.faq-answer-content {
    padding: 0 1.5rem 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* --- CONTACT & FOOTER SECTION --- */
.contact-section {
    padding-bottom: 0;
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 50px;
}

.contact-info-col h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info-col p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background-color: rgba(37, 99, 235, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-detail-text h5 {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.contact-detail-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

.contact-map-col {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    height: 380px;
    position: relative;
    background-color: #cbd5e1;
}

.contact-map-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-card-floating {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.footer-logo span {
    color: var(--accent-vibrant);
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    .instructors-grid {
        grid-template-columns: 1fr 1fr;
    }
    .instructors-grid .instructor-card:last-child {
        grid-column: span 2;
    }
    .booking-grid {
        grid-template-columns: 1fr;
    }
    .reviews-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    nav {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--bg-surface);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 1.5rem;
        gap: 2rem;
        transition: left var(--transition-normal) ease-in-out;
        z-index: 999;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    nav.open {
        left: 0;
    }
    .nav-links {
        flex-direction: column;
        gap: 2rem;
        width: 100%;
        text-align: center;
    }
    .nav-actions {
        width: 100%;
        flex-direction: column;
        gap: 1.5rem;
    }
    .nav-actions .btn {
        width: 100%;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-image {
        height: 320px;
    }
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-ctas {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-floating-card {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
        animation: floatMobile 4s ease-in-out infinite;
    }
    @keyframes floatMobile {
        0%, 100% { transform: translate(-50%, 0); }
        50% { transform: translate(-50%, -10px); }
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .services-grid .service-card:last-child {
        grid-column: span 1;
    }
    .instructors-grid {
        grid-template-columns: 1fr;
    }
    .instructors-grid .instructor-card:last-child {
        grid-column: span 1;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .options-grid {
        grid-template-columns: 1fr;
    }
    .slots-container {
        grid-template-columns: 1fr 1fr;
    }
    .reviews-filter-container {
        flex-wrap: wrap;
    }
    .review-header {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* --- ACTIVE NAV LINK --- */
.nav-link.active {
    color: var(--primary) !important;
    font-weight: 700 !important;
}
.nav-link.active::after {
    width: 100% !important;
    background-color: var(--accent-vibrant) !important;
}

/* --- GENERATOR WORKSPACE & COLLAPSIBLE SIDEBAR --- */
.generator-wrapper {
    display: flex;
    position: relative;
    width: 100%;
    min-height: calc(100vh - 80px);
    background-color: var(--bg-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

.control-panel {
    width: 420px;
    flex-shrink: 0;
    background-color: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    height: calc(100vh - 80px);
    overflow-y: auto;
    position: sticky;
    top: 80px;
    z-index: 25;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.25s ease, 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.control-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
    border-bottom: 2px solid var(--border-color);
}

.control-panel-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.sidebar-toggle-btn {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    outline: none;
}

.sidebar-toggle-btn:hover {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.sidebar-expand-tab {
    position: fixed;
    top: 100px;
    left: 0;
    z-index: 35;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 0 10px 10px 0;
    padding: 0.75rem 0.65rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    outline: none;
}

.sidebar-expand-tab:hover {
    background: var(--primary-hover);
    padding-left: 0.85rem;
    box-shadow: var(--shadow-glow);
}

.sidebar-expand-tab .tab-icon {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.sidebar-expand-tab:hover .tab-icon {
    transform: translateX(2px);
}

.sidebar-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Collapsed State for Control Panel (Desktop & Tablet) */
.generator-wrapper.sidebar-collapsed .control-panel {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0px !important;
    padding: 0 !important;
    margin: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    border: none !important;
    pointer-events: none !important;
}

.generator-wrapper.sidebar-collapsed .sidebar-expand-tab {
    display: flex !important;
}

.preview-pane {
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.preview-toolbar {
    width: 100%;
    max-width: 850px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-surface);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    gap: 1rem;
    flex-wrap: wrap;
}

.paper-page {
    width: 100%;
    max-width: 850px;
    min-height: 1050px;
    background-color: #ffffff !important;
    color: #0f172a !important;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-sizing: border-box;
    font-family: var(--font-body);
    position: relative;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, max-width 0.3s ease;
}

.paper-page.active {
    display: flex;
}

/* Tablet & Mobile Responsiveness for Document Generator */
@media (max-width: 1024px) {
    .preview-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    .preview-toolbar .tabs {
        justify-content: center;
        flex-wrap: wrap;
    }
    .preview-toolbar .action-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    .action-buttons .btn {
        flex: 1;
        min-width: 120px;
    }
    .generator-wrapper {
        position: relative;
    }
}

@media (max-width: 768px) {
    .preview-pane {
        padding: 1rem 0.5rem;
    }

    .paper-page {
        padding: 1.25rem 1rem;
        min-height: auto;
    }

    .doc-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }

    .doc-school-info {
        text-align: center;
    }

    .doc-meta-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .signature-block {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .doc-table-financial {
        width: 100%;
        margin-left: 0;
    }

    .doc-table {
        font-size: 0.8rem;
    }
    .doc-table th, .doc-table td {
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .paper-page {
        padding: 1rem 0.5rem;
        font-size: 0.78rem;
    }

    .doc-title {
        font-size: 1.05rem;
    }

    .tab-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .action-buttons .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

