/* ============================================
   HEALTHCAMPUS DESIGN SYSTEM
   Consistent design tokens and components
   ============================================ */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* ===== DARK HEADER FOR LIGHT BACKGROUND PAGES ===== */
/* Used on pages like booking, gleichwertigkeit-antrag that don't have a green hero */
.header--dark {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.header--dark .nav__link {
    color: var(--neutral-700) !important;
}

.header--dark .nav__link:hover {
    color: var(--primary-600) !important;
    background: var(--primary-50) !important;
}

.header--dark .nav__link--active,
.header--dark .nav__link.active {
    color: var(--primary-700) !important;
    background: var(--primary-100) !important;
}

.header--dark .nav__toggle span {
    background: var(--neutral-700) !important;
}

.header--dark .header__cta {
    background: var(--primary-600) !important;
    color: white !important;
    border-color: var(--primary-600) !important;
}

.header--dark .header__cta:hover {
    background: var(--primary-700) !important;
    border-color: var(--primary-700) !important;
}

.header--dark .user-menu__trigger {
    background: var(--primary-100) !important;
    color: var(--primary-700) !important;
    border-color: var(--primary-200) !important;
}

.header--dark .user-menu__trigger:hover {
    background: var(--primary-200) !important;
}

:root {
    /* ===== DESIGN TOKENS ===== */
    
    /* Border Radius - Unified system */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-3xl: 32px;
    --radius-full: 9999px;
    
    /* Box Shadows - Unified system */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.10);
    --shadow-xl: 0 16px 40px rgba(15, 23, 42, 0.12);
    --shadow-2xl: 0 24px 56px rgba(15, 23, 42, 0.16);
    
    /* Colored shadows for emphasis */
    --shadow-primary: 0 8px 24px rgba(21, 138, 138, 0.20);
    --shadow-primary-lg: 0 16px 40px rgba(21, 138, 138, 0.25);
    --shadow-accent: 0 8px 24px rgba(248, 102, 71, 0.20);
    
    /* Hover shadow transition */
    --shadow-hover: 0 12px 32px rgba(15, 23, 42, 0.14);
    
    /* Colors - Extended */
    --primary-50: #effcfc;
    --primary-100: #d6f6f7;
    --primary-200: #b2ecef;
    --primary-300: #7ddeE3;
    --primary-400: #41c7cf;
    --primary-500: #25aab5;
    --primary-600: #158a8a;
    --primary-700: #177076;
    --primary-800: #1a5b60;
    --primary-900: #1a4c51;
    
    --accent-50: #fff4f1;
    --accent-100: #ffe8e3;
    --accent-200: #ffd5cb;
    --accent-300: #ff8a71;
    --accent-400: #f86647;
    --accent-500: #f86647;
    --accent-600: #e54a29;
    --accent-700: #c13b1e;
    
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    /* White */
    --white: #ffffff;
    
    /* Success Colors */
    --success: #10b981;
    --success-50: #ecfdf5;
    --success-100: #d1fae5;
    --success-500: #10b981;
    --success-600: #059669;
    --success-700: #047857;
    
    /* Warning Colors */
    --warning: #f59e0b;
    --warning-50: #fffbeb;
    --warning-100: #fef3c7;
    --warning-500: #f59e0b;
    --warning-600: #d97706;
    --warning-700: #b45309;
    
    /* Error/Danger Colors */
    --error: #ef4444;
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;
    
    /* Info Colors */
    --info-50: #eff6ff;
    --info-100: #dbeafe;
    --info-500: #3b82f6;
    --info-600: #2563eb;
    --info-700: #1d4ed8;
    
    /* Primary RGB (for rgba usage) */
    --primary-rgb: 21, 138, 138;
    
    /* Neutral extended */
    --neutral-150: #eaeff5;
    
    /* Typography */
    --font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ===== TYPOGRAPHY ===== */

/* Body text - Inter */
body {
    font-family: var(--font-body) !important;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* All headings - Outfit (popping font) */
h1, h2, h3, h4, h5, h6,
.hero__title,
.features__title,
.section-title,
.cta__title,
.page-header__title,
.testimonials__title,
.courses-highlight__title {
    font-family: var(--font-display) !important;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
}

/* Extra bold for main headings */
h1, .hero__title, .page-header__title {
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 2.75rem;
}

/* Section titles */
h2, .features__title, .section-title, .cta__title, .testimonials__title, .course-list-header__title {
    font-weight: 700;
    font-size: 2.25rem;
}

/* Subsection titles */
h3 {
    font-weight: 600;
    font-size: 1.5rem;
}

/* Card titles */
h4, .feature-card__title, .service-card__title {
    font-weight: 600;
    font-size: 1.25rem;
}

/* Responsive heading sizes */
@media (min-width: 768px) {
    h1, .hero__title, .page-header__title {
        font-size: 3.25rem;
    }
    
    h2, .features__title, .section-title, .cta__title, .testimonials__title, .course-list-header__title {
        font-size: 2.5rem;
    }
    
    h3 {
        font-size: 1.75rem;
    }
}

/* Labels and badges */
.features__label,
.section-label,
.testimonials__label,
.badge {
    font-family: var(--font-body) !important;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn {
    font-family: var(--font-body) !important;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* Navigation */
.nav__link,
.header__nav a,
.footer__link {
    font-family: var(--font-body) !important;
    font-weight: 500;
}

/* Lead text / Subtitles */
.lead,
.hero__subtitle,
.page-header__text,
.features__text {
    font-family: var(--font-body) !important;
    font-weight: 400;
    line-height: 1.7;
}

/* Form elements */
.form__input,
.form__select,
.form__textarea,
.input,
select,
textarea {
    font-family: var(--font-body) !important;
}

/* Stats and numbers */
.stat-item__value,
.courses-highlight__date {
    font-family: var(--font-display) !important;
    font-weight: 700;
}

/* ===== IMAGE PLACEHOLDERS ===== */
.img-placeholder {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-200) 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.4) 50%, transparent 60%);
    animation: shimmer 2s infinite;
}

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

.img-placeholder__icon {
    width: 48px;
    height: 48px;
    color: var(--neutral-400);
    z-index: 1;
}

.img-placeholder--sm { 
    height: 120px; 
    border-radius: var(--radius-md);
}

.img-placeholder--md { 
    height: 200px; 
}

.img-placeholder--lg { 
    height: 300px; 
    border-radius: var(--radius-xl);
}

.img-placeholder--xl { 
    height: 400px; 
    border-radius: var(--radius-2xl);
}

.img-placeholder--hero {
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-2xl);
}

.img-placeholder--square {
    aspect-ratio: 1;
    height: auto;
}

.img-placeholder--video {
    aspect-ratio: 16/9;
    height: auto;
}

.img-placeholder--portrait {
    aspect-ratio: 3/4;
    height: auto;
}

/* Placeholder with teal tint */
.img-placeholder--primary {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
}

.img-placeholder--primary .img-placeholder__icon {
    color: var(--primary-400);
}

