/* Typography System */
@font-face {
    font-family: 'Poppins';
    src: url('../webfonts/poppins-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../webfonts/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../webfonts/poppins-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Design System */
:root {
    /* Bootstrap Font Override - Ensure Poppins is used everywhere */
    --bs-font-sans-serif: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);

    /* Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    
    /* Success Colors */
    --success-50: #f0fdf4;
    --success-100: #dcfce7;
    --success-200: #bbf7d0;
    --success-300: #86efac;
    --success-400: #4ade80;
    --success-500: #22c55e;
    --success-600: #16a34a;
    --success-700: #15803d;
    
    /* Validation Colors */
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-200: #fecaca;
    --danger-300: #fca5a5;
    --danger-400: #f87171;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;
    --success-800: #166534;

    /* Danger Colors */
    --danger-50: #fef2f2;
    --danger-100: #fee2e2;
    --danger-200: #fecaca;
    --danger-300: #fca5a5;
    --danger-400: #f87171;
    --danger-500: #ef4444;
    --danger-600: #dc2626;
    --danger-700: #b91c1c;
    --danger-800: #991b1b;
    
    /* Neutral Colors */
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    
    /* Typography */
    --font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    --body-font-size: 0.9375rem;
    --small-font-size: 0.875rem;
    --heading-line-height: 1.2;
    --body-line-height: 1.6;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 2.5rem;
    --space-8: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Transitions */
    --transition-base: all 0.2s ease-in-out;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* Base Styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Universal Font Family Override - Exclude Font Awesome Icons */
*:not([class*="fa-"]):not(.fas):not(.far):not(.fab):not(.fal):not(.fad) {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif !important;
}

/* Ensure Font Awesome icons use their proper font */
.fas, .far, .fab, .fal, .fad, [class*="fa-"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 5 Free", "Font Awesome 5 Pro" !important;
}

body {
    font-family: var(--font-family);
    font-size: var(--body-font-size);
    line-height: var(--body-line-height);
    color: var(--gray-700);
    background-color: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utility Widths */
.w-fit { width: fit-content; }

/* Typography */
h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
h6, .h6 { font-size: 1rem; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    line-height: var(--heading-line-height);
    color: var(--gray-900);
    margin-bottom: var(--space-3);
}

p {
    margin-bottom: var(--space-3);
}

.display-1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}

.display-2 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.7;
}

/* Component Styles */

/* Navigation */
.navbar {
    padding-block: var(--space-3);
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.navbar-brand {
    font-weight: 600;
    font-size: 1.25rem;
}

.nav-link {
    font-size: calc(var(--small-font-size) + 2px);
    font-weight: 500;
    padding: var(--space-2) var(--space-3) !important;
    color: var(--gray-600);
    transition: var(--transition-base);
}

.nav-link:hover {
    color: var(--primary-600) !important;
}

.nav-link.active {
    color: #ffffff !important;
    font-weight: 500;
}

/* Large navigation links */
.nav-link-lg {
    font-size: 1rem !important;
    font-weight: 500;
    padding: 0.625rem 1rem !important;
    display: flex;
    align-items: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
    min-height: calc(2.25rem + 2px);
    line-height: 1.5;
}

.nav-link-lg:hover {
    color: var(--primary-600) !important;
    background-color: var(--primary-50);
    transform: translateY(-1px);
}

.nav-link-lg.active {
    color: var(--primary-600) !important;
    font-weight: 600;
    background-color: var(--primary-100);
}

.nav-link-lg i {
    font-size: 1rem;
    color: var(--primary-500);
}

/* Buttons */
.btn {
    font-size: var(--small-font-size);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: inherit;
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: inherit;
}

.btn:active::after {
    opacity: 1;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

/* Primary Button */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border: none;
    color: white;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 
                0 2px 4px rgba(37, 99, 235, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 
                0 4px 12px rgba(37, 99, 235, 0.2),
                0 2px 4px rgba(37, 99, 235, 0.1);
}

.btn-primary:active {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-800) 100%);
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:focus {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 
                0 0 0 3px var(--primary-200);
}

.btn-primary:visited {
    color: white;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
}

/* Success Button */
.btn-success {
    background: linear-gradient(135deg, var(--success-500) 0%, var(--success-600) 100%);
    border: none;
    color: white;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 
                0 2px 4px rgba(22, 163, 74, 0.1);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--success-600) 0%, var(--success-700) 100%);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 
                0 4px 12px rgba(22, 163, 74, 0.2),
                0 2px 4px rgba(22, 163, 74, 0.1);
}

