/* ============================================
   Healthcare Registration Hub - Design System
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --accent-emerald: #10B981;
    --accent-emerald-dark: #059669;
    --accent-emerald-light: #D1FAE5;
    --accent-purple: #8B5CF6;
    --accent-purple-light: #EDE9FE;
    --accent-amber: #F59E0B;
    --accent-amber-light: #FEF3C7;
    --accent-rose: #F43F5E;
    --accent-rose-light: #FFE4E6;
    --accent-cyan: #06B6D4;
    --accent-cyan-light: #CFFAFE;
    --border: #E2E8F0;
    --border-dark: #CBD5E1;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-out;
    --transition: 200ms ease-out;
    --transition-slow: 300ms ease-in-out;
    
    /* Container */
    --container-max: 1200px;
    --container-padding: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-emerald);
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.logo strong {
    font-weight: 700;
}

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

.nav-desktop {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-link-admin {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.nav-link-admin:hover {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
}

.mobile-menu-btn {
    display: none;
    padding: var(--space-2);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 99;
    padding: var(--space-6);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.mobile-nav-link {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-admin {
    color: var(--accent-emerald);
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    padding: calc(72px + var(--space-24)) 0 var(--space-24);
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-emerald-light);
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple-light);
    bottom: -100px;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan-light);
    top: 50%;
    left: 50%;
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -20px); }
    50% { transform: translate(-10px, 10px); }
    75% { transform: translate(10px, 20px); }
}

.hero-content {
    position: relative;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--accent-emerald-light);
    color: var(--accent-emerald-dark);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-6);
}

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

.hero-subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto var(--space-10);
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: inline;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-suffix {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

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

.btn-primary {
    background: var(--accent-emerald);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-emerald-dark);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-emerald);
    border: 2px solid var(--accent-emerald);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-dark);
}

.btn-outline:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--text-secondary);
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--accent-rose);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #E11D48;
    color: white;
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: 16px;
}

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: 13px;
}

.btn .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
    padding: var(--space-12) 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
}

.trust-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.trust-icon-resmi { background: var(--accent-emerald-light); color: var(--accent-emerald); }
.trust-icon-aman { background: var(--accent-purple-light); color: var(--accent-purple); }
.trust-icon-cepat { background: var(--accent-cyan-light); color: var(--accent-cyan); }
.trust-icon-audit { background: var(--accent-amber-light); color: var(--accent-amber); }

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-text strong {
    font-size: 15px;
    font-weight: 600;
}

.trust-text span {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .trust-badges {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .trust-badges {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SECTIONS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-12);
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-purple);
    margin-bottom: var(--space-3);
}

.section-tag-emerald {
    color: var(--accent-emerald);
}

.section-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   VALUE SECTION
   ============================================ */
.value-section {
    padding: var(--space-24) 0;
    background: var(--bg-secondary);
}

.value-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.value-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(20px);
}

.value-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.value-card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
}

.value-card-icon-whatsapp { background: #DCF8C6; color: #25D366; }
.value-card-icon-ai { background: var(--accent-purple-light); color: var(--accent-purple); }
.value-card-icon-voice { background: var(--accent-cyan-light); color: var(--accent-cyan); }

.value-card-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.value-card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-5);
}

.value-card-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.value-card-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 14px;
    color: var(--text-secondary);
}

.value-card-features svg {
    color: var(--accent-emerald);
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .value-cards {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
}

/* ============================================
   SATUSEHAT SECTION
   ============================================ */
.satusehatan-section {
    padding: var(--space-24) 0;
    background: var(--bg-primary);
}

.satusehatan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.satusehatan-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin: var(--space-8) 0;
}

.satusehatan-feature {
    display: flex;
    gap: var(--space-4);
}

.satusehatan-feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
    border-radius: var(--radius);
    flex-shrink: 0;
}

.satusehatan-feature strong {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.satusehatan-feature span {
    font-size: 14px;
    color: var(--text-secondary);
}

.satusehatan-links {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.satusehatan-illustration {
    perspective: 1000px;
}

.illustration-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.illustration-card:hover {
    transform: rotateY(0) rotateX(0);
}

.illustration-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
}

.illustration-dots {
    display: flex;
    gap: var(--space-2);
}

.illustration-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-dark);
}