/* Placeholder with coral tint */
.img-placeholder--accent {
    background: linear-gradient(135deg, var(--accent-50) 0%, var(--accent-100) 100%);
}

.img-placeholder--accent .img-placeholder__icon {
    color: var(--accent-400);
}

/* ===== UNIFIED CARD STYLES ===== */
.card-unified {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-100);
    padding: var(--space-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card-unified:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-unified--featured {
    border: 2px solid var(--primary-500);
    box-shadow: var(--shadow-primary);
}

.card-unified--featured:hover {
    box-shadow: var(--shadow-primary-lg);
}

/* ===== IMAGE GALLERY COMPONENT ===== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .image-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

.image-gallery__item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.image-gallery__item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.image-gallery__item img,
.image-gallery__item .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== FEATURE IMAGE SECTIONS ===== */
.feature-image-section {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

@media (min-width: 768px) {
    .feature-image-section {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3xl);
    }
    
    .feature-image-section--reverse {
        direction: rtl;
    }
    
    .feature-image-section--reverse > * {
        direction: ltr;
    }
}

.feature-image-section__image {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.feature-image-section__image img,
.feature-image-section__image .img-placeholder {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== TESTIMONIAL WITH IMAGE ===== */
.testimonial-with-image {
    display: flex;
    gap: var(--space-lg);
    align-items: flex-start;
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.testimonial-with-image__avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.testimonial-with-image__avatar img,
.testimonial-with-image__avatar .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== STATS WITH BACKGROUND IMAGE ===== */
.stats-with-bg {
    position: relative;
    padding: var(--space-4xl) 0;
    overflow: hidden;
}

.stats-with-bg__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.stats-with-bg__bg img,
.stats-with-bg__bg .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats-with-bg__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21, 138, 138, 0.92) 0%, rgba(23, 112, 118, 0.95) 100%);
}

/* ===== LOGO/PARTNER SHOWCASE ===== */
.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: var(--neutral-50);
    border-radius: var(--radius-xl);
}

.partner-logos__item {
    height: 40px;
    opacity: 0.7;
    transition: opacity var(--transition-base);
}

.partner-logos__item:hover {
    opacity: 1;
}

.partner-logos__item img,
.partner-logos__item .img-placeholder {
    height: 100%;
    width: auto;
}

/* ===== PROCESS STEP WITH IMAGE ===== */
.process-step-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .process-step-visual {
        grid-template-columns: 200px 1fr;
    }
}

.process-step-visual__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.process-step-visual__image img,
.process-step-visual__image .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== HERO SECTION ENHANCEMENT ===== */
.hero-image-container {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.hero-image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 23, 42, 0.3) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-image-container img,
.hero-image-container .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== FLOATING IMAGE ACCENT ===== */
.floating-image-accent {
    position: relative;
}

.floating-image-accent::before {
    content: '';
    position: absolute;
    top: -16px;
    left: -16px;
    right: 16px;
    bottom: 16px;
    background: var(--primary-100);
    border-radius: var(--radius-2xl);
    z-index: -1;
}

.floating-image-accent::after {
    content: '';
    position: absolute;
    top: 16px;
    left: 16px;
    right: -16px;
    bottom: -16px;
    background: var(--primary-500);
    border-radius: var(--radius-2xl);
    z-index: -2;
    opacity: 0.15;
}

.floating-image-accent img,
.floating-image-accent .img-placeholder {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

/* ===== INLINE IMAGE ROW ===== */
.inline-image-row {
    display: flex;
    gap: var(--space-md);
    margin: var(--space-xl) 0;
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
}

.inline-image-row__item {
    flex: 0 0 auto;
    width: 280px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.inline-image-row__item img,
.inline-image-row__item .img-placeholder {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* ===== CTA SECTION WITH IMAGE ===== */
.cta-with-image {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    align-items: center;
    padding: var(--space-3xl);
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    border-radius: var(--radius-2xl);
    color: white;
}

@media (min-width: 768px) {
    .cta-with-image {
        grid-template-columns: 1fr 1fr;
    }
}

.cta-with-image__image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.cta-with-image__image img,
.cta-with-image__image .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ICON IMAGE (for team, features) ===== */
.icon-image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.icon-image--lg {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-xl);
}

.icon-image--xl {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-xl);
}

.icon-image img,
.icon-image .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== BACKGROUND PATTERN (subtle visual interest) ===== */
.bg-pattern {
    position: relative;
}

.bg-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--primary-100) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--primary-100) 1px, transparent 1px);
    background-size: 48px 48px;
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

/* ===== ENHANCED SHADOWS FOR EXISTING ELEMENTS ===== */

/* Override existing card shadows for consistency */
.card {
    box-shadow: var(--shadow-md) !important;
    border-radius: var(--radius-xl) !important;
    transition: transform var(--transition-base), box-shadow var(--transition-base) !important;
}

.card:hover {
    box-shadow: var(--shadow-hover) !important;
}

/* Enhanced buttons */
.btn {
    border-radius: var(--radius-md) !important;
}

.btn--primary {
    box-shadow: var(--shadow-primary) !important;
}

.btn--primary:hover {
    box-shadow: var(--shadow-primary-lg) !important;
}

/* Form inputs consistent radius */
.form__input,
.form__select,
.form__textarea,
.input {
    border-radius: var(--radius-md) !important;
}

/* Feature cards */
.feature-card {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-md) !important;
}

.feature-card:hover {
    box-shadow: var(--shadow-hover) !important;
}

/* Service cards */
.service-card {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-lg) !important;
}

.service-card:hover {
    box-shadow: var(--shadow-xl) !important;
}

.service-card__image {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0 !important;
}

/* Service card features with checkmarks */
.service-card__features--checkmarks {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: var(--space-sm) !important;
    margin-bottom: var(--space-lg);
}

.service-card__features--checkmarks .service-card__feature {
    display: flex !important;
    align-items: flex-start !important;
    gap: var(--space-sm) !important;
    padding: var(--space-xs) 0 !important;
    font-size: 0.9375rem !important;
    line-height: 1.5 !important;
    color: var(--neutral-700) !important;
    background: transparent !important;
    border-radius: 0 !important;
}

.service-card__features--checkmarks .service-card__feature svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--primary-600);
    margin-top: 1px;
}

/* Testimonial cards */
.testimonial-card {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Target cards */
.target-card {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-md) !important;
}

/* Accordion */
.accordion__item {
    border-radius: var(--radius-lg) !important;
}

/* Toast */
.toast {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl) !important;
}

/* Modal */
.modal__content {
    border-radius: var(--radius-2xl) !important;
    box-shadow: var(--shadow-2xl) !important;
}

/* ===== PAGE HEADER HERO SECTIONS ===== */
.page-header--with-image {
    border-radius: 0 0 var(--radius-3xl) var(--radius-3xl);
    overflow: hidden;
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .page-header--with-image {
        min-height: 400px;
    }
}

/* Background image layer */
.page-header--with-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Gradient overlay for text readability */
.page-header--with-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21, 138, 138, 0.88) 0%, rgba(23, 112, 118, 0.92) 100%);
    z-index: 1;
}

