/* EasyVisa - Government Portal Aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Courier+Prime&family=Times+New+Roman&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --govt-blue: #003366;
    --govt-light-blue: #336699;
    --govt-red: #8B0000;
    --paper-cream: #f5f5dc;
    --warning-yellow: #FFD700;
    --error-red: #cc0000;
    --success-green: #006400;
    --grey-bg: #c0c0c0;
    --window-blue: #000080;
}

body {
    font-family: 'Times New Roman', Times, serif;
    background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
    min-height: 100vh;
    color: #000;
}

/* Blinking effect */
.blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========== INTRO SCREEN ========== */
.intro-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0,0,0,0.03) 2px,
            rgba(0,0,0,0.03) 4px
        ),
        linear-gradient(135deg, #003366 0%, #001a33 100%);
    padding: 20px;
}

.intro-content {
    background: #f0f0f0;
    border: 3px outset #fff;
    padding: 40px;
    max-width: 700px;
    text-align: center;
    box-shadow:
        inset 1px 1px 0 #fff,
        inset -1px -1px 0 #808080,
        5px 5px 0 rgba(0,0,0,0.3);
}

.govt-seal-large {
    font-size: 80px;
    margin-bottom: 20px;
}

.intro-content h1 {
    font-family: 'Times New Roman', serif;
    color: var(--govt-blue);
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 5px;
}

.intro-content h2 {
    font-family: Georgia, serif;
    color: var(--govt-blue);
    font-size: 28px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--govt-blue);
    padding-bottom: 10px;
}

.intro-content h3 {
    font-family: Georgia, serif;
    color: var(--govt-red);
    font-size: 20px;
    margin-bottom: 5px;
}

.motto {
    font-style: italic;
    color: #666;
    margin-bottom: 30px;
    font-size: 14px;
}

.intro-warning {
    background: #ffffcc;
    border: 2px solid #cc9900;
    padding: 20px;
    margin: 20px 0;
    text-align: left;
}

.intro-warning p:first-child {
    text-align: center;
    font-weight: bold;
    color: var(--error-red);
    font-size: 16px;
    margin-bottom: 10px;
}

.applicant-info {
    background: #e0e0e0;
    padding: 15px;
    margin: 20px 0;
    border: 1px inset #999;
}

