:root {
    --primary: #034694;      /* Chelsea Blue */
    --primary-light: #0057b7;
    --primary-dark: #002b5c;
    --secondary: #f4f4f4;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --gray-900: #212529;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    --transition: all 0.3s ease;
}

/* Login Page Styles */
.login-page-body {
    background: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
}

.login-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-logo img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.login-body {
    padding: 2rem;
}

.login-card h5 {
    color: #212529;
    font-weight: 600;
}

.login-card .form-label {
    color: #212529;
    font-weight: 500;
}

.login-card .form-control {
    color: #212529;
    border-color: #dee2e6;
}

.login-card .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(3, 70, 148, 0.25);
    color: #212529;
}

.login-card .text-muted {
    color: #6c757d !important;
}

.login-card .btn-primary {
    background: var(--primary);
    border: none;
    color: white;
}

.login-card .btn-primary:hover {
    background: var(--primary-dark);
    color: white;
}

.login-card .btn-link {
    color: var(--primary);
}

.login-card .btn-link:hover {
    color: var(--primary-dark);
}

.login-card a {
    color: var(--primary);
    text-decoration: none;
}

.login-card a:hover {
    color: var(--primary-dark);
}

#otpStep {
    display: none;
}

.otp-input {
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 5px;
    color: #212529;
    border-color: #dee2e6;
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(3, 70, 148, 0.25);
}

.timer {
    color: var(--primary);
    font-weight: bold;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; line-height: 1.6; color: var(--gray-800); background: #f5f7fa; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.logo { display: flex; align-items: center; font-weight: 700; font-size: 1.5rem; color: var(--primary); text-decoration: none; cursor: pointer; }
.logo svg { height: 50px; margin-right: 12px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; }
.logo-tagline { font-size: 0.75rem; font-weight: 500; color: var(--primary-dark); letter-spacing: 1px; text-transform: uppercase; }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { text-decoration: none; color: var(--gray-800); font-weight: 500; position: relative; cursor: pointer; }
nav a:hover { color: var(--primary); }
nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--primary); transition: var(--transition); }
nav a:hover::after { width: 100%; }
.admin-login-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.admin-login-link::after { display: none; }
.admin-login-link:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(3,70,148,0.3);
}
.btn { display: inline-block; padding: 0.75rem 1.5rem; border-radius: var(--border-radius); font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; transition: var(--transition); border: none; font-size: 1rem; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--gray-800); cursor: pointer; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); padding: 6rem 0 5rem; position: relative; overflow: hidden; min-height: 500px; }
.hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,30 L100,100 L0,100 Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat bottom; background-size: 100% 50px; }
.hero .container { position: relative; z-index: 1; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 2rem 0; }
.hero-text h1 { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.2; font-weight: 800; }
.hero-text p { font-size: 1.15rem; margin-bottom: 2.5rem; opacity: 0.95; line-height: 1.6; }
.hero-text .btn { margin-right: 1rem; margin-bottom: 1rem; padding: 0.85rem 2rem; font-size: 1.05rem; }
.hero-image { text-align: center; }
.hero-image img { max-width: 100%; height: auto; border-radius: var(--border-radius); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
.trust-badges { display: flex; gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 0.5rem; background: rgba(255,255,255,0.2); padding: 0.65rem 1.25rem; border-radius: 50px; font-size: 0.9rem; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); }
.badge i { color: #f4f4f4; }

/* Services Section */
.services { padding: 6rem 0; background: var(--white); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.2rem; color: var(--primary-dark); margin-bottom: 1rem; }
.section-title p { color: var(--gray-600); max-width: 700px; margin: 0 auto; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.service-card { background: var(--white); padding: 2rem; border-radius: var(--border-radius); text-align: center; transition: var(--transition); border: 1px solid var(--gray-200); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.service-card:hover { transform: translateY(-10px); box-shadow: var(--box-shadow); border-color: var(--primary); }
.service-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 2rem; }
.service-card h3 { margin-bottom: 1rem; color: var(--primary-dark); }

/* How It Works */
.how-it-works { padding: 6rem 0; }

/* Calculator */
.calculator { padding: 6rem 0; background: var(--gray-100); }
.calculator-card { max-width: 1000px; margin: 0 auto; background: var(--white); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); }
.calculator-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); padding: 2.5rem 2rem; text-align: center; }
.calculator-header h2 { margin-bottom: 0.5rem; }
.calculator-body { padding: 3rem 2.5rem; }
.calc-input-group { margin-bottom: 2rem; }
.calc-input-group label { display: block; margin-bottom: 0.75rem; font-weight: 600; font-size: 1.05rem; color: var(--gray-800); }
.form-range { height: 8px; }
.form-range::-webkit-slider-thumb { width: 20px; height: 20px; background: var(--primary); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px rgba(3,70,148,0.3); }
.form-range::-moz-range-thumb { width: 20px; height: 20px; background: var(--primary); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px rgba(3,70,148,0.3); }
.range-values { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.85rem; color: var(--gray-600); }
.calc-results { padding: 2.5rem 0 0; margin-top: 2rem; border-top: 2px solid var(--gray-200); }
.result-box { background: var(--gray-100); padding: 1.5rem; border-radius: var(--border-radius); text-align: center; transition: var(--transition); border: 2px solid transparent; margin-bottom: 1rem; }
.result-box:hover { transform: translateY(-5px); box-shadow: var(--box-shadow); border-color: var(--primary); }
.result-box.highlight { background: linear-gradient(135deg, rgba(3,70,148,0.1) 0%, rgba(0,87,183,0.05) 100%); border-color: var(--primary); }
.calc-result-item { margin-bottom: 1rem; }
.calc-result-label { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 0.5rem; display: block; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.calc-result-value { font-size: 1.5rem; font-weight: 700; color: var(--primary-dark); }

/* Application Form */
.application { padding: 5rem 0; background: var(--white); }
.application-container { max-width: 900px; margin: 0 auto; background: var(--white); border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); }
.application-header { background: var(--primary); color: var(--white); padding: 2rem; text-align: center; }
.application-form { padding: 2.5rem; }
.form-progress { display: flex; justify-content: space-between; margin-bottom: 2rem; position: relative; }
.progress-step { flex: 1; text-align: center; position: relative; }
.progress-step::before { content: ''; width: 40px; height: 40px; background: var(--gray-300); border-radius: 50%; display: block; margin: 0 auto 0.5rem; transition: var(--transition); position: relative; z-index: 1; }
.progress-step.active::before { background: var(--primary); box-shadow: 0 0 0 4px rgba(3,70,148,0.2); }
.progress-step.completed::before { background: var(--success); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: 'Font Awesome 6 Free'; font-weight: 900; content: '\f00c'; }
.progress-line { position: absolute; top: 20px; left: 40px; right: 40px; height: 3px; background: var(--gray-300); z-index: 0; --progress-width: 0%; }
.progress-line::after { content: ''; position: absolute; top: 0; left: 0; height: 100%; background: var(--primary); width: var(--progress-width); transition: var(--transition); }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--gray-800); }
label .required { color: var(--danger); margin-left: 2px; }
input, select, textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--gray-300); border-radius: var(--border-radius); font-family: inherit; font-size: 1rem; transition: var(--transition); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(3,70,148,0.1); }
input.error, select.error, textarea.error { border-color: var(--danger); }
.error-message { color: var(--danger); font-size: 0.85rem; margin-top: 0.5rem; display: none; }

