/* إعدادات عامة للهواتف المحمولة فقط */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
    margin: 0;
    direction: rtl;
    text-align: right;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    min-height: 100vh;
    background: white;
    display: flex;
    flex-direction: column;
}

/* تصميم الهيدر */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.header p, .subtitle {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
    font-weight: 400;
}

.company-logo {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* تصميم النموذج */
.form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 40px;
    border: 2px solid #e8f4fd;
    border-radius: 15px;
    padding: 25px;
    background: linear-gradient(145deg, #f8fbff 0%, #ffffff 100%);
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid #3498db;
}

.section-icon {
    font-size: 2rem;
    margin-left: 15px;
    color: #3498db;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e4a72;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1e4a72;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* تصميم الحقول */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 12px 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* تصميم الراديو والتشيك بوكس */
.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 12px 18px;
    border-radius: 25px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 120px;
}

.radio-item:hover,
.checkbox-item:hover {
    background: #e3f2fd;
    border-color: #3498db;
    transform: translateY(-2px);
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    margin-left: 10px;
    transform: scale(1.2);
}

.radio-item.selected,
.checkbox-item.selected {
    background: #3498db;
    color: white;
    border-color: #2980b9;
}

/* تصميم رفع الملفات */
.file-upload {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 16px;
    border: 2px dashed #1e4a72;
    border-radius: 8px;
    text-align: center;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    color: #1e4a72;
}

.file-upload-label:hover {
    background: #e3f2fd;
    border-color: #2980b9;
}

.file-upload-icon {
    font-size: 2rem;
    margin-left: 10px;
    color: #3498db;
}

/* تصميم الأزرار */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1e4a72 0%, #2c5aa0 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(30, 74, 114, 0.3);
    margin-top: 20px;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.submit-section {
    text-align: center;
    padding: 30px;
    background: linear-gradient(145deg, #f8fbff 0%, #ffffff 100%);
    border-radius: 15px;
    margin-top: 30px;
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .radio-group,
    .checkbox-group {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        text-align: center;
    }
    
    .section-icon {
        margin-left: 0;
        margin-bottom: 10px;
    }
}

/* Responsive adjustments for very small screens */
@media (max-width: 360px) {
    .header {
        padding: 15px 10px;
    }
    
    .form-container {
        padding: 15px 10px;
    }
    
    .form-section {
        padding: 15px 10px;
    }
    
    .header h1 {
        font-size: 18px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    label {
        font-size: 13px;
    }
    
    input, select, textarea {
        font-size: 13px;
        padding: 10px 8px;
    }
}

/* تأثيرات إضافية */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-message {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.error-message {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

/* تحسينات إضافية للتصميم */
.form-section:nth-child(odd) {
    background: linear-gradient(145deg, #fff5f5 0%, #ffffff 100%);
    border-color: #ffeaea;
}

.form-section:nth-child(even) {
    background: linear-gradient(145deg, #f0fff4 0%, #ffffff 100%);
    border-color: #e8f5e8;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}