.btn-success:active {
    background: linear-gradient(135deg, var(--success-700) 0%, var(--success-800) 100%);
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-success:focus {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 
                0 0 0 3px var(--success-200);
}

.btn-success:visited {
    color: white;
    background: linear-gradient(135deg, var(--success-600) 0%, var(--success-700) 100%);
}

/* Danger Button */
.btn-danger {
    background: linear-gradient(135deg, var(--danger-500) 0%, var(--danger-600) 100%);
    border: none;
    color: white;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 
                0 2px 4px rgba(220, 38, 38, 0.1);
}

.btn-danger:hover {
    background: linear-gradient(135deg, var(--danger-600) 0%, var(--danger-700) 100%);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 
                0 4px 12px rgba(220, 38, 38, 0.2),
                0 2px 4px rgba(220, 38, 38, 0.1);
}

.btn-danger:active {
    background: linear-gradient(135deg, var(--danger-700) 0%, var(--danger-800) 100%);
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-danger:focus {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 
                0 0 0 3px var(--danger-200);
}

.btn-danger:visited {
    color: white;
    background: linear-gradient(135deg, var(--danger-600) 0%, var(--danger-700) 100%);
}

/* Outline Buttons */
.btn-outline-primary {
    color: var(--primary-600);
    border-color: var(--primary-600);
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: white;
    background-color: var(--primary-600);
    border-color: var(--primary-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.btn-outline-primary:active {
    color: white;
    background-color: var(--primary-700);
    border-color: var(--primary-700);
}

.btn-outline-primary:focus {
    box-shadow: 0 0 0 3px var(--primary-100);
}

.btn-outline-success {
    color: var(--success-600);
    border-color: var(--success-600);
    background-color: transparent;
}

.btn-outline-success:hover {
    color: white;
    background-color: var(--success-600);
    border-color: var(--success-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

.btn-outline-success:active {
    color: white;
    background-color: var(--success-700);
    border-color: var(--success-700);
}

.btn-outline-success:focus {
    box-shadow: 0 0 0 3px var(--success-100);
}

.btn-outline-danger {
    color: var(--danger-600);
    border-color: var(--danger-600);
    background-color: transparent;
}

.btn-outline-danger:hover {
    color: white;
    background-color: var(--danger-600);
    border-color: var(--danger-600);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.btn-outline-danger:active {
    color: white;
    background-color: var(--danger-700);
    border-color: var(--danger-700);
}

.btn-outline-danger:focus {
    box-shadow: 0 0 0 3px var(--danger-100);
}

/* Button Refinements */
.btn {
    font-size: 0.95rem;
    padding: 0.625rem 1.25rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease-in-out;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

/* Cards & Sections */
.card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--gray-100);
    padding: var(--space-4);
}

.card-body {
    padding: var(--space-4);
}

/* Forms & Inputs */
.form-control {
    font-size: var(--small-font-size);
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    color: var(--gray-700);
}

.form-control:focus {
    border-color: var(--primary-400);
    outline: 2px solid var(--primary-200);
    outline-offset: 0;
    box-shadow: none;
}

.form-control::placeholder {
    color: var(--gray-400);
}

.form-label {
    font-size: var(--small-font-size);
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: var(--space-2);
}

.input-group-text {
    background-color: var(--gray-50);
    border-color: var(--gray-200);
    color: var(--gray-500);
}

/* Hero & Feature Sections */
.hero-section {
    position: relative;
    padding: var(--space-8) 0;
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(255, 255, 255, 0.9)
    ), url('../img/hero-image.jpg') center/cover;
}

.hero-section img {
    width: 80% !important;
    max-width: 80%;
}

.feature-card {
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: white;
    border: 1px solid var(--gray-100);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    border-color: var(--primary-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Accordion Styles */
.accordion-item {
    border: none;
    background: transparent;
}

.accordion-button {
    padding: var(--space-3) var(--space-4);
    font-weight: 500;
    color: var(--gray-700);
    background-color: white;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-sm);
}

.accordion-button:not(.collapsed) {
    color: var(--primary-600);
    background-color: var(--primary-50);
    box-shadow: var(--shadow-md);
}

.accordion-button:focus {
    border-color: var(--primary-200);
    box-shadow: 0 0 0 3px var(--primary-100);
}

/* Badges */
.badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.35em 0.75em;
}

/* Icons */
.icon-box {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Footer */
.footer {
    font-size: var(--small-font-size);
    background-color: white;
    border-top: 1px solid var(--gray-100);
    padding: var(--space-6) 0;
}

.footer h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: var(--space-3);
}

.footer-link {
    color: var(--gray-600);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-link:hover {
    color: var(--primary-600);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    transition: var(--transition-smooth);
    text-decoration: none;
    margin-right: var(--space-2);
}

.social-links a:hover {
    background-color: var(--primary-600);
    color: white;
    transform: translateY(-2px);
}

/* Badges */
.badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: var(--radius-sm);
}

/* Shadows */
.shadow-hover {
    transition: var(--transition-smooth);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* Text Utilities */
.text-primary { color: var(--primary-600) !important; }
.text-muted { color: var(--gray-500) !important; }
.fw-medium { font-weight: 500 !important; }
.fs-sm { font-size: var(--small-font-size) !important; }

/* Background Utilities */
.bg-primary-subtle { background-color: var(--primary-50) !important; }
.bg-gray-subtle { background-color: var(--gray-50) !important; }

/* Border Utilities */
.border-subtle { border-color: var(--gray-100) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    :root {
        --body-font-size: 0.875rem;
        --small-font-size: 0.8125rem;
    }

    .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }
    
    /* Mobile navigation adjustments */
    .nav-link-lg {
        font-size: 1rem !important;
        padding: 0.625rem 0.875rem !important;
        justify-content: flex-start;
        width: 100%;
        margin-bottom: 0.25rem;
        min-height: calc(2.25rem + 2px);
        line-height: 1.5;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.25rem !important;
    }

    h1, .h1 { font-size: 2rem; }
    h2, .h2 { font-size: 1.75rem; }
    h3, .h3 { font-size: 1.5rem; }

    .navbar-brand img {
        height: 32px;
    }

    .hero-section {
        padding: var(--space-6) 0;
    }

    .card {
        margin-bottom: var(--space-4);
    }
}

@media (max-width: 767.98px) {
    .btn {
        width: 100%;
        margin-bottom: var(--space-2);
    }

    .display-1 {
        font-size: 2.5rem;
    }

    .display-2 {
        font-size: 2.25rem;
    }

    .footer {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-bottom: var(--space-4);
    }
}

/* Progress Bar */
.application-progress {
    height: 8px;
}

.application-progress .progress-bar {
    transition: width 0.6s ease;
}

.progress-step-1 { width: 16.67%; }
.progress-step-2 { width: 33.33%; }
.progress-step-3 { width: 50%; }
.progress-step-4 { width: 66.67%; }
.progress-step-5 { width: 83.33%; }
.progress-step-6 { width: 100%; }

/* OTP Validation Styles */
.preloader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    display: none !important;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    border-radius: 0.375rem;
}

.preloader-overlay.show {
    display: flex !important;
    animation: fadeIn 0.3s ease-in-out;
}

.preloader-content {
    text-align: center;
    padding: 2rem;
}

.otp-step {
    display: block;
}

.otp-step.hidden {
    display: none !important;
}

.captcha-image {
    height: 40px;
    width: 120px;
}

.otp-input {
    letter-spacing: 0.5em;
}

.alert-container {
    display: block;
}

.alert-container.hidden {
    display: none !important;
}

/* Utility classes for visibility */
.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
    }
    
    a {
        text-decoration: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
}

/* ==========================================
   SUCCESS PAGE STYLES
   ========================================== */

/* Success Animation */
.success-animation {
    position: relative;
    height: 128px;
}

.checkmark {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.checkmark__circle {
    stroke-dasharray: 388;
    stroke-dashoffset: 388;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__circle__background {
    stroke: #f3f4f6;
    stroke-width: 4;
}

.checkmark__circle__foreground {
    stroke: #16a34a;
    stroke-width: 4;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 84;
    stroke-dashoffset: 84;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Step Numbers */
.step-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

/* ==========================================
   FORM CAPTCHA STYLES
   ========================================== */

/* CAPTCHA Image */
#captchaImage {
    max-height: 80px;
}

/* ==========================================
   DOCUMENT PREVIEW STYLES
   ========================================== */

/* Document Preview Container */
.document-preview {
    min-height: 100px;
    border: 1px dashed #dee2e6;
    border-radius: 0.25rem;
    padding: 0.5rem;
    text-align: center;
}

/* ==========================================
   BUTTON TRANSPARENCY OVERRIDE
   ========================================== */

/* Ensure dark buttons have no transparency */
.btn-dark {
    background-color: #212529 !important;
    border-color: #212529 !important;
    opacity: 1 !important;
}

/* ==========================================
   FAQ TAB STYLES
   ========================================== */

/* FAQ Tab containers - reduce spacing */
#faqTabs {
    margin-bottom: 2rem !important;
}

#faqTabs .nav-item {
    padding: 0 0.25rem;
}

/* FAQ Tab styling - make more compact */
#faqTabs .nav-link.btn.btn-outline-primary {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* FAQ Tab text color on hover and active state */
#faqTabs .nav-link.btn.btn-outline-primary:hover,
#faqTabs .nav-link.btn.btn-outline-primary.active {
    color: #f6f6f6 !important;
}

/* FAQ Tab icon and text spacing */
#faqTabs .nav-link .d-flex {
    gap: 0.375rem;
    font-size: 0.85rem;
}

#faqTabs .nav-link i {
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Responsive adjustments for FAQ tabs */
@media (max-width: 992px) {
    #faqTabs .nav-link.btn.btn-outline-primary {
        font-size: 0.8rem;
        padding: 0.45rem 0.6rem;
        min-height: 2.25rem;
    }
    
    #faqTabs .nav-link .d-flex {
        gap: 0.25rem;
        font-size: 0.8rem;
    }
    
    #faqTabs .nav-link i {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    #faqTabs .nav-link.btn.btn-outline-primary {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
        min-height: 2rem;
    }
    
    #faqTabs .nav-link .d-flex {
        gap: 0.2rem;
        font-size: 0.75rem;
    }
    
    #faqTabs .nav-link i {
        font-size: 0.7rem;
    }
}

