/* Punjab Housing Schemes VIP Portal - index.css (e-bikescheme.pk Dark Modern Theme) */

:root {
    --bg-dark: #f4f6f9;               /* Light slate-gray background */
    --card-bg: #ffffff;               /* Solid white cards */
    --card-border: #e2e8f0;           /* Soft gray borders */
    --text-white: #0f172a;            /* Dark slate text */
    --text-gray: #475569;             /* Charcoal body text */
    --accent-cyan: #006b3f;           /* Official Punjab green */
    --accent-green: #008f53;          /* Secondary green for success status */
    --accent-gold: #fbbf24;           /* Gold highlight color */
    --accent-gold-dark: #d97706;
    --btn-register: #006b3f;          /* Green register button */
    --btn-cancel: #ef4444;            /* Red cancel button */
    --white: #ffffff;                 /* Literal white for elements on green background */
    --font-en: 'Outfit', sans-serif;
    --font-ur: 'Noto Naskh Arabic', sans-serif;
    --card-radius: 16px;
    --input-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-en);
    min-height: 100vh;
    padding: 0;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Background Atmospheric Grid */
body::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Floating Light Orbs - Hidden in Light Theme */
.bg-orb {
    display: none !important;
}
.orb-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    left: 5%;
    background: rgba(0, 212, 255, 0.09);
    animation: orbFloat 10s ease-in-out infinite;
}
.orb-2 {
    width: 350px;
    height: 350px;
    bottom: 10%;
    right: 5%;
    background: rgba(0, 107, 63, 0.08);
    animation: orbFloat 12s ease-in-out infinite reverse;
}
.orb-3 {
    width: 250px;
    height: 250px;
    top: 40%;
    left: 45%;
    background: rgba(251, 191, 36, 0.04);
    animation: orbFloat 14s ease-in-out infinite 2s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.1); }
}

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes neonPulse {
    0% { box-shadow: 0 0 10px rgba(0,212,255,0.4); }
    50% { box-shadow: 0 0 20px rgba(0,212,255,0.8); }
    100% { box-shadow: 0 0 10px rgba(0,212,255,0.4); }
}

/* Container */
.app-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 10;
}

/* Stretch top-level sections inside .app-container to full width */
.app-container > section, 
.app-container > article,
.app-container > main,
.app-container > footer {
    width: 100%;
    border-radius: 0 !important;
    margin: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Glass/White Card Utility */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 28px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    margin-bottom: 24px;
    color: var(--text-white);
}

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

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 107, 63, 0.35);
}

/* --- Top News Announcement Bar --- */
.top-news-ticker {
    background: #00552b; /* solid deep government green */
    color: var(--text-white);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px max(24px, calc((100vw - 1200px) / 2));
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ticker-badge {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-cyan));
    color: var(--bg-dark);
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 800;
    animation: flash 1.5s infinite;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0, 107, 63, 0.4);
}

