
:root {
    --navy: #0a1f5c; --blue: #1a6fc4; --gold: #e8a020;
    --light: #f4f6fb; --text: #333; --gray: #888; --border: #dde4f0;
    --green: #16a34a; --red: #c0392b; --orange: #d97706;

    --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;
    --radius: 20px;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}
* { 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;
}

/* NAV */
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;
}
.nav-link {
    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::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--blue);
    transition: width 0.3s;
}

.nav-link:active::after { width: 100%; }
.logo-group { display: flex; align-items: center; gap: 15px; }

.home-btn { 
    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-btn:active { 
    transform: translateY(-2px);
    background: var(--blue);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* HERO */
.status-hero {
    background: radial-gradient(circle at top right, #1a3a8f, #0a1f5c);
    padding: 100px 24px 140px;
    text-align: center;
    position: relative;
    color: white;
    overflow: hidden;
}

.status-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;
}

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

.status-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}
/* SEARCH CARD */
.search-container {
    max-width: 650px;
    margin: -70px auto 60px;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}
.search-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: 0 30px 60px -12px rgba(10, 31, 92, 0.18);
    border: 1px solid rgba(255,255,255,0.7);
}
.search-card h2 { 
    font-family: 'Rajdhani', sans-serif;
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary); 
}
.search-card .instruction {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.search-row {
    display: flex;
    gap: 12px;
    background: #f1f5f9;
    padding: 8px;
    border-radius: 16px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}
.search-row:focus-within {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
.search-card p { font-size: 13px; color: var(--gray); margin-bottom: 20px; }
.search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    outline: none;
}
.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}
.search-btn:hover {
    background: var(--blue);
    transform: scale(1.02);
}    
.search-btn:disabled { background: var(--border); color: var(--gray); cursor: not-allowed; }


/* MAIN CONTENT */
.status-body {
    max-width: 900px;
    margin: 0 auto 100px;
    padding: 0 24px;
}
/* ERROR STATE */
.status-error {
    background: #fff; border-radius: 14px; padding: 40px;
    text-align: center; box-shadow: 0 2px 16px rgba(10,31,92,0.07);
    display: none;
}
.status-error h3 { font-family: 'Rajdhani', sans-serif; font-size: 22px; color: var(--navy); margin-bottom: 8px; }
.status-error p { font-size: 13.5px; color: var(--gray); line-height: 1.65; max-width: 380px; margin: 0 auto 20px; }
.btn-wa-help { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; padding: 11px 22px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 700; transition: background 0.2s; }
.btn-wa-help i{font-size: 20px;}
.btn-wa-help:active { background: #1da851; }
.search-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    display: inline-block;
}

