/* ============================================================
   DESIGN SYSTEM: ROYAL NAVY & LUXURY GOLD
   ============================================================ */
:root {
    --primary: #c5a880;
    /* Elegant Warm Gold */
    --primary-light: #dfcbb5;
    /* Soft Champagne Gold */
    --primary-dark: #0f172a;
    /* Deep Royal Navy Blue */
    --primary-accent: #d4af37;
    /* Metallic Gold Accent */
    --secondary: #f8fafc;
    /* Soft Slate Off-White */
    --text: #0f172a;
    /* Slate Dark */
    --text-muted: #475569;
    /* Slate Medium */
    --text-light: #94a3b8;
    /* Slate Light */
    --white: #ffffff;

    /* Semantic Status Colors */
    --success: #10b981;
    /* Emerald Green */
    --error: #ef4444;
    /* Rose Red */
    --warning: #f59e0b;
    /* Amber Gold */
    --info: #3b82f6;
    /* Trust Blue */

    /* Borders & Shadows */
    --border: #e2e8f0;
    /* Soft border */
    --border-light: #f1f5f9;
    --shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
    /* Float shadow */
    --shadow-hover: 0 20px 40px -15px rgba(197, 168, 128, 0.15);
    /* Warm golden glow */
    --shadow-inset: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);

    /* Geometry */
    --radius: 24px;
    --radius-sm: 16px;
    --radius-xs: 10px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    /* Premium bezier */
    --font: 'Inter', sans-serif;
    --header-height: 76px;

    /* Safe Area Insets for Mobile */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ============================================================
   BASE RESET & TYPOGRAPHY
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font);
    background: var(--secondary);
    color: var(--text);
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: var(--safe-top);
    padding-bottom: var(--safe-bottom);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--primary-dark);
}

h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

small {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ============================================================
   APP LAYOUT & WRAPPER
   ============================================================ */
.main-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 24px;
}

section {
    margin-bottom: 60px;
}

/* ============================================================
   STICKY HEADER (Glassmorphic)
   ============================================================ */
.app-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1.5px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text h1 {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--primary-dark);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-text span {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
    display: block;
}

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

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    background: #0f172a;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(197, 168, 128, 0.3);
}

.security-badge i {
    color: var(--primary-accent);
}

/* ============================================================
   PREMIUM HERO SECTION (Mesh Gradient)
   ============================================================ */
.hero-section {
    background: linear-gradient(145deg, #0f172a 0%, #020617 100%);
    padding: 80px 24px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border-bottom: 2px solid rgba(197, 168, 128, 0.2);
}

/* Dynamic floating background glow blobs */
.hero-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, rgba(197, 168, 128, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    pointer-events: none;
    animation: floatBlob1 15s ease-in-out infinite alternate;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 70%;
    height: 90%;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.15) 0%, transparent 80%);
    filter: blur(100px);
    pointer-events: none;
    animation: floatBlob2 20s ease-in-out infinite alternate;
}

@keyframes floatBlob1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(60px, 40px) scale(1.1);
    }
}

@keyframes floatBlob2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 850px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 18px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary-light);
    backdrop-filter: blur(8px);
}

.hero-badge i {
    color: var(--primary-accent);
}

.hero-content h2 {
    color: var(--white);
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary-accent), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

/* Trust Badges in Hero */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    font-weight: 500;
}

.trust-badge i {
    color: var(--success);
}

/* Partnership Logos */
.partnership-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 36px 0;
    flex-wrap: wrap;
}

.partnership-logos img {
    max-height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
    transition: var(--transition);
}

.partnership-logos img:hover {
    opacity: 0.95;
    transform: scale(1.05);
}

