:root {
    --primary: #0a1f5c;
    --primary-light: #1a3a8f;
    --accent: #e8a020;
    --accent-glow: rgba(232, 160, 32, 0.3);
    --blue: #3b82f6;
    --bg: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-lg: 24px;
    --radius-md: 16px;
    --shadow-lg: 0 25px 50px -12px rgba(10, 31, 92, 0.15);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVIGATION Bar --- */
nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-inner {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group { display: flex; align-items: center; gap: 15px; }

.home-pill {
    background: var(--primary);
    color: white;
    padding: 6px 11px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(10, 31, 92, 0.2);
}

.home-pill:active {
    transform: translateY(-2px);
    background: var(--blue);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.nav-link-track {
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    color: var(--primary);
    letter-spacing: 1px;
    font-family: 'Rajdhani', sans-serif;
    position: relative;
    padding: 5px 0;
}

.nav-link-track::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--blue);
    transition: width 0.3s;
}

.nav-link-track:active::after { width: 100%; }

/* --- HERO SECTION --- */
.hero {
    background: radial-gradient(circle at top right, #1a3a8f, #0a1f5c);
    padding: 80px 24px 120px;
    text-align: center;
    position: relative;
    color: white;
    margin-bottom: 60px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
}

.hero h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(32px, 6vw, 52px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 16px;
    position: relative;
}

.hero p {
    font-size: 18px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
    position: relative;
}

/* --- UNI CONTEXT BANNER --- */
.uni-banner {
    max-width: 800px;
    margin: -50px auto 40px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-md);
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.7);
    z-index: 10;
    position: relative;
    display: none;
}

.uni-banner img { width: 90px; height: 80px; object-fit: contain; flex-shrink: 0; }

.uni-banner-info strong { 
    display: block; 
    font-size: 16px; 
    color: var(--primary); 
    font-weight: 700; 
    margin-bottom: 2px;
}

.uni-banner-info span { font-size: 13px; color: var(--text-muted); font-weight: 500;}

.uni-banner-change { 
    margin-left: auto; 
    font-size: 13px; 
    color: var(--blue); 
    text-decoration: none; 
    white-space: nowrap; 
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(59, 130, 246, 0.1);
    transition: all 0.3s;
}

.uni-banner-change:active { background: rgba(59, 130, 246, 0.2); }

/* --- PROGRESS STEPS --- */
.steps-container {
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 24px;
}

.steps-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: white;
    padding: 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

/* Connecting line */
.steps-bar::before {
    content: '';
    position: absolute;
    top: 45px; /* Centers with circles */
    left: 50px;
    right: 50px;
    height: 3px;
    background: var(--border);
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Active State */
.step.active .step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
    animation: pulseActive 2s infinite;
}
.step.active .step-label { color: var(--primary); font-weight: 700; }

/* Completed State */
.step.done .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.step.done::after {
    content: '\f00c'; /* FontAwesome Check */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 15px;
    font-size: 14px;
    color: white;
}
.step.done .step-number { opacity: 0; } /* Hide number when checked */

@keyframes pulseActive {
    0% { box-shadow: 0 0 0 0 rgba(232, 160, 32, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(232, 160, 32, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 160, 32, 0); }
}

/* --- MAIN CONTENT LAYOUT --- */
.apply-body {
    max-width: 1300px;
    margin: 0 auto 100px;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}
.main-content {
    display: flex;
    flex-direction: column;
    min-height: 1200px;
}
/* --- FORM CARD (Tally Embed) --- */
.form-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.form-card-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    padding: 30px 40px;
    color: white;
}

.form-card-header h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.form-card-header p {
    font-size: 14px;
    opacity: 0.8;
    font-weight: 400;
    text-align: justify;
}

.form-card-header p a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}
.form-card-header p a:active { text-decoration: underline; }

