:root {
    --primary: #003366;
    --primary-light: #004d99;
    --accent: #e67e22;
    --secondary: #f4f7fa;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border: #e1e8ed;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(58, 87, 252, 0.2);
}

/* Custom Notification System - Mobile/iPhone Style */
.notification-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    pointer-events: none;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.notification {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 280px;
    max-width: 90%;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
}

.notification.success .notification-icon {
    background: #10b981;
    color: white;
}

.notification.error .notification-icon {
    background: #ef4444;
    color: white;
}

.notification.warning .notification-icon {
    background: #f59e0b;
    color: white;
}

.notification.info .notification-icon {
    background: var(--primary);
    color: white;
}

.notification-content {
    flex: 1;
    font-size: 0.95em;
    color: #1f2937;
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    padding: 0;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.notification-close svg {
    width: 14px;
    height: 14px;
}

/* Mobile notification styles */
@media (max-width: 768px) {
    .notification-container {
        padding: 8px;
        gap: 8px;
    }

    .notification {
        min-width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        padding: 12px 16px;
        border-radius: 10px;
    }

    .notification-content {
        font-size: 0.9em;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #F2F2F7;
    min-height: 100vh;
    color: #1C1C1E;
    padding-bottom: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Mobile App-like Scroll Behavior */
@media (max-width: 768px) {
    html {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    body {
        padding-bottom: env(safe-area-inset-bottom, 20px);
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
    }

    /* Allow text selection in inputs */
    input,
    textarea,
    select {
        -webkit-user-select: text;
        user-select: text;
    }
}

/* Touch-friendly improvements */
button,
a,
input[type="file"]+label,
.btn,
.action-btn {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Mobile App-like Container */
@media (max-width: 1100px) {

    .container,
    .main-container {
        padding: 0 15px;
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 0;
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }

    .container,
    .main-container {
        padding: 0 20px;
        max-width: 100%;
    }
}

header, .site-header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 12px 0; /* Increased */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* Theme Blue Header Variation */
header.header-blue {
    background-color: var(--primary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    padding: 10px 0; /* Increased */
}

header.header-blue .logo-text h1,
header.header-blue .logo-text p {
    color: var(--white);
}

header.header-blue nav ul li a {
    color: rgba(255, 255, 255, 0.9);
}

header.header-blue nav ul li a:hover {
    color: var(--white);
}

header.header-blue .nav-toggle {
    background: rgba(255, 255, 255, 0.1);
}

header.header-blue .nav-toggle span {
    background: var(--white);
}

header.header-blue .btn-apply-top {
    background-color: var(--white);
    color: var(--primary);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px !important; /* Force padding to prevent overrides */
}

/* ──── DELIVERY IMAGE ──── */
.delivery-image-container {
    margin-top: 30px;
    text-align: center;
    width: 100%;
    padding-bottom: 20px;
}

.delivery-image {
    max-width: 90%;
    height: auto;
    max-height: 80%;
    transform: scaleY(0.8);
    transform-origin: top center;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    opacity: 0.3;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
}

.logo-text h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0;
    color: var(--primary);
}

.logo-text p {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    color: var(--text-light);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    position: relative;
    padding: 4px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.2s;
}

nav ul li a:hover:after,
nav ul li a.active:after {
    width: 100%;
}

/* ──── NAV DROPDOWN ──── */
.nav-item-dropdown {
    position: relative;
    padding-bottom: 5px;
}

.nav-item-dropdown > a {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--white);
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
    list-style: none !important;
    display: block !important;
    margin: 0;
    pointer-events: none;
    border: 1px solid rgba(0,0,0,0.05);
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.dropdown-menu li a {
    padding: 10px 20px !important;
    display: block !important;
    color: var(--text-dark) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-align: left !important;
    transition: background 0.2s;
    border-radius: 0 !important;
}

.dropdown-menu li a:after {
    display: none !important;
}

.dropdown-menu li a:hover {
    background-color: #f8f9fa !important;
    color: var(--primary) !important;
}

/* header-blue overrides for dropdown */
header.header-blue .dropdown-menu {
    background: var(--white);
}

header.header-blue .dropdown-menu li a {
    color: var(--text-dark) !important;
}

header.header-blue .dropdown-menu li a:hover {
    color: var(--primary) !important;
}

nav ul li a.active {
    color: var(--primary);
}

/* header-blue overrides for active links */
header.header-blue nav ul li a.active {
    color: var(--white);
}

header.header-blue nav ul li a:after {
    background-color: var(--white);
}

.btn-apply-top {
    background-color: var(--primary);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn-apply-top:hover {
    background-color: var(--primary-light);
    color: var(--white);
}

/* ──── MOBILE SIDE NAV ──── */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-side-nav {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: var(--white);
    z-index: 2001;
    box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.mobile-side-nav.active {
    left: 0;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.side-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.close-nav {
    background: #f0f4f9;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.side-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.side-nav-links li a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.side-nav-links li a:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.side-nav-links li a.btn-support {
    background-color: var(--primary);
    color: var(--white) !important;
    justify-content: center;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 51, 102, 0.2);
}

.mobile-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.btn-quick-apply {
    background-color: var(--accent);
    color: var(--white);
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 4px 8px rgba(230, 126, 34, 0.2);
}

.nav-toggle {
    display: none;
    background: #f0f4f9;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .header-content {
        padding: 5px 20px;
    }

    nav ul {
        display: none;
    }

    .nav-toggle, .mobile-actions {
        display: flex;
    }

    .btn-quick-apply {
        display: none;
    }
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.logo-icon:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.logo-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
    fill: none;
}

.back-icon {
    font-size: 24px;
    cursor: pointer;
    font-weight: bold;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

.back-icon:hover {
    opacity: 0.8;
}

.back-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
}

.site-name {
    font-size: 1.4em;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
}

.site-name .highlight {
    color: var(--primary);
    font-size: 0.85em;
    font-weight: 500;
    opacity: 0.95;
}

.site-name-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-name-main {
    font-size: 1em;
    font-weight: 700;
}

.site-name-domain {
    font-size: 0.75em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0.85;
}

/* Mobile Header */
@media (max-width: 768px) {
    .main-header {
        padding: 12px 15px;
        padding-top: calc(12px + env(safe-area-inset-top, 0px));
    }

    .header-content {
        padding: 0;
    }

    .back-icon {
        font-size: 22px;
        min-width: 44px;
        min-height: 44px;
    }

    .back-icon svg {
        width: 22px;
        height: 22px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .logo-icon svg {
        width: 24px;
        height: 24px;
    }

    .site-name-wrapper {
        gap: 0;
    }

    .site-name-main {
        font-size: 0.9em;
    }

    .site-name-domain {
        font-size: 0.65em;
    }

    .site-name {
        font-size: 1.2em;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Mobile Container */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }
}

/* Form Title */
.form-title,
h1.form-title {
    text-align: center;
    font-size: 1.8em;
    font-weight: 700;
    color: #1c1c1e;
    letter-spacing: -0.02em;
    margin: 24px 0 20px;
    line-height: 1.2;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    overflow-x: auto;
    /* Allow horizontal scroll if needed */
    scrollbar-width: none;
    /* Firefox: hide scrollbar */
    gap: 6px;
    margin-bottom: 20px;
    padding: 10px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    /* Increased to fit 7 steps */
    margin-left: auto;
    margin-right: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
}

.progress-steps::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari and Opera: hide scrollbar */
}

.step-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #D1D1D6;
    color: #48484A;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.2s ease;
}

.step-item.active .step-circle {
    background: #f59e0b;
    color: white;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.step-info {
    display: flex;
    flex-direction: column;
}

.step-name {
    font-weight: 600;
    color: #333;
    font-size: 0.8em;
    line-height: 1.2;
}

.step-item.active .step-name {
    color: #f59e0b;
}

/* Green step colors for new apply page */
.new-apply-page .step-item.active .step-circle {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.new-apply-page .step-item.active .step-name {
    color: #10b981;
}

/* ── Green Theme (New Apply page) ── */
.new-apply-page .btn-primary {
    background: linear-gradient(135deg, #059669, #10b981) !important;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35) !important;
}

.new-apply-page .btn-primary:hover {
    background: linear-gradient(135deg, #047857, #059669) !important;
}

.new-apply-page .teal-card {
    background: #f0fdf4 !important;
    border-color: rgba(16, 185, 129, 0.25) !important;
}

.new-apply-page .card-header {
    border-bottom-color: rgba(16, 185, 129, 0.2) !important;
}

.new-apply-page .form-group input:focus,
.new-apply-page .form-group select:focus {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12) !important;
}

.new-apply-page .card-title {
    color: #065f46;
}

.new-apply-page .section-divider {
    color: #059669;
}

.new-apply-page .upload-item {
    border-color: #10b981;
}

.new-apply-page .upload-item.active-upload {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2) !important;
}

.new-apply-page .upload-progress-fill {
    background: linear-gradient(90deg, #059669 0%, #10b981 100%) !important;
}

.new-apply-page .upload-progress-text {
    color: #059669 !important;
}

.new-apply-page .btn-secondary {
    background: white !important;
    color: #059669 !important;
    border: 2px solid #10b981 !important;
}

.new-apply-page .btn-secondary:hover {
    background: #f0fdf4 !important;
    border-color: #059669 !important;
}

/* ── Orange Theme (Correction page) ── */
.correction-page .step-item.active .step-circle {
    background: #f59e0b !important;
    color: white !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.35) !important;
}

.correction-page .step-item.active .step-name {
    color: #d97706 !important;
}

.correction-page .step-item.completed .step-circle {
    background: #f59e0b !important;
}

.correction-page .btn-primary {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35) !important;
}

.correction-page .btn-primary:hover {
    background: linear-gradient(135deg, #b45309, #d97706) !important;
}

.correction-page .teal-card {
    background: #fffbeb !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

.correction-page .card-header {
    border-bottom-color: rgba(245, 158, 11, 0.2) !important;
}

.correction-page .form-group input:focus,
.correction-page .form-group select:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12) !important;
}

.correction-page .card-title {
    color: #92400e;
}

.correction-page .section-divider {
    color: #d97706;
}

.correction-page .upload-item {
    border-color: #f59e0b;
}

.correction-page .upload-item.active-upload {
    border-color: #f59e0b !important;
    background: #fffbeb !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2) !important;
}

.correction-page .upload-progress-fill {
    background: linear-gradient(90deg, #d97706 0%, #f59e0b 100%) !important;
}

.correction-page .upload-progress-text {
    color: #d97706 !important;
}

.correction-page .correction-option input:checked+.option-content {
    background: #f0fdf4 !important;
    border-color: #16a34a !important;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.2) !important;
}

.correction-page .correction-option input:checked+.option-content::before {
    background: #16a34a !important;
    border-color: #16a34a !important;
}

.correction-page .correction-option input:checked+.option-content .option-text {
    color: #15803d !important;
}

.correction-page .correction-option:hover .option-content {
    border-color: #16a34a !important;
}

.correction-page .notice {
    color: #92400e;
}

/* Completed step styling */
.step-item.completed .step-circle {
    position: relative;
    overflow: visible;
    background: #10b981;
    color: transparent !important;
    font-size: 0 !important;
    line-height: 0;
}

.step-item.completed .step-circle::after {
    content: '✓';
    position: absolute;
    font-size: 16px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    line-height: 1;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-apply-page .step-item.completed .step-circle {
    background: #10b981;
}

.step-item.completed .step-name {
    color: #10b981;
    opacity: 1;
}

/* Orange completed steps for correction page (non-new-apply pages) */
body:not(.new-apply-page) .step-item.completed .step-circle {
    background: #f59e0b;
}

body:not(.new-apply-page) .step-item.completed .step-name {
    color: #10b981;
}

.step-subtitle {
    font-size: 0.75em;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.2;
}

.step-arrow {
    color: #9ca3af;
    font-size: 1em;
    margin: 0 5px;
}

/* Form Container */
.form-container {
    max-width: 1000px;
    margin: 0 auto;
}

.form-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Form Card */
.form-card {
    background: #F1F5F9;
    border-radius: 14px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.teal-card {
    background: #F0F9FF;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

.green-card {
    background: #F0FDF4;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.instruction-text {
    font-size: 0.9em;
    color: #6b7280;
    font-style: italic;
}

.card-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #333;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.short-centered {
    grid-column: 1 / -1;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-group.short-centered label {
    text-align: left;
    width: 100%;
    font-weight: 600;
}

.form-group.short-centered input,
.form-group.short-centered select {
    text-align: left;
    width: 100%;
}

.form-group label {
    margin-bottom: 8px;
    color: #3A3A3C;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.form-group input,
.form-group select {
    padding: 12px 14px;
    border: 1px solid #C7C7CC;
    border-radius: 10px;
    font-size: 16px;
    /* iOS standard for no-zoom */
    transition: all 0.2s ease;
    font-family: inherit;
    background: #FFFFFF;
    color: #1C1C1E;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* Date of Birth Group */
/* Date of Birth Group - Desktop specific layout */
.dob-group {
    display: flex;
    flex-direction: column;
}

.dob-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dob-inputs input,
.dob-inputs select {
    text-align: left;
}

/* Gender Group */
.gender-group {
    grid-column: 1 / -1;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.radio-label:hover {
    border-color: #3A57FC;
    background: #f3f4f6;
}

.radio-label input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3A57FC;
}

.radio-label span {
    color: #374151;
    font-weight: 500;
}

.radio-label:has(input:checked) {
    border-color: #3A57FC;
    background: #ede9fe;
}

/* Section Divider */
.section-divider {
    grid-column: 1 / -1;
    font-size: 1.1em;
    font-weight: 600;
    color: #3A57FC;
    margin: 20px 0 10px;
    padding-top: 15px;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

/* Correction Checkbox Grid */
.correction-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.correction-option {
    position: relative;
    cursor: pointer;
}

.correction-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 6px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* Custom checkbox square in top-right corner */
.option-content::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 5px;
    background: white;
    transition: all 0.2s ease;
}

/* Tick mark when checked */
.correction-option input:checked+.option-content::before {
    background: #3A57FC;
    border-color: #3A57FC;
}

.option-content::after {
    content: '';
    position: absolute;
    top: 9px;
    right: 12px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.correction-option input:checked+.option-content::after {
    opacity: 1;
}

.correction-option:hover .option-content {
    border-color: #3A57FC;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 87, 252, 0.1);
}

.correction-option:hover .option-content::before {
    border-color: #3A57FC;
}

.correction-option input:checked+.option-content {
    background: #f0f4ff;
    border-color: #3A57FC;
    box-shadow: 0 4px 15px rgba(58, 87, 252, 0.2);
}

.option-icon {
    font-size: 18px;
    display: block;
}

.option-text {
    font-size: 0.75em;
    font-weight: 600;
    color: #374151;
}

.correction-option input:checked+.option-content .option-text {
    color: #3A57FC;
}

@media (max-width: 480px) {
    .correction-checkbox-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Notice */
.notice {
    display: block;
    margin-top: 8px;
    color: #065f46;
    font-size: 0.85em;
    font-style: italic;
    font-weight: 500;
}

/* Upload Section */
.upload-section {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
    width: 100%;
}

/* Thumbnail Bar */
.upload-thumbnails-bar {
    width: 100%;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    background: #f8fafc;
    padding: 10px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.upload-thumb {
    width: 65px;
    height: 65px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.upload-thumb.thumb-pending {
    border-style: dashed;
    background: #f1f5f9;
}

.upload-thumb.thumb-pending::before {
    content: attr(data-step-label);
    font-size: 20px;
    font-weight: 700;
    color: #94a3b8;
}

.upload-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.upload-thumb:not(.thumb-pending) img {
    display: block;
}

/* Checkmark overlay for completed uploads - only for non-pending */
.upload-thumb:not(.thumb-pending)::after {
    content: '✓';
    position: absolute;
    top: -4px;
    right: -4px;
    background: #10b981;
    color: white;
    font-size: 10px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid white;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



.upload-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-color: #3A57FC;
}

.upload-thumb.active-thumb {
    border-color: #3A57FC;
    border-width: 3px;
    background: #eff6ff;
    box-shadow: 0 0 0 4px rgba(58, 87, 252, 0.15);
}

.upload-item {
    background: #F1F5F9;
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px dashed #3A57FC;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    box-sizing: border-box;
}

.upload-item.active-upload {
    border-color: #3A57FC;
    border-width: 3px;
    background: #f0f4ff;
    box-shadow: 0 4px 12px rgba(58, 87, 252, 0.2);
}

/* Completed Upload Styling (Hidden from main flow, shown in bar) */
.upload-item.completed-upload {
    display: none !important;
}

.upload-item:hover {
    border-color: #059669;
    background: #f0fdf4;
}

.upload-status {
    margin-top: 10px;
    font-size: 0.9em;
    font-weight: 600;
    min-height: 20px;
}

.upload-progress-container {
    margin: 10px auto 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 300px;
    /* Further increased width */
}

.upload-progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.upload-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3A57FC 0%, #10b981 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.upload-progress-text {
    font-size: 0.85em;
    font-weight: 600;
    color: #3A57FC;
    min-width: 40px;
    text-align: right;
}

.upload-item label {
    display: block;
    margin-bottom: 15px;
    color: #374151;
    font-weight: 600;
    font-size: 0.85rem;
}

.upload-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.upload-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

/* When demo section is hidden, center the preview */
.upload-preview-container.example-hidden {
    grid-template-columns: 1fr;
    justify-items: center;
}

.preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Always show when parent has an active image */
.upload-item.has-image .preview-remove {
    display: flex;
}

/* Adjust position to be exactly on the corner but not "far" */
.preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    /* Solid red */
    color: white;
    border-radius: 50%;
    display: none;
    /* Controlled by .has-image class */
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.preview-remove:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.preview-remove:active {
    transform: scale(0.95);
}

.demo-image {
    min-width: 80px;
    min-height: 80px;
    width: auto;
    height: auto;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    /* For the remove button */
    margin: 0 auto;
}

.demo-image img {
    width: auto;
    height: 120px;
    max-width: 160px;
    display: block;
    object-fit: cover;
}

/* Demo image should be tilted 20 degrees - in example photo section */
#photoDemo,
#signatureDemo {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
    border-radius: 8px;
}

/* Preview image should be straight (no tilt) */
.preview-image {
    width: auto;
    height: 120px;
    max-width: 160px;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin: 0 auto;
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}

.demo-gif-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-gif-container {
    width: 100%;
    max-width: 240px;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    padding: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.demo-gif-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 6px;
    flex-shrink: 0;
}

.demo-gif-placeholder {
    width: 100%;
    height: 80px;
    margin-bottom: 4px;
    border-radius: 8px;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.demo-gif-placeholder svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.demo-gif-placeholder img {
    width: auto;
    height: 120px;
    max-width: 160px;
    object-fit: cover;
    display: block;
}

.demo-gif-instructions {
    flex-shrink: 0;
}

.demo-gif-instructions {
    text-align: left;
    font-size: 0.8em;
    color: #4b5563;
    line-height: 1.6;
}

.demo-gif-instructions p {
    margin: 4px 0;
    padding-left: 8px;
}

.upload-box input[type="file"] {
    display: none;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3A57FC 0%, #2940D4 100%);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    border: none;
    box-shadow: 0 4px 12px rgba(58, 87, 252, 0.25);
    position: relative;
    overflow: hidden;
}

.upload-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.upload-btn:hover::before {
    width: 300px;
    height: 300px;
}

.upload-btn:hover {
    background: linear-gradient(135deg, #2940D4 0%, #1E2FA8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 87, 252, 0.4);
}

.upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(58, 87, 252, 0.3);
}

.upload-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.upload-btn span {
    position: relative;
    z-index: 1;
    color: white;
}

.file-name {
    display: block;
    margin-top: 10px;
    font-size: 0.85em;
    color: #6b7280;
    word-break: break-all;
}

/* Document Delete Icon (Modern Style) */
.doc-delete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fee2e2;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    margin: 10px auto;
    transition: all 0.2s ease;
    width: fit-content;
}

.doc-delete-icon svg {
    flex-shrink: 0;
}

.doc-delete-icon:hover {
    background: #fee2e2;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.15);
}

.doc-delete-icon:active {
    transform: translateY(0);
}



/* Form Actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    flex: 1;
    max-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: #0062CC;
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-secondary {
    background: #9ca3af;
    color: white;
}

.btn-secondary:hover {
    background: #6b7280;
    transform: translateY(-2px);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Summary Container */
.summary-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

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

/* ── Summary Shimmer Loading State ─────────────────────────────── */
.shimmer-loading {
    position: relative;
    background: linear-gradient(90deg, #e8ecf0 25%, #f4f6f8 50%, #e8ecf0 75%);
    background-size: 200% 100%;
    animation: summaryShimmer 1.4s ease-in-out infinite;
    border-radius: 6px;
    color: transparent !important;
    min-width: 80px;
    min-height: 16px;
    display: inline-block;
    vertical-align: middle;
    user-select: none;
    pointer-events: none;
}

.shimmer-loading * {
    visibility: hidden;
}

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

/* Price row shimmer — wider pill for amounts */
.price-shimmer {
    display: inline-block;
    width: 60px;
    height: 16px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8ecf0 25%, #f4f6f8 50%, #e8ecf0 75%);
    background-size: 200% 100%;
    animation: summaryShimmer 1.4s ease-in-out infinite;
    vertical-align: middle;
}

/* Large shimmer for final price */
.price-shimmer-lg {
    display: inline-block;
    width: 80px;
    height: 22px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e8ecf0 25%, #f4f6f8 50%, #e8ecf0 75%);
    background-size: 200% 100%;
    animation: summaryShimmer 1.4s ease-in-out infinite;
    vertical-align: middle;
}

.item-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
}

.item-label svg {
    color: #94a3b8;
}

.item-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Payment Box */
.payment-box {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.price-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.price-item span:first-child {
    color: #64748b;
    font-weight: 500;
}

.original-price {
    text-decoration: line-through;
    color: #94a3b8;
}

.discount {
    color: #10b981;
    font-weight: 600;
}

.price-item.total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
    font-size: 1.1rem;
    font-weight: 700;
}

.total span:first-child {
    color: #1e293b !important;
}

.final-price {
    color: #3A57FC;
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Base tablet/mobile styles - Mobile App Style */
    body {
        font-size: 14px;
        padding: 0;
    }

    .container {
        padding: 0;
        max-width: 100%;
    }

    .main-container {
        padding: 0;
        max-width: 100%;
    }

    /* Header tablet/mobile */
    .main-header {
        padding: 12px 15px;
    }

    .header-content {
        gap: 10px;
    }

    .site-name {
        font-size: 1.3em;
    }

    .back-icon {
        font-size: 22px;
    }

    /* Form title tablet/mobile */
    .form-title {
        font-size: 1.3em;
        margin: 15px 15px 20px;
        text-align: center;
    }

    /* Progress steps tablet/mobile */
    .progress-steps {
        padding: 8px 10px;
        gap: 3px;
        margin: 0 0 15px 0;
        background: white;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
        gap: 3px;
    }

    .step-info {
        align-items: center;
    }

    .step-circle {
        width: 20px;
        height: 20px;
        font-size: 0.6em;
    }

    .step-name {
        font-size: 0.55em;
        line-height: 1.1;
    }

    .step-subtitle {
        font-size: 0.5em;
        line-height: 1.1;
    }

    .step-arrow {
        transform: rotate(90deg);
        margin: 2px 0;
        font-size: 0.6em;
    }

    /* Form card tablet/mobile - Mobile App Style */
    .form-card {
        padding: 20px 16px;
        border-radius: 14px;
        margin: 0 4px 20px 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .teal-card {
        background: #F0F9FF;
        border: 1px solid rgba(0, 122, 255, 0.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .green-card {
        background: #F8F9FB;
        border: 1px solid rgba(16, 185, 129, 0.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 1.15em;
    }

    .instruction-text {
        font-size: 0.8em;
    }

    /* Form grid tablet/mobile */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .form-group {
        margin-bottom: 8px;
    }

    .form-group label {
        font-size: 0.8em;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group select {
        padding: 18px 11px;
        font-size: 13px;
        border-radius: 7px;
        -webkit-appearance: none;
        appearance: none;
    }

    /* Prevent zoom on input focus iOS */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    select {
        font-size: 16px !important;
    }

    .form-group.full-width {
        grid-column: 1;
    }

    .email-group {
        grid-column: 1 / -1;
    }

    .dob-group {
        grid-column: 1;
    }

    .dob-inputs {
        gap: 6px;
    }

    .dob-inputs input,
    .dob-inputs select {
        padding: 9px 8px;
        font-size: 13px;
    }

    .gender-group {
        grid-column: 1;
    }

    .section-divider {
        grid-column: 1;
        font-size: 0.9em;
        margin: 12px 0 6px;
    }

    /* Upload section tablet/mobile - Mobile App Style */
    .upload-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .upload-item {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .upload-preview-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 15px;
    }

    .demo-image {
        max-width: 200px;
        max-height: 200px;
        margin: 0 auto 0;
    }

    .demo-image img,
    .preview-image {
        max-height: 200px;
    }

    .demo-gif-container {
        max-width: 200px;
        max-height: 200px;
        padding: 12px;
    }

    .demo-gif-label {
        font-size: 0.75em;
        margin-bottom: 8px;
    }

    .demo-gif-placeholder {
        height: 140px;
        margin-bottom: 8px;
    }

    .demo-gif-instructions {
        font-size: 0.7em;
    }

    .upload-btn {
        min-height: 50px;
        font-size: 1em;
        border-radius: 10px;
        padding: 12px 20px;
    }

    .upload-btn svg {
        width: 14px;
        height: 14px;
    }

    .upload-item {
        padding: 18px;
    }

    .demo-image {
        max-width: 140px;
        max-height: 90px;
        margin: 0 auto 12px;
    }

    .demo-image img,
    .preview-image {
        max-height: 90px;
    }

    /* Form actions tablet/mobile - Mobile App Style */
    .form-actions {
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        margin-top: 25px;
        padding: 0 15px 20px;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        padding-top: 15px;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .btn {
        max-width: 100%;
        min-height: 50px;
        /* Touch-friendly */
        font-size: 1em;
        font-weight: 600;
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    /* Receipt mobile - Mobile App Style */
    .receipt-main-content {
        margin-bottom: 15px;
    }

    .receipt-section {
        margin-bottom: 20px;
    }

    /* Status cards mobile - Mobile App Style */
    .status-cards-container {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .receipt-card {
        margin-bottom: 0;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }

    .status-card {
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
        margin-top: 0;
    }

    /* Download button mobile */
    .download-receipt-btn-container {
        margin: 15px;
        margin-bottom: 20px;
    }

    .download-receipt-btn {
        width: 100%;
        border-radius: 12px;
        min-height: 56px;
        padding: 14px 24px;
        font-size: 0.9em;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {

    /* Base mobile styles - Mobile App Style */
    body {
        font-size: 14px;
    }

    .container {
        padding: 0;
    }

    .main-container {
        padding: 0;
    }

    /* Header mobile */
    .main-header {
        padding: 12px 15px;
    }

    .site-name {
        font-size: 1.1em;
    }

    .back-icon {
        font-size: 20px;
    }

    /* Form title mobile */
    .form-title {
        font-size: 1.2em;
        margin: 12px 8px;
        text-align: center;
    }

    /* Progress steps mobile */
    .progress-steps {
        padding: 6px 8px;
        gap: 2px;
        margin: 0 0 12px 0;
        background: white;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }

    .step-circle {
        width: 18px;
        height: 18px;
        font-size: 0.55em;
    }

    .step-name {
        font-size: 0.5em;
        line-height: 1.1;
    }

    .step-subtitle {
        font-size: 0.45em;
        line-height: 1.1;
    }

    /* Form card mobile - Mobile App Style */
    .form-card {
        padding: 20px 14px;
        border-radius: 14px;
        margin: 0 4px 15px 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.08);
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

    .teal-card {
        background: #F0F9FF;
        border: 1px solid rgba(0, 122, 255, 0.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .green-card {
        background: #F0FDF4;
        border: 1px solid rgba(16, 185, 129, 0.2);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }

    .card-title {
        font-size: 1em;
    }

    .instruction-text {
        font-size: 0.75em;
    }

    /* Form inputs mobile */
    .form-group label {
        font-size: 0.75em;
        margin-bottom: 5px;
        font-weight: 600;
    }

    .form-group input,
    .form-group select {
        padding: 8px 10px;
        font-size: 13px;
        border-radius: 7px;
        -webkit-appearance: none;
        appearance: none;
        width: 100%;
    }

    /* Prevent zoom on input focus iOS - but allow smaller font */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="date"],
    select {
        font-size: 13px !important;
    }

    /* Buttons mobile - Mobile App Style */
    .form-actions {
        flex-direction: row;
        justify-content: space-between;
        padding: 12px 8px;
        margin: 0;
        position: sticky;
        bottom: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        z-index: 10;
    }

    .btn {
        padding: 12px 18px;
        font-size: 0.9em;
        min-height: 44px;
        /* Touch-friendly */
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        font-weight: 600;
        flex: 1;
        max-width: 48%;
    }

    /* Upload section mobile - Mobile App Style */
    .upload-section {
        padding: 0 15px;
    }

    .upload-item {
        padding: 20px;
        border-radius: 12px;
        margin-bottom: 15px;
    }

    .upload-item label {
        font-size: 0.9em;
        font-weight: 600;
    }

    .upload-preview-container {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }

    .demo-image {
        max-width: 180px;
        max-height: 180px;
        margin: 0 auto 0;
    }

    .demo-image img,
    .preview-image {
        max-height: 180px;
    }

    .demo-gif-container {
        max-width: 180px;
        max-height: 180px;
        padding: 10px;
    }

    .demo-gif-label {
        font-size: 0.7em;
        margin-bottom: 6px;
    }

    .demo-gif-placeholder {
        height: 120px;
        margin-bottom: 6px;
    }

    .demo-gif-instructions {
        font-size: 0.65em;
    }

    .upload-btn {
        padding: 12px 18px;
        font-size: 0.9em;
        min-height: 48px;
        border-radius: 10px;
        gap: 8px;
    }

    .upload-btn svg {
        width: 12px;
        height: 12px;
    }

    /* Receipt mobile */
    .receipt-card {
        border-width: 1px;
        border-radius: 0;
    }

    .receipt-header-simple {
        padding: 12px 15px;
    }

    .receipt-title-section h2 {
        font-size: 0.95em;
    }

    .receipt-logo-section {
        gap: 3px;
    }

    .applied-on-text {
        font-size: 0.65em;
    }

    .receipt-logo-img {
        height: 30px;
        max-width: 90px;
    }

    .receipt-info-header p {
        font-size: 0.7em;
    }

    .receipt-content {
        padding: 12px 15px;
    }

    .receipt-section {
        margin-bottom: 15px;
    }

    .section-header {
        font-size: 0.75em;
        padding: 6px 10px;
    }

    .govt-table {
        font-size: 0.7em;
    }

    .table-label,
    .table-value,
    .table-data {
        padding: 6px 8px;
    }

    .table-label {
        width: 40%;
        font-size: 0.7em;
    }

    .table-value {
        width: 5%;
        font-size: 0.7em;
    }

    .table-data {
        width: 55%;
        font-size: 0.7em;
    }

    .photo-sign-container {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }

    .photo-box-govt,
    .signature-box-govt {
        min-height: 90px;
        padding: 10px;
    }

    .box-label-govt {
        font-size: 0.7em;
    }

    .box-placeholder-govt {
        font-size: 1.5em;
    }

    .receipt-footer-simple {
        padding: 12px 15px;
    }

    .receipt-footer-simple p {
        font-size: 0.7em;
    }

    /* Status card mobile */
    .status-card {
        padding: 15px;
    }

    .status-header h2 {
        font-size: 1.2em;
    }

    .timeline-title {
        font-size: 0.9em;
    }

    .timeline-time {
        font-size: 0.8em;
    }

    /* Home page mobile */
    .nav-bar {
        padding: 8px 0;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 0.85em;
    }

    .promo-card {
        padding: 15px;
    }

    .promo-card h3 {
        font-size: 1.1em;
    }

    .promo-card ul li {
        font-size: 0.85em;
    }

    .hindi-text {
        font-size: 0.75em;
    }

    .action-btn {
        padding: 15px;
        font-size: 1em;
        min-height: 50px;
    }

    .application-card {
        padding: 15px;
    }

    .app-name {
        font-size: 1em;
    }

    .app-father,
    .app-tkn,
    .app-date {
        font-size: 0.8em;
    }

    /* Summary mobile */
    .summary-container {
        padding: 15px 10px;
        border-radius: 12px;
        margin: 0 8px 15px;
    }

    .summary-item {
        font-size: 0.9em;
        padding: 10px 0;
    }

    /* Payment box mobile */
    .payment-box {
        padding: 15px 10px;
        border-radius: 12px;
        margin: 0 8px;
    }

    .price-item {
        font-size: 1em;
    }

    .price-item.total {
        font-size: 1.2em;
    }

    .final-price {
        font-size: 1.1em;
    }

    /* Timeline mobile */
    .status-card {
        padding: 15px;
        border-width: 1px;
    }

    .status-header {
        margin-bottom: 18px;
        padding-bottom: 10px;
    }

    .status-header h2 {
        font-size: 0.95em;
    }

    .timeline {
        padding-left: 26px;
    }

    .timeline-item {
        margin-bottom: 20px;
        gap: 12px;
    }

    .timeline-item:not(:last-child)::after {
        left: 11px;
        top: 24px;
        width: 2px;
    }

    .timeline-circle {
        width: 24px;
        height: 24px;
        font-size: 0.75em;
        border-width: 2px;
    }

    .timeline-content {
        padding: 8px 12px;
    }

    .timeline-title {
        font-size: 0.8em;
    }

    .timeline-time {
        font-size: 0.7em;
    }

    /* Receipt mobile details - Additional adjustments */
    .receipt-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .receipt-logo-img {
        align-self: flex-end;
    }

    /* Navigation mobile */
    .nav-content {
        padding: 0 10px;
        gap: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        white-space: nowrap;
        font-size: 0.8em;
        padding: 6px 12px;
    }

    /* Progress bar mobile */
    .upload-progress-bar {
        height: 6px;
    }

    .upload-progress-text {
        font-size: 0.8em;
        min-width: 35px;
    }

    /* Pagination mobile */
    .page-btn {
        width: 36px;
        height: 36px;
        font-size: 0.85em;
    }

    /* Radio buttons mobile */
    .radio-label {
        padding: 8px;
        font-size: 0.85em;
    }

    .radio-label span {
        font-size: 0.85em;
    }

    /* Notice text mobile */
    .notice {
        font-size: 0.75em;
    }
}

/* Home Page Styles */
.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

.home-icon {
    width: 24px;
    height: 24px;
    color: white;
    flex-shrink: 0;
    display: block;
}

.balance {
    font-weight: 600;
}

.notification-icon {
    font-size: 1.2em;
    cursor: pointer;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-icon {
    width: 30px;
    height: 30px;
    background: #fbbf24;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.user-name {
    font-size: 0.9em;
}

/* Navigation Bar */
/* Side Drawer Styles */
.side-drawer-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-drawer-overlay.active {
    display: block;
    opacity: 1;
}

.side-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    overflow-y: auto;
}

.side-drawer.active {
    left: 0;
}

.side-drawer-header {
    background: #1e3a8a;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.side-drawer-header h2 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
}

.side-drawer-close {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.side-drawer-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.side-drawer-close svg {
    width: 20px;
    height: 20px;
}

.side-drawer-content {
    padding: 10px 0;
}

.side-drawer-link {
    display: block;
    padding: 15px 20px;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.3s ease;
}

.side-drawer-link:hover,
.side-drawer-link.active {
    background: #f3f4f6;
    color: #1e3a8a;
}

.side-drawer-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-arrow {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.side-drawer-dropdown.active .side-arrow {
    transform: rotate(180deg);
}

.side-drawer-submenu {
    display: none;
    background: #f9fafb;
}

.side-drawer-dropdown.active .side-drawer-submenu {
    display: block;
}

.side-drawer-sublink {
    display: block;
    padding: 12px 40px;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9em;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.3s ease;
}

.side-drawer-sublink:hover {
    background: #f3f4f6;
    color: #1e3a8a;
}

.nav-bar {
    background: #3A57FC;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.menu-icon {
    display: block;
}

.nav-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    flex: 1;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.nav-link.active {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 5px;
    padding: 8px 0;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    background: #f3f4f6;
    color: #3A57FC;
    border-left-color: #3A57FC;
    padding-left: 25px;
}

/* Main Container */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Promotional Section */
.promo-section {
    margin-bottom: 30px;
}

.image-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    background: #f3f4f6;
}

.image-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 1;
    max-height: 170px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    position: relative;
    z-index: 1;
}

/* Ensure first slide is visible immediately, even before JS loads */
.carousel-slide:first-child.active {
    opacity: 1 !important;
    position: relative !important;
    z-index: 2;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Desktop images - show on desktop, hide on mobile */
.desktop-image {
    display: block;
}

.mobile-image {
    display: none;
}

/* Mobile images - show on mobile, hide on desktop */
@media (max-width: 768px) {
    .image-carousel {
        aspect-ratio: 2 / 1;
        max-height: 120px;
    }

    .desktop-image {
        display: none;
    }

    .mobile-image {
        display: block;
    }
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

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

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: white;
    width: 25px;
    border-radius: 5px;
}

.pricing-card {
    text-align: center;
}

.old-price {
    text-decoration: line-through;
    opacity: 0.7;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.new-price {
    font-size: 1.8em;
    font-weight: bold;
}

/* Support Scrolling Text - Modern Style */
.support-scroll-container {
    overflow: hidden;
    background: #f8f9fa;
    padding: 12px 0;
    margin: 3px 0 30px;
    position: relative;
    white-space: nowrap;
}

.support-scroll-container::before,
.support-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.support-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, #f8f9fa, transparent);
}

.support-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, #f8f9fa, transparent);
}

.support-scroll-text {
    display: inline-block;
    color: #374151;
    font-size: 0.9em;
    font-weight: 500;
    padding-left: 100%;
    animation: scroll-text 30s linear infinite;
    white-space: nowrap;
}

.support-phone {
    color: #3A57FC;
    font-weight: 600;
    text-decoration: none;
}

.support-phone:hover {
    text-decoration: underline;
}

@keyframes scroll-text {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 15px;
}

/* Tablet/Laptop - 3 buttons per row */
@media (min-width: 769px) and (max-width: 1024px) {
    .action-buttons {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Mobile - 2 buttons per row */
@media (max-width: 768px) {
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 0 15px 20px;
    }
}

.action-btn {
    background: #3A57FC;
    color: white;
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(58, 87, 252, 0.3);
}

.action-btn:hover {
    background: #2940D4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 87, 252, 0.4);
}

/* Applications Section */
.applications-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-card {
    margin-top: 20px;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px;
    align-items: end;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-input-group label {
    font-size: 0.9em;
    font-weight: 600;
    color: #374151;
}

.search-select,
.search-input {
    padding: 10px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 0.95em;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 450px;
    box-shadow: inset 2px 0 4px rgba(0, 0, 0, 0.1), inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-select:focus,
.search-input:focus {
    outline: none;
    border-color: #3A57FC;
    box-shadow: 0 0 0 3px rgba(58, 87, 252, 0.1);
}

.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #3A57FC 0%, #2940D4 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(58, 87, 252, 0.25);
    white-space: nowrap;
    height: fit-content;
    align-self: end;
}

.search-btn:hover {
    background: linear-gradient(135deg, #2940D4 0%, #1E2FA8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(58, 87, 252, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

.search-results {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 2px solid #e5e7eb;
}

.search-results-title {
    font-size: 1.2em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 1.2em;
}

.applications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.application-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.application-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #3A57FC;
    transform: translateY(-2px);
}

.application-card.incomplete {
    border-color: #fbbf24;
    background: #fffbeb;
    border-width: 1px;
}

.app-status {
    font-size: 0.85em;
    color: #f59e0b;
    margin-top: 5px;
    font-weight: 600;
}

.application-card.incomplete .app-status {
    color: #d97706;
}

.app-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4em;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.app-details {
    flex: 1;
}

.app-name {
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    line-height: 1.3;
}

.app-father {
    color: #6b7280;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.app-tkn {
    color: #3A57FC;
    font-weight: 600;
    font-size: 0.85em;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.app-date {
    color: #6b7280;
    font-size: 0.8em;
    margin-top: 2px;
}

.app-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.progress-bar {
    width: 70px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3A57FC 0%, #7B8FFF 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-bar span {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 0.75em;
    color: #3A57FC;
    font-weight: 600;
}

.delete-btn {
    background: none;
    border: none;
    font-size: 1.3em;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.delete-btn:hover {
    transform: scale(1.2);
}

.view-btn {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(91, 111, 255, 0.2);
}

.view-btn:hover {
    background: linear-gradient(135deg, #3A57FC 0%, #2940D4 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(91, 111, 255, 0.3);
}

.continue-btn {
    padding: 8px 14px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85em;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.continue-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
}

.see-all-btn {
    float: right;
    margin-top: 20px;
    padding: 10px 20px;
    background: #3A57FC;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.see-all-btn:hover {
    background: #2940D4;
    transform: translateY(-2px);
}

.no-applications {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

/* Status Page Styles */
.download-receipt-btn-container {
    text-align: center;
    margin: 20px 0;
}

.download-receipt-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 1.05em;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.download-receipt-btn:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.5);
}

.download-receipt-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

/* Status Cards Container */
.status-cards-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.receipt-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Simple Receipt Header */
.receipt-header-simple {
    background: linear-gradient(to right, #fffbeb 0%, #f9fafb 100%);
    border-bottom: 2px solid #fbbf24;
    padding: 15px 20px;
}

.receipt-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.receipt-title-section h2 {
    font-size: 1.1em;
    color: #f59e0b;
    margin: 0;
    font-weight: 600;
}

.receipt-logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.applied-on-text {
    font-size: 0.7em;
    color: #6b7280;
    font-weight: 500;
    text-align: right;
}

.receipt-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    max-width: 120px;
}

.receipt-info-header {
    margin-top: 8px;
}

.receipt-info-header p {
    margin: 3px 0;
    font-size: 0.75em;
    color: #6b7280;
}

.receipt-info-header p:first-child {
    color: #374151;
    font-weight: 600;
}

.receipt-content {
    padding: 20px;
    background: white;
}

.receipt-main-content {
    margin-bottom: 15px;
}

.receipt-section {
    margin-bottom: 18px;
    border: 1px solid #e5e7eb;
    border-left: 3px solid #f59e0b;
    background: #f9fafb;
}

.section-header {
    background: linear-gradient(to right, #fffbeb 0%, #f3f4f6 100%);
    color: #f59e0b;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #fde68a;
}

.govt-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 0.8em;
}

.govt-table tr {
    border-bottom: 1px solid #e5e7eb;
}

.govt-table tr:last-child {
    border-bottom: none;
}

.table-label {
    padding: 8px 12px;
    font-weight: 500;
    color: #6b7280;
    width: 35%;
    vertical-align: top;
    border-right: 1px solid #e5e7eb;
    background: #f9fafb;
}

.table-value {
    padding: 8px 6px;
    font-weight: 600;
    color: #f59e0b;
    width: 5%;
    text-align: center;
    vertical-align: top;
}

.table-data {
    padding: 8px 12px;
    color: #374151;
    width: 60%;
    vertical-align: top;
}

.receipt-section-photo-sign {
    margin-top: 18px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.photo-sign-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 15px;
    background: white;
}

.photo-box-govt,
.signature-box-govt {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-top: 2px solid #fb923c;
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.box-label-govt {
    font-weight: 500;
    color: #ea580c;
    margin-bottom: 8px;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.box-placeholder-govt {
    font-size: 1.8em;
    opacity: 0.5;
}

.receipt-footer-simple {
    background: linear-gradient(to right, #fffbeb 0%, #f9fafb 100%);
    border-top: 2px solid #fbbf24;
    padding: 15px 20px;
    text-align: center;
}

.receipt-footer-simple p {
    margin: 5px 0;
    color: #6b7280;
    font-size: 0.75em;
    line-height: 1.5;
}

.receipt-footer-simple p:first-child {
    color: #f59e0b;
    font-weight: 500;
}

/* Status Timeline */
.status-card {
    background: #ffffff;
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
    align-self: start;
}

.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #86efac;
}

.status-header h2 {
    font-size: 1.1em;
    color: #16a34a;
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.menu-dots {
    font-size: 1.1em;
    color: #9ca3af;
    cursor: pointer;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
    position: relative;
}

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

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 13px;
    top: 28px;
    width: 3px;
    height: calc(100% - 4px);
    background: #86efac;
    border-radius: 2px;
    z-index: 1;
}

.timeline-item:not(:last-child):not(.completed)::after {
    background: #e5e7eb;
}

.timeline-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8em;
    flex-shrink: 0;
    border: 3px solid #ffffff;
    position: relative;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.timeline-item.completed .timeline-circle {
    background: #22c55e;
    color: white;
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.timeline-circle.green {
    background: #22c55e;
    color: white;
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.timeline-circle.red {
    background: #ef4444;
    color: white;
    border-color: #ffffff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.timeline-content {
    flex: 1;
    background: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.timeline-item.completed .timeline-content {
    background: #f0fdf4;
    border-color: #86efac;
}

.timeline-title {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.3;
}

.timeline-item.completed .timeline-title {
    color: #16a34a;
}

.timeline-time {
    font-size: 0.75em;
    color: #6b7280;
    line-height: 1.3;
}

/* History Page */
.page-title {
    font-size: 1.8em;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.3s ease;
}

.page-btn:hover {
    border-color: #3A57FC;
    color: #3A57FC;
}

.page-btn.active {
    background: #3A57FC;
    color: white;
    border-color: #3A57FC;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 20px;
    color: #6b7280;
    margin-top: 40px;
}

/* Responsive for Home Page - Mobile App Style */
@media (max-width: 768px) {
    .header-right {
        display: none;
    }

    /* Home page mobile app style */
    .promo-section {
        margin: 0;
        margin-bottom: 12px;
        padding: 0 8px;
    }

    .image-slider-container {
        border-radius: 12px;
    }

    .support-scroll-container {
        margin: 3px 8px 15px;
        padding: 10px 0;
    }

    .support-scroll-text {
        font-size: 0.85em;
    }

    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 0 15px 20px;
    }

    .action-btn {
        border-radius: 12px;
        min-height: 55px;
        font-size: 1em;
        box-shadow: 0 4px 12px rgba(58, 87, 252, 0.3);
    }

    .applications-section {
        margin: 0 8px 15px;
        border-radius: 12px;
        padding: 15px 10px;
    }

    .search-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-btn {
        width: 100%;
        padding: 14px 20px;
        justify-content: center;
    }

    .application-card {
        flex-direction: column;
        text-align: left;
        border-radius: 8px;
        padding: 14px 12px;
        gap: 12px;
    }

    .app-actions {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
        gap: 8px;
        flex-wrap: wrap;
    }

    .see-all-btn {
        float: none;
        display: block;
        text-align: center;
        margin: 15px 8px;
        border-radius: 12px;
        min-height: 50px;
    }

    /* Navigation mobile app style - Hide nav bar on mobile */
    .nav-bar {
        display: none;
    }

    /* Show menu icon in header on mobile */
    .mobile-header-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: block;
        margin-left: 15px;
        background: rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 6px;
        padding: 10px 12px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu-toggle:active {
        background: rgba(255, 255, 255, 0.3);
    }

    .menu-icon {
        font-size: 1.3em;
        line-height: 1;
    }

    .nav-content {
        padding: 0;
        gap: 0;
        flex-wrap: nowrap;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        max-height: 500px;
    }

    .nav-link {
        padding: 12px 20px;
        font-size: 0.9em;
        white-space: nowrap;
        border-radius: 0;
        min-height: 44px;
        display: flex;
        align-items: center;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .nav-dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 0;
        box-shadow: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(0, 0, 0, 0.1);
        border-radius: 0;
        padding: 0;
        min-width: 100%;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        color: white;
        padding: 12px 30px;
        font-size: 0.85em;
        border-left: none;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        border-left-color: transparent;
        padding-left: 30px;
    }

    /* Mobile dropdown - click to open */
    .nav-dropdown {
        position: relative;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        margin-top: 0;
        box-shadow: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        background: rgba(0, 0, 0, 0.1);
        border-radius: 0;
        padding: 5px 0;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-item {
        color: white;
        padding: 10px 20px;
        font-size: 0.85em;
    }

    .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.1);
        border-left-color: transparent;
        padding-left: 20px;
    }

    /* Status page responsive - Mobile App Style */
    .status-cards-container {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .receipt-card {
        margin-bottom: 0;
        padding: 20px 15px;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }

    .status-card {
        padding: 20px 15px;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }

    .receipt-title-section h2 {
        font-size: 1.2em;
    }

    .status-header h2 {
        font-size: 1.2em;
    }

    .download-receipt-btn {
        padding: 14px 24px;
        font-size: 0.9em;
        width: calc(100% - 30px);
        margin: 0 15px;
        border-radius: 12px;
        min-height: 56px;
        letter-spacing: 0.3px;
    }

    .page-title {
        font-size: 1.3em;
        margin: 15px;
        text-align: center;
    }

    /* History page mobile */
    .applications-list {
        padding: 0 15px;
    }

    .pagination {
        padding: 0 15px 20px;
    }
}

/* Print Styles - Only print receipt */
@media print {
    @page {
        size: A4;
        margin: 20mm;
    }

    body {
        margin: 0;
        padding: 0;
        background: white;
    }

    body * {
        visibility: hidden;
    }

    .receipt-card,
    .receipt-card * {
        visibility: visible;
    }

    .receipt-card {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 210mm;
        max-width: 100%;
        margin: 0 auto;
        padding: 20px;
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }

    .status-card,
    .download-receipt-btn-container,
    .main-header,
    .container {
        display: none !important;
    }

    .receipt-header-simple,
    .receipt-content,
    .receipt-footer-simple {
        page-break-inside: avoid;
    }
}

/* Document Upload Modal Styles */
.document-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.document-upload-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10001;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 2px solid #e5e7eb;
    background: linear-gradient(135deg, #3A57FC 0%, #2940D4 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 24px;
}

.upload-info {
    background: #f0f9ff;
    border-left: 4px solid #5B6FFF;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.info-text {
    margin: 0 0 12px 0;
    color: #1E2FA8;
    font-weight: 500;
}

.document-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-list li {
    padding: 8px 0;
    color: #374151;
    font-size: 0.95em;
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.upload-section {
    background: #f9fafb;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.upload-section h3 {
    margin: 0 0 16px 0;
    color: #1f2937;
    font-size: 1.1em;
    font-weight: 600;
}

.upload-group {
    margin-bottom: 20px;
}

.upload-group:last-child {
    margin-bottom: 0;
}

.upload-group label {
    display: block;
    margin-bottom: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 0.95em;
}

.upload-group input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.upload-group input[type="file"]:hover {
    border-color: #3A57FC;
    background: #faf5ff;
}

.upload-group input[type="file"]:focus {
    outline: none;
    border-color: #3A57FC;
    box-shadow: 0 0 0 3px rgba(58, 87, 252, 0.1);
}

.file-preview {
    margin-top: 10px;
}

.file-preview img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.small-preview-image {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
}

.upload-progress {
    margin: 20px 0;
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3A57FC 0%, #2940D4 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    margin: 0;
    color: #374151;
    font-size: 0.9em;
    text-align: center;
    font-weight: 500;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-primary {
    background: linear-gradient(135deg, #3A57FC 0%, #2940D4 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2940D4 0%, #1E2FA8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 87, 252, 0.4);
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

@media (max-width: 768px) {
    .modal-content {
        max-width: 100%;
        margin: 10px;
        max-height: 95vh;
    }

    .modal-header {
        padding: 16px 20px;
    }

    .modal-header h2 {
        font-size: 1.2em;
    }

    .modal-body {
        padding: 20px;
    }

    .upload-section {
        padding: 16px;
    }

    .modal-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

/* Content Pages (Terms, Help, etc.) */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.content-page h1 {
    color: #3A57FC;
    font-size: 2.2em;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-intro {
    font-size: 1.1em;
    color: #374151;
    margin-bottom: 30px;
    padding: 15px;
    background: #f0f9ff;
    border-left: 4px solid #3A57FC;
    border-radius: 8px;
}

.policy-section,
.help-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.policy-section:last-child,
.help-section:last-child {
    border-bottom: none;
}

.policy-section h2,
.help-section h2 {
    color: #3A57FC;
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.policy-section h3,
.faq-item h3 {
    color: #1f2937;
    font-size: 1.3em;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.policy-section p,
.faq-item p {
    color: #4b5563;
    margin-bottom: 15px;
    font-size: 1em;
}

.policy-section ul,
.policy-section ol,
.faq-item ul,
.faq-item ol {
    margin: 15px 0;
    padding-left: 30px;
    color: #4b5563;
}

.policy-section li,
.faq-item li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.faq-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #3A57FC;
}

.contact-info {
    background: #f0f9ff;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.contact-info p {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.contact-info a {
    color: #3A57FC;
    text-decoration: none;
    font-weight: 600;
}

.contact-info a:hover {
    text-decoration: underline;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.help-link {
    display: block;
    padding: 15px 20px;
    background: #3A57FC;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.help-link:hover {
    background: #2940D4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(58, 87, 252, 0.3);
}

/* Modern Informational Content Section Styles */
.info-content-section {
    background: #f9fafb;
    padding: 40px 0;
    margin-top: 30px;
}

.info-section-modern {
    background: white;
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.info-section-title-modern {
    color: #1f2937;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #10b981;
}

.info-content-modern {
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.95em;
}

.info-content-modern p {
    margin-bottom: 15px;
}

.info-highlight {
    background: #f0fdf4;
    padding: 12px 15px;
    border-left: 3px solid #10b981;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 500;
}

.info-note-modern {
    margin-top: 15px;
    color: #6b7280;
    font-style: italic;
    font-size: 0.9em;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.benefit-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 18px;
    text-align: center;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.benefit-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.benefit-card h3 {
    color: #1f2937;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.benefit-card p {
    color: #4b5563;
    font-size: 0.85em;
    line-height: 1.5;
    margin: 0;
}

/* Why Online Grid */
.why-online-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #10b981;
}

.why-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.why-item h3 {
    color: #1f2937;
    font-size: 0.95em;
    font-weight: 600;
    margin-bottom: 5px;
}

.why-item p {
    color: #6b7280;
    font-size: 0.85em;
    margin: 0;
    line-height: 1.5;
}

/* Documents Grid Modern */
.documents-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.document-category-modern {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 18px;
    transition: transform 0.3s ease;
}

.document-category-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.doc-category-title-modern {
    color: #10b981;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 12px;
}

.doc-list-modern {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-list-modern li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: #374151;
    font-size: 0.85em;
    border-bottom: 1px solid #dcfce7;
}

.doc-list-modern li:last-child {
    border-bottom: none;
}

.doc-list-modern li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 0.9em;
}

/* Uses Grid */
.uses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.use-item {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 12px 15px;
    text-align: center;
    color: #1f2937;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.use-item:hover {
    background: #dcfce7;
    transform: translateY(-2px);
}

/* Important Info Grid */
.important-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.important-item {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 3px solid #f59e0b;
    border-radius: 6px;
    padding: 15px;
    color: #4b5563;
    font-size: 0.9em;
    line-height: 1.6;
}

.important-item strong {
    color: #1f2937;
    display: block;
    margin-bottom: 5px;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.service-card {
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.service-card:hover {
    border-color: #10b981;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.service-icon {
    font-size: 2em;
    margin-bottom: 10px;
}

.service-card h3 {
    color: #1f2937;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 8px;
}

.service-card p {
    color: #6b7280;
    font-size: 0.85em;
    margin: 0;
    line-height: 1.5;
}

/* Steps Container Modern */
.steps-container-modern {
    margin: 20px 0;
}

.step-item-modern {
    display: flex;
    gap: 15px;
    margin-bottom: 18px;
    padding: 18px;
    background: #f0fdf4;
    border-left: 3px solid #10b981;
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.step-item-modern:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.step-number-modern {
    background: #10b981;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content-modern {
    flex: 1;
}

.step-title-modern {
    color: #1f2937;
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content-modern p {
    color: #4b5563;
    margin: 0;
    line-height: 1.6;
    font-size: 0.9em;
}

/* FAQ Styles Modern */
.faq-container-modern {
    margin-top: 15px;
}

.faq-item-modern {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 18px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.faq-item-modern:hover {
    border-color: #10b981;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
}

.faq-question-modern {
    color: #1f2937;
    font-size: 1.05em;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-question-modern::before {
    content: '❓';
    font-size: 1em;
}

.faq-answer-modern {
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    font-size: 0.9em;
}

.info-link-modern {
    color: #10b981;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.info-link-modern:hover {
    color: #059669;
    text-decoration: underline;
}

/* Responsive Styles for Info Section */
@media (max-width: 768px) {
    .info-content-section {
        padding: 30px 0;
    }

    .info-section-modern {
        padding: 20px 15px;
        margin-bottom: 15px;
    }

    .info-section-title-modern {
        font-size: 1.3em;
    }

    .benefits-grid,
    .why-online-grid,
    .documents-grid-modern,
    .uses-grid,
    .important-info-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .step-item-modern {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .step-number-modern {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }

    .step-title-modern {
        font-size: 1em;
    }

    .faq-item-modern {
        padding: 15px;
    }

    .faq-question-modern {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .content-page {
        padding: 20px 15px;
    }

    .content-page h1 {
        font-size: 1.8em;
    }

    .policy-section h2,
    .help-section h2 {
        font-size: 1.5em;
    }

    .policy-section h3,
    .faq-item h3 {
        font-size: 1.2em;
    }

    .quick-links {
        grid-template-columns: 1fr;
    }
}
/* ──── Delivery Info Banner ──── */
.delivery-info-banner {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 100%;
    animation: fadeInSlide 0.5s ease-out;
}

@keyframes fadeInSlide {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.delivery-info-banner .banner-icon {
    font-size: 20px;
    flex-shrink: 0;
    background: #e0f2fe;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.delivery-info-banner .banner-text {
    font-size: 14px;
    line-height: 1.5;
    color: #0369a1;
    font-weight: 500;
}

.delivery-info-banner .banner-text strong {
    color: #0c4a6e;
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
    font-weight: 800;
}

@media (max-width: 480px) {
    .delivery-info-banner {
        padding: 10px 14px;
        margin: 15px 0;
        gap: 10px;
    }
    .delivery-info-banner .banner-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
    .delivery-info-banner .banner-text {
        font-size: 13px;
    }
}
