/* Passport Uploader Frontend Styles - Enhanced Design */
.passport-form-container {
    max-width: 1000px; /* Increased from 800px to 1000px */
    margin: 2rem auto;
    padding: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.passport-form-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.passport-form-header h1 {
    font-size: 2rem; /* Reduced from 2.5rem to 2rem */
    font-weight: 700;
    margin: 0 0 1rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.3;
}

.passport-form-header p {
    font-size: 1.1rem; /* Slightly reduced */
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
}

.passport-upload-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-description {
    color: #718096;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
}

/* File Upload Area */
.file-upload-area {
    border: 3px dashed #cbd5e0;
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-upload-area:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: #e6f0ff;
    transform: scale(1.02);
}

.upload-instructions .upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.upload-instructions h4 {
    margin: 0 0 0.5rem 0;
    color: #2d3748;
    font-size: 1.3rem;
}

.upload-instructions p {
    margin: 0.25rem 0;
    color: #718096;
}

.file-requirements {
    font-size: 0.9rem;
    color: #a0aec0;
}

/* File Preview */
.file-preview-container {
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.file-preview-container h4 {
    margin-bottom: 1rem;
    color: #2d3748;
    font-size: 1.2rem;
}

.file-preview-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.file-preview-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.file-preview-item:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.file-icon {
    font-size: 1.5rem;
}

.file-details h5 {
    margin: 0 0 0.25rem 0;
    color: #2d3748;
    font-size: 1rem;
}

.file-details span {
    color: #718096;
    font-size: 0.9rem;
}

.remove-file {
    background: #fed7d7;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #e53e3e;
}

.remove-file:hover {
    background: #feb2b2;
    transform: scale(1.1);
}

/* Add More Files Button */
.add-more-files-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #48bb78;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-more-files-btn:hover {
    background: #38a169;
    transform: translateY(-2px);
}

.plus-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Submit Section */
.form-submit {
    text-align: center;
    margin-top: 2rem;
    position: relative;
}

#submit-btn {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

#submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

#submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    color: #667eea;
    font-weight: 600;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .passport-form-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .passport-upload-form {
        padding: 2rem 1.5rem;
    }
    
    .passport-form-header h1 {
        font-size: 1.8rem; /* Adjusted for mobile */
    }
    
    .file-preview-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .remove-file {
        align-self: flex-end;
    }
}

/* Success Message */
.form-success {
    background: #c6f6d5;
    border: 2px solid #48bb78;
    color: #22543d;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 2rem;
}

.form-success h3 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
}

/* Error Message */
.form-error {
    background: #fed7d7;
    border: 2px solid #f56565;
    color: #742a2a;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

/* Make file input cover entire upload area */
#passport_files {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}