/* ========================================
   CSS RESET & BASE VARIABLES
======================================== */

:root {
    /* Premium Purple & Blue Color Palette */
    --primary-color: #6D28D9;
    /* Deep Purple */
    --primary-hover: #5B21B6;
    --primary-light: #EDE9FE;
    --primary-lighter: #F5F3FF;

    --secondary-color: #3B82F6;
    /* Modern Blue */
    --secondary-hover: #2563EB;
    --secondary-light: #DBEAFE;

    --accent-color: #8B5CF6;
    --accent-light: #C4B5FD;

    --white: #FFFFFF;
    --bg-page: #FDFEFE;
    --bg-card: #FFFFFF;

    --text-primary: #1E1B4B;
    /* Deep Navy/Purple */
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    --border-color: #E2E8F0;
    --border-focus: #8B5CF6;

    --error-color: #EF4444;
    --error-bg: #FEE2E2;

    --success-color: #10B981;
    --success-bg: #D1FAE5;

    --border-radius: 16px;
    --border-radius-sm: 10px;
    --border-radius-lg: 24px;
    --border-radius-xl: 32px;

    --shadow-sm: 0 1px 3px rgba(109, 40, 217, 0.05);
    --shadow-md: 0 10px 20px -5px rgba(109, 40, 217, 0.1), 0 4px 6px -2px rgba(109, 40, 217, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(109, 40, 217, 0.15), 0 10px 10px -5px rgba(109, 40, 217, 0.04);
    --shadow-xl: 0 25px 50px -12px rgba(109, 40, 217, 0.25);

    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease-in-out;
}

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary-lighter);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

/* ========================================
   DECORATIVE BACKGROUND ELEMENTS
======================================== */

.bg-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at top right, #F5F3FF, #FFFFFF 50%),
        radial-gradient(circle at bottom left, #EFF6FF, #FFFFFF 50%);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatGentle 20s infinite ease-in-out;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-light);
    top: 30%;
    right: 15%;
    animation-delay: -10s;
}

@keyframes floatGentle {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.05);
    }

    66% {
        transform: translate(-30px, 50px) scale(0.95);
    }
}

/* ========================================
   CONTAINER & LAYOUT
======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-container {
    min-height: calc(100vh - 160px);
    padding: 24px 0;
}

/* ========================================
   HEADER
======================================== */

/* ========================================
   HEADER
======================================== */

.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.sticky {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}

.logo-icon {
    font-size: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color);
}

/* Navigation Alignment */
.header-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-fast);
    padding: 8px 0;
    position: relative;
    user-select: none;
    white-space: nowrap;
}

/* Hover Underline Animation */
.nav-link:not(.highlight)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:not(.highlight):hover::after,
.nav-link.active::after {
    width: 100%;
}

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

/* Right side group */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Get Guided Button Enhancement */
.nav-link.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2);
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-link.highlight:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(109, 40, 217, 0.3);
    color: white;
}

/* Language Switcher UI */
.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--primary-lighter);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--primary-light);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--primary-color);
    background: rgba(109, 40, 217, 0.05);
}

.lang-btn.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hide-mobile {
    display: block;
}

/* ========================================
   HERO SECTION
======================================== */

.hero-section {
    text-align: center;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    margin: 0 auto 24px auto;
    letter-spacing: -0.03em;
    max-width: 900px;
    width: 100%;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin: 0 auto 48px auto;
    max-width: 720px;
    /* Optimized for readability */
    width: 100%;
    line-height: 1.6;
}

.illustration-float {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    animation: floatUpDown 6s infinite ease-in-out;
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.feature-badge {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.feature-badge:hover {
    background: var(--primary-lighter);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-badge svg {
    width: 22px;
    height: 22px;
    transition: 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(109, 40, 217, 0.15));
}

.feature-badge:hover svg {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(109, 40, 217, 0.4));
}

/* ========================================
   BUTTONS
======================================== */

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 20px 48px;
    border-radius: 50px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px -5px rgba(109, 40, 217, 0.4);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-family: 'Outfit', sans-serif;
}

.cta-button:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(109, 40, 217, 0.5);
}

.cta-button:active {
    transform: translateY(-2px);
}

.button-arrow {
    font-size: 24px;
    transition: var(--transition-smooth);
}

.cta-button:hover .button-arrow {
    transform: translateX(4px);
}