.ticker-track {
    display: inline-block;
    padding-left: 100%;
    animation: ticker-scroll 28s linear infinite;
    color: var(--white);
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Header styling */
.glass-header {
    background: linear-gradient(90deg, #010f2b 0%, #004426 100%) !important;
    backdrop-filter: none !important;
    border: none !important;
    border-bottom: 2.5px solid var(--accent-cyan) !important;
    border-radius: 0 !important;
    padding: 0 max(24px, calc((100vw - 1200px) / 2)) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    flex-wrap: nowrap;
    gap: 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 76px;
}

@media (max-width: 991px) {
    .glass-header {
        position: relative;
        min-height: 70px;
        height: auto !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 15px !important;
    }
    
    .mobile-header-actions {
        display: flex !important;
    }
    
    .header-nav {
        display: none !important;
    }
    
    .header-nav.active {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: linear-gradient(180deg, #010f2b 0%, #004426 100%);
        padding: 20px;
        border-bottom: 2.5px solid var(--accent-cyan);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        gap: 15px;
        z-index: 999;
    }
    
    .nav-apply-link {
        display: none !important; /* Hide duplicate in mobile list since it is a header button */
    }
    
    .nav-link {
        width: 100%;
        text-align: left;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Responsive Font and Image sizes for Header on Mobile */
    .logo-text h1 {
        font-size: 1.1rem !important;
    }
    .logo-text span {
        font-size: 0.68rem !important;
        letter-spacing: 0.2px !important;
    }
    .logo-image {
        height: 44px !important;
    }
}

@media (max-width: 480px) {
    .glass-header {
        padding: 6px 12px !important;
    }
    .logo-text span {
        display: none !important; /* Hide subtitle on very small screens to avoid wrapping */
    }
    .logo-text h1 {
        font-size: 0.95rem !important;
    }
    .logo-image {
        height: 38px !important;
        margin-right: 4px !important;
    }
    .btn-mobile-apply {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
    }
    .top-news-ticker {
        font-size: 0.75rem !important;
        padding: 6px 15px !important;
    }
    .ticker-badge {
        padding: 2px 10px !important;
        font-size: 0.65rem !important;
    }
}

/* Glass style for footer */
.glass-footer {
    background: linear-gradient(90deg, #010f2b 0%, #004426 100%) !important;
    backdrop-filter: none !important;
    border: none !important;
    border-top: 2.5px solid var(--accent-cyan) !important;
    border-radius: 0 !important;
    padding: 50px max(24px, calc((100vw - 1200px) / 2)) !important;
    color: rgba(255, 255, 255, 0.7) !important;
    box-shadow: none !important;
}

.glass-footer h5 {
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.glass-footer a {
    color: #34d399 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.glass-footer a:hover {
    color: var(--accent-cyan) !important;
}

.glass-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

.glass-footer li {
    color: rgba(255, 255, 255, 0.85) !important;
}

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

.logo-text h1 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-text span {
    font-size: 0.78rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.8px;
}

.header-nav {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    padding: 6px 0;
    position: relative;
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-gold);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    overflow: hidden;
    color: var(--white);
    padding: 70px max(24px, calc((100vw - 1200px) / 2)) 90px;
    box-shadow: none;
    animation: heroZoom 25s ease-in-out infinite alternate;
    width: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(1, 12, 30, 0.94) 0%, rgba(1, 20, 12, 0.8) 60%, rgba(0, 107, 63, 0.4) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 950px) {
    .hero-container {
        grid-template-columns: 1fr;
    }
    .hero-section {
        padding: 30px 20px 20px;
    }
    .cm-portrait-container {
        width: 280px;
        height: 320px;
        margin: 20px auto 0;
        border-radius: 16px;
        border-bottom: 4px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    }
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 5px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-green) 50%, var(--accent-cyan) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 4s linear infinite;
    display: inline-block;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.cm-message-bubble {
    background: rgba(255, 255, 255, 0.04);
    border-left: 4px solid var(--accent-green);
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cm-message-bubble h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-green);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.cm-message-bubble p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
}

.cm-signature {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-top: 30px;
}

.btn-hero-action {
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px 28px;
    font-size: 0.92rem;
    font-weight: 800;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.btn-hero-action:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn-hero-action.primary {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); /* Gold/orange primary button */
    color: #000000;
    font-weight: 800;
    border: none;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.35);
}

.btn-hero-action.primary:hover {
    background: linear-gradient(135deg, #fcd34d 0%, #b45309 100%);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.5);
}

.btn-hero-action.secondary {
    background: rgba(0, 143, 83, 0.15);
    color: var(--accent-cyan);
    border: 1.5px solid var(--accent-cyan);
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(0, 143, 83, 0.1);
}

.btn-hero-action.secondary:hover {
    background: rgba(0, 143, 83, 0.3);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 143, 83, 0.3);
}

.hero-helpline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0284c7;
    border-radius: 30px;
    padding: 8px 24px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.hero-helpline i {
    font-size: 1.3rem;
}

.hero-helpline div {
    display: flex;
    flex-direction: column;
}

.hero-helpline small {
    font-size: 0.68rem;
    text-transform: uppercase;
    font-weight: 600;
}

.hero-helpline strong {
    font-size: 1rem;
    font-weight: 800;
}

/* CM Portrait Overlay */
.hero-right {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
}

.cm-portrait-container {
    width: 360px;
    height: 440px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    box-shadow: 0 -15px 35px rgba(0, 0, 0, 0.35);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background: transparent;
    margin: 0 0 -90px auto; /* sits exactly on bottom border of hero section */
    position: relative;
}

.cm-portrait-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* Mobile Toggle Header Actions styling */
.mobile-header-actions {
    display: none;
    align-items: center;
    gap: 15px;
}

.btn-mobile-apply {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-gold) 100%);
    color: #010f2b !important;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: 20px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
    transition: all 0.3s ease;
    border: none;
}

.btn-mobile-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 229, 255, 0.45);
}

