/* ===== RESET & BASE STYLES ===== */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background: #f0f2f5;
    min-height: 100vh;
    padding: 10px;
    position: relative;
}

/* Watermark - Sri Lanka Emblem */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 400px;
    height: 400px;
    background: url('../images/emblem.png') no-repeat center;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

/* ===== MAIN CONTAINER ===== */
.gov-container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 51, 102, 0.15);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* ===== GOV WARNING BANNER ===== */
.gov-warning {
    background: #003399;
    color: white;
    padding: 12px 15px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 3px solid #ffcc00;
}

/* ===== HEADER SECTION ===== */
.gov-header {
    background: white;
    padding: 25px 20px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.gov-emblem {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
}

.gov-header h1 {
    color: #003399;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
}

.gov-header h2 {
    color: #666;
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 10px;
}

/* Last Updated */
.last-updated {
    color: #888;
    font-size: 12px;
    margin: 10px 0;
}

.last-updated span {
    color: #003399;
    font-weight: 600;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.lang-btn {
    background: #f0f0f0;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn.active {
    background: #003399;
    color: white;
}

/* ===== PROGRESS STEPS ===== */
.progress-steps {
    display: flex;
    justify-content: space-between;
    padding: 20px 20px 10px;
    background: white;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    background: white;
    text-align: center;
    width: 33.33%;
}

.step-number {
    width: 32px;
    height: 32px;
    background: #ddd;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px;
    font-weight: bold;
    font-size: 14px;
    border: 2px solid white;
}

.step.active .step-number {
    background: #003399;
    color: white;
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step-label {
    font-size: 12px;
    color: #666;
}

.step.active .step-label {
    color: #003399;
    font-weight: 600;
}

/* ===== CONTENT AREA ===== */
.content-area {
    padding: 10px 20px 20px;
}

/* ===== QUICK INFO BANNER ===== */
.quick-info {
    background: #f0f7ff;
    border-left: 4px solid #ffcc00;
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-info button {
    background: #003399;
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}

/* ===== FORM SECTION ===== */
.form-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.section-title {
    color: #003399;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffcc00;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 6px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.required::after {
    content: ' *';
    color: #dc3545;
}

input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    -webkit-appearance: none;
}

input:focus {
    outline: none;
    border-color: #003399;
    box-shadow: 0 0 0 3px rgba(0, 51, 153, 0.1);
}

.input-hint {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ===== BUTTON ===== */
.btn {
    background: #003399;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    transition: background 0.2s;
}

.btn:hover {
    background: #002266;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ===== SECURITY BADGES ===== */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 40px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #555;
}

.badge span:first-child {
    color: #003399;
    font-weight: bold;
}

/* ===== FOOTER ===== */
.gov-footer {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 16px;
    text-align: center;
    font-size: 11px;
    color: #666;
}

.footer-contact {
    margin-bottom: 10px;
}

.footer-contact span {
    display: inline-block;
    margin: 0 10px;
    font-size: 12px;
}

.gov-footer a {
    color: #003399;
    text-decoration: none;
    margin: 0 8px;
    font-size: 11px;
}

/* ===== FEE BOX ===== */
.fee-box {
    background: linear-gradient(135deg, #f0f7ff, white);
    border: 2px solid #003399;
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    margin-bottom: 20px;
}

.fee-label {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fee-amount {
    font-size: 42px;
    font-weight: 700;
    color: #003399;
    margin: 10px 0;
}

.fee-amount small {
    font-size: 18px;
    font-weight: normal;
}

/* ===== MODAL STYLES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 15px;
    backdrop-filter: blur(5px);
}

.modal-overlay.hidden {
    display: none;
}

.modal-container {
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 24px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: #003399;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-icon {
    background: #ffcc00;
    color: #003399;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.modal-subtitle {
    font-size: 13px;
    opacity: 0.9;
}

.modal-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
    background: #f8faff;
}

.modal-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
}

.modal-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffcc00;
}

.modal-section-header span {
    background: #003399;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.modal-section-header h3 {
    color: #003399;
    font-size: 16px;
    font-weight: 600;
}

.modal-instruction-list {
    list-style: none;
    padding: 0;
}

.modal-instruction-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
    font-size: 14px;
    line-height: 1.5;
}

.modal-instruction-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    background: #003399;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.modal-instruction-list li strong {
    color: #003399;
    display: block;
    margin-bottom: 2px;
}

.modal-highlight {
    background: #fff3cd;
    border-left: 4px solid #ffcc00;
    padding: 15px;
    border-radius: 8px;
    margin: 15px 0 5px;
    font-size: 13px;
    color: #856404;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-footer-left {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.modal-badge.warning {
    background: #ffebee;
    color: #c62828;
}

/* ===== BOOTLOADER STYLES ===== */
.bootloader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    flex-direction: column;
}

.bootloader-content {
    text-align: center;
    max-width: 320px;
    padding: 20px;
}

.modern-loader {
    width: 70px;
    height: 70px;
    border: 5px solid #f0f0f0;
    border-top: 5px solid #003399;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

.modern-loader-2 {
    width: 80px;
    height: 80px;
    position: relative;
    margin: 0 auto 25px;
}

.modern-loader-2::before,
.modern-loader-2::after {
    content: '';
    position: absolute;
    border-radius: 50%;
}

.modern-loader-2::before {
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 153, 0.2);
    animation: pulse 2s ease-in-out infinite;
}

.modern-loader-2::after {
    width: 60%;
    height: 60%;
    background: #003399;
    top: 20%;
    left: 20%;
    animation: pulse 1.5s ease-in-out infinite reverse;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1); opacity: 1; }
}

.bootloader-title {
    font-size: 22px;
    font-weight: 600;
    color: #003399;
    margin-bottom: 10px;
}

.bootloader-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
}

.bootloader-progress {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.bootloader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #003399, #ffcc00);
    width: 0%;
    border-radius: 10px;
    animation: progress 3s ease-in-out forwards;
}

@keyframes progress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.bootloader-steps {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.bootloader-step {
    flex: 1;
    font-size: 12px;
    color: #999;
}

.bootloader-step.active {
    color: #003399;
    font-weight: 600;
}

.bootloader-dots {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.bootloader-dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    animation: dotPulse 1.5s infinite;
}

.bootloader-dot:nth-child(2) { animation-delay: 0.3s; }
.bootloader-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes dotPulse {
    0%, 100% { background: #ccc; transform: scale(1); }
    50% { background: #003399; transform: scale(1.3); }
}

/* ===== PAYMENT WARNING MODAL ===== */
.payment-warning-icon {
    width: 70px;
    height: 70px;
    background: #ffcc00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 20px;
    font-size: 36px;
}

.payment-warning-title {
    font-size: 22px;
    color: #003399;
    text-align: center;
    margin-bottom: 5px;
    font-weight: 600;
}

.payment-warning-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.payment-highlight {
    background: #f8faff;
    border: 2px solid #ffcc00;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.payment-amount {
    font-size: 40px;
    font-weight: 700;
    color: #003399;
    margin: 10px 0;
}

.payment-amount small {
    font-size: 18px;
    color: #666;
}

.terms-checkbox {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-checkbox input {
    width: 20px;
    height: 20px;
}

.terms-checkbox label {
    font-size: 13px;
    color: #333;
    flex: 1;
    margin: 0;
}

/* ===== SUCCESS PAGE STYLES ===== */
.success-modern {
    text-align: center;
    padding: 30px 20px;
}

.success-animation {
    margin: 20px auto 30px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    animation: scaleIn 0.5s ease;
}

.success-checkmark::after {
    content: '✓';
    font-size: 50px;
    color: white;
}

@keyframes scaleIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.success-title {
    font-size: 28px;
    color: #003399;
    margin-bottom: 10px;
    font-weight: 700;
}

.success-message {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.ref-card {
    background: #f8faff;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
}

.ref-label {
    color: #666;
    font-size: 12px;
    margin-bottom: 10px;
}

.ref-number-modern {
    font-size: 24px;
    font-weight: 700;
    color: #003399;
    font-family: monospace;
    letter-spacing: 2px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    border: 1px dashed #003399;
}

.timeline {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.timeline-item {
    position: relative;
    z-index: 2;
    background: white;
    padding: 0 5px;
    text-align: center;
    width: 33.33%;
}

.timeline-dot {
    width: 30px;
    height: 30px;
    background: #28a745;
    border: 3px solid white;
    border-radius: 50%;
    margin: 0 auto 8px;
}

.timeline-dot.pending {
    background: #ccc;
}

.timeline-text {
    font-size: 11px;
    color: #666;
}

.timeline-text strong {
    color: #003399;
    display: block;
    font-size: 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 30px 0;
}

.info-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 16px;
    text-align: center;
}

.info-card-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.info-card-title {
    font-size: 12px;
    color: #666;
}

.info-card-value {
    font-size: 14px;
    font-weight: 600;
    color: #003399;
    margin-top: 3px;
}

.download-btn {
    background: white;
    border: 2px solid #003399;
    color: #003399;
    padding: 15px;
    border-radius: 30px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    cursor: pointer;
}

.download-btn:hover {
    background: #003399;
    color: white;
}

/* ===== MOBILE OPTIMIZATIONS ===== */
@media (max-width: 480px) {
    .gov-header h1 {
        font-size: 18px;
    }
    
    .step-label {
        font-size: 10px;
    }
    
    .progress-steps::before {
        left: 40px;
        right: 40px;
    }
    
    .security-badges {
        gap: 10px;
    }
    
    .badge {
        font-size: 10px;
    }
    
    .fee-amount {
        font-size: 36px;
    }
    
    .footer-contact span {
        display: block;
        margin: 5px 0;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .modal-subtitle {
        font-size: 12px;
    }
}

/* ===== BUTTON STYLES - FIXED ===== */
.btn, button.btn, input.btn, a.btn {
    background: #003399;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    -webkit-appearance: none;
    transition: background 0.2s, transform 0.1s;
    margin: 5px 0;
    box-shadow: 0 2px 5px rgba(0,51,153,0.2);
}

.btn:hover, button.btn:hover, input.btn:hover {
    background: #002266;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,51,153,0.3);
}

.btn:active, button.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0,51,153,0.2);
}

.btn:disabled, button.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Small button variant */
.btn-small {
    background: #003399;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 13px;
    cursor: pointer;
    display: inline-block;
    transition: background 0.2s;
}

.btn-small:hover {
    background: #002266;
}

/* ===== CARD PAYMENT FORM STYLES ===== */
.payment-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 25px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.card-icon {
    width: 50px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.card-icon.visa { background: #1a1f71; color: white; }
.card-icon.mastercard { background: #eb001b; color: white; }

.card-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.card-col {
    flex: 1;
}

/* Security note */
.security-note {
    background: #f0f7ff;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 13px;
    color: #003399;
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-note span:first-child {
    font-size: 20px;
}
/* ===== FIXED LOGO SIZING ===== */
.gov-emblem {
    width: auto;
    height: 70px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 15px;
}

/* For mobile */
@media (max-width: 480px) {
    .gov-emblem {
        height: 50px;
        margin-bottom: 10px;
    }
}

/* For very small screens */
@media (max-width: 350px) {
    .gov-emblem {
        height: 40px;
    }
}

/* Use your specific image as the base */