.btn {
    padding: 14px 32px;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    min-height: 44px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

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

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

.btn-secondary:hover {
    background: var(--primary-lighter);
}

.button-group {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    position: relative;
    z-index: 10;
}

.button-group .btn {
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* ========================================
   PROGRESS BAR (GAMIFIED JOURNEY)
======================================== */

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 60px;
}

.progress-step {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
    position: relative;
    z-index: 1;
}

.progress-step.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(109, 40, 217, 0.3);
}

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

.progress-line {
    width: 100px;
    height: 4px;
    background: var(--border-color);
    margin: 0 -2px;
}

.progress-line.completed {
    background: var(--success-color);
}

/* ========================================
   FORM SECTIONS
======================================== */

.form-section {
    animation: fadeScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 860px;
    margin: 0 auto;
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


.psych-step {
    animation: fadeScale 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-icon {
    font-size: 80px;
    margin-bottom: 24px;
    display: block;
    line-height: 1;
}

.psych-step label {
    display: block;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 60px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.form-card::after {
    content: '🎓';
    position: absolute;
    bottom: -20px;
    right: -20px;
    font-size: 120px;
    opacity: 0.03;
    transform: rotate(-15deg);
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 16px;
    text-align: center;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    text-align: center;
}

.step-indicator {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

/* ========================================
   FORM ELEMENTS (CRITICAL ACCESSIBILITY)
======================================== */

.form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.assessment-illustration-header {
    background: var(--primary-lighter);
    border-radius: var(--border-radius);
    padding: 30px;
    margin-bottom: 40px;
    border: 1px dashed var(--primary-light);
}

.illustration-content {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-emoji {
    font-size: 64px;
}

.illustration-text h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.illustration-text p {
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 400px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.required {
    color: var(--error-color);
}

.hint {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

/* CRITICAL: Input & Select Styles - White Background, Dark Text */
.form-group input,
.form-group select,
.form-group textarea {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
    min-height: 44px;
    box-shadow: var(--shadow-sm);
}

/* Placeholder Styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Focus State */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.1);
}

/* CRITICAL: Dropdown Options Visibility */
.form-group select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%231F2937" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    cursor: pointer;
}

.form-group select option {
    background: var(--white);
    color: var(--text-primary);
    padding: 12px;
    min-height: 44px;
}

/* Textarea */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ========================================
   RADIO AND CHECKBOX GROUPS
======================================== */

/* ========================================
   STRENGTH CARDS & OPTIONS
======================================== */

.checkbox-group-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

.strength-card {
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 24px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    user-select: none;
}

.strength-card::after {
    content: '✓';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.strength-card.active::after {
    opacity: 1;
    transform: scale(1);
}

.strength-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(109, 40, 217, 0.12);
    border-color: var(--border-color);
    /* Kept original border color on hover as per request */
}

.strength-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light), 0 20px 40px rgba(109, 40, 217, 0.15);
    background: var(--white);
}

.strength-card.active::before {
    opacity: 1;
}

/* Feedback Animation Style */
.feedback-bubble {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--success-color);
    color: white;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    pointer-events: none;
    animation: bounceInUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.5);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feedback-bubble.fade-out {
    animation: fadeOutDown 0.4s ease forwards;
}

@keyframes fadeOutDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.checkbox-label-card {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.strength-name {
    font-weight: 800;
    font-size: 19px;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.01em;
}

.strength-icon {
    font-size: 44px;
    margin-bottom: 2px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.1));
}

.strength-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.6);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-top: 8px;
}

.example-text {
    margin-top: 12px;
    font-size: 13px;
    color: var(--text-muted);
}

.example-text strong {
    color: var(--primary-color);
}

/* Checkbox visibility in cards */
.checkbox-label-card input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

/* Force visibility of descriptions */
.strength-description.hidden {
    display: block !important;
}

/* ========================================
   RECOMMENDATION SECTION
======================================== */

.recommendation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-lg);
    max-width: 900px;
    margin: 0 auto;
}

.recommendation-header {
    text-align: center;
    margin-bottom: 32px;
}

.student-name-display {
    font-size: 18px;
    color: var(--text-secondary);
    margin-top: 8px;
}

.recommendation-content {
    background: var(--primary-lighter);
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 40px;
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-primary);
}

.recommendation-content h3 {
    font-size: 24px;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--accent-color);
}

