/* تحسينات خاصة بصفحة تسجيل الطالب */

.student-registration-page {
    background: #f1f5f9;
    min-height: 100vh;
    padding: 2.5rem 0;
}

.registration-card {
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

.registration-header {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
}

.registration-header h2 {
    margin: 0;
    font-weight: 700;
    font-size: 1.8rem;
    letter-spacing: -0.3px;
}

.registration-header p {
    margin: 0.6rem 0 0 0;
    opacity: 0.85;
    font-size: 0.95rem;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    padding: 0.85rem 1.2rem;
}

.section-header h5 {
    margin: 0;
    color: #1e40af;
    font-weight: 600;
    font-size: 0.95rem;
}

.section-header i {
    color: #1e40af;
    font-size: 1rem;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.4rem;
}

.form-control,
.form-select {
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    color: #1f2937;
    background: #fafafa;
    transition: all 0.2s ease;
    height: auto;
}

.form-control:focus,
.form-select:focus {
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12);
    background: #ffffff;
    outline: none;
}

.form-control::placeholder {
    color: #9ca3af;
    font-size: 0.875rem;
}

.form-text {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.3rem;
}

/* File inputs */
input[type="file"].form-control {
    padding: 0.5rem 0.9rem;
    cursor: pointer;
}

/* Required asterisk */
.required::after {
    content: " *";
    color: #ef4444;
    font-weight: 700;
}

/* Preview image */
.preview-image {
    max-width: 120px;
    max-height: 120px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-top: 0.5rem;
}

/* Submit section */
.submit-section {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin: 2rem -1.5rem -1.5rem -1.5rem;
    padding: 1.75rem 2rem;
    text-align: center;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-submit {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(30, 64, 175, 0.35);
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.45);
    color: white;
}

.btn-reset {
    background: transparent;
    border: 1.5px solid #9ca3af;
    padding: 0.8rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    color: #6b7280;
    transition: all 0.25s ease;
    cursor: pointer;
}

.btn-reset:hover {
    background: #6b7280;
    color: white;
    transform: translateY(-2px);
    border-color: #6b7280;
}

/* Row spacing */
.row.mb-4 {
    margin-bottom: 0.5rem !important;
}

.col-md-6.mb-3 {
    margin-bottom: 1.1rem !important;
}

/* Mobile */
@media (max-width: 768px) {
    .student-registration-page { padding: 1rem 0; }
    .registration-card { margin: 0 0.5rem; border-radius: 16px; }
    .registration-header { padding: 1.75rem 1.5rem; }
    .registration-header h2 { font-size: 1.4rem; }
    .submit-section {
        margin: 1.5rem -1rem -1rem -1rem;
        padding: 1.25rem;
        flex-direction: column;
    }
    .btn-submit, .btn-reset { width: 100%; }
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.registration-card { animation: fadeInUp 0.5s ease-out; }
