
.form-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.form-section .container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 600px;
}

.form-section .form-title {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
}

.form-section .travel-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.form-section .form-group label {
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

.form-section .form-group input,
.form-section .form-group select {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-section .form-group input:focus,
.form-section .form-group select:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-section .form-group input.error,
.form-section .form-group select.error {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.form-section .form-group input.success,
.form-section .form-group select.success {
    border-color: #27ae60;
    background-color: #f2f9f2;
}

.form-section .radio-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-direction: row !important;
}

.form-section .radio-group input[type="radio"] {
    margin: 0;
    margin-left: 5px;
    width: auto;
}

.form-section .radio-group label {
    margin: 0;
    cursor: pointer;
    font-weight: normal;
}

.form-section .student-info, .form-section .non-student-info {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
    transition: all 0.3s ease;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
}

.form-section .student-info.show, .form-section .non-student-info.show {
    display: flex !important;
    max-height: 200px;
    opacity: 1;
    animation: slideDown 0.3s ease forwards;
}

.form-section .non-student-info {
    background: #fff8f0;
    border-color: #f0ad4e;
}

.form-section .error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    font-weight: 500;
}

.form-section .error-message.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-section .submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.form-section .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.form-section .submit-btn:active {
    transform: translateY(0);
}

.form-section .submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Success message */
.form-section .success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    margin-top: 20px;
    text-align: center;
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .form-title {
        font-size: 24px;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* تنسيق صندوق النص */
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #fafafa;
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
    line-height: 1.5;
}

.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea::placeholder {
    color: #999;
    font-style: italic;
}

/* تلميح الحقل */
.field-hint {
    color: #666;
    font-size: 12px;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

/* أنماط خاصة لصندوق الرسائل */
.form-group:has(textarea) {
    background: linear-gradient(145deg, #f8f9ff 0%, #fff8f0 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed #667eea;
    position: relative;
}

.form-group:has(textarea)::before {
    content: "💬";
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 18px;
    opacity: 0.7;
}

/* تأثير عند التركيز على صندوق النص */
.form-group:has(textarea:focus) {
    background: linear-gradient(145deg, #fff 0%, #f8f9ff 100%);
    border-color: #667eea;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.1);
}

/* عداد الأحرف */
.form-group .char-counter {
    text-align: left;
    font-size: 11px;
    color: #888;
    margin-top: 5px;
}

.form-group .char-counter.near-limit {
    color: #f39c12;
}

.form-group .char-counter.at-limit {
    color: #e74c3c;
}

/* للأجهزة المحمولة */
@media (max-width: 768px) {
    .form-group textarea {
        min-height: 80px;
        font-size: 14px;
    }
    
    .form-group:has(textarea) {
        padding: 15px;
    }
}


/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
        max-height: 0;
    }
    to {
        opacity: 1;
        transform: translateY(0);
        max-height: 200px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state */
.form-section .submit-btn.loading {
    position: relative;
    color: transparent;
}

.form-section .submit-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
