/* ========================================== */
/* إعدادات عامة */
/* ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Amazon Ember", Arial, sans-serif;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    /* direction: rtl;  تمت إزالتها */
    background: #f5f5f5;
    color: #1a1a1a;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ========================================== */
/* Hero Section - بانر الصورة الموحدة */
/* ========================================== */

.contact-hero {
    width: 100%;
    /* تم التعديل ليتوافق مع المعيار الجديد */
    height: 415px;
    min-height: 415px;
    max-height: 415px;
    padding: 0;
    /* شلنا البادينج */
    background: #f5f5f5;
    overflow: hidden;
}

/* شلنا الـ Container من هنا عشان البانر ياخد العرض كامل */

.hero-image-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    /* شلنا الحواف المدورة */
}

.hero-image-link:hover .hero-image {
    transform: scale(1.02);
}

.hero-image {
    width: 100%;
    height: 100%;
    display: block;

    /* القاعدة الجديدة: ملء كامل (مط) */
    object-fit: fill;

    object-position: center;
    transition: transform 0.5s ease;
}

/* ========================================== */
/* Contact Section */
/* ========================================== */

.contact-section {
    padding: 60px 0;
    background: #f5f5f5;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 30px;
}

/* ========================================== */
/* معلومات الاتصال */
/* ========================================== */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-header h2 {
    font-size: 28px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.info-header p {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-card {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #b42f4c;
    transform: translateX(-5px);
    box-shadow: 0 8px 25px rgba(180, 47, 76, 0.15);
}

.info-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #ffe0e6 0%, #fff5f7 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 24px;
    color: #b42f4c;
}

.whatsapp-card .info-icon {
    background: linear-gradient(135deg, #d4f4dd 0%, #e8f5e9 100%);
}

.whatsapp-card .info-icon i {
    color: #25D366;
}

.info-details {
    flex: 1;
    min-width: 0;
}

.info-details h3 {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.info-details a:not(.social-btn) {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
    transition: color 0.3s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.info-details a:not(.social-btn):hover {
    color: #b42f4c;
}

.info-details p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

.availability {
    display: inline-block;
    margin-top: 5px;
    padding: 4px 12px;
    background: #d4f4dd;
    color: #15803d;
    font-size: 12px;
    font-weight: 700;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.social-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important;
    border-radius: 50%;
    /* Using 50% for circular icons */
    transition: all 0.3s ease;
}

.social-btn i {
    font-size: 20px;
    color: #fff !important;
}

.social-btn:hover {
    transform: translateY(-5px);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.twitter,
.social-btn.x-twitter {
    background: #000;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.linkedin {
    background: #0077b5;
}

.social-btn.youtube {
    background: #ff0000;
}

.social-btn.tiktok {
    background: #000;
}

.social-btn.snapchat {
    background: #fffc00;
}

.social-btn.snapchat i {
    color: #000 !important;
}

/* الخريطة */
.map-container {
    overflow: hidden;
    border: 2px solid #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe,
.map-container embed,
.map-container object {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 320px;
    border: 0;
}

/* ========================================== */
/* نموذج الاتصال */
/* ========================================== */

.contact-form-wrapper {
    background: #fff;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 15px;
    color: #666;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: #b42f4c;
    font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #b42f4c;
    box-shadow: 0 0 0 4px rgba(180, 47, 76, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.char-count {
    font-size: 12px;
    color: #999;
    text-align: left;
}

.error-message {
    font-size: 12px;
    color: #dc2626;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc2626;
}

/* رفع ملف */
.file-upload {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px;
    background: #f9f9f9;
    border: 2px dashed #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-label:hover {
    background: #fff;
    border-color: #b42f4c;
}

.file-label i {
    font-size: 26px;
    color: #b42f4c;
}

.file-text {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.file-name {
    font-size: 13px;
    color: #15803d;
    font-weight: 600;
}

.file-note {
    font-size: 12px;
    color: #999;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom {
    background: #b42f4c;
    border-color: #b42f4c;
}

.checkbox-label input[type="checkbox"]:checked+.checkbox-custom::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    font-size: 11px;
}

.checkbox-label a {
    color: #b42f4c;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* زر الإرسال */
.submit-btn {
    width: 100%;
    padding: 16px 28px;
    background: linear-gradient(135deg, #b42f4c 0%, #8d2439 100%);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(180, 47, 76, 0.3);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(180, 47, 76, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn i {
    font-size: 15px;
}

/* رسالة النجاح */
.success-message {
    padding: 18px 22px;
    background: #f0fdf4;
    border: 2px solid #15803d;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInUp 0.5s ease;
}

.success-message i {
    font-size: 30px;
    color: #15803d;
    flex-shrink: 0;
}

.success-message h4 {
    font-size: 16px;
    font-weight: 800;
    color: #15803d;
    margin-bottom: 5px;
}

.success-message p {
    font-size: 13px;
    color: #166534;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================== */
/* إعلان بعد النموذج */
/* ========================================== */

.form-ad {
    margin-top: 25px;
    overflow: hidden;
    border: 2px solid #f0f0f0;
}

.form-ad img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================== */
/* FAQ Section */
/* ========================================== */

.faq-section {
    padding: 60px 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ffe0e6 0%, #fff5f7 100%);
    color: #b42f4c;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 900;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 16px;
    color: #666;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.faq-item {
    background: #f9f9f9;
    border: 2px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #e0e0e0;
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    text-align: right;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #b42f4c;
}

.faq-question i {
    font-size: 13px;
    color: #b42f4c;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 22px 18px;
}

.faq-answer p {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
}

/* ========================================== */
/* Quick Contact */
/* ========================================== */

.quick-contact {
    padding: 50px 20px;
    margin: 40px auto 50px;
    width: calc(100% - 40px);
    max-width: 1400px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.quick-contact-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.quick-text h2 {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 8px;
}

.quick-text p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.95);
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: #fff;
    color: #25D366;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    justify-content: center;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn i {
    font-size: 24px;
}

/* ========================================== */
/* Responsive */
/* ========================================== */

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }

    .contact-layout {
        grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 24px;
    }

    /* الهيرو في الموبايل */
    .contact-hero {
        height: 350px;
        min-height: 350px;
        max-height: 350px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .map-container iframe,
    .map-container embed,
    .map-container object {
        height: 300px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .quick-contact-content {
        flex-direction: column;
        text-align: center;
    }

    .quick-contact {
        margin: 30px 16px 40px;
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .contact-form-wrapper {
        padding: 25px 20px;
    }

    .whatsapp-btn {
        width: 100%;
    }

    .info-header h2,
    .form-header h2 {
        font-size: 24px;
    }

    .section-header h2 {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 12px;
    }

    /* الهيرو في الشاشات الصغيرة */
    .contact-hero {
        height: 250px;
        min-height: 250px;
        max-height: 250px;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .map-container iframe,
    .map-container embed,
    .map-container object {
        height: 260px;
    }

    .quick-text h2 {
        font-size: 22px;
    }
}