.illustration-dots span:first-child { background: #F43F5E; }
.illustration-dots span:nth-child(2) { background: #F59E0B; }
.illustration-dots span:nth-child(3) { background: #10B981; }

.illustration-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.illustration-content {
    padding: var(--space-6);
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.flow-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.flow-step-done .flow-icon {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
}

.flow-step-active .flow-icon {
    background: var(--accent-cyan);
    color: white;
    animation: pulse 2s infinite;
}

.flow-step-muted .flow-icon {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(6, 182, 212, 0); }
}

.flow-text {
    flex: 1;
}

.flow-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.flow-text span {
    font-size: 12px;
    color: var(--text-muted);
}

.flow-connector {
    width: 2px;
    height: 20px;
    background: var(--accent-emerald);
    margin-left: 13px;
}

.flow-connector-muted {
    background: var(--border);
}

@media (max-width: 1024px) {
    .satusehatan-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }
    
    .satusehatan-illustration {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* ============================================
   REGISTRATION SECTION
   ============================================ */
.registration-section {
    padding: var(--space-24) 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.registration-card {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    padding: var(--space-4) var(--space-6);
    gap: var(--space-2);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    white-space: nowrap;
    opacity: 0.4;
    transition: all var(--transition);
}

.progress-step.active {
    opacity: 1;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
}

.progress-step.completed {
    opacity: 0.7;
}

.progress-step-number {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
}

.progress-step.active .progress-step-number {
    background: var(--accent-emerald);
    color: white;
}

.progress-step.completed .progress-step-number {
    background: var(--accent-emerald-light);
    color: var(--accent-emerald);
}

.progress-step.completed .progress-step-number::before {
    content: '✓';
}

.progress-step.completed .progress-step-number span {
    display: none;
}

.progress-step-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.progress-step.active .progress-step-label {
    color: var(--text-primary);
    font-weight: 600;
}

/* Form */
.registration-form {
    padding: var(--space-8);
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

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

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

.form-step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.form-step-desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
}

/* Form Fields */
.form-group {
    margin-bottom: var(--space-6);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.required {
    color: var(--accent-rose);
}

.form-input,
.form-select {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-emerald);
    box-shadow: 0 0 0 3px var(--accent-emerald-light);
}

.form-input.error,
.form-select.error {
    border-color: var(--accent-rose);
    background: var(--accent-rose-light);
}

.form-input.success {
    border-color: var(--accent-emerald);
}

.form-input-lg {
    font-size: 24px;
    letter-spacing: 0.1em;
    text-align: center;
}

.form-hint {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: var(--space-2);
}

.form-field-error {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--accent-rose-light);
    color: var(--accent-rose);
    font-size: 14px;
    border-radius: var(--radius);
    margin-top: var(--space-4);
}

.input-with-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 var(--space-3);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-right: none;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: 15px;
    color: var(--text-secondary);
}

.input-with-prefix .form-input {
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Facility Grid */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.facility-option {
    cursor: pointer;
}

.facility-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.facility-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.facility-option:hover .facility-option-card {
    border-color: var(--accent-emerald);
    background: var(--accent-emerald-light);
}

.facility-option input:checked + .facility-option-card {
    border-color: var(--accent-emerald);
    background: var(--accent-emerald-light);
}

.facility-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
}

.facility-icon-hospital { background: var(--accent-purple-light); color: var(--accent-purple); }
.facility-icon-clinic { background: var(--accent-cyan-light); color: var(--accent-cyan); }
.facility-icon-puskesmas { background: var(--accent-emerald-light); color: var(--accent-emerald); }
.facility-icon-pharmacy { background: #FEE2E2; color: #EF4444; }
.facility-icon-lab { background: var(--accent-amber-light); color: var(--accent-amber); }
.facility-icon-optik { background: #F3E8FF; color: #A855F7; }

.facility-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.facility-desc {
    font-size: 12px;
    color: var(--text-muted);
}

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

/* Radio Cards */
.radio-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.radio-card {
    cursor: pointer;
}

.radio-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.radio-card-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-4);
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.radio-card:hover .radio-card-content {
    border-color: var(--accent-emerald);
}

.radio-card input:checked + .radio-card-content {
    border-color: var(--accent-emerald);
    background: var(--accent-emerald-light);
}

.radio-card-content::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    transition: all var(--transition);
}

.radio-card input:checked + .radio-card-content::before {
    border-color: var(--accent-emerald);
    background: var(--accent-emerald);
    box-shadow: inset 0 0 0 4px white;
}

.radio-card strong {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.radio-card span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Checkbox Cards */
.checkbox-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.checkbox-card {
    cursor: pointer;
}

.checkbox-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-card-content {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.checkbox-card:hover .checkbox-card-content {
    border-color: var(--accent-emerald);
}

.checkbox-card input:checked + .checkbox-card-content {
    border-color: var(--accent-emerald);
    background: var(--accent-emerald-light);
}

.checkbox-card-check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    margin-top: 2px;
    transition: all var(--transition);
}

.checkbox-card input:checked + .checkbox-card-content .checkbox-card-check {
    background: var(--accent-emerald);
    color: white;
}

.checkbox-card strong {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: var(--space-1);
}

.checkbox-card span {
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .checkbox-cards {
        grid-template-columns: 1fr;
    }
}

/* Alerts */
.alert {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
}

.alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.alert strong {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.alert span {
    font-size: 14px;
}

.alert-info {
    background: var(--accent-cyan-light);
    color: #0E7490;
}

.alert-warning {
    background: var(--accent-amber-light);
    color: #B45309;
}

.alert-error {
    background: var(--accent-rose-light);
    color: #BE123C;
}

/* Consent Section */
.consent-section {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-top: var(--space-6);
}

.consent-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.consent-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    cursor: pointer;
}

.consent-item:last-child {
    margin-bottom: 0;
}

.consent-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.consent-checkbox {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    margin-top: 2px;
    transition: all var(--transition);
}

.consent-item input:checked + .consent-checkbox {
    background: var(--accent-emerald);
    border-color: var(--accent-emerald);
    color: white;
}

.consent-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.privacy-notice {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 13px;
    color: var(--text-muted);
    margin-top: var(--space-4);
}

.privacy-notice a {
    text-decoration: underline;
}

/* OTP */
.otp-actions {
    display: flex;
    justify-content: center;
    margin-top: var(--space-3);
}

/* Summary */
.summary-card {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    margin-top: var(--space-6);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-4);
}

.summary-label {
    font-size: 13px;
    color: var(--text-muted);
}

.summary-case-id {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-emerald);
}

.summary-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.summary-item-label {
    font-size: 12px;
    color: var(--text-muted);
}

.summary-item-value {
    font-size: 14px;
    font-weight: 500;
}

.summary-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    font-size: 13px;
    color: var(--text-secondary);
    padding: var(--space-3);
    background: var(--accent-emerald-light);
    border-radius: var(--radius);
}

.summary-note svg {
    color: var(--accent-emerald);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Success */
.success-animation {
    text-align: center;
    padding: var(--space-8) 0;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--accent-emerald-light);
    border-radius: 50%;
    color: var(--accent-emerald);
    margin-bottom: var(--space-6);
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: var(--space-3);
}

.success-message {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto;
}

/* Next Steps */
.next-steps {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
}

.next-steps h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.next-step {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.next-step:last-child {
    margin-bottom: 0;
}

.next-step-number {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-emerald);
    color: white;
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.next-step-content strong {
    display: block;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.next-step-content span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    align-items: center;
    padding-top: var(--space-8);
    margin-top: var(--space-8);
    border-top: 1px solid var(--border);
}

.nav-spacer {
    flex: 1;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .progress-steps {
        padding: var(--space-3);
    }
    
    .progress-step-label {
        display: none;
    }
    
    .registration-form {
        padding: var(--space-6);
    }
    
    .summary-content {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: var(--space-24) 0;
    background: var(--bg-primary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-categories {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.faq-category {
    padding: var(--space-2) var(--space-4);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-category:hover {
    background: var(--border);
}

.faq-category.active {
    background: var(--text-primary);
    color: white;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq-item {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.faq-item.hidden {
    display: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    gap: var(--space-4);
}

.faq-question svg {
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 var(--space-5) var(--space-5);
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-answer p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    margin-top: var(--space-12);
}

.faq-cta p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--space-4);
}

.footer-tagline {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-4);
}

.footer-badges {
    display: flex;
    gap: var(--space-2);
}

.footer-badge {
    font-size: 11px;
    font-weight: 600;
    padding: var(--space-1) var(--space-2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom svg {
    display: inline;
    vertical-align: middle;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-2);
        text-align: center;
    }
}

/* ============================================
   CHAT WIDGET
   ============================================ */
.chat-widget {
    position: fixed;
    bottom: var(--space-6);
    right: var(--space-6);
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-emerald);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition);
    position: relative;
}

.chat-toggle:hover {
    background: var(--accent-emerald-dark);
    transform: scale(1.05);
}

.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-rose);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    border: 2px solid white;
}

.chat-window {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: 380px;
    height: 560px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all var(--transition-slow);
}

.chat-widget.open .chat-window {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4);
    background: var(--accent-emerald);
    color: white;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.chat-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

.chat-header strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}

.chat-header span {
    font-size: 12px;
    opacity: 0.8;
}

.chat-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: var(--space-2);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 85%;
}