/* ============================================================
   STATS COMPONENT
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    padding: 30px 24px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(197, 168, 128, 0.3);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.stat-card .number {
    font-size: 2.6rem;
    font-weight: 900;
    display: block;
    background: linear-gradient(135deg, var(--primary-accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-card .label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #a8845c);
    color: var(--white);
    box-shadow: 0 4px 20px -2px rgba(197, 168, 128, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px -2px rgba(197, 168, 128, 0.5);
    background: linear-gradient(135deg, #a8845c, var(--primary));
}

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

.btn-secondary:hover {
    background: var(--secondary);
    border-color: var(--text-light);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, var(--success), #059669);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.05rem;
    border-radius: 9999px;
    max-width: 320px;
    width: 100%;
}

.btn:active {
    transform: translateY(-1px);
}

/* ============================================================
   FEATURES COMPONENT
   ============================================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.feature-card {
    background: var(--white);
    padding: 35px 28px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border-light);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

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

.feature-card i {
    font-size: 2.8rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    display: inline-block;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============================================================
   HOW IT WORKS (STEPS)
   ============================================================ */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin: 40px 0;
}

.step-item {
    text-align: center;
    position: relative;
    padding: 10px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-dark), #1e293b);
    color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 auto 20px;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
    transition: var(--transition);
}

.step-item:hover .step-number {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(197, 168, 128, 0.4);
}

.step-item h4 {
    margin-bottom: 8px;
    font-size: 1.15rem;
    color: var(--primary-dark);
}

.step-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================================
   ACCORDION FAQ COMPONENT
   ============================================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-light);
    margin-bottom: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-light);
    box-shadow: 0 12px 20px -8px rgba(15, 23, 42, 0.05);
}

.faq-item .question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-dark);
    gap: 12px;
}

.faq-item .toggle-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.faq-item:hover .toggle-icon {
    background: var(--primary);
    color: var(--white);
}

.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.faq-item.active .answer {
    max-height: 500px;
    opacity: 1;
    margin-top: 16px;
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
    background: var(--primary-dark);
    color: var(--white);
}

/* ============================================================
   TABS COMPONENT
   ============================================================ */