.menu-toggle {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: var(--accent-cyan);
}

/* --- Official Stat Dashboard Grid --- */
.stats-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    padding: 35px max(24px, calc((100vw - 1200px) / 2));
    background: #010c1e;
}

.tool-section-wrapper {
    width: 100%;
    padding: 60px max(24px, calc((100vw - 1200px) / 2)) !important;
    border-bottom: 1.5px solid rgba(0, 107, 63, 0.1) !important;
}

.tool-section-wrapper.bg-light-gray {
    background-color: #f4f6f9 !important;
}

.tool-section-wrapper.bg-white {
    background-color: #ffffff !important;
}

.tool-section-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 1024px) {
    .main-content-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 20px;
    }
}

.stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--card-radius);
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 107, 63, 0.25);
}

.stat-icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
}

.stat-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding-left: 18px;
}

.stat-info strong {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-white);
    line-height: 1.1;
}

.stat-info .unit {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-gray);
}

.stat-info span {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 500;
    margin-top: 2px;
}

.stat-chart {
    font-size: 1.8rem;
    opacity: 0.35;
}

.blue-theme .stat-icon-wrapper {
    background: rgba(0, 180, 255, 0.1);
    color: var(--accent-cyan);
}
.blue-theme .stat-chart { color: var(--accent-cyan); }

.orange-theme .stat-icon-wrapper {
    background: rgba(251, 191, 36, 0.1);
    color: var(--accent-gold);
}
.orange-theme .stat-chart { color: var(--accent-gold); }

.green-theme .stat-icon-wrapper {
    background: rgba(0, 107, 63, 0.15);
    color: var(--accent-green);
}
.green-theme .stat-chart { color: var(--accent-green); }

.red-theme .stat-icon-wrapper {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.red-theme .stat-chart { color: #ef4444; }

/* Margins for separated section titles */
.section-header-bar {
    border-bottom: 2.5px solid var(--accent-cyan);
    padding-bottom: 14px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header-bar h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.3px;
}

.section-header-bar i {
    font-size: 1.4rem;
    color: var(--accent-cyan);
    background: rgba(0, 107, 63, 0.15);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 107, 63, 0.3);
}

/* Modern Form Elements */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    gap: 20px;
}

@media (max-width: 650px) {
    .form-row {
        flex-direction: column;
        gap: 16px;
    }
}

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

.form-group.full-width {
    flex: none;
    width: 100%;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-gray);
}

.required-star {
    color: var(--btn-cancel);
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--input-radius);
    color: var(--text-white);
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    width: 100%;
    transition: all 0.2s ease;
}

/* Ensure options in select tags are readable inside styling */
select option {
    background-color: #ffffff;
    color: var(--text-white);
}

input:focus,
select:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 4px rgba(0, 107, 63, 0.15);
    background: #ffffff;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    left: 16px;
    color: #475569;
    font-size: 1rem;
}

.input-icon-wrapper input {
    padding-left: 44px !important;
}

.radio-group {
    display: flex;
    gap: 20px;
    padding: 10px 0;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-white);
}

.radio-group input[type="radio"] {
    accent-color: var(--accent-green);
    width: 16px;
    height: 16px;
}

/* Action Buttons */
.btn-primary {
    background: linear-gradient(135deg, #00b4ff, #0066ff);
    color: var(--white);
    border: none;
    border-radius: var(--input-radius);
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.5);
    transform: translateY(-1px);
}