/* Hide category letter span as it's not used */
#faqTabs .category-letter {
    display: none;
}

/* ==========================================
   LAUNCHER ICON STYLES
   ========================================== */

.launcher-icon-container {
    position: relative;
}

.launcher-icon {
    width: 120px;
    height: 120px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.launcher-icon-bg {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    box-shadow: 0 8px 32px rgba(34, 139, 236, 0.3);
    transform: translateY(0);
    transition: all 0.3s ease;
}

.launcher-icon-bg:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(34, 139, 236, 0.4);
}

.launcher-icon-bg i {
    font-size: 2.5rem;
    color: white;
    animation: rocket-bounce 2s ease-in-out infinite;
}

.launcher-icon-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 2px solid var(--primary-400);
    border-radius: 50%;
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
}

.launcher-icon-pulse.delay-1 {
    animation-delay: 0.5s;
}

.launcher-icon-pulse.delay-2 {
    animation-delay: 1s;
}

.launcher-cta {
    position: relative;
    overflow: hidden;
}

.launcher-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.launcher-cta:hover::before {
    left: 100%;
}

/* Animations */
@keyframes rocket-bounce {
    0%, 100% { 
        transform: translateY(0) rotate(-5deg); 
    }
    50% { 
        transform: translateY(-5px) rotate(5deg); 
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    80%, 100% {
        transform: translate(-50%, -50%) scale(1.8);
        opacity: 0;
    }
}

/* Responsive launcher icon */
@media (max-width: 768px) {
    .launcher-icon {
        width: 100px;
        height: 100px;
    }
    
    .launcher-icon-bg {
        width: 70px;
        height: 70px;
    }
    
    .launcher-icon-bg i {
        font-size: 2rem;
    }
    
    .launcher-icon-pulse {
        width: 70px;
        height: 70px;
    }
}

/* ========================================
   Form Validation Enhancements
   ======================================== */

/* Tab Shake Animation */
@keyframes tab-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
    20%, 40%, 60%, 80% { transform: translateX(3px); }
}