/* File Upload */
.file-upload { position: relative; display: inline-block; width: 100%; }
.file-upload input[type="file"] { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.file-upload-label { display: flex; align-items: center; justify-content: center; gap: 0.75rem; padding: 1.5rem; border: 2px dashed var(--gray-300); border-radius: var(--border-radius); background: var(--white); cursor: pointer; transition: var(--transition); text-align: center; }
.file-upload-label:hover { border-color: var(--primary); background: rgba(3,70,148,0.02); }
.file-upload-label i { font-size: 1.8rem; color: var(--primary); }
.file-preview { margin-top: 1rem; display: none; text-align: center; }
.file-preview img { max-width: 100%; max-height: 180px; border-radius: var(--border-radius); box-shadow: var(--box-shadow); margin: 0.5rem; }

/* Webcam */
.webcam-container { position: relative; margin: 1.5rem 0; border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); display: none; }
#webcam-video { width: 100%; max-height: 300px; object-fit: cover; }
.webcam-controls { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; gap: 1rem; }
.capture-btn { background: var(--primary); color: var(--white); border: none; width: 60px; height: 60px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: var(--transition); }
.capture-btn:hover { transform: scale(1.1); }
.selfie-preview { display: none; margin-top: 1rem; text-align: center; }
.selfie-preview img { max-width: 100%; max-height: 200px; border-radius: var(--border-radius); }