.tab-container {
    display: flex;
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    max-width: 480px;
    margin: 0 auto 36px;
    border: 1px solid var(--border);
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    touch-action: manipulation;
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.tab-content {
    display: none;
    animation: fadeSlide 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

/* ============================================================
   REFERRAL BANNER
   ============================================================ */
.referral-banner {
    background: linear-gradient(135deg, #047857 0%, #065f46 100%);
    color: var(--white);
    padding: 18px 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 30px;
    display: none;
    align-items: center;
    gap: 16px;
    border-left: 5px solid var(--primary-accent);
    box-shadow: 0 10px 25px -5px rgba(4, 120, 87, 0.25);
    animation: fadeSlide 0.5s ease;
}

.referral-banner.visible {
    display: flex;
}

.referral-banner i {
    font-size: 2.2rem;
    color: var(--primary-accent);
}

.referral-banner .title {
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
}

.referral-banner .subtitle {
    font-size: 0.88rem;
    opacity: 0.9;
    margin-top: 2px;
}

/* ============================================================
   CLAIMED PAGE
   ============================================================ */
.claimed-page {
    text-align: center;
    padding: 60px 24px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    box-shadow: var(--shadow);
    max-width: 500px;
    margin: 40px auto;
}

.claimed-page .icon {
    font-size: 5rem;
    margin-bottom: 24px;
    display: block;
}

.claimed-page h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.claimed-page p {
    margin-bottom: 24px;
}

.offer-details {
    background: var(--secondary);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    margin: 24px auto;
    border-left: 4px solid var(--primary);
    text-align: left;
}

.offer-details .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.offer-details .detail-row:last-child {
    border-bottom: none;
}

.offer-details .label {
    font-weight: 600;
    color: var(--text-muted);
}

.offer-details .value {
    font-weight: 700;
    color: var(--text);
}

/* ============================================================
   FORM & COMPONENT CONTROLS
   ============================================================ */
.country-selector {
    margin-bottom: 36px;
}

.country-selector>label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.country-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.country-btn {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.country-btn:hover {
    border-color: var(--primary);
    background: var(--secondary);
}

.country-btn.active {
    border-color: var(--primary-dark);
    background: #0f172a;
    color: var(--white);
    box-shadow: var(--shadow);
}

.country-btn .flag {
    font-size: 1.6rem;
}

.country-btn .name {
    font-weight: 700;
    font-size: 0.95rem;
}

.country-btn .checkmark {
    color: var(--border);
    font-size: 1.1rem;
    transition: var(--transition);
}

.country-btn.active .checkmark {
    color: var(--primary);
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-container {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border-light);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.step-indicator .step-number {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--border);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid transparent;
    transition: var(--transition);
    margin: 0;
}

.step-indicator .step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.step-indicator.active .step-number {
    background: var(--primary-dark);
    border-color: var(--primary);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.step-indicator.completed .step-number {
    background: var(--success);
    color: var(--white);
}

.step-indicator.active .step-label {
    color: var(--primary-dark);
    font-weight: 700;
}

.step-indicator.completed .step-label {
    color: var(--success);
}

.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    width: 25%;
    border-radius: 999px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   FORM LAYOUTS
   ============================================================ */
#grantForm {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border-light);
    box-shadow: var(--shadow);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeSlide 0.5s ease;
}

.step-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border-light);
    padding-bottom: 16px;
    margin-bottom: 28px;
}

.step-header h3 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-header h3 i {
    color: var(--primary);
}

.step-required {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.form-control {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1.5px solid var(--border);
    background: var(--secondary);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-dark);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.05);
}

.input-icon {
    position: absolute;
    left: 16px;
    bottom: 15px;
    color: var(--text-light);
    font-size: 1.05rem;
    pointer-events: none;
    transition: var(--transition);
}

.form-control:focus+.input-icon {
    color: var(--primary-dark);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    padding-right: 44px;
}

textarea.form-control {
    padding-left: 16px;
    min-height: 120px;
    resize: vertical;
}

/* Password eye toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.05rem;
}

.password-toggle:hover {
    color: var(--primary-dark);
}

.honeypot-field {
    display: none !important;
}

/* Form Nav */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1.5px solid var(--border-light);
    gap: 16px;
}

.form-navigation .btn {
    min-width: 140px;
}

/* ============================================================
   CURRENCY RANGE SLIDER
   ============================================================ */
.currency-input {
    position: relative;
}

.currency-symbol {
    position: absolute;
    left: 16px;
    top: 14px;
    font-weight: 700;
    color: var(--text-muted);
}

.currency-input .form-control {
    padding-left: 36px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-dark);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 12px;
}

#grantAmountSlider {
    width: 100%;
    margin-top: 16px;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: var(--border-light);
    outline: none;
}

#grantAmountSlider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-dark);
    border: 2px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
    transition: var(--transition);
}

#grantAmountSlider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--primary);
    border-color: var(--primary-dark);
}