.secure-note {
    padding: 16px 40px;
    background: #f1f5f9;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.tally-wrap iframe {
    width: 100%;
    border: none;
    display: block;
    min-height: 900px;
}

/* --- FAQ SECTION --- */
.faq-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 30px;
    opacity: 0;
}

.faq-icon {
    width: 60px;          
    height: 60px;        
    object-fit: contain;  
    flex-shrink: 0;       
    display: block;
}

body.loaded .faq-card {
    animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) 0.7s forwards;
}

.faq-header {
    background: linear-gradient(135deg, var(--bg), white);
    padding: 25px 40px;
    border-bottom: 1px solid var(--border);
}

.faq-header h3 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.faq-header h3 i {
    color: var(--accent);
}

.faq-content {
    padding: 10px 40px 20px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

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

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 20px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
}

.faq-question:active {
    color: var(--blue);
}

.faq-question i {
    color: var(--blue);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}

.faq-item.active .faq-question {
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding-bottom: 23px;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.9;
    text-align: justify;
}

@media (max-width: 768px) {
    .faq-header, .faq-content {
    padding-left: 25px;
    padding-right: 25px;
    }
}

/* --- SIDEBAR --- */
.apply-sidebar { display: flex; flex-direction: column; gap: 24px; position: sticky; top: 100px; }