/* Pre-Registration Official Header styles */
.gov-form-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 25px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.gov-title-wrapper {
    flex-grow: 1;
    text-align: center;
}

.gov-title-pill {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-cyan) 100%);
    color: var(--bg-dark);
    font-size: 1.05rem;
    font-weight: 800;
    padding: 8px 36px;
    border-radius: 30px;
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.form-section-header {
    font-size: 0.95rem;
    color: var(--accent-green);
    margin: 22px 0 10px;
    font-weight: 700;
    border-bottom: 1.5px solid rgba(0, 107, 63, 0.25);
    padding-bottom: 8px;
}

.gov-buttons-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.btn-gov-register {
    background: linear-gradient(135deg, #008f53 0%, #006b3f 100%);
    color: var(--white);
    border: none;
    border-radius: var(--input-radius);
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(0, 143, 83, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gov-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 143, 83, 0.45);
}

.btn-gov-cancel {
    background-color: var(--btn-cancel);
    color: var(--white);
    border: none;
    border-radius: var(--input-radius);
    padding: 14px 28px;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

/* Alert boxes */
.alert-box {
    margin-top: 24px;
    padding: 18px;
    border-radius: var(--input-radius);
    display: flex;
    gap: 16px;
}

.alert-box.hidden {
    display: none !important;
}

.alert-box.success {
    background: rgba(0, 107, 63, 0.08);
    border: 1.5px solid var(--accent-cyan);
    color: #006b3f;
}

.alert-box.success .alert-icon::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.6rem;
}

.alert-box.error {
    background: rgba(239, 68, 68, 0.08);
    border: 1.5px solid var(--btn-cancel);
    color: #dc2626;
}

.alert-box.error .alert-icon::before {
    content: '\f06a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 1.6rem;
}

.alert-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.alert-title {
    font-size: 1.05rem;
    font-weight: 800;
}

.alert-desc {
    font-size: 0.88rem;
    line-height: 1.5;
}

.alert-content .btn-success {
    margin-top: 12px;
    align-self: flex-start;
    background: linear-gradient(135deg, #008f53 0%, #006b3f 100%);
    color: var(--white);
    padding: 12px 24px;
    border: none;
    border-radius: var(--input-radius);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 107, 63, 0.35);
}

/* Right Column Panels */
.info-panel-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.calculator-card .card-header,
.documents-card .card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
}

.card-icon {
    font-size: 1.5rem;
    color: var(--accent-green);
    background: rgba(0, 107, 63, 0.15);
    padding: 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 107, 63, 0.3);
}

.calculator-card h3,
.documents-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.calculator-card span,
.documents-card span {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.calc-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.calc-row strong {
    font-weight: 700;
}

.highlighted-row {
    background: rgba(0, 107, 63, 0.08);
    border: 1px solid rgba(0, 107, 63, 0.25);
    padding: 12px 18px;
    margin: 4px 0;
    border-radius: var(--input-radius);
}

.highlighted-row strong {
    color: var(--accent-cyan);
    font-size: 1.25rem;
}

.text-success {
    color: var(--accent-green);
    font-weight: 700;
}

.calc-rebates-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--input-radius);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-rebates-box h4 {
    font-size: 0.88rem;
    color: var(--accent-cyan);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-rebates-box p {
    font-size: 0.8rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.timeline-visual {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 28px;
    margin-top: 15px;
}

.timeline-visual::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

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

.point-marker {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--bg-dark);
    margin-bottom: 8px;
}

.timeline-point span {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 600;
}

.point-grace .point-marker { background: var(--accent-cyan); }
.point-repay .point-marker { background: var(--accent-green); }
.point-complete .point-marker { background: var(--white); }

/* Document Checklist */
.doc-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.88rem;
    cursor: pointer;
    position: relative;
}

.checklist-item input {
    position: absolute;
    opacity: 0;
    height: 0;
    width: 0;
}

