/* SkillsDecoder — "New Horizons" Design
   A warm, empowering aesthetic for fresh starts */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

:root {
    /* Core palette - matches SkillsDecoder logo */
    --primary: #1e3a5f;          /* Dark navy from "Skills" text */
    --primary-light: #2a4d7a;
    --primary-dark: #142942;

    /* Teal - PRIMARY ACTION COLOR (buttons, CTAs) */
    --teal: #2eb67d;             /* Teal green from "Decoder" text */
    --teal-light: #3ed68d;
    --teal-dark: #259966;

    /* Accent - SECONDARY HIGHLIGHTS (golden opportunity) */
    --accent: #d97706;
    --accent-light: #f59e0b;
    --accent-glow: rgba(217, 119, 6, 0.15);

    /* Feedback states (consolidated) */
    --success: #2eb67d;          /* Same as teal - unified */
    --success-light: #3ed68d;
    --danger: #dc2626;

    /* Neutrals - warm undertones */
    --bg-cream: #faf8f5;
    --bg-warm: #f5f1eb;
    --white: #ffffff;
    --border: #e8e4dd;
    --border-dark: #d4cfc6;

    /* Text */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-inverse: #ffffff;

    /* Effects - tightened shadows for cleaner look */
    --shadow-sm: 0 1px 3px rgba(26, 54, 93, 0.08);
    --shadow-md: 0 4px 12px rgba(26, 54, 93, 0.1);
    --shadow-lg: 0 8px 16px rgba(26, 54, 93, 0.18);
    --shadow-glow: 0 0 40px rgba(217, 119, 6, 0.2);

    /* Spacing - standardized to 2rem base */
    --spacing-base: 2rem;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    /* scroll-behavior: smooth removed - causes conflicts with page transitions */
    /* Apply smooth scrolling explicitly where needed instead */
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    background: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography - Consolidated heading sizes */
h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}

/* Large headings (2rem) - main page headings */
h1, .heading-large {
    font-size: 2rem;
}

/* Medium headings (1.5rem) - section headings */
h2, .heading-medium {
    font-size: 1.5rem;
}

/* Small headings (1.15rem) - subsection headings */
h3, .heading-small {
    font-size: 1.15rem;
}

h4, .heading-xs {
    font-size: 1rem;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ============================================
   HEADER - Floating nav style
   ============================================ */
.header {
    background: var(--white);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}

.header-logo {
    height: 65px;
    width: auto;
    transition: transform var(--transition-medium);
}

.header-logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-warm);
    padding: 0.35rem;
    border-radius: var(--radius-lg);
}

.nav-link {
    padding: 0.6rem 1.25rem;
    text-decoration: none;
    color: #4B5563;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 15px;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(45, 95, 141, 0.08);
}

.nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.nav-link.active {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.25);
    font-weight: 600;
}

.nav-logout {
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.nav-logout:hover {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.08);
}

/* Organization Banner */
.org-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-inverse);
    text-align: center;
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: var(--spacing-base);
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    /* Use grid to prevent height jumps during page transitions */
    display: grid;
    grid-template-rows: 1fr;
    position: relative;
}

.page {
    display: none;
    /* Place all pages in same grid cell to prevent layout shifts */
    grid-row: 1;
    grid-column: 1;
    /* No default animation - only animate during explicit transitions */
}

.page.active {
    display: block;
}

/* During transitions, both pages exist in same grid cell */
.page.page-exiting,
.page.page-entering {
    display: block;
    grid-row: 1;
    grid-column: 1;
}

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

/* ============================================
   HOME PAGE - Hero Section
   ============================================ */
/* Welcome Back Message */
.welcome-back-message {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.15);
}

.welcome-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.welcome-content {
    flex: 1;
}