.page-header--with-image .container {
    position: relative;
    z-index: 2;
}

/* Page-specific background images */
.page-header--pflegehelferkurs::before {
    background-image: url('../images/kurs-pflege.jpg');
}

.page-header--gleichwertigkeit::before {
    background-image: url('../images/kurs-gleichwertigkeit.jpg');
}

.page-header--institutionen::before {
    background-image: url('../images/kurs-institution.jpg');
}

.page-header--ueber-uns::before {
    background-image: url('../images/hero-pflege.jpg');
}

.page-header--kontakt::before {
    background-image: url('../images/hero-bg.jpg');
}

.page-header--datenschutz::before {
    background-image: url('../images/hero-bg.jpg');
}

.page-header--impressum::before {
    background-image: url('../images/hero-bg.jpg');
}

/* Decorative shapes for visual interest */
.page-header__shapes {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.page-header__shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.page-header__shape--1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.page-header__shape--2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: 10%;
}

.page-header__shape--3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 20%;
    transform: translateY(-50%);
}

/* Page header badge */
.page-header__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.page-header__badge svg {
    flex-shrink: 0;
}

/* Page header actions */
.page-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.page-header__actions .btn--white {
    background: white;
    color: var(--primary-700);
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-lg);
}

.page-header__actions .btn--white:hover {
    background: var(--primary-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.page-header__actions .btn--glass {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(8px);
    transition: all var(--transition-base);
}

.page-header__actions .btn--glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ===== COURSE HERO SECTION (kurs.html) ===== */
.course-hero {
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../images/kurs-pflege.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.course-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(21, 138, 138, 0.92) 0%, rgba(23, 112, 118, 0.95) 100%);
    z-index: 1;
}

.course-hero .container {
    position: relative;
    z-index: 2;
}

.course-hero__breadcrumb {
    color: rgba(255, 255, 255, 0.7);
}

.course-hero__breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.course-hero__breadcrumb a:hover {
    color: white;
}

.course-hero__title {
    color: white;
}

.course-hero__description {
    color: rgba(255, 255, 255, 0.9);
}

.course-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.course-hero__tag {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.course-hero__availability {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== BOOKING FORM - COMPANY CHECKBOX ===== */
.booking-checkbox--highlight {
    padding: var(--space-md);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-200);
    transition: all var(--transition-base);
}

.booking-checkbox--highlight:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
}

.booking-checkbox--highlight input:checked ~ .form__checkbox-label {
    color: var(--primary-700);
}

.booking-checkbox--highlight input:checked + .form__checkbox-mark + .form__checkbox-label strong {
    color: var(--primary-700);
}

/* Company fields animation */
.company-fields {
    animation: slideDown 0.2s ease-out;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--neutral-200);
}

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

/* Hero section image */
.hero__image {
    border-radius: var(--radius-2xl) !important;
    box-shadow: var(--shadow-2xl) !important;
    overflow: hidden;
}

/* CTA section */
.cta__inner {
    border-radius: var(--radius-2xl) !important;
}

/* Badges */
.badge,
.service-card__badge {
    border-radius: var(--radius-full) !important;
}

/* Process timeline cards */
.process-timeline__card {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-md) !important;
}

/* File upload dropzone */
.file-upload__dropzone {
    border-radius: var(--radius-lg) !important;
}

/* Courses highlight cards */
.course-card {
    border-radius: var(--radius-xl) !important;
    box-shadow: var(--shadow-md) !important;
}

.course-card:hover {
    box-shadow: var(--shadow-hover) !important;
}

/* ===== VISUAL SEPARATOR WITH IMAGE ===== */
.visual-separator {
    position: relative;
    height: 300px;
    margin: var(--space-3xl) 0;
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.visual-separator img,
.visual-separator .img-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.visual-separator::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary-600) 0%, transparent 50%, var(--primary-600) 100%);
    opacity: 0.15;
}

/* ===== CONTENT WITH SIDE IMAGE ===== */
.content-with-image {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
}

@media (min-width: 768px) {
    .content-with-image {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.content-with-image__visual {
    position: relative;
}

.content-with-image__visual img,
.content-with-image__visual .img-placeholder {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
}

/* ===== STACKED IMAGES ===== */
.stacked-images {
    position: relative;
    padding: var(--space-xl);
}

.stacked-images__back {
    position: absolute;
    top: 0;
    left: 0;
    width: 85%;
    height: 85%;
    border-radius: var(--radius-2xl);
    background: var(--primary-100);
    z-index: 1;
}

.stacked-images__front {
    position: relative;
    margin-left: 15%;
    margin-top: 15%;
    width: 85%;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    z-index: 2;
}

.stacked-images__front img,
.stacked-images__front .img-placeholder {
    width: 100%;
    height: auto;
}

/* ===== UTILITY CLASSES ===== */
.shadow-unified-sm { box-shadow: var(--shadow-sm); }
.shadow-unified-md { box-shadow: var(--shadow-md); }
.shadow-unified-lg { box-shadow: var(--shadow-lg); }
.shadow-unified-xl { box-shadow: var(--shadow-xl); }

.radius-unified-sm { border-radius: var(--radius-sm); }
.radius-unified-md { border-radius: var(--radius-md); }
.radius-unified-lg { border-radius: var(--radius-lg); }
.radius-unified-xl { border-radius: var(--radius-xl); }
.radius-unified-2xl { border-radius: var(--radius-2xl); }

/* ===== HIDDEN ELEMENTS ===== */
/* Hide empty image galleries and inline image rows */
.image-gallery.animated,
.inline-image-row.animated {
    display: none !important;
}

/* ===== COURSES HIGHLIGHT SECTION ===== */
.section--courses-highlight {
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--primary-50) 100%);
    padding: var(--space-3xl) 0;
}

.courses-highlight {
    max-width: 1200px;
    margin: 0 auto;
}

.courses-highlight__header {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
    text-align: center;
}

@media (min-width: 768px) {
    .courses-highlight__header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        text-align: left;
    }
}

.courses-highlight__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

@media (min-width: 768px) {
    .courses-highlight__title {
        font-size: 2rem;
    }
}

/* Grid - 3 columns */
.courses-highlight__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 640px) {
    .courses-highlight__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .courses-highlight__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Course Cards - Enhanced Design */
.courses-highlight__card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--neutral-100);
}

.courses-highlight__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-500) 0%, var(--primary-400) 100%);
}

.courses-highlight__card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.courses-highlight__date {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: var(--space-xs);
}

.courses-highlight__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-800);
    line-height: 1.4;
}

.courses-highlight__location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--neutral-500);
}

.courses-highlight__location::before {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    flex-shrink: 0;
}

.courses-highlight__spots {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--primary-50);
    color: var(--primary-700);
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-top: var(--space-sm);
    width: fit-content;
}

.courses-highlight__spots::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.1); }
}

.courses-highlight__spots--few {
    background: var(--accent-50);
    color: var(--accent-600);
}

