/* 
 * Verification System - Responsive CSS Styles
 * Modern, clean, and professional design optimized for all devices
 */

:root {
    --primary-color: #2563eb;
    --secondary-color: #1d4ed8;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-accent: #eff6ff;
    --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 50%, #94a3b8 75%, #64748b 100%);
    --banking-bg: linear-gradient(135deg, #0f172a 0%, #1e293b 15%, #334155 30%, #475569 45%, #64748b 60%, #94a3b8 75%, #cbd5e1 90%, #e2e8f0 100%);
    --header-primary: #1f2937;
    --header-secondary: #111827;
    --header-accent: #d97706;
    --border-color: #d1d5db;
    --border-focus: #2563eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--banking-bg);
    min-height: 100vh;
    overflow-x: hidden;
    font-weight: 400;
    letter-spacing: -0.01em;
    position: relative;
}

/* Force light form controls on mobile to avoid dark-mode autofill and low contrast */
@media (max-width: 768px) {
    :root { color-scheme: light; }
    .form-input,
    .form-select,
    .form-textarea {
        background-color: #ffffff !important;
        color: #0f172a !important;
        border-color: #cbd5e1 !important;
    }
    .form-input::placeholder,
    .form-textarea::placeholder {
        color: #6b7280 !important;
        opacity: 1 !important;
    }
    input,
    select,
    textarea {
        -webkit-appearance: none;
        appearance: none;
        font-size: 16px; /* prevent iOS zoom */
    }
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    select:-webkit-autofill,
    textarea:-webkit-autofill {
        -webkit-text-fill-color: #0f172a !important;
        transition: background-color 9999s ease-in-out 0s !important;
        box-shadow: 0 0 0px 1000px #ffffff inset !important;
    }
}

/* Professional Banking/Office Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -3;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    background: linear-gradient(135deg, 
        #0f172a 0%, 
        #1e293b 15%, 
        #334155 30%, 
        #475569 45%, 
        #64748b 60%, 
        #94a3b8 75%, 
        #cbd5e1 90%, 
        #e2e8f0 100%);
}

/* Professional Banking Pattern Overlay */
.video-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    z-index: 1;
}

/* Professional Banking Grid Pattern */
.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%) translateZ(0);
    object-fit: cover;
    opacity: 0.6; /* More visible video overlay */
    filter: brightness(0.9) contrast(1.2) saturate(1.2);
    z-index: 0;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Video loading state */
.video-background.loading {
    background: linear-gradient(135deg, 
        #0f172a 0%, 
        #1e293b 15%, 
        #334155 30%, 
        #475569 45%, 
        #64748b 60%, 
        #94a3b8 75%, 
        #cbd5e1 90%, 
        #e2e8f0 100%);
}

.video-background.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fallback background when video fails */
.fallback-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        #0f172a 0%, 
        #1e293b 15%, 
        #334155 30%, 
        #475569 45%, 
        #64748b 60%, 
        #94a3b8 75%, 
        #cbd5e1 90%, 
        #e2e8f0 100%);
    z-index: -1;
}

/* Enhanced video overlay - Professional Banking Theme */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.4) 0%, 
        rgba(30, 41, 59, 0.3) 25%, 
        rgba(51, 65, 85, 0.2) 50%, 
        rgba(71, 85, 105, 0.3) 75%, 
        rgba(100, 116, 139, 0.4) 100%);
    z-index: -2;
    pointer-events: none;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Container and Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.verification-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.verification-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    width: 100%;
    max-width: 880px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.98);
}