.welcome-headline {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.welcome-body {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.welcome-body strong {
    color: var(--primary);
    font-weight: 600;
}

.hero-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.org-logo-area {
    flex-shrink: 0;
}

.org-logo-area img {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.hero {
    text-align: center;
    padding: 3rem 3rem 3.5rem;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 50%, var(--teal-dark) 100%);
    color: var(--text-inverse);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    width: 100%;
}

/* Decorative elements */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

.hero-logo {
    max-width: 320px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
}

.hero-tagline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.loaded-profile-notice {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: inline-block;
}

.hero-button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* General card padding improvement */
.card,
.feature-box,
.feature-card-improved {
    padding: 2rem !important;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--teal-dark));
}

/* Checkmark indicator */
.feature-check {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(46, 182, 125, 0.3);
}

.feature-icon {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================
   IMPROVED HOMEPAGE STYLES
   ============================================ */

/* Improved Hero Wrapper */
.hero-wrapper-improved {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 3rem;
}

/* Improved Hero Section */
.hero-improved {
    text-align: center;
    padding: 3rem 3rem 3.5rem;
    background: linear-gradient(135deg, #1a3d5c 0%, #2D5F8D 40%, #3d7f6b 100%);
    color: var(--text-inverse);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    width: 100%;
}

.hero-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.hero-logo-improved {
    max-width: 320px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: filter var(--transition-fast);
}

.hero-tagline-improved {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    opacity: 0.95;
    color: var(--white);
}

.hero-description-improved {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    opacity: 0.9;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

/* Improved CTA Button */
.btn-cta-improved {
    background-color: var(--teal);
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
    padding: 1rem 3rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-cta-improved:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(92, 179, 119, 0.4);
}

/* Improved Features Section */
.features-title-improved {
    font-size: 2.25rem;
    font-weight: 700;
    text-align: center;
    margin: 3rem 0 0.75rem 0;
    color: var(--text-primary);
}

.features-subtitle-improved {
    font-size: 1rem;
    text-align: center;
    color: var(--text-secondary);
    margin: 0 0 3rem 0;
}

.features-improved {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Improved Feature Cards */
.feature-card-improved {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border-top: 4px solid var(--teal);
}

.feature-card-improved:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-card-improved.expanded {
    box-shadow: 0 12px 32px rgba(92, 179, 119, 0.2);
    transform: scale(1.02);
}

.feature-check-improved {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.feature-icon-improved {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title-improved {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: var(--text-primary);
}

.feature-short-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}

.feature-expanded-content {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border);
}

.feature-detail-section {
    margin-bottom: 1.25rem;
}

.feature-detail-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.feature-detail-text {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.feature-expand-indicator {
    margin-top: 1rem;
    text-align: center;
}

.expand-text {
    font-size: 0.75rem;
    color: var(--teal);
    font-weight: 600;
}

/* Responsive adjustments for improved homepage */
@media (max-width: 768px) {
    .hero-improved {
        padding: 2.5rem 2rem;
        max-width: 95%;
    }

    .hero-tagline-improved {
        font-size: 1.3rem;
    }

    .hero-description-improved {
        font-size: 1rem;
    }

    .features-improved {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-title-improved {
        font-size: 1.75rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(46, 182, 125, 0.3);
}

.btn-primary:hover {
    background: var(--teal-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(46, 182, 125, 0.4);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-primary:focus {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

/* Accent button variant for secondary highlights */
.btn-accent {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.btn-accent:hover {
    background: var(--accent-light);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
}

.btn-accent:active {
    transform: translateY(0) scale(0.98);
}

.btn-accent:focus {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--border-dark);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-warm);
    transform: scale(1.02);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.btn-secondary:focus {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

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

.btn-danger:hover {
    background: #b91c1c;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-hero {
    padding: 1.25rem 3rem;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(46, 182, 125, 0.35);
    letter-spacing: 0.02em;
}

.btn-hero:hover {
    box-shadow: 0 8px 32px rgba(46, 182, 125, 0.45);
    transform: translateY(-3px);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   FORM CONTAINER
   ============================================ */
.form-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--border);
    min-height: 600px; /* Prevents height changes during step transitions */
}

/* Feature Identifier Badge */
.feature-identifier {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(46, 182, 125, 0.2);
}

.feature-icon-small {
    font-size: 1.1rem;
    line-height: 1;
}

.feature-name {
    letter-spacing: 0.01em;
}

/* ============================================
   PROGRESS STEPS - Journey visualization
   ============================================ */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-base);
    padding: 1.25rem var(--spacing-base);
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
    border-radius: var(--radius-lg);
    position: relative;
}

/* Progress line */
.form-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4rem;
    right: 4rem;
    height: 2px;
    background: var(--border-dark);
    transform: translateY(-50%);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
    transition: all var(--transition-medium);
    cursor: pointer;
}

.progress-step:hover {
    opacity: 1 !important;
    transform: scale(1.05);
}

.progress-step:not(.active):not(.completed) {
    opacity: 0.5;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.progress-step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(45, 95, 141, 0.15), 0 4px 12px rgba(45, 95, 141, 0.3);
}

.progress-step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.progress-step.completed .step-number::after {
    content: '\2713';
    font-size: 1.1rem;
}

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

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

.step-time {
    display: block;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 2px;
}

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

.progress-step.active .step-time {
    color: var(--primary);
}

/* ============================================
   FORM STEPS
   ============================================ */
/* Form steps container - use grid to prevent height jumps */
#intakeForm {
    display: grid;
    grid-template-rows: 1fr;
    position: relative;
}

.form-step {
    display: none;
    grid-row: 1;
    grid-column: 1;
}

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

/* During transitions, both steps exist in same grid cell */
/* This prevents height changes as they're overlaid */
.form-step.step-exiting,
.form-step.step-entering {
    display: block;
    grid-row: 1;
    grid-column: 1;
}

.form-step.step-exiting {
    z-index: 1;
    pointer-events: none;
}

.form-step.step-entering {
    z-index: 2;
}

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

.form-step h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.form-step > .form-navigation:first-of-type {
    margin-bottom: 2rem;
}

.form-step h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--border-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

/* Form validation states */
.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #EF4444;
    background-color: rgba(239, 68, 68, 0.05);
}

.form-group.error input:focus,
.form-group.error textarea:focus,
.form-group.error select:focus {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: var(--success);
    background-color: rgba(46, 182, 125, 0.05);
}

.form-group.success input:focus,
.form-group.success textarea:focus,
.form-group.success select:focus {
    border-color: var(--success);
    box-shadow: 0 0 0 4px rgba(46, 182, 125, 0.15);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #EF4444;
}

.error-message::before {
    content: '⚠️';
    font-size: 1rem;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--success);
}

.success-message::before {
    content: '✓';
    font-weight: bold;
    font-size: 1rem;
}

/* Required field indicator */
.form-group label[required]::after,
.form-group label.required::after {
    content: ' *';
    color: #EF4444;
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.form-help {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Emotional Framing for Sensitive Sections */
.emotional-framing {
    background: linear-gradient(135deg, #fff9f0 0%, #fff 100%);
    border-left: 3px solid var(--accent);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.framing-message {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.framing-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.framing-text {
    flex: 1;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
}

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

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

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.checkbox-item:hover {
    background: #f0f9f6;
    border-color: var(--primary);
}

.checkbox-item label {
    cursor: pointer;
    user-select: none;
    transition: font-weight var(--transition-fast);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked + label {
    font-weight: 600;
}

.checkbox-item:has(input[type="checkbox"]:checked) {
    background: #e8f8f4;
    border-left: 2px solid #2ECC71;
    border-color: #2ECC71;
}

/* ============================================
   EXPERIENCE SECTIONS
   ============================================ */
.experience-section {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
    border: 1px solid var(--border);
}

.experience-section h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-section h3::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: var(--accent);
    border-radius: 2px;
}

/* Collapsible Experience Sections */
.collapsible-section {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.collapsible-section.expanded {
    border-color: var(--teal);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}

.section-header:hover {
    background: linear-gradient(135deg, #fff9f0 0%, var(--bg-warm) 100%);
}

.section-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: var(--teal);
    border-radius: 2px;
}

.section-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--teal);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(46, 182, 125, 0.1);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.collapsible-section.expanded .section-toggle {
    background: var(--teal);
    color: white;
}

.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1.5rem;
}

.collapsible-section.expanded .section-content {
    max-height: 3000px;
    padding: 1.5rem 1.5rem 1.25rem;
}

.step-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    padding: 0.75rem;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
}

.work-entry,
.education-entry {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   FORM NAVIGATION
   ============================================ */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

/* ============================================
   REVIEW SUMMARY
   ============================================ */
.review-summary {
    background: var(--bg-warm);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.review-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.review-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.review-section h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.review-section p {
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
}

/* Save Profile Option */
.save-profile-option {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.06) 0%, rgba(217, 119, 6, 0.06) 100%);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.consent-text {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-xl);
    z-index: 100;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.25rem;
}

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

.loading-content p {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Loading messages container for staged messaging */
.loading-messages {
    position: relative;
    min-height: 2em;
    margin-bottom: 0.5rem;
}

.loading-messages .loading-message {
    position: absolute;
    width: 100%;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.loading-messages .loading-message.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.loading-messages .loading-message.exiting {
    opacity: 0;
    transform: translateY(-10px);
}

.loading-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* Loading reassurance message */
.loading-reassurance {
    margin-top: 1.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(46, 182, 125, 0.1);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* What Happens Next (Step 5 Expectations) */
.what-happens-next {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    margin-bottom: 2rem;
}

.whn-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.whn-content {
    flex: 1;
}

.whn-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.75rem 0;
}

.whn-content ul {
    margin: 0;
    padding: 0 0 0 1.25rem;
    list-style-type: none;
}

.whn-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.whn-content li:last-child {
    margin-bottom: 0;
}

.whn-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.whn-content strong {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   RESULTS CONTAINER
   ============================================ */
.results-container {
    display: none;
    text-align: center;
    animation: celebrateIn 0.6s ease;
}

.results-container.active {
    display: block;
}

@keyframes celebrateIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.results-container h2 {
    color: var(--success);
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.results-subtext {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-base);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Courage Acknowledgment */
.courage-acknowledgment {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: linear-gradient(135deg, #fff9f0 0%, #fffbf5 100%);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin: 2rem auto 2.5rem;
    max-width: 700px;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15);
}

.courage-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.courage-message {
    flex: 1;
}

.courage-headline {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.courage-body {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

.document-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.document-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    transition: all var(--transition-medium);
}

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

.document-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.document-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.document-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* Post-Generation Guidance */
.post-generation-guidance {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
    border: 2px solid var(--border-dark);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
}

.post-generation-guidance h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.guidance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.guidance-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    display: flex;
    flex-direction: column;
}

.guidance-card:nth-child(1) {
    animation-delay: 0ms;
}

.guidance-card:nth-child(2) {
    animation-delay: 150ms;
}

.guidance-card:nth-child(3) {
    animation-delay: 300ms;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.guidance-icon {
    font-size: 40px;
    margin-bottom: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(46, 204, 113, 0.15);
}

.guidance-card h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.75rem 0;
    text-align: left;
}

.guidance-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    text-align: left;
}

.guidance-card ul {
    margin: 0;
    padding-left: 1.25rem;
    list-style-type: none;
    text-align: left;
}

.guidance-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.guidance-card li:last-child {
    margin-bottom: 0;
}

.guidance-card li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ============================================
   PROFILES PAGE
   ============================================ */
.page-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.profiles-list {
    display: grid;
    gap: 1rem;
}

.profile-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    transition: all var(--transition-medium);
    position: relative;
}

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

.profile-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-size: 1.15rem;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-meta-item::before {
    font-size: 1rem;
}

.profile-job::before {
    content: '💼';
}

.profile-location::before {
    content: '📍';
}

.profile-date::before {
    content: '📅';
}

.profile-status {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.profile-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 0.25rem 0.6rem;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
}

.profile-status-badge.complete {
    color: var(--success);
    background: rgba(46, 182, 125, 0.1);
}

.profile-status-badge.complete::before {
    content: '✓';
    font-weight: bold;
}

.profile-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.profile-actions .btn-delete {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 0.5rem 0.75rem;
    text-decoration: underline;
    transition: all var(--transition-fast);
}

.profile-actions .btn-delete:hover {
    color: var(--danger);
    background: transparent;
}

.profile-actions .btn-delete[data-confirm-state="confirming"] {
    background: #fff3f3;
    border: 1px solid #ffe0e0;
    border-radius: var(--radius-sm);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
}

.no-profiles {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-heading {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.75rem 0;
}

.empty-state-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

.no-profiles p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ============================================
   SETTINGS PAGE
   ============================================ */
.settings-form {
    max-width: 550px;
}

.settings-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border);
}

.settings-section h3 {
    margin-bottom: 0.75rem;
}

.logo-upload {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo-preview {
    width: 160px;
    height: 90px;
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    overflow: hidden;
    background: var(--bg-warm);
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-picker input[type="color"] {
    width: 56px;
    height: 44px;
    padding: 2px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--white);
}

.color-picker input[type="text"] {
    width: 110px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--white);
    padding: 1.25rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

.footer-tagline {
    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
/* ============================================
   LANDING PAGE
   ============================================ */

.landing-page {
    min-height: 100vh;
    background: var(--white);
    width: 100%;
    display: flex;
    flex-direction: column;
}

.landing-container {
    margin: 0 auto;
    padding: 0 1.5rem;
}

.landing-hero .landing-container,
.landing-footer .landing-container {
    max-width: 1200px;
}

/* Hero Section */
.landing-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 3rem 0;
    text-align: center;
    width: 100%;
}

.landing-logo {
    max-width: 380px;
    width: 100%;
    height: auto;
    margin: 0 auto 1.5rem;
    display: block;
    position: relative;
    z-index: 2;
    animation: fadeInDown 0.8s ease;
    background: rgba(255, 255, 255, 0.35);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.landing-headline {
    font-size: 2.25rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.landing-subheadline {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s ease 0.4s both;
}

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

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

/* Middle Container - Three Columns Side by Side */
.landing-middle {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 0;
}

/* Landing Sections - Asymmetric layout: 30% | 30% | 40% */
.landing-section {
    padding: var(--spacing-base);
    min-width: 0;
}

.landing-features {
    background: var(--white);
    flex: 0 0 30%;
}

.landing-for-who {
    background: var(--bg-cream);
    flex: 0 0 30%;
}

/* Access section - 40% width, more prominent */
.landing-access {
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--white) 100%);
    flex: 0 0 40%;
    position: relative;
}

.section-title {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.section-subtitle {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature-box {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    transition: all var(--transition-medium);
    border: 1px solid var(--border);
    cursor: default;
}

.feature-box:hover {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(46, 182, 125, 0.15), var(--shadow-sm);
}

.feature-icon-large {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-box h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-box p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Who It's For Section */
.landing-for-who {
    background: var(--bg-warm);
}

.two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.column {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--teal);
    transition: all var(--transition-medium);
    cursor: default;
}

.column:hover {
    box-shadow: 0 0 0 3px rgba(46, 182, 125, 0.15), var(--shadow-sm);
    border-left-color: var(--teal-dark);
}

.column h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.column p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Access Section */
.landing-access {
    background: var(--bg-cream);
}

.access-card {
    background: var(--white);
    padding: var(--spacing-base) 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    border: 2px solid var(--teal);
    position: relative;
}

/* Subtle highlight border effect */
.access-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: -1;
    opacity: 0.15;
}

.access-card h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.access-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.access-form {
    text-align: left;
    margin: 2rem 0;
}

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

.access-form input {
    text-align: center;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    font-weight: 500;
    padding: 1rem;
}

.access-form button {
    width: 100%;
    padding: 1rem;
    font-size: 1.05rem;
}

.access-help {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.access-help a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.access-help a:hover {
    text-decoration: underline;
}

.login-error {
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    min-height: 1.5rem;
    text-align: center;
}

/* Landing Footer */
.landing-footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 2.5rem 0;
    width: 100%;
}

.footer-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-logo {
    max-width: 250px;
    height: auto;
    background: rgba(255, 255, 255, 0.35);
    padding: 1.25rem 1.75rem;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
}

.footer-tagline {
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0.5rem 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

.footer-divider {
    color: rgba(255, 255, 255, 0.4);
}

.footer-contact {
    margin: 0;
}

.footer-contact a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin: 0.5rem 0 0 0;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .features,
    .document-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .header-logo {
        height: 80px;
        margin: -20px 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }

    .main-content {
        padding: 1.25rem;
    }

    .hero {
        padding: 2rem 1.5rem 2.5rem;
    }

    .hero-logo {
        max-width: 220px;
        margin: 0 auto 0.75rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-progress {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .form-progress::before {
        display: none;
    }

    .step-label {
        display: none;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .form-navigation .btn {
        width: 100%;
    }

    .login-container {
        padding: 2rem 1.5rem;
    }

    /* Landing page responsive */
    .landing-hero {
        padding: 2.5rem 0;
    }

    .landing-footer {
        padding: 2rem 0;
    }

    .landing-logo {
        max-width: 280px;
    }

    .landing-headline {
        font-size: 1.75rem;
    }

    .landing-subheadline {
        font-size: 1.05rem;
    }

    /* Stack the 3 columns vertically on mobile */
    .landing-middle {
        flex-direction: column;
    }

    .landing-section {
        padding: var(--spacing-base) 1.5rem;
        width: 100%;
        flex: 1 1 auto;
    }

    .landing-features,
    .landing-for-who,
    .landing-access {
        flex: 1 1 auto;
    }

    /* Time estimate badge mobile */
    .time-estimate-badge {
        display: block;
        text-align: center;
    }

    .step-time {
        display: none;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .access-card {
        padding: 2rem 1.5rem;
    }

    .landing-container {
        padding: 0 1.5rem;
    }
}

/* ============================================================================
   TERMS OF SERVICE MODAL
   ========================================================================= */

.terms-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

.terms-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.terms-modal h2 {
    color: var(--primary);
    margin: 0;
    padding: 30px 30px 10px 30px;
    font-size: 1.75rem;
    font-family: 'Fraunces', serif;
}

.terms-modal > p {
    padding: 0 30px 20px 30px;
    color: var(--text-secondary);
    margin: 0;
}

.scrollable-terms {
    flex: 1;
    overflow-y: auto;
    padding: 0 30px;
    margin: 0 0 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.scrollable-terms h3 {
    color: var(--primary);
    margin: 20px 0 10px 0;
    font-size: 1.1rem;
}

.scrollable-terms ul {
    margin: 0 0 20px 0;
    padding-left: 20px;
}

.scrollable-terms li {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.scrollable-terms a {
    color: var(--teal);
    text-decoration: none;
}

.scrollable-terms a:hover {
    text-decoration: underline;
}

.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0 30px;
    margin-bottom: 20px;
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.terms-checkbox span {
    color: var(--text-primary);
    line-height: 1.5;
}

.terms-checkbox a {
    color: var(--teal);
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.terms-modal button {
    margin: 0 30px 30px 30px;
}

.terms-modal button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Confirm Modal */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.confirm-modal-overlay.modal-visible {
    opacity: 1;
}

.confirm-modal-overlay.modal-exit {
    opacity: 0;
}

.confirm-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 480px;
    width: 100%;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.confirm-modal-overlay.modal-visible .confirm-modal {
    transform: scale(1);
}

.confirm-modal-overlay.modal-exit .confirm-modal {
    transform: scale(0.9);
}

.confirm-message {
    color: var(--text-primary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    text-align: center;
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.confirm-buttons .btn {
    flex: 1;
    max-width: 150px;
}

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

.confirm-buttons .btn-secondary:hover {
    background: var(--border);
}

.confirm-buttons .btn-danger {
    background: #e74c3c;
    color: white;
    border: none;
}

.confirm-buttons .btn-danger:hover {
    background: #c0392b;
}

/* Profile Details Modal */
.profile-details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-details-modal-overlay.modal-visible {
    opacity: 1;
}

.profile-details-modal-overlay.modal-exit {
    opacity: 0;
}

.profile-details-modal {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.2s ease;
    overflow: hidden;
}

.profile-details-modal-overlay.modal-visible .profile-details-modal {
    transform: scale(1);
}

.profile-details-modal-overlay.modal-exit .profile-details-modal {
    transform: scale(0.9);
}

.profile-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
}

.profile-details-header h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
    line-height: 1;
}

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

.profile-details-content {
    padding: 2rem;
}

.profile-detail-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
}

.profile-detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
    font-size: 0.9rem;
}

.profile-detail-value {
    color: var(--text-primary);
    flex: 1;
}

.profile-detail-divider {
    height: 1px;
    background: var(--border);
    margin: 1.5rem 0;
}

.profile-detail-section h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 1rem 0;
}

.profile-documents {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-doc-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
}

.profile-doc-badge.available {
    background: #e8f8f4;
    color: #2eb67d;
    border: 1px solid #2eb67d;
}

.profile-doc-badge.unavailable {
    background: #fef2f2;
    color: #e74c3c;
    border: 1px solid #f5c6cb;
}

.profile-details-footer {
    padding: 1rem 2rem 1.5rem;
    display: flex;
    justify-content: center;
}

.profile-details-footer .btn {
    min-width: 120px;
}

/* Footer Links */
.footer-links {
    margin-top: 10px;
    font-size: 0.9rem;
    text-align: center;
}

.footer-links a {
    color: var(--teal);
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--primary);
}

/* Footer Copyright */
.footer-copyright {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Footer Contact */
.footer-contact {
    margin-top: 5px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-contact a {
    color: var(--teal);
    text-decoration: none;
}

.footer-contact a:hover {
    text-decoration: underline;
    color: var(--primary);
}

@media (max-width: 768px) {
    .terms-modal {
        max-height: 90vh;
    }

    .terms-modal h2 {
        font-size: 1.5rem;
        padding: 20px 20px 10px 20px;
    }

    .terms-modal > p,
    .scrollable-terms,
    .terms-checkbox,
    .terms-modal button {
        padding-left: 20px;
        padding-right: 20px;
    }

    .terms-modal button {
        margin-bottom: 20px;
    }
}

/* ============================================================================
   CAREER EXPLORER
   ============================================================================ */

.career-explorer-container {
    max-width: 900px;
    margin: 0 auto;
}

.career-explorer-container h2 {
    font-family: 'Fraunces', serif;
    color: var(--primary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.career-explorer-section {
    margin-bottom: 2rem;
}

/* Population selector */
.ce-population-group {
    margin-bottom: 1.5rem;
}

.ce-population-group .form-select {
    max-width: 500px;
}

/* RIASEC Mode Toggle */
.riasec-mode-toggle {
    display: flex;
    gap: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border);
    width: fit-content;
    margin-top: 0.5rem;
}

.mode-btn {
    padding: 0.6rem 1.25rem;
    border: none;
    background: var(--white);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.mode-btn.active {
    background: var(--primary);
    color: var(--text-inverse);
}

.mode-btn:hover:not(.active) {
    background: var(--bg-warm);
}

/* RIASEC Grid */
.riasec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-top: 1rem;
}

.riasec-slider-group {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    transition: border-color var(--transition-fast);
}

.riasec-slider-group:hover {
    border-color: var(--teal);
}

.riasec-slider-group label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    display: block;
}

.riasec-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.15rem 0 0.6rem 0;
}

.slider-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.riasec-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
}

.riasec-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--teal);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s;
}

.riasec-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.riasec-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--teal);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--white);
    box-shadow: var(--shadow-sm);
}

.score-value {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}

/* 3-Letter Code Input */
.riasec-code-input {
    max-width: 200px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
    text-align: center;
    text-transform: uppercase;
    color: var(--primary);
}

/* Location */
.ce-location-group {
    margin-top: 1.5rem;
}

.ce-location-group .form-input {
    max-width: 400px;
}

/* Search Button */
.ce-actions {
    margin-top: 1.5rem;
}

.ce-search-btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

/* Loading State */
.ce-loading {
    text-align: center;
    padding: 3rem 1rem;
}

.ce-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ce-loading-spinner .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: ce-spin 0.8s linear infinite;
}

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

.ce-loading-spinner h3 {
    color: var(--primary);
    font-family: 'Fraunces', serif;
    margin: 0;
}

.ce-loading-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Error State */
.ce-error {
    text-align: center;
    padding: 2rem;
}

.ce-error-content h3 {
    color: var(--danger);
    margin-bottom: 0.5rem;
}

.ce-error-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Results Header */
.ce-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.ce-results-summary h3 {
    font-family: 'Fraunces', serif;
    color: var(--primary);
    margin: 0 0 0.25rem 0;
}

.ce-results-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* Result Cards */
.ce-results-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ce-result-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
    border-left: 4px solid var(--teal);
}

.ce-result-card:hover {
    box-shadow: var(--shadow-md);
    border-left-color: var(--primary);
}

.ce-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem 0.5rem;
}

.ce-card-title-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ce-card-rank {
    font-weight: 700;
    color: var(--teal);
    font-size: 0.85rem;
}

.ce-card-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
}

.ce-card-code {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'DM Sans', monospace;
}

/* Fit Badges */
.ce-fit-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.fit-best {
    background: rgba(46, 182, 125, 0.15);
    color: var(--teal-dark);
}

.fit-great {
    background: rgba(30, 58, 95, 0.1);
    color: var(--primary);
}

.fit-good {
    background: rgba(113, 128, 150, 0.1);
    color: var(--text-secondary);
}

/* Card Body */
.ce-card-body {
    padding: 0 1.25rem 0.75rem;
}

.ce-card-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.ce-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.ce-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 500;
}

.ce-stat-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Outlook colors */
.outlook-growing { color: var(--teal-dark); }
.outlook-stable { color: var(--primary); }
.outlook-slow { color: var(--accent); }
.outlook-declining { color: var(--danger); }
.outlook-unknown { color: var(--text-muted); }

/* Population Notes */
.ce-population-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.ce-population-note {
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    background: rgba(46, 182, 125, 0.1);
    color: var(--teal-dark);
    font-weight: 500;
}

/* Description expand */
.ce-card-description {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.5rem;
}

.ce-card-description.collapsed {
    max-height: 0;
    overflow: hidden;
    margin: 0;
}

.ce-toggle-desc {
    background: none;
    border: none;
    color: var(--teal);
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0.25rem 0;
    font-weight: 500;
}

.ce-toggle-desc:hover {
    text-decoration: underline;
}

/* Card Actions */
.ce-card-actions {
    padding: 0.5rem 1.25rem 1rem;
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
}

/* Empty Results */
.ce-empty-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.ce-empty-results h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Field hint (for RIASEC descriptions) */
.field-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0.5rem;
}

/* O*NET / CareerOneStop Attribution */
.ce-attribution {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.ce-attribution p {
    margin: 0 0 0.35rem;
}

.ce-attribution a {
    color: var(--primary);
    text-decoration: underline;
}

.ce-attribution-logos {
    margin-bottom: 0.75rem;
}

.ce-cos-logo {
    height: 36px;
    width: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .riasec-grid {
        grid-template-columns: 1fr;
    }

    .ce-card-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .ce-results-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ce-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .riasec-mode-toggle {
        width: 100%;
    }

    .mode-btn {
        flex: 1;
        text-align: center;
    }
}