.courses-highlight__spots--few::before {
    background: var(--accent-500);
}

.courses-highlight__spots--full {
    background: var(--neutral-100);
    color: var(--neutral-500);
}

.courses-highlight__spots--full::before {
    background: var(--neutral-400);
    animation: none;
}

.courses-highlight__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: auto;
    padding: var(--space-sm) var(--space-lg);
    background: var(--primary-600);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
    box-shadow: var(--shadow-primary);
}

.courses-highlight__btn:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
}

.courses-highlight__btn::after {
    content: '';
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3Cpolyline points='12 5 19 12 12 19'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
}

.courses-highlight__loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-3xl);
    color: var(--neutral-500);
}

.courses-highlight__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--space-3xl);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

/* ===== COURSE LIST DESIGN (Red Cross Style) ===== */
.course-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

/* List Header */
.course-list__header {
    display: none;
    padding: var(--space-md) var(--space-lg);
    background: var(--neutral-50);
    border-bottom: 2px solid var(--neutral-200);
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 768px) {
    .course-list__header {
        display: grid;
        grid-template-columns: 140px 1fr 140px 120px 140px;
        gap: var(--space-lg);
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .course-list__header {
        grid-template-columns: 160px 1fr 160px 140px 160px;
    }
}

/* List Item */
.course-list__item {
    display: flex;
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--neutral-100);
    transition: background var(--transition-fast);
    gap: var(--space-md);
}

.course-list__item:last-child {
    border-bottom: none;
}

.course-list__item:hover {
    background: var(--primary-50);
}

@media (min-width: 768px) {
    .course-list__item {
        display: grid;
        grid-template-columns: 140px 1fr 140px 120px 140px;
        gap: var(--space-lg);
        align-items: center;
        padding: var(--space-lg) var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .course-list__item {
        grid-template-columns: 160px 1fr 160px 140px 160px;
        padding: var(--space-lg) var(--space-lg);
    }
}

/* Date Column */
.course-list__date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.course-list__date-main {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-700);
    line-height: 1.2;
}

.course-list__date-year {
    font-size: 0.8125rem;
    color: var(--neutral-500);
    font-weight: 500;
}

/* Mobile: Date label */
.course-list__date::before {
    content: 'Datum';
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-400);
    margin-bottom: 2px;
}

@media (min-width: 768px) {
    .course-list__date::before {
        display: none;
    }
}

/* Course Name Column */
.course-list__name {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.course-list__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    line-height: 1.3;
}

.course-list__subtitle {
    font-size: 0.8125rem;
    color: var(--neutral-500);
}

/* Location Column */
.course-list__location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.9375rem;
    color: var(--neutral-700);
}

.course-list__location::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23158a8a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'%3E%3C/path%3E%3Ccircle cx='12' cy='10' r='3'%3E%3C/circle%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Mobile: Location label */
@media (max-width: 767px) {
    .course-list__location {
        padding-top: var(--space-sm);
        border-top: 1px dashed var(--neutral-200);
    }
}

/* Status Column */
.course-list__status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.course-list__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.course-list__badge--available {
    background: var(--success-50);
    color: var(--success-700);
}

.course-list__badge--available::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.course-list__badge--few {
    background: var(--warning-50);
    color: var(--warning-700);
}

.course-list__badge--few::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--warning-500);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.course-list__badge--full {
    background: var(--neutral-100);
    color: var(--neutral-500);
}

.course-list__badge--full::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--neutral-400);
    border-radius: 50%;
}

/* Action Column */
.course-list__action {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .course-list__action {
        justify-content: stretch;
        margin-top: var(--space-sm);
    }
}

.course-list__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 10px 20px;
    background: var(--primary-600);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-primary);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .course-list__btn {
        width: 100%;
    }
}

.course-list__btn:hover {
    background: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

.course-list__btn svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.course-list__btn:hover svg {
    transform: translateX(3px);
}

.course-list__btn--secondary {
    background: var(--neutral-100);
    color: var(--neutral-600);
    box-shadow: none;
}

.course-list__btn--secondary:hover {
    background: var(--neutral-200);
    color: var(--neutral-700);
    box-shadow: none;
}

/* Loading State */
.course-list__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-3xl);
    color: var(--neutral-500);
}

/* Empty State */
.course-list__empty {
    text-align: center;
    padding: var(--space-3xl);
}

.course-list__empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    color: var(--neutral-300);
}

.course-list__empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: var(--space-sm);
}

.course-list__empty-text {
    color: var(--neutral-500);
    margin-bottom: var(--space-lg);
}

/* Section wrapper for course list */
.section--course-list {
    padding: var(--space-3xl) 0;
    background: var(--neutral-50);
}

.course-list-header {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    text-align: center;
}

@media (min-width: 768px) {
    .course-list-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        text-align: left;
    }
}

.course-list-header__title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin: 0;
}

.course-list-header__subtitle {
    color: var(--neutral-600);
    font-size: 1rem;
    margin-top: var(--space-xs);
}

/* Spinner animation */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--neutral-200);
    border-top-color: var(--primary-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ===== AUTH PAGE ENHANCEMENTS ===== */

/* Centered auth container (for password reset, single card pages) */
.auth-container--centered {
    max-width: 500px;
    margin: 0 auto;
    display: block;
}

.auth-container--centered .auth-card {
    width: 100%;
}

/* Auth card icon variants */
.auth-card__icon--warning {
    background: var(--warning-100);
    color: var(--warning-600);
}

.auth-card__icon--success {
    background: var(--success-100);
    color: var(--success-600);
}

.auth-card__icon--error {
    background: var(--danger-100);
    color: var(--danger-600);
}

/* Auth success state (after form submission) */
.auth-success-state {
    padding: var(--space-xl);
    text-align: center;
}

.auth-success-state__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    background: var(--success-100);
    color: var(--success-600);
    border-radius: var(--radius-full);
}

.auth-success-state__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-md);
}

.auth-success-state__text {
    color: var(--neutral-600);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.auth-success-state__hint {
    font-size: 0.875rem;
    color: var(--neutral-500);
}

/* Auth help section */
.auth-help-section {
    padding: var(--space-2xl) 0;
}

.auth-help {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

@media (min-width: 768px) {
    .auth-help {
        grid-template-columns: repeat(2, 1fr);
    }
}

.auth-help__item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-100);
}

.auth-help__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--primary-100);
    color: var(--primary-600);
    border-radius: var(--radius-lg);
}

.auth-help__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-xs);
}

.auth-help__text {
    font-size: 0.875rem;
    color: var(--neutral-600);
    line-height: 1.5;
}

.auth-help__text a {
    color: var(--primary-600);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.auth-help__text a:hover {
    color: var(--primary-700);
}

/* ===== PROFILE PAGE STYLES ===== */

/* Profile section container */
.profile-section {
    min-height: calc(100vh - 80px);
    padding: 7rem 0 4rem;
    background: linear-gradient(180deg, var(--neutral-50) 0%, white 50%, var(--neutral-50) 100%);
    position: relative;
}

.profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--neutral-50) 100%);
    z-index: 0;
}

