body {
    font-family: 'Inter', sans-serif;
    background-color: #f3f4f6;
}
.form-step { display: none; }
.form-step.active { display: block; }
.file-input-container {
    border: 2px dashed #cbd5e1; border-radius: 0.5rem; padding: 1.5rem;
    text-align: center; cursor: pointer; transition: background-color 0.2s ease-in-out;
}
.file-input-container:hover { background-color: #e5e7eb; }
.file-input-container.dragover { background-color: #d1d5db; border-color: #9ca3af; }
.preview-image, #selfiePreview {
    max-width: 100%; max-height: 180px; 
    border-radius: 0.375rem; margin-top: 0.75rem; border: 1px solid #e5e7eb;
    background-color: #f9fafb; 
}
#webcamFeed {
    width: 100%; max-height: 300px; border-radius: 0.375rem;
    background-color: #e5e7eb; border: 1px solid #d1d5db;
    transform: scaleX(-1); 
}
.spinner, .file-read-spinner {
    border: 3px solid rgba(0, 0, 0, 0.1); 
    width: 20px; height: 20px; /* Smaller for file read */
    border-radius: 50%; border-left-color: #09f; animation: spin 1s ease infinite;
    display: inline-block; /* For file read spinner */
    margin-left: 8px; /* Space from filename */
    vertical-align: middle;
}
.spinner { /* Main spinner */
     width: 36px; height: 36px; border-width: 4px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); display: flex;
    justify-content: center; align-items: center; z-index: 1000;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.active { opacity: 1; visibility: visible; }
.modal-content {
    background-color: white; padding: 2rem; border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); text-align: center;
    max-width: 90%; width: 400px;
}
select, input[type="text"], input[type="tel"], input[type="password"] {
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.7rem center;
    background-size: 1.2em 1.2em; padding-right: 2.5rem;
}
input[type="text"], input[type="tel"], input[type="password"] {
     background-image: none; padding-right: 0.75rem;
}
.success-page {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #fff !important;
    color: #002991 !important;
    flex-direction: column; justify-content: center; align-items: center;
    text-align: center; z-index: 2000;
}
.success-page svg, .success-page img {
    width: 80px; height: 80px; margin-bottom: 1.5rem;
}
.input-error { border-color: #ef4444; }
.error-message { color: #ef4444; font-size: 0.875rem; margin-top: 0.25rem; }
/* Custom blue button color override */
.bg-blue-600, .bg-blue-700, .hover\:bg-blue-700:hover, .hover\:bg-blue-600:hover {
    background-color: #002991 !important;
    border-color: #002991 !important;
}
.text-blue-600, .text-blue-700 {
    color: #002991 !important;
}
.focus\:ring-blue-500:focus {
    --tw-ring-color: #002991 !important;
}
button {
    border-radius: 9999px !important;
}

