@font-face {
    font-family: 'Vazirmatn';
    src: url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap') format('woff2');
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: 'Vazirmatn', sans-serif;
    margin: 0;
    background: linear-gradient(-45deg, #e0e7ff, #c7d2fe, #a5b4fc, #818cf8);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
.page-wrapper {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 90vh;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}
.form-section, .slideshow-section {
    width: 50%;
    padding: 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 1s ease-in-out;
}
.form-section {
    overflow-y: auto;
}
.slideshow-section {
    background-color: #f8fafc;
    position: relative;
}
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}
.slide { display: none; width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; animation: fadeEffect 1.5s; }
@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}
.signup-container h2 { text-align: center; margin-bottom: 25px; color: #1e293b; }
.form-group { margin-bottom: 15px; }
.form-group.hidden { display: none; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: #475569; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; box-sizing: border-box; }
.captcha-group { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.captcha-group img { border-radius: 8px; cursor: pointer; }
.submit-btn { width: 100%; padding: 12px; background-color: #4f46e5; color: white; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; }
.form-links { text-align: center; margin-top: 20px; font-size: 14px; }
.form-links a { color: #4f46e5; text-decoration: none; }
#ajax-message { padding: 15px; margin-bottom: 20px; border-radius: 5px; display: none; }
#ajax-message.success { color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb; }
#ajax-message.error { color: #721c24; background-color: #f8d7da; border: 1px solid #f5c6cb; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .page-wrapper { flex-direction: column; min-height: auto; }
    .form-section, .slideshow-section { width: 100%; }
    .slideshow-section { height: 300px; order: -1; }
}
.caption {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 16px;
    z-index: 10;
}
.slide {
    position: relative; /* خیلی مهم برای اینکه caption داخلش absolute بشه */
}
/* استایل برای select مدرسه */
#school_select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}
#ajax-message {
    color: red;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: bold;
}

#school_select:focus {
    border-color: #007bff; /* رنگ هنگام فوکوس */
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* اگر می‌خواهید Select2 هم استفاده شود */
.select2-container--default .select2-selection--single {
    height: 44px;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px;
}

#school_select {
    width: 100%;
    /* اگر می‌خوای رنگ پس‌زمینه، حاشیه و … هم داشته باشه */
    background-color: #fff;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}