.start-btn {
    background: linear-gradient(to bottom, #6699cc 0%, #336699 100%);
    color: white;
    border: 3px outset #6699cc;
    padding: 15px 40px;
    font-size: 18px;
    font-family: 'Times New Roman', serif;
    cursor: pointer;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.start-btn:hover {
    background: linear-gradient(to bottom, #7799dd 0%, #4477aa 100%);
}

.start-btn:active {
    border-style: inset;
}

.small-print {
    font-size: 10px;
    color: #666;
    margin-top: 20px;
    line-height: 1.4;
}

/* ========== GAME SCREEN ========== */
.game-screen {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.hidden {
    display: none !important;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(to bottom, #000080 0%, #000066 100%);
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #000033;
}

.govt-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.seal {
    font-size: 40px;
}

.header-text h1 {
    font-size: 16px;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}

.header-text p {
    font-size: 11px;
    color: #aaa;
    font-family: 'Courier New', monospace;
}

.timer-section {
    text-align: right;
}

.secure-badge {
    background: #006600;
    color: #00ff00;
    padding: 3px 10px;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    margin-bottom: 5px;
    display: inline-block;
}

.timer {
    font-size: 36px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #ff0;
    text-shadow: 2px 2px 0 #000;
}

.timer.warning {
    color: #ff6600;
}

.timer.critical {
    color: #ff0000;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.timer-label {
    font-size: 10px;
    color: #ccc;
    letter-spacing: 2px;
}

/* Progress Bar */
.progress-container {
    background: #c0c0c0;
    padding: 10px 20px;
    border-bottom: 2px solid #808080;
}

.progress-bar {
    height: 20px;
    background: #fff;
    border: 2px inset #808080;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to bottom, #00cc00 0%, #009900 100%);
    width: 0%;
    transition: width 0.5s;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
}

.step {
    font-size: 12px;
    color: #666;
    padding: 3px 10px;
    background: #e0e0e0;
    border: 1px solid #999;
}

.step.active {
    background: var(--govt-blue);
    color: white;
    font-weight: bold;
}

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

/* Main Content Layout */
.main-content {
    display: flex;
    flex: 1;
    gap: 0;
}

/* Form Section */
.form-section {
    flex: 1;
    background: #f5f5f5;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
    border-right: 3px solid #808080;
}

.form-panel {
    background: white;
    border: 2px solid #333;
    padding: 20px;
    margin-bottom: 20px;
}

.form-panel h2 {
    background: var(--govt-blue);
    color: white;
    padding: 10px;
    margin: -20px -20px 20px -20px;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

.required-note {
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
    padding: 10px;
    background: #ffffcc;
    border: 1px solid #cc9900;
}

.warning-text {
    background: #ffcccc;
    border: 1px solid #cc0000;
    color: #cc0000;
    padding: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    text-align: center;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
    font-size: 13px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px;
    border: 2px inset #808080;
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--govt-blue);
    background: #ffffee;
}

.form-group .hint {
    display: block;
    font-size: 11px;
    color: #666;
    font-style: italic;
    margin-top: 3px;
}

.date-inputs {
    display: flex;
    gap: 10px;
}

.date-inputs select {
    flex: 1;
}

.checkbox-group {
    background: #f0f0f0;
    padding: 10px;
    border: 1px solid #ccc;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

/* Trust Scale */
input[type="range"] {
    width: 100%;
    height: 20px;
}

#trust-value {
    display: block;
    text-align: center;
    font-weight: bold;
    margin-top: 5px;
    padding: 5px;
    background: #e0e0e0;
}

/* CAPTCHA Grid */
.captcha-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin: 10px 0;
}

.captcha-item {
    aspect-ratio: 1;
    background: #ddd;
    border: 3px solid #999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    cursor: pointer;
    transition: all 0.2s;
}

.captcha-item:hover {
    border-color: var(--govt-blue);
}

.captcha-item.selected {
    border-color: #00cc00;
    background: #ccffcc;
}

/* Buttons */
.next-btn,
.submit-btn {
    background: linear-gradient(to bottom, #6699cc 0%, #336699 100%);
    color: white;
    border: 3px outset #6699cc;
    padding: 12px 30px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 20px;
    width: 100%;
}

.next-btn:hover,
.submit-btn:hover {
    background: linear-gradient(to bottom, #7799dd 0%, #4477aa 100%);
}

.next-btn:active,
.submit-btn:active {
    border-style: inset;
}

.submit-btn {
    background: linear-gradient(to bottom, #cc6600 0%, #994400 100%);
    border-color: #cc6600;
    font-size: 18px;
    padding: 15px;
}

.submit-btn:hover {
    background: linear-gradient(to bottom, #dd7711 0%, #aa5511 100%);
}

.submit-btn.running-away {
    position: relative;
    transition: transform 0.3s;
}

.submit-warning {
    text-align: center;
    font-size: 11px;
    color: #cc0000;
    margin-top: 10px;
    font-weight: bold;
}

.small-btn {
    background: #808080;
    color: white;
    border: 2px outset #999;
    padding: 5px 15px;
    cursor: pointer;
    font-size: 12px;
}

.small-btn:hover {
    background: #909090;
}

/* Upload Box */
.upload-box {
    border: 3px dashed #999;
    padding: 30px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    margin-bottom: 10px;
}

.upload-box:hover {
    background: #f0f0ff;
    border-color: var(--govt-blue);
}

.upload-requirements {
    font-size: 11px;
    color: #666;
    margin-top: 15px;
    line-height: 1.6;
}

.upload-status {
    margin-top: 10px;
    padding: 10px;
    font-size: 12px;
}

.upload-status.success {
    background: #ccffcc;
    border: 1px solid #00cc00;
    color: #006600;
}

.upload-status.error {
    background: #ffcccc;
    border: 1px solid #cc0000;
    color: #cc0000;
}

/* Fee Breakdown */
.fee-breakdown {
    background: #f5f5f5;
    border: 2px solid #333;
    padding: 20px;
    margin-bottom: 20px;
}

.fee-breakdown h3 {
    margin-bottom: 15px;
    color: var(--govt-blue);
}

.fee-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dotted #ccc;
}

.fee-line.total {
    font-weight: bold;
    font-size: 18px;
    border-bottom: none;
    border-top: 2px solid #333;
    padding-top: 15px;
    margin-top: 10px;
}

.fee-note {
    font-size: 10px;
    color: #666;
    font-style: italic;
    margin-top: 10px;
}

/* ========== DOCUMENTS PANEL ========== */
.documents-panel {
    width: 450px;
    background: #2a2a2a;
    padding: 15px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 150px);
}

.docs-header {
    color: white;
    text-align: center;
    margin-bottom: 15px;
}

.docs-header h3 {
    font-size: 14px;
    letter-spacing: 2px;
}

.docs-header p {
    font-size: 11px;
    color: #999;
}

.document-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 15px;
}

.doc-tab {
    flex: 1;
    min-width: 70px;
    background: #444;
    color: #ccc;
    border: none;
    padding: 8px 5px;
    cursor: pointer;
    font-size: 11px;
    font-family: Arial, sans-serif;
}

.doc-tab:hover {
    background: #555;
}

.doc-tab.active {
    background: #666;
    color: white;
    font-weight: bold;
}

.document {
    background: #3a3a3a;
    padding: 15px;
    border-radius: 5px;
    flex: 1;
    overflow-y: auto;
}

/* Passport Styling */
.passport {
    background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
    color: white;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    position: relative;
}

.passport-cover {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid gold;
    margin-bottom: 15px;
}

.passport-title {
    font-size: 20px;
    letter-spacing: 5px;
    color: gold;
}

.passport-country {
    font-size: 12px;
    color: #ccc;
    margin-top: 5px;
}

.passport-emblem {
    font-size: 40px;
    margin-top: 10px;
}

.passport-inside {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.passport-photo {
    width: 80px;
    height: 100px;
    background: #f5f5dc;
    border: 2px solid #333;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-placeholder {
    text-align: center;
}

.photo-face {
    font-size: 50px;
}

.passport-details {
    flex: 1;
    min-width: 150px;
}

.passport-row {
    margin-bottom: 8px;
    font-size: 11px;
}

.passport-row .label {
    display: block;
    color: #999;
    font-size: 9px;
    text-transform: uppercase;
}

.passport-row .value {
    color: white;
    font-weight: bold;
}

.passport-number {
    font-size: 14px !important;
    background: rgba(255,255,255,0.1);
    padding: 3px 5px;
    letter-spacing: 2px;
}

.passport-mrz {
    background: white;
    color: black;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    padding: 8px;
    margin-top: 15px;
    letter-spacing: 1px;
    overflow-x: auto;
}

.passport-stamps {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.stamp {
    background: rgba(255,0,0,0.2);
    border: 2px solid rgba(255,0,0,0.5);
    color: rgba(255,0,0,0.7);
    padding: 8px;
    font-size: 8px;
    text-align: center;
    transform: rotate(-15deg);
    font-weight: bold;
}

.stamp-2 {
    transform: rotate(10deg);
    background: rgba(0,100,0,0.2);
    border-color: rgba(0,100,0,0.5);
    color: rgba(0,100,0,0.7);
}

.stamp-3 {
    transform: rotate(-5deg);
    background: rgba(0,0,255,0.2);
    border-color: rgba(0,0,255,0.5);
    color: rgba(0,0,255,0.7);
}

/* Letter Styling */
.letter {
    background: #fdf6e3;
    padding: 25px;
    font-family: 'Times New Roman', serif;
    position: relative;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.3);
    min-height: 400px;
}

.coffee-stain {
    position: absolute;
    top: 20px;
    right: 40px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(139,90,43,0.4) 0%, rgba(139,90,43,0.1) 50%, transparent 70%);
    pointer-events: none;
}

.letter-header {
    margin-bottom: 20px;
}

.letter-address {
    font-size: 12px;
    color: #333;
    line-height: 1.5;
}

.letter-date {
    font-size: 11px;
    color: #666;
    margin-top: 10px;
}

.letter-body {
    font-size: 13px;
    line-height: 1.8;
}

.letter-body p {
    margin-bottom: 15px;
}

.handwriting {
    font-family: 'Brush Script MT', cursive;
    font-size: 16px;
    color: #00008B;
}

.ref-number {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    background: #ffffcc;
    padding: 10px;
    border: 2px dashed #cc9900;
    text-align: center;
    letter-spacing: 2px;
}

.small-text {
    font-size: 10px;
    color: #999;
    text-align: center;
}

.signature {
    margin-top: 30px;
    font-size: 12px;
}

.letter-stamp {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    border: 3px solid #8B0000;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #8B0000;
    font-size: 10px;
    font-weight: bold;
    transform: rotate(-10deg);
    background: rgba(255,255,255,0.9);
}

.fold-marks {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.1), transparent);
}

/* Bank Statement */
.bank-statement {
    background: white;
    font-family: 'Courier New', monospace;
    font-size: 11px;
    padding: 20px;
}

.bank-header {
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.bank-logo {
    font-size: 14px;
    font-weight: bold;
    color: var(--govt-blue);
    margin-bottom: 10px;
}

.bank-info {
    background: #f5f5f5;
    padding: 10px;
    margin-bottom: 15px;
}

.transactions {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.transactions th,
.transactions td {
    padding: 8px 5px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.transactions .header {
    background: #e0e0e0;
}

.transactions .credit {
    color: var(--success-green);
}

.transactions .debit {
    color: var(--error-red);
}

.bank-summary {
    border-top: 2px solid #000;
    padding-top: 15px;
}

.bank-summary .closing {
    font-size: 14px;
    margin-top: 10px;
    background: #ffffcc;
    padding: 10px;
}

.bank-footer {
    font-size: 9px;
    color: #666;
    margin-top: 15px;
    font-style: italic;
}

/* Certificate */
.certificate {
    background: #fdf6e3;
    padding: 10px;
}

.cert-border {
    border: 3px double #8B4513;
    padding: 25px;
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
}

.cert-header {
    text-align: center;
    margin-bottom: 20px;
}

.cert-seal {
    font-size: 50px;
    margin-bottom: 10px;
}

.cert-header h2 {
    color: #8B4513;
    font-size: 18px;
    letter-spacing: 3px;
    background: transparent;
    margin: 0;
    padding: 0;
}

.cert-header h3 {
    color: #a0522d;
    font-size: 12px;
    font-weight: normal;
}

.cert-body {
    text-align: center;
    font-family: Georgia, serif;
}

.cert-body p {
    margin-bottom: 10px;
}

.cert-name {
    font-size: 22px;
    font-family: 'Brush Script MT', cursive;
    color: #00008B;
    border-bottom: 1px solid #333;
    display: inline-block;
    padding: 5px 20px;
    margin: 10px 0;
}

.cert-highlight {
    font-size: 16px;
    font-weight: bold;
    color: var(--govt-blue);
    letter-spacing: 2px;
}

.cert-details {
    background: #f5f5f5;
    padding: 15px;
    margin: 20px 0;
    text-align: left;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.cert-scores {
    background: #e6f3ff;
    padding: 15px;
    margin: 20px 0;
    font-size: 12px;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 30px;
}

.cert-signature {
    text-align: center;
}

.cert-signature .handwriting {
    font-size: 24px;
    display: block;
    margin-bottom: 5px;
}

.cert-signature p {
    font-size: 10px;
}

.cert-stamp {
    width: 60px;
    height: 60px;
    border: 3px solid var(--success-green);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--success-green);
    font-size: 10px;
    font-weight: bold;
}

.cert-disclaimer {
    font-size: 8px;
    color: #999;
    text-align: center;
    margin-top: 20px;
}

/* Photo Document */
.photo-document {
    text-align: center;
    color: white;
}

.photo-document h4 {
    margin-bottom: 15px;
}

.photo-frame {
    background: #003366;
    width: 150px;
    height: 190px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 3px solid #666;
    position: relative;
}

.bad-photo {
    position: relative;
}

.photo-head {
    width: 100px;
    height: 120px;
    background: #ffd699;
    border-radius: 50% 50% 45% 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.photo-hair {
    position: absolute;
    top: -5px;
    width: 100px;
    height: 50px;
    background: #4a3728;
    border-radius: 50% 50% 0 0;
}

.photo-face-detail {
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.photo-eyes {
    font-size: 14px;
    letter-spacing: 15px;
    margin-left: 10px;
}

.photo-nose {
    font-size: 12px;
    margin: 5px 0;
}

.photo-mouth {
    font-size: 20px;
}

.photo-shoulders {
    width: 120px;
    height: 40px;
    background: #2196F3;
    border-radius: 50% 50% 0 0;
    margin-top: -10px;
}

.red-eye {
    position: absolute;
    top: 60px;
    left: 45px;
    width: 8px;
    height: 8px;
    background: red;
    border-radius: 50%;
    opacity: 0.7;
}

.photo-specs {
    text-align: left;
    font-size: 11px;
    background: #444;
    padding: 15px;
    border-radius: 5px;
}

.photo-note {
    font-size: 10px;
    color: #999;
    margin-top: 15px;
}

/* ========== POPUPS ========== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #c0c0c0;
    border: 3px outset #fff;
    padding: 0;
    z-index: 1000;
    min-width: 400px;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.5);
}

.popup-content {
    padding: 20px;
}

.popup h3 {
    background: var(--window-blue);
    color: white;
    padding: 5px 10px;
    margin: -20px -20px 20px -20px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.popup-content.error h3 {
    background: #8B0000;
}

.popup p {
    margin-bottom: 15px;
}

.popup .small {
    font-size: 11px;
    color: #666;
}

.popup button {
    background: linear-gradient(to bottom, #e0e0e0 0%, #c0c0c0 100%);
    border: 2px outset #fff;
    padding: 8px 20px;
    cursor: pointer;
    margin: 5px;
    font-family: Arial, sans-serif;
}

.popup button:hover {
    background: linear-gradient(to bottom, #f0f0f0 0%, #d0d0d0 100%);
}

.popup button:active {
    border-style: inset;
}

.survey-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.survey-options button {
    width: 100%;
    text-align: left;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #ccc;
    border-top-color: var(--govt-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.small-link {
    background: transparent !important;
    border: none !important;
    text-decoration: underline;
    color: #666;
    font-size: 11px;
}

/* ========== WIN/LOSE SCREENS ========== */
.win-screen,
.lose-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.win-screen {
    background: linear-gradient(135deg, #004d00 0%, #002200 100%);
}

.lose-screen {
    background: linear-gradient(135deg, #660000 0%, #330000 100%);
}

.win-content,
.lose-content {
    text-align: center;
    color: white;
    padding: 40px;
    max-width: 600px;
}

.win-content h1,
.lose-content h1 {
    font-size: 40px;
    margin-bottom: 20px;
}

.win-content h2,
.lose-content h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.win-content h3,
.lose-content h3 {
    font-size: 30px;
    color: #ffcc00;
    margin-bottom: 30px;
}

.lose-content h3.denied {
    color: #ff4444;
}

.visa-result {
    margin: 30px 0;
}

.visa-card {
    background: linear-gradient(135deg, #f5f5dc 0%, #e0d5c0 100%);
    color: #333;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.visa-header {
    background: var(--govt-blue);
    color: white;
    padding: 15px;
    font-size: 12px;
    letter-spacing: 2px;
}

.visa-body {
    padding: 20px;
    text-align: left;
}

.visa-type {
    font-size: 18px;
    font-weight: bold;
    color: var(--govt-blue);
    margin-bottom: 15px;
}

.pending-status {
    color: #cc6600;
    font-weight: bold;
}

.visa-footer {
    background: #e0d5c0;
    padding: 15px;
    font-size: 10px;
    color: #666;
}

.denied-stamp {
    width: 150px;
    height: 150px;
    border: 5px solid #ff0000;
    border-radius: 10px;
    margin: 30px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ff0000;
    font-size: 24px;
    font-weight: bold;
    transform: rotate(-10deg);
    background: rgba(255,0,0,0.1);
}

.win-note,
.lose-note {
    margin: 15px 0;
    font-size: 16px;
}

.win-content button,
.lose-content button {
    background: linear-gradient(to bottom, #6699cc 0%, #336699 100%);
    color: white;
    border: 3px outset #6699cc;
    padding: 15px 30px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 30px;
}

.win-content button:hover,
.lose-content button:hover {
    background: linear-gradient(to bottom, #7799dd 0%, #4477aa 100%);
}

/* Confetti Animation */
.confetti {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }

    .documents-panel {
        width: 100%;
        max-height: 400px;
    }

    .form-section {
        max-height: none;
        border-right: none;
        border-bottom: 3px solid #808080;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .govt-header {
        flex-direction: column;
    }

    .popup {
        min-width: 90%;
        max-width: 90%;
    }

    .intro-content {
        padding: 20px;
    }

    .intro-content h2 {
        font-size: 20px;
    }
}