.profile-section > .container {
    position: relative;
    z-index: 1;
}

/* Profile loading state */
.profile-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
}

.profile-loading__spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--primary-100);
    border-top-color: var(--primary-600);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-lg);
}

.profile-loading p {
    color: var(--neutral-600);
}

/* Profile not logged in state */
.profile-not-logged-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    text-align: center;
    padding: var(--space-2xl);
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.profile-not-logged-in__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-100);
    color: var(--neutral-400);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.profile-not-logged-in h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-sm);
}

.profile-not-logged-in p {
    color: var(--neutral-600);
    margin-bottom: var(--space-lg);
}

/* Profile header */
.profile-header {
    margin-bottom: var(--space-xl);
}

.profile-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-bottom: var(--space-md);
}

.profile-breadcrumb a {
    color: var(--neutral-500);
    transition: color var(--transition-fast);
}

.profile-breadcrumb a:hover {
    color: var(--primary-600);
}

.profile-breadcrumb span {
    color: var(--neutral-400);
}

.profile-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--neutral-900);
}

/* Profile grid layout */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

@media (min-width: 1024px) {
    .profile-grid {
        grid-template-columns: 280px 1fr;
    }
}

/* Profile sidebar navigation */
.profile-sidebar {
    position: relative;
}

@media (min-width: 1024px) {
    .profile-sidebar {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}

.profile-nav {
    display: flex;
    flex-direction: row;
    gap: var(--space-xs);
    background: white;
    padding: var(--space-sm);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-100);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 1024px) {
    .profile-nav {
        flex-direction: column;
        padding: var(--space-md);
        overflow-x: visible;
    }
}

.profile-nav__link {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    color: var(--neutral-600);
    font-weight: 500;
    font-size: 0.9375rem;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

@media (min-width: 1024px) {
    .profile-nav__link {
        gap: var(--space-md);
    }
}

.profile-nav__link:hover {
    background: var(--neutral-50);
    color: var(--neutral-900);
}

.profile-nav__link--active {
    background: var(--primary-50);
    color: var(--primary-700);
    font-weight: 600;
}

.profile-nav__link--active:hover {
    background: var(--primary-100);
}

.profile-nav__link svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Profile main content area */
.profile-main {
    min-width: 0;
}

/* Profile card (content sections) */
.profile-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-100);
    margin-bottom: var(--space-lg);
    overflow: hidden;
}

.profile-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--neutral-100);
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
}

.profile-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.profile-card__title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: 2px;
}

.profile-card__body {
    padding: var(--space-xl);
}

/* Profile data display */
.profile-data {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    padding: var(--space-xl);
}

@media (min-width: 640px) {
    .profile-data {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-data__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: var(--space-md);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-100);
}

.profile-data__item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.profile-data__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--neutral-500);
}

.profile-data__value {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--neutral-900);
}

.profile-data__value--empty {
    color: var(--neutral-400);
    font-style: italic;
}

/* Profile tabs */
.profile-tab {
    display: none;
}

.profile-tab--active {
    display: block;
}

/* Profile bookings list */
.profile-bookings {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.profile-booking {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--neutral-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--neutral-100);
    transition: all var(--transition-fast);
}

@media (min-width: 768px) {
    .profile-booking {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.profile-booking:hover {
    border-color: var(--primary-200);
    background: var(--primary-50);
}

.profile-booking__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.profile-booking__course {
    font-weight: 600;
    color: var(--neutral-900);
}

.profile-booking__date {
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.profile-booking__number {
    font-size: 0.75rem;
    color: var(--neutral-500);
    font-family: monospace;
}

.profile-booking__status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.profile-booking__status--paid {
    background: var(--success-100);
    color: var(--success-700);
}

.profile-booking__status--pending {
    background: var(--warning-100);
    color: var(--warning-700);
}

.profile-booking__status--cancelled {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

/* Profile empty state */
.profile-empty {
    text-align: center;
    padding: var(--space-3xl);
    color: var(--neutral-500);
}

.profile-empty__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    background: var(--neutral-100);
    color: var(--neutral-400);
    border-radius: var(--radius-full);
}

.profile-empty__title {
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: var(--space-sm);
}

.profile-empty__text {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin-bottom: var(--space-lg);
}

/* Profile form (edit mode) */
.profile-form {
    display: none;
}

.profile-form--active {
    display: block;
}

.profile-form__actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--neutral-100);
}

/* Security section */
.security-section {
    margin-bottom: var(--space-xl);
}

.security-section__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: var(--space-md);
}

.security-section__description {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-lg);
}

/* Danger zone */
.danger-zone {
    border: 2px dashed var(--danger-200);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    background: var(--danger-50);
}

.danger-zone__title {
    font-weight: 600;
    color: var(--danger-700);
    margin-bottom: var(--space-sm);
}

.danger-zone__text {
    font-size: 0.875rem;
    color: var(--danger-600);
    margin-bottom: var(--space-md);
}

/* ===== ADDITIONAL FORM ENHANCEMENTS ===== */

/* Form success message */
.form__success {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--success-50);
    color: var(--success-700);
    border: 1px solid var(--success-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.form__success:empty {
    display: none;
}

/* Form error message */
.form__error {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--danger-50);
    color: var(--danger-700);
    border: 1px solid var(--danger-200);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
}

.form__error:empty {
    display: none;
}

/* Input validation states */
.form__input--error,
.form__select--error,
.form__textarea--error {
    border-color: var(--danger-500) !important;
    background-color: var(--danger-50) !important;
}

.form__input--success,
.form__select--success,
.form__textarea--success {
    border-color: var(--success-500) !important;
}

/* Helper text for errors */
.form__error-text {
    display: block;
    font-size: 0.75rem;
    color: var(--danger-600);
    margin-top: var(--space-xs);
}

/* MT spacing utility */
.mt-sm {
    margin-top: var(--space-sm);
}

/* ===== BOOKING CARD ITEMS (Profile Page) ===== */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg);
}

.booking-card-item {
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.booking-card-item:hover {
    border-color: var(--primary-300);
    box-shadow: var(--shadow-md);
}

.booking-card-item__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
    border-bottom: 1px solid var(--neutral-100);
}

.booking-card-item__number {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.booking-card-item__number-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-600);
}

.booking-card-item__number-value {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-900);
    letter-spacing: 0.02em;
}

.booking-card-item__status {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.booking-card-item__status--success {
    background: var(--success-100);
    color: var(--success-700);
}

.booking-card-item__status--warning {
    background: var(--warning-100);
    color: var(--warning-700);
}

.booking-card-item__status--info {
    background: var(--info-100);
    color: var(--info-700);
}

.booking-card-item__status--danger {
    background: var(--danger-100);
    color: var(--danger-700);
}

.booking-card-item__status--neutral {
    background: var(--neutral-100);
    color: var(--neutral-600);
}

.booking-card-item__body {
    padding: var(--space-lg);
}

.booking-card-item__course {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}

.booking-card-item__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

@media (min-width: 640px) {
    .booking-card-item__details {
        flex-direction: row;
        gap: var(--space-xl);
    }
}

.booking-card-item__detail {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--neutral-600);
}