.tab-shake {
    animation: tab-shake 0.6s ease-in-out;
}

/* Enhanced Tab States */
.nav-link.tab-error {
    background-color: var(--danger-50) !important;
    border-color: var(--danger-300) !important;
    color: var(--danger-700) !important;
}

.nav-link.tab-error:hover {
    background-color: var(--danger-100) !important;
    border-color: var(--danger-400) !important;
}

/* Validation Feedback Enhancements */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-500);
    outline: 2px solid var(--danger-200);
    outline-offset: 0;
    box-shadow: none;
    animation: field-error-pulse 0.6s ease-in-out;
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-500);
    outline: 2px solid var(--success-200);
    outline-offset: 0;
    box-shadow: none;
}

@keyframes field-error-pulse {
    0% { box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25); }
    50% { box-shadow: 0 0 0 0.4rem rgba(239, 68, 68, 0.4); }
    100% { box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25); }
}

/* Required Field Indicators */
.required-asterisk {
    color: var(--danger-500);
    font-weight: 600;
}

/* Enhanced Validation Messages */
.invalid-feedback {
    font-size: 0.7rem;
    color: var(--danger-600);
    font-weight: 300;
    margin-top: 0.125rem;
}

.valid-feedback {
    font-size: 0.875rem;
    color: var(--success-600);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Button State Animations */
.btn.btn-danger {
    animation: button-error-pulse 0.8s ease-in-out;
}

@keyframes button-error-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Tab Progression Blocked State */
.nav-link:disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

.nav-link.completed .tab-complete-icon {
    color: var(--success-600);
    animation: icon-success-pop 0.6s ease-out;
}

@keyframes icon-success-pop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Enhanced File Upload Status */
.upload-status .text-danger {
    font-weight: 500;
    animation: error-text-fade-in 0.4s ease-out;
}

.upload-status .text-success {
    font-weight: 500;
    animation: success-text-fade-in 0.4s ease-out;
}

@keyframes error-text-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes success-text-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Checkbox Group Validation */
.form-check-input.is-invalid {
    border-color: var(--danger-500);
    outline: 2px solid var(--danger-200);
    outline-offset: 0;
}

.form-check-input.is-invalid:focus {
    outline: 2px solid var(--danger-300);
    outline-offset: 0;
    box-shadow: none;
}

/* Progress Bar Enhancement */
.progress-bar {
    transition: width 0.6s ease, background-color 0.3s ease;
}

/* Notification Enhancements */
.alert.position-fixed {
    animation: notification-slide-in 0.4s ease-out;
}

@keyframes notification-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Field Success Flash */
.field-success-flash {
    animation: field-success-flash 0.8s ease-out;
}

@keyframes field-success-flash {
    0% { box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25); }
    50% { box-shadow: 0 0 0 0.4rem rgba(34, 197, 94, 0.5); }
    100% { box-shadow: 0 0 0 0.2rem rgba(34, 197, 94, 0.25); }
}