#amountDisplay {
    background: #0f172a;
    color: var(--primary-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ============================================================
   REVIEW COMPONENT
   ============================================================ */
.review-container {
    background: var(--secondary);
    border-radius: var(--radius-sm);
    padding: 24px;
    margin-bottom: 28px;
    border: 1.5px solid var(--border);
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    gap: 16px;
}

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

.review-label {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.review-value {
    font-weight: 700;
    color: var(--text);
    font-size: 0.9rem;
    text-align: right;
}

/* Anti Bot Challenge block */
.anti-bot-challenge {
    background: #fdfbf7;
    border: 1.5px dashed var(--primary-light);
    padding: 24px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.challenge-question {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin: 8px 0 16px;
}

/* Checkbox alignment */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-dark);
}

/* ============================================================
   SUCCESS & NOTIFICATION BLOCKS
   ============================================================ */
.success-card {
    text-align: center;
    padding: 50px 30px;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 24px;
    display: inline-block;
    animation: scaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

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

.case-id-display-container {
    background: rgba(197, 168, 128, 0.05);
    border: 1.5px solid var(--primary-light) !important;
    box-shadow: var(--shadow-inset);
    transition: var(--transition);
}

.case-id-display-container:hover {
    border-color: var(--primary-dark) !important;
    background: rgba(197, 168, 128, 0.08);
}

/* Toast Notifications styling */
#toastContainer {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 380px;
    width: calc(100% - 48px);
}

.toast {
    background: var(--white);
    border-radius: var(--radius-xs);
    padding: 16px 20px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid var(--info);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

.toast-exit {
    animation: slideOut 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast-success {
    border-left-color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-warning {
    border-left-color: var(--warning);
}

.toast-info {
    border-left-color: var(--info);
}

/* ============================================================
   STATUS CHECK INTERFACE
   ============================================================ */
.status-check-container {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    border: 1.5px solid var(--border-light);
    box-shadow: var(--shadow);
}

.status-check-container h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-check-container h3 i {
    color: var(--primary);
}

.status-check-container>p {
    margin-bottom: 28px;
}

.status-search {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.status-search .form-control {
    flex: 1;
    padding-left: 20px;
    font-size: 1.05rem;
    font-weight: 600;
}

.status-search .btn {
    min-width: 160px;
}

.status-card {
    background: var(--secondary);
    border-radius: var(--radius-sm);
    padding: 28px;
    border: 1.5px solid var(--border);
    animation: fadeSlide 0.4s ease;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.status-header h3 {
    font-size: 1.15rem;
}

.status-badge {
    padding: 6px 18px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--white);
}

.status-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
}

.status-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    grid-column: span 1;
}

.status-row .label {
    font-weight: 600;
    color: var(--text-muted);
}

.status-row .value {
    font-weight: 700;
    color: var(--text);
}

.payment-info {
    margin-top: 24px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    border-left: 5px solid var(--success);
    box-shadow: var(--shadow-inset);
}

.payment-info h4 {
    color: var(--success);
    margin-bottom: 8px;
}

.payment-info p {
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.payment-info p:last-child {
    margin-bottom: 0;
}

.status-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

/* ============================================================
   LOADING SCREEN & SPINNERS
   ============================================================ */
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #0f172a;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loadingOverlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.loader-ring {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 3.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin: 0 6px;
}

.loader-ring:nth-child(2) {
    width: 38px;
    height: 38px;
    animation-duration: 0.8s;
    border-top-color: var(--primary-light);
}

.loader-ring:nth-child(3) {
    width: 28px;
    height: 28px;
    animation-duration: 0.6s;
    border-top-color: var(--primary-accent);
}

.loader p {
    margin-top: 24px;
    color: var(--primary-light);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ============================================================
   APP FOOTER
   ============================================================ */
.app-footer {
    background: #0f172a;
    color: var(--white);
    padding: 60px 24px 40px;
    border-top: 3px solid var(--primary);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.footer-brand .footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
    display: block;
}

.footer-brand small {
    color: var(--primary-light);
    font-weight: 600;
    margin-top: 6px;
    display: block;
}

.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-accent);
}

.footer-copy {
    color: var(--text-light);
    font-size: 0.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    padding-top: 24px;
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================ */
@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-content h2 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .main-content {
        margin: 20px auto;
        padding: 0 16px;
    }

    #grantForm,
    .status-check-container {
        padding: 24px 16px;
    }

    .status-body {
        grid-template-columns: 1fr;
    }

    .status-search {
        flex-direction: column;
    }

    .status-search .btn {
        width: 100%;
    }

    .country-buttons {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }

    .progress-steps {
        gap: 2px;
    }

    .step-indicator .step-label {
        font-size: 0.6rem;
        letter-spacing: 0;
    }

    .step-indicator .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }

    .form-navigation {
        flex-direction: column-reverse;
    }

    .form-navigation .btn {
        width: 100%;
    }
}