.side-card { 
    background: white; 
    border-radius: var(--radius-md); 
    padding: 30px; 
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.side-card h4 { 
    font-family: 'Rajdhani', sans-serif; 
    font-size: 16px; 
    font-weight: 700; 
    color: var(--primary); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
}

/* Flow List */
.what-happens { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.what-happens li { display: flex; gap: 15px; font-size: 14px; color: var(--text-main); line-height: 1.5; font-weight: 500; text-align: justify;}
.wh-num { 
    width: 28px; height: 28px; 
    border-radius: 8px; 
    background: rgba(10, 31, 92, 0.1); 
    color: var(--primary); 
    display: flex; align-items: center; justify-content: center; 
    font-family: 'Rajdhani', sans-serif;
    font-size: 14px; font-weight: 700; 
    flex-shrink: 0; 
    margin-top: 2px;
}

/* Docs List */
.docs-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.docs-list li { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    font-size: 13.5px; 
    color: var(--text-main); 
    font-weight: 500;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: 0.3s;
}
.docs-list li i { color: var(--blue); font-size: 14px; }

/* WhatsApp Help Panel */
.whatsapp-alt { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    background: #ecfdf5; 
    border: 1px solid #a7f3d0; 
    border-radius: var(--radius-md); 
    padding: 20px; 
    text-decoration: none; 
    transition: all 0.3s; 
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.whatsapp-alt:active { 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
    background: #fff;
}

.whatsapp-alt .wa-icon { 
    width: 50px; height: 50px; 
    background: #25D366; 
    border-radius: 15px; 
    display: flex; align-items: center; justify-content: center; 
    color: #fff; font-size: 24px; 
    flex-shrink: 0; 
}

.whatsapp-alt .wa-text strong { display: block; font-size: 15px; color: #065f46; font-weight: 700; margin-bottom: 2px;}
.whatsapp-alt .wa-text span { font-size: 13px; color: #047857; font-weight: 500; }

/* Status Tracker Panel */
.status-panel {
    text-align: center; 
    padding: 25px;
    background: var(--primary); 
    border-radius: var(--radius-md);
    color: white;
    box-shadow: var(--shadow-md);
}
.status-panel p { font-size: 13px; opacity: 0.8; margin-bottom: 15px; font-weight: 400; }
.status-panel a { 
    font-size: 14px; 
    font-weight: 700; 
    color: var(--primary); 
    background: white;
    text-decoration: none; 
    display: inline-flex; align-items: center; gap: 8px; 
    padding: 12px 24px;
    border-radius: 50px;
    transition: 0.3s;
}
.status-panel a:active { 
    background: var(--blue);
    color: white;
    transform: scale(1.05);
}

/* --- RESPONSIVE --- */
@media (max-width: 1000px) {
    .apply-body { grid-template-columns: 1fr; }
    .apply-sidebar { position: static; order: -1; }
    .form-card-header, .secure-note { padding-left: 25px; padding-right: 25px; }
}

@media (max-width: 768px) {
    .hero { padding: 60px 24px 100px; }
    .uni-banner { flex-direction: column; text-align: center; margin-left: 24px; margin-right: 24px;}
    .uni-banner-change { margin: 10px 0 0 0; }
    
    .steps-bar { padding: 15px; }
    .steps-bar::before { top: 35px; left: 30px; right: 30px; }
    .step-circle { width: 35px; height: 35px; font-size: 16px; border-width: 2px;}
    .step-label { font-size: 11px; }
    .step.done::after { top: 10px; font-size: 12px; }
}

@media (max-width: 600px) {

    nav {height: auto;}

    .nav-inner {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 12px;
    padding: 20px 20px;
    }

    .logo-group {
        display: grid;
        grid-template-columns: auto auto;
        grid-template-areas:
        "logo logo"
        "home track";
        justify-content: center;
        align-items: center;
        gap: 12px 18px;
        width: 100%;
    }

    .logo {
        grid-area: logo;
        justify-self: center;
    }
    .home-pill {
        grid-area: home;
    }

    .nav-link-track {
        grid-area: track;
        font-size: 15px;
        white-space: nowrap;
    }
}

@media (hover: hover) and (pointer: fine) {
    .home-pill:hover {
    transform: translateY(-2px);
    background: var(--blue);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    }

    .nav-link-track:hover::after { width: 100%; }
    .uni-banner-change:hover { background: rgba(59, 130, 246, 0.2); }
    .form-card-header p a:hover { text-decoration: underline; }
    .docs-list li:hover { border-color: var(--border); background: #fff;}

    .whatsapp-alt:hover { 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
    background: #fff;
    }

    .status-panel a:hover { 
    background: var(--blue);
    color: white;
    transform: scale(1.05);
    }
    .faq-question:hover {
    color: var(--blue);
    }
}
/* ==================================================
PAGE LOAD ANIMATIONS
================================================== */

/* Hide elements before animation */
nav,
.hero,
.uni-banner,
.form-card,
.apply-sidebar,
footer,
.hero h1,
.hero p {
    opacity: 0;
}

/* Animation Keyframes */
@keyframes fadeUp {
    from {
    opacity: 0;
    transform: translateY(30px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

@keyframes fadeScale {
    from {
    opacity: 0;
    transform: scale(0.96);
    }
    to {
    opacity: 1;
    transform: scale(1);
    }
}

/* Trigger animations once page is fully loaded */
body.loaded nav {
    animation: fadeUp 0.6s ease-out forwards;
}

body.loaded .hero {
    animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) 0.15s forwards;
}

body.loaded .hero h1 {
    animation: fadeUp 0.8s ease-out 0.35s forwards;
}

body.loaded .hero p {
    animation: fadeUp 0.8s ease-out 0.55s forwards;
}

body.loaded .uni-banner {
    animation: fadeScale 0.8s ease-out 0.45s forwards;
}

body.loaded .form-card {
    animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) 0.6s forwards;
}

body.loaded .apply-sidebar {
    animation: fadeUp 0.9s cubic-bezier(.22,1,.36,1) 0.8s forwards;
}

body.loaded footer {
    animation: fadeUp 0.8s ease-out 1s forwards;
}

/* Smooth card interactions */
.side-card,
.whatsapp-alt,
.status-panel,
.form-card,
.uni-banner {
    transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

@media (hover:hover) {
    .side-card:hover {
    transform: translateY(-4px);
    }

    .form-card:hover {
    transform: translateY(-2px);
    }

    .uni-banner:hover {
    transform: translateY(-2px);
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    }
}