/* ============================================================
   FILE 06: assets/css/style.css
   Apex Career Compass — Full Stylesheet
   CU Branding + Apex Sub-brand | GenZ-friendly UI
   ============================================================ */

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

:root {
    --cu-maroon:     #8B1A1A;
    --cu-maroon-lt:  #A52020;
    --cu-gold:       #D4AF37;
    --cu-navy:       #1A1A4E;
    --apex-orange:   #E8521A;
    --apex-light:    #FFF8F0;
    --text-dark:     #1C1C1C;
    --text-mid:      #555566;
    --text-light:    #888899;
    --white:         #FFFFFF;
    --border:        #E8E8F0;
    --success:       #2ECC71;
    --radius:        12px;
    --radius-lg:     20px;
    --shadow:        0 4px 24px rgba(139,26,26,0.10);
    --shadow-lg:     0 12px 48px rgba(139,26,26,0.18);
    --font-display:  'Playfair Display', Georgia, serif;
    --font-body:     'DM Sans', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--apex-light);
    color: var(--text-dark);
    min-height: 100vh;
    line-height: 1.6;
}

/* --- BACKGROUND SHAPES (Landing) --- */
.bg-shape {
    position: fixed; border-radius: 50%; opacity: 0.06;
    pointer-events: none; z-index: 0;
}
.bg-shape--1 {
    width: 600px; height: 600px;
    background: var(--cu-maroon);
    top: -200px; right: -200px;
}
.bg-shape--2 {
    width: 400px; height: 400px;
    background: var(--cu-navy);
    bottom: -100px; left: -100px;
}

/* ============ LANDING PAGE ============ */
.page-landing {
    background: linear-gradient(135deg, #FFF8F0 0%, #FFF0E8 100%);
}
.landing-container {
    position: relative; z-index: 1;
    max-width: 740px; margin: 0 auto;
    padding: 32px 20px 60px;
}

/* Brand Header */
.brand-header {
    display: flex; align-items: center; gap: 16px;
    padding-bottom: 32px;
}
.cu-logo { height: 52px; object-fit: contain; }
.brand-divider {
    width: 1px; height: 40px;
    background: var(--cu-maroon); opacity: 0.3;
}
.apex-label {
    font-size: 13px; font-weight: 600;
    color: var(--cu-maroon); letter-spacing: 0.5px;
    line-height: 1.3;
}

/* Hero */
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--cu-maroon); color: var(--cu-gold);
    font-size: 12px; font-weight: 600;
    padding: 6px 16px; border-radius: 100px;
    letter-spacing: 1px; text-transform: uppercase;
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 7vw, 58px);
    color: var(--cu-navy);
    line-height: 1.1; margin-bottom: 16px;
    animation: fadeInUp 0.7s ease;
}
.title-accent { color: var(--cu-maroon); }
.hero-subtitle {
    font-size: 14px; color: var(--text-light);
    font-weight: 500; letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.hero-desc {
    font-size: 16px; color: var(--text-mid);
    max-width: 580px; margin-bottom: 40px; line-height: 1.7;
}

/* Registration Card */
.reg-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    border: 1px solid rgba(139,26,26,0.08);
    animation: fadeInUp 0.8s ease;
}
.reg-title {
    font-family: var(--font-display);
    font-size: 24px; color: var(--cu-navy);
    margin-bottom: 6px;
}
.reg-sub {
    color: var(--text-light); font-size: 14px; margin-bottom: 28px;
}

/* Form Elements */
.form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group {
    display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px;
}
.form-group label {
    font-size: 13px; font-weight: 600; color: var(--cu-navy);
    display: flex; align-items: center; gap: 7px;
}
.form-group label i { color: var(--cu-maroon); font-size: 12px; }

.form-group input,
.form-group select {
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px; color: var(--text-dark);
    background: var(--apex-light);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    appearance: none; -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus {
    border-color: var(--cu-maroon);
    box-shadow: 0 0 0 3px rgba(139,26,26,0.10);
    background: var(--white);
}
.form-group input.input-error,
.form-group select.input-error {
    border-color: #E53E3E;
    box-shadow: 0 0 0 3px rgba(229,62,62,0.10);
}
.field-error {
    font-size: 12px; color: #E53E3E; font-weight: 500;
}

/* Aspirant indicator */
.aspirant-indicator {
    background: rgba(139,26,26,0.06);
    border: 1px solid rgba(139,26,26,0.15);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 14px; color: var(--cu-maroon);
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 8px;
}

/* Start Button */
.btn-start {
    width: 100%;
    background: linear-gradient(135deg, var(--cu-maroon), var(--cu-maroon-lt));
    color: var(--white);
    border: none; border-radius: var(--radius);
    padding: 16px 32px;
    font-family: var(--font-body);
    font-size: 16px; font-weight: 600;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(139,26,26,0.30);
    margin-top: 4px;
}
.btn-start:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(139,26,26,0.40);
}
.btn-start:active { transform: translateY(0); }

/* Trust Bar */
.trust-bar {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: 24px;
    margin-top: 32px; padding-top: 24px;
    border-top: 1px solid var(--border);
}
.trust-item {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: var(--text-light); font-weight: 500;
}
.trust-item i { color: var(--cu-maroon); }