.recommendation-content h3:first-child {
    margin-top: 0;
}

.recommendation-content ul {
    list-style: none;
    padding-left: 0;
}

.recommendation-content ul li {
    padding: 8px 0;
    padding-left: 32px;
    position: relative;
    color: var(--text-primary);
}

.recommendation-content ul li::before {
    content: "▸";
    position: absolute;
    left: 8px;
    color: var(--primary-color);
    font-weight: bold;
}

.recommendation-content p {
    margin: 12px 0;
    color: var(--text-primary);
}

.recommendation-content strong {
    color: var(--accent-color);
}

/* ========================================
   BOOKING SECTION
======================================== */

.booking-section {
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary-light));
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 32px;
    margin-bottom: 24px;
}

.booking-title {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.booking-subtitle {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

.booking-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.booking-confirmation {
    background: var(--success-bg);
    border: 2px solid var(--success-color);
    border-radius: var(--border-radius);
    padding: 32px;
    text-align: center;
    animation: slideIn 0.5s ease;
}

.booking-confirmation h3 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--success-color);
}

.booking-confirmation p {
    font-size: 18px;
    margin: 8px 0;
    color: var(--text-primary);
}

/* Match Percentage Badge */
.match-percentage-badge {
    position: absolute;
    top: 40px;
    right: 40px;
    background: rgba(16, 185, 129, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 16px;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    animation: pulseMatch 2s infinite;
    z-index: 5;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes pulseMatch {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(16, 185, 129, 0.5);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    }
}

/* Tag Cloud Styles */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.selectable-tag {
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.selectable-tag:hover {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
    transform: translateY(-2px);
}

.selectable-tag.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
}

/* ========================================
   FOOTER
======================================== */

.footer {
    background: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
    color: var(--text-muted);
    margin-top: 80px;
}

/* ========================================
   UTILITY CLASSES
======================================== */

.hidden {
    display: none !important;
}

/* ========================================
   ANIMATIONS
======================================== */

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

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-features {
        flex-direction: column;
        align-items: stretch;
    }

    .form-card,
    .recommendation-card {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 28px;
    }

    .button-group {
        flex-direction: column;
    }

    .progress-line {
        width: 40px;
    }

    .progress-step {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .header .container {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 12px;
    }

    .header-nav {
        display: none;
    }

    .header-right {
        gap: 12px;
    }

    .nav-link.highlight {
        padding: 8px 16px;
        font-size: 13px;
    }

    .lang-switcher {
        padding: 2px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .logo-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-section {
        padding: 40px 0;
    }

    .cta-button {
        font-size: 16px;
        padding: 14px 32px;
    }
}

/* ========================================
   SCHOLARSHIPS SECTION STYLES
======================================== */

.scholarship-header {
    text-align: center;
    margin-bottom: 40px;
}

.filter-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-md);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
}

.scholarships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.scholarship-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.scholarship-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-xl);
}

.scholarship-card.recommended {
    border: 2px solid var(--primary-color);
    background: var(--primary-lighter);
}

.recommend-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.scholarship-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1.3;
}

.scholarship-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--primary-light);
    color: var(--primary-color);
}

.scholarship-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    font-size: 14px;
}

.meta-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.meta-label {
    font-weight: 600;
    color: var(--text-secondary);
    min-width: 100px;
}

.meta-value {
    color: var(--text-primary);
}

.scholarship-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.disclaimer-box {
    background: #FFFBEB;
    border: 1px solid #FEF3C7;
    border-radius: var(--border-radius);
    padding: 20px;
    font-size: 14px;
    color: #92400E;
    line-height: 1.5;
}