.checkmark {
    position: relative;
    display: inline-block;
    height: 20px;
    width: 20px;
    background-color: rgba(5, 10, 18, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    flex-shrink: 0;
    margin-top: 2px;
}

.checklist-item input:checked ~ .checkmark {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checklist-item input:checked ~ .checkmark:after {
    display: block;
}

.checklist-item .checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checklist-item input:checked ~ span {
    text-decoration: line-through;
    color: var(--text-gray);
}

/* Helpline links */
.helpline-item {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 15px;
}

.helpline-item:last-child {
    margin-bottom: 0;
}

.helpline-item i {
    font-size: 1.4rem;
    color: var(--accent-green);
    background: rgba(0, 107, 63, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.helpline-item div {
    display: flex;
    flex-direction: column;
}

.helpline-item small {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 500;
}

.helpline-item strong {
    font-size: 1.05rem;
    color: var(--text-white);
}

.helpline-item a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
}

/* Pre-filled Clipboard Copy grid */
.data-copy-panel {
    margin-top: 35px;
    border-top: 1.5px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.data-copy-panel h4 {
    font-size: 1rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-green);
}

.data-copy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.data-copy-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px 16px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.data-copy-card label {
    font-size: 0.75rem;
    color: var(--text-gray);
    text-transform: uppercase;
    font-weight: 600;
}

.data-copy-card span {
    font-size: 0.92rem;
    font-weight: 700;
    word-break: break-all;
    padding-right: 26px;
    margin-top: 2px;
}

.btn-copy-data {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--accent-green);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
}

.btn-copy-data:hover {
    background: rgba(0, 107, 63, 0.15);
}

/* Redirection Screen Circular Timer */
.countdown-circle {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
}

.countdown-circle svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.countdown-circle circle {
    fill: none;
    stroke-width: 6px;
    stroke: rgba(0, 107, 63, 0.1);
}

#timer-bar {
    stroke: var(--accent-green);
    stroke-dasharray: 251.2;
    stroke-dashoffset: 0;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s linear;
}

#countdown-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-green);
}

.redirect-hint {
    background: rgba(251, 191, 36, 0.08);
    border: 1.5px solid rgba(251, 191, 36, 0.2);
    padding: 12px 18px;
    border-radius: 8px;
    color: var(--accent-gold);
    font-size: 0.88rem;
    margin: 20px 0;
}

/* Success Checkmark */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    border: 4px solid var(--accent-green);
}

.success-checkmark .check-icon .icon-line {
    height: 5px;
    background-color: var(--accent-green);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
    top: 43px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
}

.success-checkmark .check-icon .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
}

.success-checkmark .check-icon .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    z-index: 1;
    left: -4px;
    top: -4px;
    border: 4px solid rgba(0, 107, 63, 0.2);
}

/* --- Pure Picture Auto-Sliding Screenshot Carousel --- */
.carousel-container {
    position: relative;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
    border: none;
}

.carousel-track {
    display: flex;
    width: auto;
    gap: 30px;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 340px;
    width: 340px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
    opacity: 0.35;
    transform: scale(0.8);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease, z-index 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 768px) {
    .carousel-slide {
        flex: 0 0 260px;
        width: 260px;
    }
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1.15) translateY(-10px);
    z-index: 10;
    pointer-events: auto;
}

.carousel-slide.prev {
    opacity: 0.65;
    transform: scale(0.92) translateX(25px);
    z-index: 5;
}

.carousel-slide.next {
    opacity: 0.65;
    transform: scale(0.92) translateX(-25px);
    z-index: 5;
}

.carousel-image-box {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border-radius: 12px;
    border: none;
    overflow: hidden;
    box-shadow: none;
}