/* Header */
.verification-header {
    background: linear-gradient(135deg, var(--header-primary) 0%, var(--header-secondary) 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 1rem 1rem;
    margin-bottom: 0;
    border-bottom: 3px solid var(--header-accent);
}

.verification-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(217, 119, 6, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    opacity: 0.8;
}

.verification-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(217, 119, 6, 0.05) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.verification-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 2;
    letter-spacing: -0.01em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.verification-subtitle {
    font-size: 0.875rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: #f3f4f6;
}

/* Progress Bar */
.progress-container {
    padding: 1.5rem 2rem 0;
    background: var(--bg-primary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius-sm);
    transition: width 0.5s ease-in-out;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 0.5rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active::after {
    background: var(--primary-color);
}

.progress-step-number {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.progress-step.active .progress-step-number {
    background: var(--primary-color);
    color: white;
}

.progress-step.completed .progress-step-number {
    background: var(--success-color);
    color: white;
}

.progress-step.completed .progress-step-number::before {
    content: '✓';
    font-size: 0.75rem;
}

.progress-step-label {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    text-align: center;
    transition: var(--transition);
}

.progress-step.active .progress-step-label {
    color: var(--primary-color);
    font-weight: 600;
}

.progress-step.completed .progress-step-label {
    color: var(--success-color);
    font-weight: 600;
}

/* Form Styles */
.form-container {
    padding: 2rem;
}

.form-section {
    display: none;
    animation: fadeInUp 0.5s ease-out;
}

.form-section.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.75rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 2px;
}

.section-description {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.form-grid {
    display: grid;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-label.required::after {
    content: '*';
    color: var(--error-color);
    font-weight: 700;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Normalize file input sizing */
input[type="file"].form-input,
.form-input[type="file"] {
    padding: 0.5rem 0.75rem;
    line-height: 1.2;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), var(--shadow-md);
    transform: translateY(-1px);
}

/* Only show error styling when explicitly marked as error */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-light);
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
    max-height: 120px;
}

.form-help {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.form-error {
    font-size: 0.75rem;
    color: var(--error-color);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-error::before {
    content: '⚠';
    font-size: 0.875rem;
}

/* Button Styles */
.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    min-width: 140px;
    position: relative;
    overflow: hidden;
}

.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;
}

.btn:hover::before {
    left: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: var(--shadow-lg);
    border: none;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-2px);
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Centered Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.loading-content {
    background: var(--bg-primary);
    padding: 2rem 3rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--border-color);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.loading-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.loading-subtext {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Processing Animation */
.processing-container {
    text-align: center;
    padding: 3rem 2rem;
    height: 100%;
    max-height: calc(100vh - 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
    border-radius: 1.5rem;
    margin: 1rem;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.processing-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.processing-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform-origin: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.processing-icon::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--success-color);
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out 2s forwards;
    font-weight: 900;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.processing-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.processing-message {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.processing-steps {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
    overflow: visible;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.processing-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.processing-step-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-light);
    transition: var(--transition);
    flex-shrink: 0;
    font-weight: 600;
}

.processing-step.active {
    border-color: var(--primary-color);
    background: var(--bg-accent);
}

.processing-step.active .processing-step-icon {
    background: var(--primary-color);
    color: white;
}

.processing-step.completed {
    border-color: var(--success-color);
    background: rgba(5, 150, 105, 0.05);
}

.processing-step.completed .processing-step-icon {
    background: var(--success-color);
    color: white;
}

.processing-step.completed .processing-step-icon::before {
    content: '✓';
}

.processing-step-text {
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 500;
}

.processing-step.active .processing-step-text {
    color: var(--primary-color);
    font-weight: 600;
}

.processing-step.completed .processing-step-text {
    color: var(--success-color);
    font-weight: 600;
}

/* Disclaimer */
.disclaimer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    text-align: center;
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
}

.disclaimer-text {
    font-size: 0.75rem;
    color: var(--text-light);
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.disclaimer-text strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.modal-message {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-background video {
        opacity: 0.5; /* More visible on mobile too */
        filter: brightness(0.8) contrast(1.3) saturate(1.1);
    }
    
    .video-overlay {
        background: linear-gradient(135deg, 
            rgba(15, 23, 42, 0.5) 0%, 
            rgba(30, 41, 59, 0.4) 25%, 
            rgba(51, 65, 85, 0.3) 50%, 
            rgba(71, 85, 105, 0.4) 75%, 
            rgba(100, 116, 139, 0.5) 100%);
    }
    
    .verification-container {
        padding: 0;
        align-items: flex-start;
        min-height: 100vh;
    }
    
    .verification-card {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
        max-width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
    }
    
    .verification-header {
        padding: 1rem;
        border-radius: 0;
        margin-bottom: 0.5rem;
    }
    
    .verification-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }
    
    .verification-subtitle {
        font-size: 0.8rem;
    }
    
    .progress-container {
        padding: 1rem;
    }
    
    .form-container {
        padding: 1rem 0.75rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-grid {
        gap: 1.25rem;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.875rem 1rem;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .button-group {
        flex-direction: column;
        align-items: stretch;
        margin-top: 2rem;
        gap: 1rem;
        padding: 0 0.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        border-radius: 0.75rem;
        min-height: 48px; /* Touch-friendly */
    }
    
    .progress-steps {
        padding: 0;
        margin-top: 0.75rem;
    }
    
    .progress-step-label {
        font-size: 0.6rem;
        margin-top: 0.25rem;
    }
    
    .modal {
        padding: 1.5rem;
        margin: 1rem;
        width: calc(100% - 2rem);
    }
    
    .loading-content {
        padding: 1.5rem 2rem;
        margin: 1rem;
    }
    
    .processing-container {
        padding: 1.5rem 1rem;
        height: calc(100vh - 2rem);
        max-height: calc(100vh - 2rem);
        margin: 0.5rem;
        border-radius: 0.5rem;
        background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
        overflow: hidden;
    }
    
    .processing-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .processing-icon::after {
        font-size: 1.75rem;
    }
    
    .processing-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .processing-message {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .processing-steps {
        max-width: 100%;
        overflow: visible;
        padding: 0;
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .processing-step {
        padding: 0.75rem;
        font-size: 0.8rem;
        gap: 0.6rem;
    }
    
    .processing-step-icon {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    
    .disclaimer {
        padding: 1rem;
        margin-top: 1.5rem;
    }
    
    .disclaimer-text {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .verification-header {
        padding: 1rem;
    }
    
    .verification-title {
        font-size: 1.25rem;
    }
    
    .verification-subtitle {
        font-size: 0.875rem;
    }
    
    .form-container {
        padding: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .form-grid {
        gap: 1rem;
    }
    
    .processing-container {
        padding: 2rem 1rem;
    }
    
    .processing-icon {
        width: 60px;
        height: 60px;
    }
    
    .processing-title {
        font-size: 1.25rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --text-secondary: #000000;
        --bg-secondary: #ffffff;
    }
}

/* Print styles */
@media print {
    .verification-container {
        background: white;
    }
    
    .verification-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .button-group {
        display: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --text-primary: #f9fafb;
        --text-secondary: #d1d5db;
        --text-light: #9ca3af;
        --bg-primary: #1f2937;
        --bg-secondary: #374151;
        --bg-tertiary: #4b5563;
        --border-color: #4b5563;
    }
}

/* === Accessibility & Mobile Readability Enhancements (Overrides) === */
.form-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}

.form-input,
.form-select,
.form-textarea,
input,
select,
textarea {
    background-color: #ffffff;
    color: #0f172a;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
}

.form-input::placeholder,
.form-textarea::placeholder,
input::placeholder,
textarea::placeholder {
    color: #475569;
    opacity: 1;
}

.video-overlay {
    background: linear-gradient(135deg,
        rgba(15,23,42,0.25) 0%,
        rgba(30,41,59,0.20) 25%,
        rgba(51,65,85,0.15) 50%,
        rgba(71,85,105,0.20) 75%,
        rgba(100,116,139,0.25) 100%);
}

@media (max-width: 768px) {
    :root { color-scheme: light; }
    .form-input,
    .form-select,
    .form-textarea,
    input,
    select,
    textarea {
        font-size: 16px; /* Avoid iOS zoom */
        background-color: #ffffff !important;
        color: #0f172a !important;
        border-color: #cbd5e1 !important;
    }
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    select:-webkit-autofill,
    textarea:-webkit-autofill {
        -webkit-text-fill-color: #0f172a !important;
        transition: background-color 9999s ease-in-out 0s !important;
        box-shadow: 0 0 0px 1000px #ffffff inset !important;
    }
    .video-background video {
        opacity: 0.85; /* ensure clearly visible on mobile */
        filter: brightness(1) contrast(1.05) saturate(1.05);
        object-position: center center;
    }
    /* Lighten overlay on mobile so video is not dimmed */
    .video-overlay {
        background: linear-gradient(135deg,
            rgba(15,23,42,0.12) 0%,
            rgba(30,41,59,0.12) 25%,
            rgba(51,65,85,0.10) 50%,
            rgba(71,85,105,0.12) 75%,
            rgba(100,116,139,0.12) 100%);
    }
    /* Improve paragraph contrast on mobile */
    .section-description {
        color: #334155;
        opacity: 1;
        font-weight: 500;
    }
}