/* ========================================
   Enhanced File Upload Progress
   ======================================== */

.upload-progress {
    background: var(--primary-50);
    border: 1px solid var(--primary-200);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.upload-progress .progress {
    height: 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.upload-progress .progress-bar {
    transition: width 0.3s ease, background-color 0.3s ease;
    border-radius: 4px;
}

.upload-success {
    background: var(--success-50);
    border: 1px solid var(--success-200);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    animation: upload-success-slide-in 0.5s ease-out;
}

@keyframes upload-success-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.upload-success .progress {
    height: 4px;
    background-color: rgba(34, 197, 94, 0.2);
}

.upload-success .progress-bar {
    background-color: var(--success-500);
    animation: success-bar-fill 0.6s ease-out;
}

@keyframes success-bar-fill {
    from { width: 0%; }
    to { width: 100%; }
}

/* File input enhancements */
input[type="file"] {
    transition: all 0.3s ease;
}

input[type="file"]:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    border-color: var(--primary-500);
}

/* Upload speed indicator */
.upload-speed {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-600);
}

/* Upload percentage */
.upload-percent {
    font-weight: 600;
    color: var(--primary-700);
}

/* File size indicator */
.upload-size {
    color: var(--primary-600);
}

/* Error state for upload */
.upload-error {
    background: var(--danger-50);
    border: 1px solid var(--danger-200);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
    animation: upload-error-shake 0.5s ease-out;
}

@keyframes upload-error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* CSP-compliant styles for dynamic content */
.upload-progress-height {
    height: 8px;
}

.upload-success-height {
    height: 4px;
}

.progress-width-0 {
    width: 0%;
}

.progress-width-100 {
    width: 100%;
}

.notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification-popup-detailed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 350px;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.upload-status-visible {
    display: block;
}

.upload-status-hidden {
    display: none;
}

.tab-pointer-events-none {
    pointer-events: none;
}

.tab-pointer-events-auto {
    pointer-events: auto;
}

.validation-list-styling {
    margin: 10px 0;
    padding-left: 20px;
}

/* Dynamic progress width using CSS custom properties */
.progress-dynamic {
    width: var(--progress-width, 0%) !important;
}

/* Static progress widths for initial states */
.progress-width-0 {
    --progress-width: 0%;
}

.progress-width-100 {
    --progress-width: 100%;
}

/* Location icon styling - moved from inline styles */
.location-icon-small {
    font-size: 0.8rem;
}

/* Location card styling - moved from locations.js */
.location-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent !important;
}

.location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    border-left: 3px solid var(--bs-primary) !important;
}

/* State Tab Styling - moved from locations.js */
#stateTabs .nav-link.btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
    font-weight: 500;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

#stateTabs .nav-link.btn-outline-primary:hover {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
}

#stateTabs .nav-link.btn-outline-primary.active {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
}

#stateTabs .nav-link.btn-outline-primary:focus {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: white !important;
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

@media (max-width: 768px) {
    #stateTabs {
        gap: 0.5rem !important;
    }
    
    #stateTabs .nav-link.btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .location-card {
        text-align: center;
    }
}