.carousel-img {
    width: 100%;
    height: auto;
    max-height: 55vh;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(0, 107, 63, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.carousel-slide.active .carousel-img {
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 45px rgba(0, 107, 63, 0.3);
}

.carousel-img:hover {
    transform: scale(1.02);
}

/* Slide Nav buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(1, 12, 30, 0.9);
    color: var(--white);
    border: 1.5px solid rgba(0, 107, 63, 0.4);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
}

.carousel-btn:hover {
    background: var(--accent-cyan);
    color: var(--white);
    border-color: var(--accent-cyan);
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 143, 83, 0.4);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* Dots indicator */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-dot.active {
    background: var(--accent-cyan);
    transform: scale(1.3);
    box-shadow: 0 0 8px var(--accent-cyan);
}

/* --- VIP Timeline Layout for Portal Guide --- */
.vip-timeline {
    position: relative;
    padding-left: 30px;
    margin-top: 20px;
}

.vip-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-cyan) 0%, var(--accent-green) 100%);
}

.vip-timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.vip-timeline-item:last-child {
    margin-bottom: 0;
}

.vip-timeline-node {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--accent-cyan);
    z-index: 2;
}

.vip-timeline-card {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.vip-timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--card-border);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.vip-timeline-num {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
}

.vip-timeline-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
}

.vip-timeline-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.5;
}

/* --- Interactive Chatbot/AI Assistant Floating Panel --- */
.chat-widget-bubble {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-green) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 8px 30px rgba(0, 107, 63, 0.35);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 4s ease-in-out infinite;
}

.chat-widget-bubble:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 107, 63, 0.5);
}

.chat-widget-panel {
    position: fixed;
    bottom: 95px;
    right: 25px;
    width: 360px;
    height: 480px;
    background: #ffffff;
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-widget-panel.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, #0066ff 100%);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header-info i {
    font-size: 1.3rem;
    color: var(--accent-gold);
}

.chat-header-text h4 {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
}

.chat-header-text span {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-header-text span::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}

.chat-close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0.8;
}

.chat-close-btn:hover {
    opacity: 1;
}

.chat-log {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
}

.chat-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.chat-msg.assistant {
    background: #f1f5f9;
    color: var(--text-white);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid var(--card-border);
}

.chat-msg.user {
    background: linear-gradient(135deg, #008f53, #006b3f);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Typing indicator bubble */
.typing-bubble {
    display: flex;
    gap: 4px;
    padding: 12px 18px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #94a3b8;
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

.chat-input-area {
    padding: 15px;
    border-top: 1px solid var(--card-border);
    background: #f8fafc;
}

.chat-chips-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.chat-chips-container::-webkit-scrollbar {
    display: none;
}

.chat-chip {
    background: #ffffff;
    border: 1.5px solid var(--card-border);
    color: var(--accent-cyan);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.chat-chip:hover {
    background: rgba(0, 107, 63, 0.08);
    border-color: var(--accent-cyan);
}

.chat-input-box {
    display: flex;
    gap: 10px;
}

.chat-input-box input {
    flex-grow: 1;
    border: 1.5px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-white);
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 0.82rem;
}

.chat-send-btn {
    background: var(--accent-cyan);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--accent-green);
}

/* --- SEO Longform Article CSS --- */
.seo-longform-article {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.article-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.2;
}

.publish-date {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-weight: 600;
}

.article-section h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 12px;
    border-left: 4px solid var(--accent-green);
    padding-left: 12px;
}

.article-section h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin: 16px 0 8px;
}

.article-section p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 16px;
    text-align: justify;
}

.article-section ul, .article-section ol {
    margin-left: 24px;
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: var(--text-gray);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.seo-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid var(--card-border);
}

.seo-table th {
    font-weight: 700;
    background-color: var(--accent-cyan);
    color: var(--white);
}

.faq-item {
    background: #f8fafc;
    border: 1px solid var(--card-border);
    border-radius: var(--input-radius);
    padding: 20px;
    margin-bottom: 18px;
}

.faq-item h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-cyan);
    margin-bottom: 8px;
    border: none;
    padding: 0;
}

.faq-item p {
    font-size: 0.88rem;
    margin-bottom: 0;
    color: var(--text-gray);
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom styling for top-level layout sections */
.carousel-section {
    background: #ffffff;
    padding: 60px max(24px, calc((100vw - 1200px) / 2)) !important;
    border-bottom: 1.5px solid rgba(0, 107, 63, 0.2) !important;
}

#portal-guide-timeline {
    background: #f4f6f9;
    padding: 60px max(24px, calc((100vw - 1200px) / 2)) !important;
    border-bottom: 1.5px solid rgba(0, 107, 63, 0.2) !important;
}