.chat-message-bot {
    align-self: flex-start;
}

.chat-message-user {
    align-self: flex-end;
}

.chat-message-content {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.5;
}

.chat-message-bot .chat-message-content {
    background: var(--bg-tertiary);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-message-user .chat-message-content {
    background: var(--accent-emerald);
    color: white;
    border-bottom-right-radius: var(--radius-sm);
}

.chat-message-content p {
    margin-bottom: var(--space-2);
}

.chat-message-content p:last-child {
    margin-bottom: 0;
}

.chat-message-content ul {
    padding-left: var(--space-4);
    margin: var(--space-2) 0;
}

.chat-message-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.chat-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-top: 1px solid var(--border);
}

.chat-suggestion {
    padding: var(--space-2) var(--space-3);
    font-family: inherit;
    font-size: 12px;
    color: var(--accent-emerald);
    background: var(--accent-emerald-light);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chat-suggestion:hover {
    background: var(--accent-emerald);
    color: white;
}

.chat-input-area {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-4);
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    padding: var(--space-3) var(--space-4);
    font-family: inherit;
    font-size: 14px;
    background: var(--bg-tertiary);
    border: none;
    border-radius: var(--radius-full);
}

.chat-input:focus {
    outline: none;
    background: var(--bg-secondary);
}

