/* ============================================
   📞 صفحة اتصل بنا - تصميم محسن
   ============================================ */

.contact-container {
    max-width: 800px;
    width: calc(100% - 2rem);
    margin: 2rem auto;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border);
}

body.dark-mode .contact-container {
    background: #1a243d;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-header {
    padding: 2rem;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    z-index: 1;
}

.contact-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.contact-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.contact-content {
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
}

body.dark-mode .form-label {
    color: #e2e8f0;
}

.form-input,
.form-textarea {
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--light-bg);
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    resize: vertical;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

body.dark-mode .form-input,
body.dark-mode .form-textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

body.dark-mode .form-input:focus,
body.dark-mode .form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(230, 195, 92, 0.1);
}

.captcha-container {
    background: rgba(59, 130, 246, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

body.dark-mode .captcha-container {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.captcha-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    text-align: center;
}

body.dark-mode .captcha-input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

.captcha-image {
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    padding: 5px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.captcha-image:hover {
    transform: scale(1.05);
}

body.dark-mode .captcha-image {
    background: #2d3748;
    border-color: rgba(255, 255, 255, 0.1);
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.submit-btn:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, #1D4ED8 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn i {
    font-size: 1.2rem;
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* رسائل الحالة */
.form-message {
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-error {
    background: rgba(229, 62, 62, 0.1);
    color: #e53e3e;
    border: 1px solid rgba(229, 62, 62, 0.2);
}

.form-success {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
    border: 1px solid rgba(72, 187, 120, 0.2);
}

.form-loading {
    background: rgba(59, 130, 246, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

body.dark-mode .form-error {
    background: rgba(229, 62, 62, 0.15);
    border-color: rgba(229, 62, 62, 0.3);
    color: #fc8181;
}

body.dark-mode .form-success {
    background: rgba(72, 187, 120, 0.15);
    border-color: rgba(72, 187, 120, 0.3);
    color: #68d391;
}

body.dark-mode .form-loading {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* معلومات الاتصال */
.contact-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.contact-info-title {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 700;
}

body.dark-mode .contact-info-title {
    color: var(--accent);
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
	justify-content:center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    background: rgba(59, 130, 246, 0.1);
}

body.dark-mode .contact-method {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

body.dark-mode .contact-method:hover {
    background: rgba(59, 130, 246, 0.15);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-details h4 {
    color: var(--primary);
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

body.dark-mode .contact-details h4 {
    color: var(--accent);
}

.contact-details p {
    color: var(--text);
    opacity: 0.8;
    font-size: 0.95rem;
}

body.dark-mode .contact-details p {
    color: #e2e8f0;
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 768px) {
    .contact-container {
        width: calc(100% - 1rem);
        margin: 1rem auto;
    }
    
    .contact-header {
        padding: 1.5rem;
    }
    
    .contact-title {
        font-size: 1.5rem;
    }
    
    .contact-content {
        padding: 1.5rem;
    }
    
    .captcha-row {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .captcha-input {
        width: 100%;
    }
    
    .contact-methods {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .contact-header {
        padding: 1.2rem;
    }
    
    .contact-title {
        font-size: 1.3rem;
    }
    
    .contact-content {
        padding: 1rem;
    }
    
    .form-input,
    .form-textarea {
        padding: 0.8rem 1rem;
    }
    
    .submit-btn {
        padding: 0.9rem 1.5rem;
        font-size: 1rem;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
}