.booking-card-item__detail svg {
    flex-shrink: 0;
    color: var(--primary-500);
}

.booking-card-item__footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--neutral-50);
    border-top: 1px solid var(--neutral-100);
}

@media (min-width: 640px) {
    .booking-card-item__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.booking-card-item__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--neutral-500);
}

.booking-card-item__meta span:not(:last-child)::after {
    content: '•';
    margin-left: var(--space-sm);
    color: var(--neutral-300);
}

.booking-card-item__price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-700);
}

/* Profile edit form */
.profile-edit-form {
    padding: var(--space-xl);
}

.profile-edit-form__actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--neutral-100);
}

/* Profile password form */
.profile-password-form {
    padding: var(--space-xl);
    max-width: 480px;
}

.profile-password-form .form__group {
    margin-bottom: var(--space-lg);
}

.profile-password-form .btn--primary {
    margin-top: var(--space-md);
}

/* Profile card danger variant */
.profile-card--danger {
    border: 2px solid var(--danger-200);
    background: linear-gradient(135deg, var(--danger-50) 0%, white 100%);
}

.profile-card--danger .profile-card__header {
    background: var(--danger-100);
    border-color: var(--danger-200);
}

.profile-card--danger .profile-card__title {
    color: var(--danger-700);
}

.profile-card--danger .profile-card__title::before {
    background: linear-gradient(180deg, var(--danger-500) 0%, var(--danger-600) 100%);
}

.profile-card--danger .profile-card__description {
    padding: var(--space-lg) var(--space-xl);
    color: var(--danger-700);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.profile-card--danger .btn--danger {
    margin: 0 var(--space-xl) var(--space-xl);
}

/* Profile loading inline */
.profile-loading--inline {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    color: var(--neutral-500);
}

.profile-loading--inline .profile-loading__spinner {
    width: 24px;
    height: 24px;
    border-width: 3px;
    margin-bottom: 0;
}

/* Profile empty state enhanced */
.profile-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--neutral-500);
}

.profile-empty svg {
    color: var(--neutral-300);
    margin-bottom: var(--space-lg);
}

.profile-empty p {
    font-size: 1rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-lg);
}

/* Button variants */
.btn--danger {
    background: var(--danger-600);
    color: white;
    border: none;
}

.btn--danger:hover {
    background: var(--danger-700);
}

.btn--success {
    background: #16a34a;
    color: white;
    border: none;
}

.btn--success:hover {
    background: #15803d;
}

.btn--info {
    background: #0284c7;
    color: white;
    border: none;
}

.btn--info:hover {
    background: #0369a1;
}

.btn--outline {
    background: transparent;
    color: var(--neutral-700);
    border: 1px solid var(--neutral-300);
}

.btn--outline:hover {
    background: var(--neutral-100);
    border-color: var(--neutral-400);
}

.btn--sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
}

/* Form hint text */
.form__hint {
    font-size: 0.8125rem;
    color: var(--primary-600);
    margin-top: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.form__hint::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary-400);
    border-radius: 50%;
}

/* Form row for side-by-side inputs */
.form__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

@media (min-width: 640px) {
    .form__row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form__row .form__group {
    margin-bottom: 0;
}

/* Profile header title enhanced */
.profile-header h1 {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--neutral-900);
    letter-spacing: -0.02em;
}

/* Profile grid on smaller screens */
@media (max-width: 1023px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: 0;
    }
    
    .profile-main {
        order: 1;
    }
}

/* ===== MOBILE NAVIGATION ===== */

/*
 * Mobile Navigation Menu
 * Completely separate from header, positioned fixed over viewport.
 * Slides in from the right with smooth animation.
 */

/* Mobile nav overlay - fullscreen fixed, outside header */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: linear-gradient(135deg, #158a8a 0%, #177076 50%, #1a4c51 100%);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.mobile-nav:not(.hidden) {
    transform: translateX(0);
    visibility: visible;
}

.mobile-nav.hidden {
    transform: translateX(100%);
    visibility: hidden;
}

/* Hide on desktop */
@media (min-width: 1024px) {
    .mobile-nav {
        display: none !important;
    }
}

/* Container inside mobile nav */
.mobile-nav__container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile nav header */
.mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.mobile-nav__logo img {
    height: 32px;
    width: auto;
}

.mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-nav__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile nav content/links area */
.mobile-nav__content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.mobile-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav__link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav__link.active {
    color: white;
    background: rgba(255, 255, 255, 0.15);
}

/* Mobile nav footer/account section */
.mobile-nav__footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.mobile-nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    background: white;
    color: #158a8a;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.mobile-nav__cta:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.mobile-nav__user-name {
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-nav__user-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-nav__user-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.mobile-nav__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-nav__logout:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Lock body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
}

/* Hamburger menu button */
.nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 100000;
    position: relative;
}

@media (min-width: 1024px) {
    .nav__toggle {
        display: none !important;
    }
}

.nav__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* When header is scrolled/dark, hamburger lines should be dark */
.header--scrolled .nav__toggle span,
.header--dark .nav__toggle span {
    background: var(--neutral-700, #374151);
}

/* Hamburger to X animation */
.nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle--active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* When toggle is active, always show white lines */
.nav__toggle--active span {
    background: white !important;
}

/* ===== INSTALLMENT PAYMENT STYLES ===== */

.installment-section {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--neutral-200);
}

.installment-section__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: var(--space-xs);
}

.installment-section__subtitle {
    font-size: 0.875rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-md);
}

.installment-info {
    margin-top: var(--space-md);
}

.installment-info__card {
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.installment-info__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    font-size: 0.9375rem;
    color: var(--neutral-700);
}

.installment-info__row strong {
    color: var(--primary-700);
    font-weight: 600;
}

.installment-info__row--total {
    border-top: 1px dashed var(--primary-300);
    margin-top: var(--space-xs);
    padding-top: var(--space-sm);
}

.installment-info__row--total span,
.installment-info__row--total strong {
    font-size: 1rem;
}

.installment-warning {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--warning-50);
    border: 1px solid var(--warning-200);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    color: var(--warning-800);
}

.installment-warning svg {
    flex-shrink: 0;
    color: var(--warning-600);
    margin-top: 2px;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.payment-option {
    position: relative;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-option__content {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
}

.payment-option:hover .payment-option__content {
    border-color: var(--primary-300);
    background: var(--primary-50);
}

.payment-option input[type="radio"]:checked + .payment-option__content {
    border-color: var(--primary-500);
    background: var(--primary-50);
    box-shadow: 0 0 0 3px rgba(21, 138, 138, 0.1);
}

.payment-option__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--neutral-100);
    border-radius: var(--radius-md);
    color: var(--neutral-600);
    flex-shrink: 0;
}

.payment-option input[type="radio"]:checked + .payment-option__content .payment-option__icon {
    background: var(--primary-100);
    color: var(--primary-600);
}