/* LOADING STATE */
.status-loading { text-align: center; padding: 60px 20px; display: none; }
.status-loading .spinner { width: 44px; height: 44px; border: 4px solid var(--border); border-top-color: var(--navy); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.status-loading p { font-size: 14px; color: var(--gray); }

/* RESULT CARD */
.status-result { display: none; animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1);}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* APPLICANT HEADER */
.result-header {
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 20px; 
    padding: 30px;
    box-shadow: 0 10px 30px -5px rgba(10,31,92,0.08), 0 4px 6px -2px rgba(10,31,92,0.04);
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 24px;
    display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.result-avatar {
    width: 64px; height: 64px; border-radius: 50%; 
    background: linear-gradient(135deg, var(--primary), var(--blue));
    box-shadow: 0 8px 16px rgba(26, 111, 196, 0.25);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: 700; color: #fff;
    flex-shrink: 0;
    border: 3px solid #fff;
}
.result-header-info { flex: 1; }
.result-header-info h2 { font-family: 'Rajdhani', sans-serif; font-size: 26px; font-weight: 700; color: var(--navy); margin-bottom: 2px;}
.result-header-info .ref { font-size: 13px; color: var(--gray); letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase;}
.result-header-info .uni-name { font-size: 15px; color: var(--blue); margin-top: 6px; font-weight: 700; display: inline-block; background: #eff6ff; padding: 4px 12px; border-radius: 8px;}
.status-badge {
    padding: 10px 20px; border-radius: 30px; font-size: 12px; font-weight: 800;
    letter-spacing: 0.8px; text-transform: uppercase; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}
.status-badge.docs     { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.status-badge.review   { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.status-badge.offer    { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.status-badge.visa     { background: #ede9fe; color: #6d28d9; border: 1px solid #ddd6fe; }
.status-badge.complete { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.status-badge.pending  { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }

/* PROGRESS TIMELINE */
.timeline-card {
    background: #ffffff; border-radius: 20px; padding: 32px;
    box-shadow: 0 10px 30px -5px rgba(10,31,92,0.06); 
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 24px;
}
.timeline-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 30px; display: flex; align-items: center; gap: 10px;}
.timeline-card h3::before { content: ''; width: 8px; height: 8px; background: var(--blue); border-radius: 50%; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-step { display: flex; gap: 28px; position: relative; }

/* Timeline Connection Lines */
.tl-step:not(:last-child)::after {
    content: ''; position: absolute; left: 19px; top: 40px;
    width: 3px; bottom: -8px; background: #e2e8f0;
    border-radius: 3px;
}
.tl-step.done::after { background: linear-gradient(to bottom, var(--green), #a7f3d0); }
.tl-step.active::after { background: #e2e8f0; }

/* Timeline Icons */
.tl-icon {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
    z-index: 1; border: 3px solid #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.06);
}
.tl-step.done .tl-icon    { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; box-shadow: 0 6px 12px rgba(22, 163, 74, 0.25); }
.tl-step.active .tl-icon  { background: linear-gradient(135deg, var(--gold), #fcd34d); color: #fff; box-shadow: 0 0 0 6px rgba(232,160,32,0.15); animation: pulseGlow 2s infinite; }
.tl-step.pending .tl-icon { background: #f1f5f9; color: #94a3b8; }

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

/* Active Step Indicator Bar */
.tl-step.active .tl-content::before {
    content: ''; 
    position: absolute; 
    left: -14px; /* Move this value up or down to adjust distance from the box */
    top: 0; 
    width: 6px; 
    height: 100%; 
    background: linear-gradient(to bottom, var(--gold), #f59e0b);
    border-radius: 6px;
}

/* Timeline Content */
.tl-content { padding-bottom: 40px; flex: 1; margin-top: 6px;}
.tl-content:last-child { padding-bottom: 0; }

.tl-title { font-size: 16px; font-weight: 800; color: var(--navy); margin-bottom: 6px; letter-spacing: -0.3px;}
.tl-step.pending .tl-title { color: #94a3b8; }

.tl-desc { font-size: 14px; color: var(--gray); line-height: 1.7; }
.tl-step.done .tl-desc { color: #64748b; }

.tl-date { display: inline-block; font-size: 11px; color: var(--blue); font-weight: 700; margin-top: 8px; background: #eff6ff; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px;}
.tl-step.done .tl-date { background: #f1f5f9; color: #64748b; }

/* Emphasize the Active Step Content */
.tl-step.active .tl-content {
    position: relative;
    background: #fffbeb;
    border-radius: 15px;
    padding: 16px 20px 24px 20px;
    margin-left: -8px;
    margin-top: 16px;
    margin-bottom: 24px;
}
.tl-step.active .tl-title { color: #b45309; font-size: 17px;}
.tl-step.active .tl-desc { color: #92400e; font-weight: 600;}

/* MESSAGE CARD */
.message-card {
    background: #fff; border-radius: 20px; padding: 32px;
    box-shadow: 0 10px 30px -5px rgba(10,31,92,0.06); 
    border: 1px solid rgba(226, 232, 240, 0.8);
    margin-bottom: 24px;
}
.message-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 17px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px;}
.message-card h3 i { color: var(--blue); }

.message-bubble { 
    background: linear-gradient(to right, #f8fafc, #f1f5f9); 
    border-radius: 16px; 
    padding: 20px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.message-bubble p { font-size: 14px; color: var(--text-main); line-height: 1.7; font-weight: 500;}
.message-bubble .msg-date { font-size: 12px; color: var(--gray); margin-top: 12px; font-weight: 600; display: block;}

/* NEXT STEPS CARD */
.next-card {
    background: linear-gradient(135deg, #0a1f5c 0%, #1e3a8a 100%); 
    border-radius: 20px;
    padding: 32px; margin-bottom: 24px;
    position: relative; overflow: hidden;
    box-shadow: 0 15px 35px -5px rgba(10, 31, 92, 0.3);
}
.next-card::before {
    content: ''; position: absolute; top: -50%; left: -20%; width: 150%; height: 150%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.next-card h3 { font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700; color: #93c5fd; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; position: relative; z-index: 2;}
.next-card p { font-size: 15px; color: #f8fafc; line-height: 1.7; margin-bottom: 24px; font-weight: 300; position: relative; z-index: 2;}
.next-card a { 
    display: inline-flex; align-items: center; gap: 10px; 
    background: linear-gradient(to right, var(--gold), #f59e0b); 
    color: #fff; padding: 14px 28px; border-radius: 12px; 
    text-decoration: none; font-size: 14px; font-weight: 800; 
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 20px rgba(232, 160, 32, 0.35);
    position: relative; z-index: 2;
}
.next-card a:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(232, 160, 32, 0.3); }
.next-card a i { font-size: 28px; }

/* --- HOW IT WORKS GRID --- */
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title span {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: 2px;
}

.section-title h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 32px;
    color: var(--primary);
}

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 24px;
}

.hiw-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow);
}


.hiw-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--blue));
    color: white;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 24px;
    transform: rotate(-5deg);
    transition: 0.3s;
}



.hiw-card h4 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary);
}

.hiw-card p {
    color: var(--text-muted);
    font-size: 15px;
}

@media(max-width: 995px) {
    .hiw-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    }

    .hiw-card:nth-child(3) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 320px;
    }
}
    

@media (max-width: 768px) {
    .status-hero { padding: 60px 24px 100px; }
    .search-card { padding: 24px; }
    .search-row { flex-direction: column; background: transparent; padding: 0; }
    .search-btn { width: 100%; justify-content: center; padding: 16px; }
    .search-input { background: white; border-radius: 12px; margin-bottom: 8px; border: 1px solid #e2e8f0; }
}

@media (max-width: 600px) {
    .hiw-grid { grid-template-columns: 1fr; }
    .nav-link{
        grid-area: track;
        font-size: 15px;
        white-space: nowrap;
    }
    .hiw-card:nth-child(3) {
    max-width: none;
    }

    .result-header { 
    display: grid; grid-template-columns: 64px 1fr;
    grid-template-areas:
        "avatar info"
        "avatar badge";
    gap: 8px 10px;
    align-items: start;
    }
    .result-avatar { grid-area: avatar;}
    .result-header-info { grid-area: info;}
    .status-badge { grid-area: badge; justify-self: start; margin-top: 4px;}

}
@media (max-width: 400px) {
    nav {height: auto;}
    .nav-inner {
    flex-direction: column; align-items: center; height: auto; gap: 12px; padding: 12px 10px;
    }
    .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-btn {
        grid-area: home;
    }
    
}

@media (hover: hover) and (pointer: fine) {
    .nav-link:hover::after { width: 100%; }
    .home-btn:hover { 
    transform: translateY(-2px);
    background: var(--blue);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    }
    .btn-wa-help:hover { background: #1da851; }
    .next-card a:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(232, 160, 32, 0.5); }

    .hiw-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(10, 31, 92, 0.1);
    }    
    .hiw-card:hover .hiw-icon {
    transform: rotate(0deg) scale(1.1)
    }

}
/* ===== GLOBAL ON-LOAD ANIMATION ===== */

body {
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

body.loaded {
    opacity: 1;
    transform: scale(1);
}

.status-hero,
.search-container,
.status-body,
.hiw-grid {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s ease;
}

body.loaded .status-hero {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

body.loaded .search-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
}

body.loaded .status-body {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

body.loaded .hiw-grid {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.55s;
}

nav {
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.6s ease;
}

body.loaded nav {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.05s;
}