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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a2e 50%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header Styles */
.page-header {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(26, 26, 46, 0.8) 50%,
        rgba(22, 33, 62, 0.6) 100%
    );
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.header-branding {
    display: flex;
    flex-direction: column;
}

.header-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.header-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.back-link {
    color: #888;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    font-weight: 400;
}

.back-link:hover {
    color: #fff;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Application Form */
.application-form {
    margin-bottom: 40px;
}

.form-container {
    background: rgba(26, 26, 46, 0.8);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h2 {
    font-family: 'Orbitron', monospace;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.form-header p {
    color: #d0d0d0;
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 300;
}

.security-notice {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(139, 0, 0, 0.15);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 107, 107, 0.4);
    font-size: 0.85rem;
    color: #ff6b6b;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(139, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.security-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    animation: securityScan 3s ease-in-out infinite;
}

.security-icon {
    font-size: 1.1rem;
    color: #ff8a8a;
    animation: iconGlow 2s ease-in-out infinite alternate;
    text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
    transition: all 0.3s ease;
}

.security-icon:hover {
    color: #ffaaaa;
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
    transform: scale(1.1);
}

.security-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.security-text i {
    font-size: 0.9rem;
    color: #ff8a8a;
    animation: textIconPulse 1.5s ease-in-out infinite alternate;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
}

.citizenship-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.form-group label {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: 'Orbitron', monospace;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.form-group input {
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.form-help {
    color: #999;
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
}

/* Signature Canvas */
.signature-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.signature-canvas {
    width: 100%;
    height: 180px;
    background: rgba(0, 0, 0, 0.7);
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: crosshair;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.signature-canvas:hover,
.signature-canvas:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.signature-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Submit and Clear Button Styles */
.submit-btn {
    background: linear-gradient(135deg, #8b0000, #dc143c);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    min-width: 280px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover:not(:disabled)::before {
    left: 100%;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #dc143c, #ff4757);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(220, 20, 60, 0.5);
    border-color: rgba(255, 255, 255, 0.4);
}

.submit-btn:disabled {
    background: rgba(139, 0, 0, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.5);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.4);
}

.clear-btn {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 2px solid rgba(255, 107, 107, 0.3);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.clear-btn:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    color: #ff8a8a;
}

.clear-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #8b0000, #a52a2a);
    color: white;
    border: none;
    padding: 18px 36px;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #a52a2a, #dc143c);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(139, 0, 0, 0.5);
}

.btn-primary:disabled {
    background: rgba(139, 0, 0, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    border-radius: 16px;
    padding: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    max-width: 600px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header h3 {
    font-family: 'Orbitron', monospace;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-body {
    margin-bottom: 30px;
}

.approval-text {
    color: #d0d0d0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    line-height: 1.6;
}

.passport-text {
    color: #b8b8b8;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 300;
}

.classification-notice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 100, 0, 0.2);
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    font-size: 0.85rem;
    color: #90ee90;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
}

.classification-icon {
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* Stamp Animation */
.stamp-animation {
    margin: 30px 0;
    position: relative;
    height: 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stamp {
    background: #8b0000;
    color: white;
    padding: 20px 40px;
    border: 4px solid #8b0000;
    border-radius: 12px;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 1.8rem;
    transform: rotate(-15deg);
    animation: stampAnimation 1.2s ease-out;
    box-shadow: 0 8px 32px rgba(139, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.stamp-impact {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    border: 3px solid rgba(139, 0, 0, 0.3);
    border-radius: 50%;
    animation: impactRipple 1.2s ease-out;
}

@keyframes stampAnimation {
    0% {
        transform: rotate(-15deg) scale(0) translateY(-50px);
        opacity: 0;
    }
    50% {
        transform: rotate(-15deg) scale(1.3);
        opacity: 0.8;
    }
    100% {
        transform: rotate(-15deg) scale(1);
        opacity: 1;
    }
}

@keyframes impactRipple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0;
    }
}

/* Security Notice Animations */
@keyframes securityScan {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

@keyframes iconGlow {
    0% {
        text-shadow: 0 0 8px rgba(255, 107, 107, 0.5);
        opacity: 0.8;
    }
    100% {
        text-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
        opacity: 1;
    }
}

@keyframes textIconPulse {
    0% {
        text-shadow: 0 0 5px rgba(255, 107, 107, 0.3);
        opacity: 0.7;
    }
    100% {
        text-shadow: 0 0 8px rgba(255, 107, 107, 0.6);
        opacity: 1;
    }
}

/* Loading Spinner & Container */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text h4 {
    font-family: 'Orbitron', monospace;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.loading-step {
    color: #b8b8b8;
    font-size: 1rem;
    font-style: italic;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: rgba(12, 12, 12, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.footer p {
    color: #666;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.warning {
    color: #ff6b6b !important;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .logo-section {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
    }
    
    .header-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 20px 15px;
    }
    
    .form-container {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 1rem;
    }
    
    .signature-canvas {
        height: 160px;
    }
    
    .signature-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .clear-btn {
        padding: 10px 16px;
        align-self: center;
        max-width: 200px;
    }
    
    .submit-btn {
        padding: 16px 28px;
        font-size: 1rem;
        min-width: 250px;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
        max-width: 90%;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .stamp {
        font-size: 1.4rem;
        padding: 15px 30px;
    }
    
    .security-notice {
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 15px;
        gap: 8px;
    }
    
    .security-text {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .header-title {
        font-size: 1.3rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .btn-primary {
        padding: 16px 28px;
        font-size: 1rem;
    }
    
    .stamp {
        font-size: 1.2rem;
        padding: 12px 24px;
    }
}

/* Atmospheric effects */
.signature-canvas {
    position: relative;
}

.signature-canvas::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.signature-canvas:focus::before {
    opacity: 1;
} 