.payment-option__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-option__label strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--neutral-800);
}

.payment-option__label small {
    font-size: 0.8125rem;
    color: var(--neutral-500);
}

/* Stripe Payment Container */
.stripe-payment-container {
    padding: var(--space-lg);
    margin-top: var(--space-sm);
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
}

.stripe-payment-errors {
    color: var(--error-600);
    font-size: 0.875rem;
    margin-top: var(--space-sm);
    display: none;
}

/* Installment Schedule Preview (for subscription payments) */
.installment-schedule {
    margin-top: var(--space-lg);
    padding: var(--space-md);
    background: white;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
}

.installment-schedule__title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: var(--space-sm);
}

.installment-schedule__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.installment-schedule__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8125rem;
    color: var(--neutral-600);
    background: var(--neutral-50);
    border-radius: var(--radius-sm);
}

.installment-schedule__item--current {
    background: var(--primary-100);
    color: var(--primary-700);
    font-weight: 500;
}

.installment-schedule__item span:last-child {
    font-weight: 600;
}

/* ===== BOOKING SUMMARY INSTALLMENTS ===== */

.booking-summary__installments {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px dashed var(--neutral-300);
}

.booking-summary__installment-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neutral-600);
    margin-bottom: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-summary__installment-select {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.booking-summary__installment-select:hover {
    border-color: var(--primary-400);
}

.booking-summary__installment-select:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 3px rgba(21, 138, 138, 0.1);
}

/* Coupon Code Section */
.booking-summary__coupon {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px dashed var(--neutral-300);
}

.booking-summary__coupon-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--neutral-600);
    margin-bottom: var(--space-xs);
}

.coupon-input-group {
    display: flex;
    gap: 0.5rem;
}

.coupon-input-group .coupon-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.coupon-input-group .coupon-apply-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.coupon-status {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.coupon-status--success {
    background: var(--success-50);
    color: var(--success-700);
    border: 1px solid var(--success-200);
}

.coupon-status--error {
    background: var(--danger-50);
    color: var(--danger-700);
    border: 1px solid var(--danger-200);
}

.coupon-status--loading {
    background: var(--neutral-50);
    color: var(--neutral-600);
    border: 1px solid var(--neutral-200);
}

.coupon-status svg {
    flex-shrink: 0;
}

.coupon-status svg.spin {
    animation: spin 1s linear infinite;
}

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

/* Discount Display */
.booking-summary__discount {
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    background: var(--success-50);
    border: 1px solid var(--success-200);
    border-radius: var(--radius-md);
}

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

.booking-summary__discount-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--success-700);
}

.booking-summary__discount-label svg {
    color: var(--success-600);
}

.coupon-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--neutral-500);
    transition: all 0.2s ease;
}

.coupon-remove-btn:hover {
    background: var(--danger-100);
    color: var(--danger-600);
}

.booking-summary__discount-value {
    font-weight: 600;
    color: var(--success-700);
}

/* Final Price / Total */
.booking-summary__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 2px solid var(--primary-500);
}

.booking-summary__total-label {
    font-weight: 600;
    color: var(--neutral-700);
}

.booking-summary__total-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-600);
}

/* When coupon is applied, show original price with strikethrough */
.booking-summary__price--discounted .booking-summary__price-value {
    text-decoration: line-through;
    color: var(--neutral-400);
    font-size: 1rem;
}

/* Payment Schedule */
.payment-schedule {
    margin-top: var(--space-md);
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.payment-schedule__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: var(--neutral-100);
    border-bottom: 1px solid var(--neutral-200);
}

.payment-schedule__title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.payment-schedule__type {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.payment-schedule__type--auto {
    background: var(--success-100);
    color: var(--success-700);
}

.payment-schedule__type--manual {
    background: var(--warning-100);
    color: var(--warning-700);
}

.payment-schedule__list {
    padding: 0.5rem;
}

.payment-schedule__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.5rem;
    font-size: 0.8125rem;
    border-radius: var(--radius-sm);
}

.payment-schedule__item:not(:last-child) {
    border-bottom: 1px dashed var(--neutral-200);
}

.payment-schedule__item--first {
    background: var(--primary-50);
    font-weight: 500;
}

.payment-schedule__item--first .payment-schedule__date {
    color: var(--primary-700);
}

.payment-schedule__date {
    color: var(--neutral-600);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.payment-schedule__date svg {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

.payment-schedule__amount {
    font-weight: 600;
    color: var(--neutral-800);
}

.payment-schedule__item--first .payment-schedule__amount {
    color: var(--primary-700);
}

.payment-schedule__badge {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.125rem 0.375rem;
    background: var(--primary-100);
    color: var(--primary-700);
    border-radius: var(--radius-sm);
    margin-left: 0.375rem;
}

.payment-schedule__hint {
    font-size: 0.5625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 0.0625rem 0.25rem;
    background: var(--neutral-200);
    color: var(--neutral-600);
    border-radius: var(--radius-sm);
    margin-left: 0.25rem;
}

/* Small installment warning */
.installment-warning-small {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: var(--space-sm);
    padding: 0.5rem 0.625rem;
    background: var(--warning-50);
    border: 1px solid var(--warning-200);
    border-radius: var(--radius-sm);
    font-size: 0.6875rem;
    color: var(--warning-700);
    line-height: 1.3;
}

.installment-warning-small svg {
    flex-shrink: 0;
    color: var(--warning-500);
}

/* Stripe container visible by default */
.stripe-payment-container--visible {
    display: block;
}

/* Installment Payment Info Box */
.installment-payment-info {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: var(--radius-md);
}

.installment-payment-info__icon {
    flex-shrink: 0;
    color: var(--primary-600);
    margin-top: 2px;
}

.installment-payment-info__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.8125rem;
    line-height: 1.4;
}

.installment-payment-info__text strong {
    color: var(--primary-700);
    font-weight: 600;
}

.installment-payment-info__text span {
    color: var(--primary-600);
}

.installment-payment-info--warning {
    background: var(--warning-50);
    border-color: var(--warning-200);
}

.installment-payment-info--warning .installment-payment-info__icon {
    color: var(--warning-600);
}

.installment-payment-info--warning .installment-payment-info__text strong {
    color: var(--warning-700);
}

.installment-payment-info--warning .installment-payment-info__text span {
    color: var(--warning-600);
}

/* ===== PLZ AUTOCOMPLETE DROPDOWN ===== */

.plz-autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    max-height: 240px;
    overflow-y: auto;
    background: white;
    border: 1px solid var(--neutral-300);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    margin-top: -1px;
}

.plz-autocomplete-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid var(--neutral-100);
}

.plz-autocomplete-item:last-child {
    border-bottom: none;
}

.plz-autocomplete-item:hover,
.plz-autocomplete-item--active {
    background: var(--primary-50);
}

.plz-autocomplete-zipcode {
    font-weight: 600;
    color: var(--primary-700);
    font-size: 0.9375rem;
    min-width: 45px;
}