.chat-send {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-emerald);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.chat-send:hover {
    background: var(--accent-emerald-dark);
}

.chat-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: var(--space-2);
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-tertiary);
}

.chat-footer a {
    color: var(--accent-emerald);
}

@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - var(--space-12));
        height: calc(100vh - 120px);
        bottom: 72px;
        right: calc(-1 * var(--space-6));
    }
}

/* ============================================
   TOAST
   ============================================ */
.toast-container {
    position: fixed;
    top: calc(72px + var(--space-6));
    right: var(--space-6);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border-left: 4px solid;
    max-width: 380px;
    pointer-events: auto;
    animation: toastIn 0.3s ease-out;
}

.toast.removing {
    animation: toastOut 0.3s ease-out forwards;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
}

.toast-success {
    border-color: var(--accent-emerald);
}

.toast-success svg {
    color: var(--accent-emerald);
}

.toast-error {
    border-color: var(--accent-rose);
}

.toast-error svg {
    color: var(--accent-rose);
}

.toast-warning {
    border-color: var(--accent-amber);
}

.toast-warning svg {
    color: var(--accent-amber);
}

.toast-info {
    border-color: var(--accent-cyan);
}

.toast-info svg {
    color: var(--accent-cyan);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scroll animations */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: skeleton 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   UTILITIES
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