/* ============ TEST PAGE ============ */
.page-test { background: #F5F4FF; }

.test-wrapper {
    max-width: 800px; margin: 0 auto;
    padding: 0 20px 60px;
}

.test-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    display: flex; align-items: center; gap: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin: 0 -20px;
}
.cu-logo-sm { height: 36px; object-fit: contain; }

.progress-container { flex: 1; }
.progress-info {
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--text-light);
    font-weight: 500; margin-bottom: 6px;
}
.progress-bar-track {
    height: 6px; background: var(--border);
    border-radius: 100px; overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cu-maroon), var(--cu-gold));
    border-radius: 100px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.student-chip {
    font-size: 13px; font-weight: 600; color: var(--cu-navy);
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap;
}
.student-chip i { color: var(--cu-maroon); }

.test-main { padding-top: 32px; }

/* Question Sections */
.q-section { display: none; animation: fadeInUp 0.4s ease; }
.q-section.active { display: block; }

.section-intro {
    text-align: center; margin-bottom: 32px;
}
.section-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, var(--cu-maroon), var(--cu-navy));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 24px; color: var(--cu-gold);
}
.section-title {
    font-family: var(--font-display);
    font-size: 28px; color: var(--cu-navy); margin-bottom: 8px;
}
.section-desc { color: var(--text-mid); font-size: 15px; }

/* Question Cards */
.question-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(139,26,26,0.06);
    transition: box-shadow 0.2s;
}
.question-card:hover { box-shadow: var(--shadow-lg); }
.question-card.answered { border-color: rgba(139,26,26,0.20); }

.question-text {
    font-size: 16px; font-weight: 500; color: var(--text-dark);
    margin-bottom: 20px; line-height: 1.6;
}

/* Likert Scale */
.likert-scale {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.likert-label {
    font-size: 11px; color: var(--text-light);
    font-weight: 500; flex-shrink: 0;
}
.likert-option { display: flex; }
.likert-option input[type="radio"] { display: none; }
.likert-dot {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}
.likert-option input[type="radio"]:checked + .likert-dot {
    background: var(--cu-maroon);
    border-color: var(--cu-maroon);
    color: var(--white);
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(139,26,26,0.30);
}
.likert-dot:hover { border-color: var(--cu-maroon); color: var(--cu-maroon); }

/* MCQ Options */
.mcq-options {
    display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 560px) { .mcq-options { grid-template-columns: 1fr; } }
.mcq-option {
    display: flex; align-items: flex-start;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px; cursor: pointer;
    transition: all 0.2s; gap: 10px;
}
.mcq-option:hover { border-color: var(--cu-maroon); background: rgba(139,26,26,0.04); }
.mcq-option input[type="radio"] { display: none; }
.mcq-option span {
    font-size: 14px; color: var(--text-mid);
    display: flex; align-items: center; gap: 8px; line-height: 1.4;
}
.mcq-option span i { color: var(--cu-maroon); font-size: 16px; flex-shrink: 0; }
.mcq-option:has(input:checked) {
    border-color: var(--cu-maroon);
    background: rgba(139,26,26,0.07);
}
.mcq-option:has(input:checked) span { color: var(--cu-navy); font-weight: 600; }

/* Section Navigation */
.section-nav {
    display: flex; justify-content: space-between;
    align-items: center; margin-top: 32px; padding-top: 24px;
    border-top: 1px solid var(--border);
}
.btn-next, .btn-prev {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px; font-weight: 600; cursor: pointer; border: none;
    transition: all 0.2s;
}
.btn-next {
    background: var(--cu-maroon); color: var(--white);
    box-shadow: 0 4px 16px rgba(139,26,26,0.25);
}
.btn-next:hover { background: var(--cu-maroon-lt); transform: translateX(2px); }
.btn-prev {
    background: transparent; color: var(--text-mid);
    border: 1.5px solid var(--border);
}
.btn-prev:hover { border-color: var(--cu-maroon); color: var(--cu-maroon); }
.btn-submit {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 32px; border-radius: var(--radius);
    background: linear-gradient(135deg, var(--cu-gold), #B8960C);
    color: var(--cu-navy);
    font-family: var(--font-body);
    font-size: 16px; font-weight: 700; cursor: pointer; border: none;
    box-shadow: 0 4px 20px rgba(212,175,55,0.40);
    transition: all 0.2s;
}
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,175,55,0.50); }

/* ============ RESULT PAGE ============ */
.page-result { background: var(--cu-navy); color: var(--white); }

.result-wrapper { max-width: 800px; margin: 0 auto; padding: 0 20px 80px; }

.result-header {
    display: flex; align-items: center; gap: 12px;
    padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.10);
    margin-bottom: 40px;
}
.apex-tag { font-size: 13px; color: rgba(255,255,255,0.60); font-weight: 500; }