@media (max-width: 768px) {

    .scholarships-grid,
    .colleges-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   COLLEGES DIRECTORY STYLES
======================================== */

.section-header-wide {
    text-align: center;
    margin-bottom: 48px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.college-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 40px;
}

.search-box-large {
    background: var(--white);
    border: 2px solid var(--primary-light);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 70px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.search-box-large:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.search-icon {
    font-size: 24px;
    margin-right: 16px;
    color: var(--text-muted);
}

.search-box-large input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 18px;
    width: 100%;
    height: 100%;
    padding: 0 !important;
}

.filter-grid-colleges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.ai-match-banner {
    background: linear-gradient(90deg, #F0F9FF, #E0F2FE);
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: fadeInUp 0.5s ease;
}

.ai-sparkle {
    font-size: 24px;
}

.ai-match-text {
    font-size: 14px;
    color: var(--accent-color);
}

.colleges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 64px;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .colleges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1101px) {
    .colleges-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

.college-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    box-shadow: var(--shadow-sm);
}

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

.college-card-tier {
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

.tier-1 {
    background: #634670;
}

/* Gold/Amber for Tier 1 */
.tier-2 {
    background: #4B5563;
}

/* Slate for Tier 2 */
.tier-3 {
    background: #1F0D1E;
}

/* Gray for Tier 3 */

.college-card-header {
    padding: 24px;
    background: var(--primary-lighter);
    border-bottom: 1px solid var(--primary-light);
}

.college-card-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 8px;
}

.college-card-title {
    font-size: 20px;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.college-type-tag {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

/* Title style moved to college-card-header-top */

.college-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.college-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    font-size: 13px;
}

.info-pair {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-label {
    color: var(--text-muted);
    font-weight: 500;
}

.info-val {
    color: var(--text-primary);
    font-weight: 600;
}

.placement-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.placement-high {
    background: #D1FAE5;
    color: #065F46;
}

.placement-medium {
    background: #FEF3C7;
    color: #92400E;
}

.placement-basic {
    background: #F3F4F6;
    color: #4B5563;
}

.probability-tag {
    margin-top: 12px;
    padding: 8px;
    border-radius: 6px;
    text-align: center;
    font-weight: 700;
    font-size: 12px;
}

.prob-dream {
    background: #EDE9FE;
    color: #5B21B6;
    border: 1px dashed #DDD6FE;
}

.prob-reach {
    background: #E0F2FE;
    color: #0369A1;
    border: 1px dashed #BAE6FD;
}

.prob-safe {
    background: #DCFCE7;
    color: #166534;
    border: 1px dashed #BBF7D0;
}

.college-card-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.disclaimer-box.secondary {
    background: var(--white);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

/* New Results Header and Badges */
.results-header-info {
    width: 100%;
}

.results-badge {
    background: var(--primary-light);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    display: inline-block;
}

.recommend-badge-we {
    display: inline-block;
    background: #87CEEB;
    /* Soft Sky Blue */
    color: #0f172a;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    box-shadow: var(--shadow-sm);
}

/* Empty State Card */
.empty-state-card {
    background: white;
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
    max-width: 600px;
    margin: 40px auto;
}

.ai-empty-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.ai-empty-header h3 {
    margin: 0;
    color: var(--accent-color);
}

.ai-icon {
    font-size: 32px;
}

.suggestion-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 24px 0;
}

.suggestion-pills button {
    background: var(--primary-lighter);
    border: 1px solid var(--primary-light);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.suggestion-pills button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

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

/* Cut-Off Calculator Specific Styles */
.btn-full {
    width: 100%;
    justify-content: center;
}

.interpretation-card {
    padding: 16px;
    border-radius: var(--border-radius-sm);
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    margin-top: 20px;
}

.interpretation-card.high {
    background: #D1FAE5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.interpretation-card.moderate {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FDE68A;
}

.interpretation-card.low {
    background: #F3F4F6;
    color: #4B5563;
    border: 1px solid #E5E7EB;
}

/* ========================================
   FLOATING CHATBOT STYLES
   ======================================== */

:root {
    --chat-primary: #4F46E5;
    --chat-primary-light: #EEF2FF;
    --chat-success: #22C55E;
    --chat-bot-bubble: #EEF2FF;
    --chat-user-bubble: #F3F4F6;
    --chat-text-bot: #1E1B4B;
    --chat-text-user: #111827;
    --chat-text-secondary: #6B7280;
    --chat-border: #E5E7EB;
}

.chatbot-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    width: 56px;
    height: 56px;
    background: var(--chat-primary);
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: chatPulse 2s infinite;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

@keyframes chatPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.6);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(79, 70, 229, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}

.chatbot-tooltip {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #1E1B4B;
    color: white;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: var(--shadow-md);
}

.chatbot-wrapper:hover .chatbot-tooltip {
    opacity: 1;
    transform: translateY(0);
}

.chatbot-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-panel.hidden {
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.chatbot-header {
    background: var(--chat-primary);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.chatbot-name {
    font-weight: 600;
    font-size: 16px;
}

.chatbot-status {
    font-size: 11px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chatbot-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--chat-success);
    border-radius: 50%;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

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

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #F8FAFC;
}

.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.bot-message {
    align-self: flex-start;
    background: var(--chat-bot-bubble);
    color: var(--chat-text-bot);
    border-bottom-left-radius: 4px;
}

.user-message {
    align-self: flex-end;
    background: var(--chat-user-bubble);
    color: var(--chat-text-user);
    border-bottom-right-radius: 4px;
}

.chatbot-typing {
    padding: 0 20px 10px;
    font-size: 12px;
    color: var(--chat-text-secondary);
    font-style: italic;
}

.chatbot-quick-replies {
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #F8FAFC;
}

.quick-reply {
    background: #E0E7FF;
    color: #1E3A8A;
    border: none;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-reply:hover {
    background: #C7D2FE;
    transform: translateY(-1px);
}

.chatbot-input-container {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid var(--chat-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-input-container input {
    flex: 1;
    border: 1px solid var(--chat-border);
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: #F9FAFB;
}

.chatbot-input-container input:focus {
    border-color: var(--chat-primary);
}

.chatbot-send {
    background: var(--chat-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.chatbot-send:hover {
    background: #4338CA;
}

@media (max-width: 480px) {
    .chatbot-panel {
        width: calc(100vw - 40px);
        height: 75vh;
        right: -10px;
    }
}

/* ========================================
   ONBOARDING FORM STYLES
   ======================================== */

.centered-card {
    max-width: 500px;
    margin: 40px auto;
}

.btn-full {
    width: 100%;
    justify-content: center;
    position: relative;
    min-height: 50px;
}

.field-error {
    color: #DC2626;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    height: 14px;
}

.general-error {
    background: #FEF2F2;
    color: #DC2626;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #FEE2E2;
}

.hidden {
    display: none !important;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #9CA3AF;
}

input.invalid {
    border-color: #DC2626;
}

input.valid {
    border-color: #059669;
}

/* ========================================
   NEW CARD-STYLE CHECKBOXES
======================================== */

.checkbox-group-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.strength-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.strength-card.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(77, 163, 255, 0.15);
}

.checkbox-label-card {
    display: block;
    width: 100%;
    cursor: pointer;
    padding: 16px;
    margin: 0;
    background: transparent;
    border: none;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.strength-name {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
}

.strength-card.active .strength-name {
    color: var(--primary-color);
}

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

/* Description Box inside Card */
.strength-description {
    background: var(--primary-lighter);
    padding: 16px;
    border-top: 1px solid var(--primary-light);
    font-size: 14px;
    color: var(--text-secondary);
    animation: slideDown 0.3s ease-out;
}

.strength-description.hidden {
    display: none;
}

.strength-description p {
    margin: 0 0 8px 0;
}

.strength-description p:last-child {
    margin-bottom: 0;
}

.example-text {
    font-style: italic;
    color: var(--text-muted);
}

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

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

/* Congratulations Popup */
.congrats-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.3s ease;
}

.congrats-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    animation: popupFadeIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popupFadeIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.congrats-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.congrats-content h2 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 28px;
}

.congrats-content p {
    color: var(--text-secondary);
    font-size: 18px;
}

/* ========================================
   RESULTS PAGE SUB-SECTIONS
   (Scholarships, Colleges, Cut-Off below recommendation)
======================================== */

.results-sub-section {
    margin-top: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-md);
    animation: fadeScale 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.results-sub-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.cutoff-section-block {
    text-align: center;
}

.cutoff-section-block .section-header-wide {
    margin-bottom: 12px;
}

/* Responsive adjustments for sub-sections */
@media (max-width: 768px) {
    .results-sub-section {
        padding: 28px 20px;
        margin-top: 28px;
    }
}

/* ========================================
   QUICK ACCESS ROW
======================================== */

.quick-access-row {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    align-items: stretch;
    /* equal height for all boxes */
}

.quick-box {
    flex: 1;
    background: var(--white);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.06);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    min-height: 80px;
}

.quick-box:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.13);
    transform: translateY(-2px);
}

.quick-box--active {
    border-color: var(--primary-color);
    background: var(--primary-lighter);
    box-shadow: 0 4px 14px rgba(109, 40, 217, 0.15);
}

.quick-box-icon {
    font-size: 26px;
    flex-shrink: 0;
    line-height: 1;
}

.quick-box-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.quick-box-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
}

.quick-box-desc {
    font-size: 11.5px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-box-btn {
    flex-shrink: 0;
    margin-left: auto;
    /* pushes button to the right */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: var(--transition-fast);
    white-space: nowrap;
}

.quick-box-btn:hover {
    opacity: 0.9;
    transform: scale(1.04);
}

/* Fix UI spacing overlap in Cut-Off Calculator card section */
.card-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px;
    align-items: flex-start !important;
    position: relative;
    padding: 20px !important;
    min-height: auto !important;
}

.card-content .quick-box-body {
    margin-left: 0;
    width: 100%;
}

.card-content .quick-box-btn {
    margin-top: auto;
    margin-left: 0;
    /* Reset margin-left auto from quick-box-btn */
    position: relative;
    z-index: 1;
    align-self: flex-start;
}

.card-content .quick-box-desc {
    white-space: normal;
    /* Allow text to wrap to be fully visible */
    overflow: visible;
    text-overflow: clip;
}

@media (max-width: 640px) {
    .quick-access-row {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}

/* ========================================
   USER DETAILS STEP  (shown after Q20)
======================================== */

.ud-card {
    max-width: 520px;
    margin: 0 auto;
}

.ud-header {
    text-align: center;
    margin-bottom: 32px;
}

.ud-trophy {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 12px;
    animation: trophyBounce 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes trophyBounce {
    0% {
        transform: scale(0.4) rotate(-15deg);
        opacity: 0;
    }

    70% {
        transform: scale(1.12) rotate(4deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.ud-privacy-note {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ========================================
   TWO-COLUMN ASSESSMENT LAYOUT
   (Career Psychology Assessment)
======================================== */

/* Override form-section width for the assessment to allow wider layout */
#step-psychology.form-section {
    max-width: 1200px;
}

/* ---- Wrapper: two-column grid ---- */
.assessment-wrapper {
    display: grid !important;
    grid-template-columns: 340px 1fr !important;
    gap: 60px !important;
    align-items: center !important;
    max-width: 1150px !important;
    margin: 0 auto !important;
}

/* ---- LEFT COLUMN: Illustration ---- */
.assessment-illustration {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.assessment-illustration lottie-player {
    width: 260px;
    height: 260px;
    filter: drop-shadow(0 12px 24px rgba(109, 40, 217, 0.12));
    transition: transform 0.4s ease;
    animation: illustrationFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.assessment-illustration lottie-player:hover {
    transform: scale(1.04) translateY(-4px);
}

.illustration-helper-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--primary-lighter);
    border: 1px solid var(--primary-light);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: left;
    max-width: 280px;
}

.illustration-helper-card .helper-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 2px;
}

.illustration-helper-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ---- RIGHT COLUMN: Question Content ---- */
.assessment-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Step badge: "Question X of Y" */
.q-step-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
    width: fit-content;
}

/* Question title */
.q-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 24px;
    line-height: 1.3;
    -webkit-text-fill-color: var(--text-primary);
    background: none;
}

/* ---- Options Grid ---- */
.question-options {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 18px !important;
    margin-top: 25px !important;
    margin-bottom: 16px !important;
}

/* Option buttons */
.q-option-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    transition: 0.25s !important;
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
    width: 100%;
    position: relative;
}

.q-option-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-lighter), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.q-option-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}

.q-option-btn:hover::before {
    opacity: 1;
}

.q-option-btn.selected {
    border-color: var(--primary-color) !important;
    background: var(--primary-lighter) !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.12), 0 8px 20px rgba(109, 40, 217, 0.12) !important;
}

.q-option-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    flex: 1;
    position: relative;
    z-index: 1;
}