.seo-longform-article {
    background: #ffffff;
    padding: 60px max(24px, calc((100vw - 1200px) / 2)) !important;
    border-bottom: 1.5px solid rgba(0, 107, 63, 0.2) !important;
}

/* Premium Heading Accent Underline */
.section-title {
    font-size: 2.2rem !important;
    font-weight: 800 !important;
    color: var(--text-white) !important;
    text-align: center !important;
    margin-bottom: 16px !important;
    position: relative;
    padding-bottom: 18px;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan) 0%, var(--accent-gold) 100%);
    border-radius: 2px;
}

/* Tab/Scheme Selection Buttons in Repayment Calculator */
.scheme-card {
    background: #ffffff !important;
    color: var(--text-white) !important;
    border: 1.5px solid var(--card-border) !important;
    box-shadow: var(--shadow-sm) !important;
}

.scheme-card:hover {
    border-color: var(--accent-cyan) !important;
    background: #f8fafc !important;
}

.scheme-card.active {
    background: rgba(0, 107, 63, 0.08) !important;
    border-color: var(--accent-cyan) !important;
    color: #006b3f !important;
}

.scheme-card.active span {
    color: #006b3f !important;
}

/* Documents Subgrid inside Documents Section */
.documents-subgrid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: start;
    width: 100%;
}

@media (max-width: 900px) {
    .documents-subgrid {
        grid-template-columns: 1fr !important;
        gap: 24px;
    }
}

/* CM Leadership Message Grid Styles */
.cm-message-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: center;
    width: 100%;
}

@media (max-width: 900px) {
    .cm-message-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
        text-align: center;
    }
    .cm-message-content {
        border-left: none !important;
        border-top: 5px solid var(--accent-green) !important;
        text-align: center;
        padding: 30px 20px !important;
    }
}

/* Absolute Position Corner styles for CM Punjab portrait in hero section */
@media (min-width: 1101px) {
    .hero-section {
        overflow: hidden !important;
    }
    .cm-portrait-container-desktop-absolute {
        position: absolute;
        right: -30px !important;
        bottom: 0 !important;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        z-index: 2;
        height: 380px !important;
    }
    .cm-portrait-image-new {
        width: auto;
        height: 100% !important;
        max-height: 380px !important;
        object-fit: contain !important;
        filter: drop-shadow(0 10px 25px rgba(0, 107, 63, 0.35));
        display: block;
        margin-bottom: 0 !important;
    }
}

@media (max-width: 1100px) {
    .cm-portrait-container-desktop-absolute {
        position: relative !important;
        right: auto !important;
        bottom: auto !important;
        height: auto !important;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        width: 100%;
        margin-top: 20px;
        margin-bottom: -20px !important;
    }
    .cm-portrait-image-new {
        width: auto;
        height: auto;
        max-height: 380px;
        object-fit: contain;
        filter: drop-shadow(0 15px 30px rgba(0, 107, 63, 0.3));
    }
}

/* --- Highlighted Secondary CTA Button (Apply Online) --- */
.btn-hero-action.secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important; /* bright emerald neon green */
    color: #ffffff !important;
    font-weight: 800 !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-hero-action.secondary:hover {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%) !important;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.7) !important;
    transform: translateY(-2px) !important;
}

/* --- NSER Tooltip Styling inside Inputs --- */
.input-with-info {
    position: relative;
    width: 100%;
    display: block;
}

.input-with-info input {
    width: 100% !important;
    padding-right: 42px !important;
}

.info-tooltip {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(0, 240, 255, 0.3) !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 0.75rem !important;
    font-weight: 800 !important;
    color: var(--accent-cyan) !important;
    cursor: help;
    transition: all 0.2s ease;
    z-index: 5;
}

.info-tooltip:hover {
    background: var(--accent-cyan) !important;
    color: var(--bg-dark) !important;
    box-shadow: 0 0 10px var(--accent-cyan);
}