.result-hero { text-align: center; padding: 20px 0 40px; }
.congrats-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(212,175,55,0.15); color: var(--cu-gold);
    border: 1px solid rgba(212,175,55,0.30);
    padding: 8px 18px; border-radius: 100px;
    font-size: 13px; font-weight: 600; margin-bottom: 20px;
    animation: fadeInDown 0.5s ease;
}
.result-title {
    font-family: var(--font-display);
    font-size: clamp(30px, 6vw, 48px);
    color: var(--white); line-height: 1.2; margin-bottom: 32px;
    animation: fadeInUp 0.6s ease;
}
.result-title .accent { color: var(--cu-gold); }

.badge-card {
    display: inline-flex; align-items: center; gap: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg); padding: 20px 32px;
    animation: fadeInUp 0.7s ease;
}
.badge-icon {
    width: 56px; height: 56px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.badge-label { font-size: 11px; color: rgba(255,255,255,0.50); letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.badge-title { font-size: 20px; font-weight: 700; color: var(--white); }

/* Dimension Scores */
.dimensions-section { padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.10); }
.section-heading {
    font-family: var(--font-display);
    font-size: 22px; color: var(--cu-gold);
    margin-bottom: 24px; text-align: center;
}
.dim-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 640px) { .dim-grid { grid-template-columns: repeat(2, 1fr); } }

.dim-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--radius); padding: 20px 16px;
    text-align: center;
}
.dim-icon { font-size: 22px; margin-bottom: 8px; }
.dim-label { font-size: 12px; color: rgba(255,255,255,0.60); font-weight: 500; margin-bottom: 12px; }
.dim-bar-track { height: 4px; background: rgba(255,255,255,0.10); border-radius: 100px; margin-bottom: 8px; overflow: hidden; }
.dim-bar-fill { height: 100%; border-radius: 100px; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.dim-score { font-size: 18px; font-weight: 700; color: var(--white); }

/* Top Recommendation */
.top-rec-section { padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.10); }
.top-rec-card {
    background: linear-gradient(135deg, var(--cu-maroon) 0%, #5A0A0A 100%);
    border-radius: var(--radius-lg); padding: 40px;
    position: relative; overflow: hidden;
    border: 1px solid rgba(212,175,55,0.20);
}
.top-rec-card::before {
    content: '';
    position: absolute; top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: rgba(212,175,55,0.10); border-radius: 50%;
}
.rec-match-badge {
    display: inline-block;
    background: var(--cu-gold); color: var(--cu-navy);
    font-size: 13px; font-weight: 700;
    padding: 6px 14px; border-radius: 100px; margin-bottom: 12px;
}
.rec-level-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15); color: var(--white);
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    padding: 4px 12px; border-radius: 100px;
    margin-bottom: 16px; margin-left: 8px; text-transform: uppercase;
}
.rec-name {
    font-family: var(--font-display);
    font-size: clamp(20px, 4vw, 30px);
    color: var(--white); margin-bottom: 12px;
}
.rec-tagline { color: rgba(255,255,255,0.80); font-size: 15px; margin-bottom: 20px; line-height: 1.6; }
.rec-partner {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: rgba(255,255,255,0.60); margin-bottom: 28px;
}
.rec-partner strong { color: var(--cu-gold); }
.btn-explore {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--cu-gold); color: var(--cu-navy);
    text-decoration: none; font-weight: 700; font-size: 15px;
    padding: 14px 28px; border-radius: var(--radius);
    transition: all 0.2s;
    box-shadow: 0 4px 20px rgba(212,175,55,0.30);
}
.btn-explore:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(212,175,55,0.50); }

/* Runner-up */
.runner-up-section { padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.10); }
.runner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .runner-grid { grid-template-columns: 1fr; } }

.runner-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-lg); padding: 28px;
    transition: background 0.2s;
}
.runner-card:hover { background: rgba(255,255,255,0.10); }
.runner-match { font-size: 12px; color: var(--cu-gold); font-weight: 700; margin-bottom: 6px; }
.runner-level { font-size: 10px; letter-spacing: 2px; color: rgba(255,255,255,0.40); text-transform: uppercase; margin-bottom: 10px; }
.runner-name { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 8px; line-height: 1.3; }
.runner-tagline { font-size: 13px; color: rgba(255,255,255,0.60); margin-bottom: 20px; line-height: 1.5; }
.btn-runner {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--cu-gold); text-decoration: none;
    font-size: 13px; font-weight: 600; border-bottom: 1px solid rgba(212,175,55,0.30);
    padding-bottom: 2px; transition: border-color 0.2s;
}
.btn-runner:hover { border-color: var(--cu-gold); }

/* Footer elements */
.email-note {
    text-align: center; padding: 24px;
    color: rgba(255,255,255,0.60); font-size: 14px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.10); margin-top: 40px;
}
.email-note i { color: var(--success); }
.email-note strong { color: var(--white); }
.retake-bar { text-align: center; padding: 20px 0; }
.btn-retake {
    display: inline-flex; align-items: center; gap: 8px;
    color: rgba(255,255,255,0.50); text-decoration: none; font-size: 14px;
    transition: color 0.2s;
}
.btn-retake:hover { color: var(--white); }
.result-footer {
    text-align: center; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 11px; color: rgba(255,255,255,0.30); line-height: 1.6;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