.plz-autocomplete-place {
    flex: 1;
    color: var(--neutral-800);
    font-size: 0.9375rem;
}

.plz-autocomplete-state {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--neutral-500);
    background: var(--neutral-100);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* PLZ input field when dropdown is open */
.form__group:has(.plz-autocomplete-dropdown:not([style*="display: none"])) .form__input[name="postal_code"] {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary-500);
}

/* ==========================================================================
   Bento Grid - Image Gallery (Legacy - kept for other pages)
   ========================================================================== */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.bento-grid__item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: var(--neutral-200);
}

.bento-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.bento-grid__item:hover img {
    transform: scale(1.05);
}

.bento-grid__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bento-grid__item:hover .bento-grid__overlay {
    opacity: 1;
}

.bento-grid__overlay span {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Large item - spans 2 columns */
.bento-grid__item--large {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
}

@media (max-width: 767px) {
    .bento-grid__item--large {
        aspect-ratio: 16 / 9;
    }
}

/* Tall item - spans 2 rows */
.bento-grid__item--tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

@media (max-width: 767px) {
    .bento-grid__item--tall {
        grid-row: span 1;
        aspect-ratio: 1 / 1;
    }
}

/* Featured/hero item - spans 2x2 */
.bento-grid__item--featured {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1 / 1;
}

@media (max-width: 767px) {
    .bento-grid__item--featured {
        grid-column: span 2;
        grid-row: span 1;
        aspect-ratio: 16 / 9;
    }
}

/* ==========================================================================
   Image Carousel - Shows 3 at a time, scrolls 1
   ========================================================================== */

.image-carousel {
    position: relative;
    width: 100%;
    padding: 0 60px;
}

@media (max-width: 767px) {
    .image-carousel {
        padding: 0 40px;
    }
}

.image-carousel__container {
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.image-carousel__track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.image-carousel__slide {
    flex: 0 0 calc(100% / 3);
    padding: 0 var(--space-sm);
    box-sizing: border-box;
}

@media (max-width: 1023px) {
    .image-carousel__slide {
        flex: 0 0 calc(100% / 2);
    }
}

@media (max-width: 639px) {
    .image-carousel__slide {
        flex: 0 0 100%;
    }
}

.image-carousel__slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: block;
}

@media (min-width: 768px) {
    .image-carousel__slide img {
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .image-carousel__slide img {
        height: 360px;
    }
}

.image-carousel__slide:hover img {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.image-carousel__caption {
    position: absolute;
    bottom: var(--space-md);
    left: var(--space-md);
    right: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: linear-gradient(135deg, rgba(21, 138, 138, 0.95) 0%, rgba(23, 112, 118, 0.95) 100%);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-md);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.image-carousel__slide {
    position: relative;
}

.image-carousel__slide:hover .image-carousel__caption {
    transform: translateY(0);
    opacity: 1;
}

.image-carousel__caption span {
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: -0.01em;
}

/* Navigation Arrows */
.image-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-full);
    color: var(--neutral-700);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.image-carousel__nav:hover {
    background: var(--primary-600);
    border-color: var(--primary-600);
    color: white;
    box-shadow: var(--shadow-primary);
    transform: translateY(-50%) scale(1.1);
}

.image-carousel__nav:active {
    transform: translateY(-50%) scale(0.95);
}

.image-carousel__nav:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.image-carousel__nav--prev {
    left: 0;
}

.image-carousel__nav--next {
    right: 0;
}

@media (max-width: 767px) {
    .image-carousel__nav {
        width: 36px;
        height: 36px;
    }
    
    .image-carousel__nav svg {
        width: 18px;
        height: 18px;
    }
}

/* Dots Indicator */
.image-carousel__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.image-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: var(--neutral-300);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.image-carousel__dot:hover {
    background: var(--primary-400);
    transform: scale(1.2);
}

.image-carousel__dot--active {
    background: var(--primary-600);
    width: 28px;
    border-radius: 5px;
}

/* Touch/Drag States */
.image-carousel--dragging .image-carousel__track {
    transition: none;
    cursor: grabbing;
}

.image-carousel__container {
    cursor: grab;
}

.image-carousel--dragging .image-carousel__container {
    cursor: grabbing;
}

/* ============================================
   CLIENT FEEDBACK UPDATES - December 2024
   ============================================ */

/* Orange Primary Buttons */
.btn--primary {
    background: var(--accent-500) !important;
    background: linear-gradient(180deg, var(--accent-400) 0%, var(--accent-500) 100%) !important;
    border-color: var(--accent-500) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(248, 102, 71, 0.25) !important;
}

.btn--primary:hover {
    background: var(--accent-600) !important;
    background: linear-gradient(180deg, var(--accent-500) 0%, var(--accent-600) 100%) !important;
    border-color: var(--accent-600) !important;
    box-shadow: 0 12px 28px rgba(248, 102, 71, 0.35) !important;
    transform: translateY(-2px);
}

.btn--primary:focus {
    box-shadow: 0 0 0 3px rgba(248, 102, 71, 0.3) !important;
}

/* Orange Hero Badge for SRK Certification */
.hero__badge--orange {
    background: var(--accent-500) !important;
    border-color: var(--accent-400) !important;
    color: white !important;
    box-shadow: 0 4px 14px rgba(248, 102, 71, 0.3);
}

.hero__badge--orange svg {
    stroke: white;
}

/* Orange Hero & CTA Buttons - Main CTA in hero and cta sections */
.hero__buttons .btn--white,
.hero .btn--white:first-of-type,
.cta__buttons .btn--white:first-child,
.page-header__actions .btn--white,
.course-cta .btn--white {
    background: var(--accent-500) !important;
    background: linear-gradient(180deg, var(--accent-400) 0%, var(--accent-500) 100%) !important;
    border-color: var(--accent-500) !important;
    color: white !important;
    box-shadow: 0 8px 20px rgba(248, 102, 71, 0.25) !important;
}

.hero__buttons .btn--white:hover,
.hero .btn--white:first-of-type:hover,
.cta__buttons .btn--white:first-child:hover,
.page-header__actions .btn--white:hover,
.course-cta .btn--white:hover {
    background: var(--accent-600) !important;
    background: linear-gradient(180deg, var(--accent-500) 0%, var(--accent-600) 100%) !important;
    border-color: var(--accent-600) !important;
    box-shadow: 0 12px 28px rgba(248, 102, 71, 0.35) !important;
    transform: translateY(-2px);
}

.hero__buttons .btn--white:focus,
.hero .btn--white:first-of-type:focus,
.cta__buttons .btn--white:first-child:focus,
.page-header__actions .btn--white:focus,
.course-cta .btn--white:focus {
    box-shadow: 0 0 0 3px rgba(248, 102, 71, 0.3) !important;
}

/* ===== HERO CERTS - Under Image Variant ===== */
/* Remove background, border, and padding for under-image placement */
.hero__certs--under-image {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
    box-sizing: content-box;
}

/* Remove white background from cert badges inside under-image variant */
.hero__certs--under-image .hero__cert-badge {
    background: transparent !important;
}