.q-option-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--success-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.q-option-btn.selected .q-option-check {
    opacity: 1;
    transform: scale(1);
}

/* ---- Mini Progress Track ---- */
.q-progress-track {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 6px;
}

.q-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 99px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.q-progress-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 20px;
}

/* ---- Button group alignment ---- */
.q-button-group {
    margin-top: 8px !important;
}

/* ---- Validation Message ---- */
.q-validation-msg {
    color: #dc2626;
    font-size: 14px;
    font-weight: 600;
    margin-top: -10px;
    margin-bottom: 20px;
    padding: 10px 16px;
    background: #fef2f2;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
    animation: fadeInSlideUp 0.3s ease-out;
    width: fit-content;
}

@keyframes fadeInSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.shake {
    animation: shakeEffect 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shakeEffect {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* ===========================================
   RESPONSIVE: Tablet (768px)
=========================================== */
@media (max-width: 900px) {
    .assessment-wrapper {
        grid-template-columns: 260px 1fr !important;
        gap: 36px !important;
    }

    .assessment-illustration lottie-player {
        width: 180px;
        height: 180px;
    }

    .q-title {
        font-size: 22px;
    }
}

/* =====================================
   ABSOLUTE MOBILE HEADER FIX
===================================== */
@media (max-width: 480px) {

    /* REMOVE GRID COMPLETELY */
    #site-header .container {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        gap: 16px !important;
        align-items: center !important;
    }

    /* FORCE LOGO CENTER */
    #site-header .logo {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
    }

    /* FIX INLINE IMAGE HEIGHT */
    #site-header .logo img {
        height: 80px !important;
        width: auto !important;
    }

    /* STACK RIGHT SECTION */
    #site-header .header-right {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    #site-header .header-right .cta-button {
        width: 100% !important;
        max-width: 260px !important;
    }
}
/* ===== MOBILE FIX ===== */
@media (max-width: 768px) {

    .container {
        padding: 0 16px;
    }

    .main-container {
        padding: 16px 0;
    }

    /* If any grid layout exists */
    .grid,
    .cards,
    .features,
    .hero-section {
        display: block !important;
    }

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

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

}
/* ===== HERO MOBILE FIX ===== */
@media (max-width: 768px) {

    .hero-section {
        padding: 60px 16px;
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

}
/* ===== FINAL MOBILE POLISH ===== */
@media (max-width: 768px) {

    .hero-section {
        padding: 50px 16px;
        flex-direction: column;
    }

    .hero-content {
        width: 100%;
        padding: 0 10px;
    }

    h1 {
        font-size: 28px;
        line-height: 1.3;
    }

    .feature-card,
    .features,
    .hero-buttons {
        width: 100%;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

}
/* version 2 mobile update */
/* =====================================
   MOBILE QUESTION LAYOUT FIX
===================================== */
@media (max-width: 768px) {

    /* Hero / Question Wrapper */
    .hero-section,
    .question-wrapper,
    .assessment-wrapper {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Image / Animation */
    .hero-image,
    .question-image,
    .animation-container {
        width: 100% !important;
        max-width: 260px !important;
        margin: 0 auto 20px auto !important;
        display: flex;
        justify-content: center;
    }

    .hero-image img,
    .question-image img {
        width: 100% !important;
        height: auto !important;
    }

    /* Question Text */
    .question-title,
    .hero-title {
        width: 100% !important;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
        font-size: 22px !important;
        line-height: 1.4 !important;
    }

    /* Options alignment */
    .options-container,
    .answers-wrapper {
        width: 100% !important;
        margin-top: 10px !important;
    }
}
/* =====================================
   MOBILE BUTTON ALIGN FIX
===================================== */
@media (max-width: 768px) {

    .button-group,
    .buttons-wrapper,
    .cta-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 14px;
        margin-top: 20px;
    }

    .button-group button,
    .buttons-wrapper button,
    .cta-container button {
        width: 100% !important;
        max-width: 100% !important;
        height: 52px;
        border-radius: 14px;
        font-size: 16px;
        font-weight: 600;
    }

    /* Back button */
    .btn-back {
        border: 2px solid #6C4BFF;
        background: transparent;
        color: #6C4BFF;
    }

    /* Next button */
    .btn-next {
        background: #E5E7EB;
        color: #9CA3AF;
    }
}
/* =====================================
   MOBILE SIDE-BY-SIDE BUTTON ALIGN
===================================== */
@media (max-width: 768px) {

    .button-group,
    .q-button-group {
        display: flex !important;
        flex-direction: row !important;   /* side by side */
        justify-content: center !important;
        align-items: center !important;
        gap: 12px;
        width: 100%;
        margin-top: 20px;
    }

    .button-group .btn,
    .q-button-group .btn {
        flex: 1;              /* equal width */
        height: 52px;
        max-width: 160px;     /* control button size */
    }

}
/* version 2 mobile update */
