/* Student Registration Form Styles */
.student-registration-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.registration-header {
    text-align: center;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
}

.registration-header h1 {
    color: #2c3e50;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 600;
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: scale(1.1);
    box-shadow: 0 0 0 5px rgba(52, 152, 219, 0.2);
}

.step.completed .step-number {
    background: #2ecc71;
    color: white;
    border-color: #2ecc71;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    font-size: 16px;
}

.step-label {
    font-size: 13px;
    color: #7f8c8d;
    text-align: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

.step.active .step-label {
    color: #3498db;
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-step h2 {
    color: #2c3e50;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
    font-size: 22px;
    font-weight: 600;
}

.form-step h3 {
    color: #34495e;
    margin: 25px 0 15px;
    font-size: 18px;
    font-weight: 600;
    padding-left: 10px;
    border-left: 4px solid #3498db;
}

.form-row {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group label.required::after {
    content: ' *';
    color: #e74c3c;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #e74c3c;
    background: #fff5f5;
}

.form-group input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    min-height: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.error-message::before {
    content: '⚠';
    font-size: 12px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #7f8c8d;
    font-size: 12px;
}

/* Persian Date Picker */
.jalali-datepicker {
    direction: rtl;
    text-align: right;
    cursor: pointer;
}

/* Persian Date Picker Calendar Customization */
.pdp-container {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    z-index: 9999 !important;
}

.pdp-header {
    background: #3498db !important;
    color: white !important;
}

.pdp-footer {
    border-top: 1px solid #eee !important;
    padding: 10px !important;
}

.pdp-footer button {
    background: #2ecc71 !important;
    color: white !important;
    border: none !important;
    padding: 8px 16px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

/* Language-specific inputs */
.english-only {
    direction: ltr;
    text-align: left;
}

.dari-only {
    direction: rtl;
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #ecf0f1;
}

.prev-btn,
.next-btn,
.submit-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    justify-content: center;
}

.prev-btn {
    background: #95a5a6;
    color: white;
}

.prev-btn:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.3);
}

.next-btn {
    background: #3498db;
    color: white;
}

.next-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.submit-btn {
    background: #2ecc71;
    color: white;
}

.submit-btn:hover:not(:disabled) {
    background: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Form Messages */
.form-message {
    margin-top: 25px;
    padding: 18px;
    border-radius: 8px;
    font-size: 15px;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message i {
    margin-right: 8px;
}

/* Review Section */
#review-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #eaeaea;
}

.review-section {
    margin-bottom: 25px;
}

.review-section:last-child {
    margin-bottom: 0;
}

.review-section h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-item {
    display: flex;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-item label {
    font-weight: 600;
    min-width: 200px;
    color: #34495e;
    font-size: 14px;
}

.review-item span {
    color: #2c3e50;
    flex: 1;
    font-size: 14px;
}

/* File Upload Styling */
.form-group input[type="file"] {
    padding: 10px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    padding: 8px 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-right: 12px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.form-group input[type="file"]::file-selector-button:hover {
    background: #2980b9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .student-registration-container {
        padding: 20px;
        margin: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .step {
        min-width: 80px;
    }
    
    .step-label {
        font-size: 12px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .prev-btn,
    .next-btn,
    .submit-btn {
        width: 100%;
        min-width: auto;
    }
    
    .review-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .review-item label {
        min-width: auto;
    }
    
    /* Persian Date Picker Mobile */
    .pdp-container {
        width: 95% !important;
        left: 2.5% !important;
    }
}

@media (max-width: 480px) {
    .registration-header h1 {
        font-size: 22px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .form-step h2 {
        font-size: 18px;
    }
    
    .form-step h3 {
        font-size: 16px;
    }
}