/* --- Global 10-Second Loader Overlay --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(1, 10, 25, 0.92);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loader-overlay.hidden {
    display: none !important;
    opacity: 0;
}

.loader-card {
    background: linear-gradient(135deg, rgba(2, 25, 52, 0.98) 0%, rgba(1, 40, 24, 0.98) 100%);
    border: 1.5px solid var(--accent-cyan);
    border-radius: 20px;
    padding: 40px 30px;
    width: 90%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.25);
    animation: loaderScaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes loaderScaleIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.loader-spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.loader-spinner {
    width: 100%;
    height: 100%;
    border: 4px dashed rgba(0, 240, 255, 0.2);
    border-top: 4px solid var(--accent-gold);
    border-radius: 50%;
    animation: loaderSpin 1.5s linear infinite;
}

@keyframes loaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-timer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--white);
}

.loader-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.loader-status {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 24px;
    height: 38px;
    line-height: 1.4;
}

.loader-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
    border-radius: 10px;
    transition: width 0.1s linear;
}

/* --- Centered Submit Buttons --- */
.btn-primary {
    display: flex !important;
    margin: 20px auto 0 !important;
    width: fit-content !important;
    justify-content: center !important;
    align-items: center !important;
}

/* --- Mobile Spacing Compression & Center Alignments --- */
@media (max-width: 1100px) {
    .hero-ctas {
        justify-content: center !important;
        text-align: center !important;
        margin-top: 25px !important;
        width: 100%;
    }
    .hero-ctas a, .hero-ctas .hero-helpline {
        margin: 5px auto !important;
    }
    .hero-helpline {
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    /* Compress forms and sections on mobile */
    .tool-section-wrapper {
        padding: 30px 0 !important;
    }
    .glass-card {
        padding: 24px 16px !important;
        border-radius: 12px !important;
    }
    .modern-form .form-row {
        gap: 12px !important;
        margin-bottom: 12px !important;
    }
    .form-group {
        margin-bottom: 8px !important;
    }
    .form-group label {
        font-size: 0.78rem !important;
        margin-bottom: 4px !important;
    }
    .form-group input, .form-group select {
        padding: 8px 12px !important;
        font-size: 0.82rem !important;
        height: 40px !important;
    }
    .btn-primary {
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
        margin-top: 15px !important;
    }
    .section-header-bar {
        margin-bottom: 15px !important;
    }
    .section-header-bar h2 {
        font-size: 1.1rem !important;
    }
    
    /* Calculator Tab buttons compact */
    .scheme-card {
        padding: 8px 10px !important;
    }
    .scheme-card strong {
        font-size: 0.76rem !important;
    }
    .scheme-card span {
        font-size: 0.65rem !important;
    }
    .calc-row {
        padding: 8px 0 !important;
        font-size: 0.8rem !important;
    }
    .calc-rebates-box {
        padding: 12px !important;
        margin-top: 15px !important;
    }
    
    /* Center align footer columns */
    .footer-grid {
        text-align: center !important;
    }
    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-brand div {
        justify-content: center !important;
    }
    .footer-links ul, .footer-resources ul, .footer-help ul {
        align-items: center !important;
        text-align: center !important;
    }
}

/* --- Premium SEO Comparative Table Styling --- */
.seo-table {
    width: 100%;
    margin: 25px 0;
    background: rgba(1, 15, 43, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.seo-table th {
    background: linear-gradient(90deg, #004426 0%, #010f2b 100%) !important;
    color: #ffffff !important;
    font-weight: 800;
    padding: 14px 16px !important;
    border-bottom: 2px solid var(--accent-cyan) !important;
}

.seo-table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.seo-table tr:hover {
    background: rgba(0, 240, 255, 0.03) !important;
}

.seo-table tr:last-child td {
    border-bottom: none !important;
}

/* Premium cards for Guide Section */
.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.guide-card {
    background: rgba(1, 15, 43, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.guide-card:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 240, 255, 0.08);
}

.guide-card h4 {
    color: var(--accent-gold);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}
}