/* Review Cards */
.review-card { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--border-radius); margin-bottom: 1.5rem; overflow: hidden; transition: var(--transition); }
.review-card:hover { box-shadow: var(--box-shadow); }
.review-card-header { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: var(--white); padding: 1rem 1.5rem; font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: 0.75rem; }
.review-card-header i { font-size: 1.2rem; }
.review-card-body { padding: 1.5rem; }
.review-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid var(--gray-200); }
.review-item:last-child { border-bottom: none; }
.review-label { font-weight: 500; color: var(--gray-600); font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; }
.review-value { font-weight: 600; color: var(--gray-900); font-size: 1rem; text-align: right; }
.document-preview-box { min-height: 180px; max-height: 220px; background: var(--gray-100); border: 2px dashed var(--gray-300); border-radius: var(--border-radius); padding: 0.75rem; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: var(--transition); overflow: hidden; }
.document-preview-box:hover { border-color: var(--primary); }
.terms-box { background: var(--gray-100); border: 2px solid var(--primary); border-radius: var(--border-radius); padding: 1.5rem; margin-top: 2rem; }
.terms-label { display: flex; align-items: flex-start; gap: 1rem; cursor: pointer; margin: 0; }
.terms-label input[type="checkbox"] { margin-top: 0.25rem; width: 18px; height: 18px; cursor: pointer; flex-shrink: 0; }
.terms-label span { font-size: 0.95rem; line-height: 1.6; color: var(--gray-800); }

.form-actions { display: flex; justify-content: space-between; margin-top: 2rem; }
.btn-prev { background: var(--gray-600); }
.btn-prev:hover { background: var(--gray-800); }

/* Success Message */
.success-message { display: none; text-align: center; padding: 3rem; background: var(--gray-100); border-radius: var(--border-radius); }
.success-message.show { display: block; animation: fadeIn 0.6s ease; }
.success-message i { font-size: 4rem; color: var(--success); margin-bottom: 1rem; }
.success-message h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--primary-dark); }
.success-message p { margin-bottom: 1.5rem; color: var(--gray-600); }

/* Track Application */
.track-app { padding: 5rem 0; background: var(--white); display: none; }
.track-app.show { display: block; }
.track-card { max-width: 600px; margin: 0 auto; background: var(--white); padding: 2.5rem; border-radius: var(--border-radius); box-shadow: var(--box-shadow); text-align: center; }
.track-card input { margin-bottom: 1.5rem; }
.status-badge { display: inline-block; padding: 0.5rem 1rem; border-radius: 50px; font-weight: 600; font-size: 0.9rem; }
.status-pending { background: rgba(255,193,7,0.1); color: #d39e00; }
.status-approved { background: rgba(40,167,69,0.1); color: var(--success); }
.status-rejected { background: rgba(220,53,69,0.1); color: var(--danger); }

/* Requirements */
.requirements { padding: 6rem 0; background: var(--gray-100); }
.requirement-card { background: var(--white); padding: 2rem; border-radius: var(--border-radius); text-align: center; transition: var(--transition); border: 1px solid var(--gray-200); box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.requirement-card:hover { transform: translateY(-5px); box-shadow: var(--box-shadow); border-color: var(--primary); }
.requirement-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 2rem; }
.requirement-card h4 { margin-bottom: 1rem; color: var(--primary-dark); font-weight: 600; }

/* FAQ */
.faq { padding: 6rem 0; background: var(--white); }

/* Contact */
.contact { padding: 6rem 0; background: var(--gray-100); }
.contact-card { background: var(--white); border-radius: var(--border-radius); padding: 2rem; box-shadow: var(--box-shadow); height: 100%; text-align: center; }
.contact-icon { width: 60px; height: 60px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.5rem; margin: 0 auto; }
.map-container { border-radius: var(--border-radius); overflow: hidden; box-shadow: var(--box-shadow); height: 400px; }

/* Footer */
footer { background: var(--gray-900); color: var(--white); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.footer-col h3 { margin-bottom: 1.5rem; color: var(--white); position: relative; padding-bottom: 0.5rem; }
.footer-col h3::after { content: ''; position: absolute; bottom: 0; left: 0; width: 50px; height: 3px; background: var(--primary); }
.footer-col ul li a { color: var(--gray-400); text-decoration: none; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--gray-800); padding-top: 2rem; text-align: center; color: var(--gray-400); font-size: 0.9rem; }

@media (max-width: 992px) {
    .hero-content, .form-row { grid-template-columns: 1fr; }
    nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.1); padding: 1rem 0; border-radius: 0 0 var(--border-radius) var(--border-radius); overflow: hidden; }
    nav.active { display: block; animation: slideDown 0.3s ease; }
    nav ul { flex-direction: column; gap: 0; }
    nav li { text-align: center; border-bottom: 1px solid var(--gray-200); }
    nav li:last-child { border-bottom: none; }
    nav a { padding: 1rem 2rem; display: block; font-size: 1.1rem; }
    .mobile-menu-toggle { display: block; transition: var(--transition); }
    .mobile-menu-toggle:hover { transform: scale(1.1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .hero-text h1 { font-size: 2rem; }
    .form-actions { flex-direction: column; gap: 1rem; }
    .btn { width: 100%; }
}
