/* ============================================
   RESET & BASE
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-body, #f0f2f5);
    font-family: inherit;
    color: var(--text-main, #1a2a4a);
}

/* ==========================================================================
   CONTACT - COMPLETE DARK MODE SYSTEM
   ========================================================================== */
[data-theme="dark"] body {
    background: var(--navy-deep, #06102d);
    color: var(--text-main, #f0f4fc);
}

[data-theme="dark"] .contact-banner {
    background-color: #06102d;
    background-image: 
        radial-gradient(circle at 80% 30%, rgba(201, 151, 56, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(17, 38, 92, 0.4) 0%, transparent 50%),
        url('../photos/Frame 71.png');
    background-blend-mode: overlay;
}

[data-theme="dark"] .badge-contact {
    background: rgba(201, 151, 56, 0.15);
    color: #dfb743;
    border: 1px solid rgba(201, 151, 56, 0.3);
}

[data-theme="dark"] .contact-container h2 {
    color: #ffffff;
}

[data-theme="dark"] .contact-container p {
    color: #a6b7d8;
}

[data-theme="dark"] .contact-form-box {
    background: #0b1a40;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .red-subtitle {
    color: var(--brand-red, #c99738);
}

[data-theme="dark"] .contact-title {
    color: #ffffff;
}

[data-theme="dark"] .form-group label {
    color: #cbd5e1;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .iti input[type="tel"] {
    background: #071330 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus,
[data-theme="dark"] .iti input[type="tel"]:focus {
    border-color: var(--brand-red, #c99738) !important;
    box-shadow: 0 0 0 3px rgba(201, 151, 56, 0.2);
}

[data-theme="dark"] .form-group input::placeholder,
[data-theme="dark"] .form-group textarea::placeholder {
    color: #64748b;
}

[data-theme="dark"] .phone-input {
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .phone-input .country-code {
    background: #09163b;
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

[data-theme="dark"] .subject-options label {
    background: #071330;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a6b7d8;
}

[data-theme="dark"] .subject-options label:hover {
    border-color: var(--brand-red, #c99738);
    color: #ffffff;
}

[data-theme="dark"] .subject-options input[type="radio"]:checked + label {
    background: var(--brand-red, #c99738);
    color: #ffffff;
    border-color: var(--brand-red, #c99738);
    box-shadow: 0 4px 14px rgba(201, 151, 56, 0.35);
}

[data-theme="dark"] .info-card {
    background: #0b1a40;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .info-icon {
    background: rgba(201, 151, 56, 0.15);
}

[data-theme="dark"] .info-text span {
    color: var(--text-muted, #7284a8);
}

[data-theme="dark"] .info-text h4 {
    color: #ffffff;
}

[data-theme="dark"] .info-text p {
    color: #a6b7d8;
}

[data-theme="dark"] .location-card {
    background: #0b1a40;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] .location-icon {
    background-color: rgba(201, 151, 56, 0.15);
    color: #dfb743;
}

[data-theme="dark"] .location-text h3 {
    color: #ffffff;
}

[data-theme="dark"] .location-text p {
    color: #a6b7d8;
}

/* ==========================================================================
   CONTACT - COMPLETE RTL SYSTEM (ARABIC MODE)
   ========================================================================== */
html[dir="rtl"] .contact-container {
    text-align: right;
    margin-left: 0;
    margin-right: 45px;
}

html[dir="rtl"] .contact-form-box {
    text-align: right;
}

html[dir="rtl"] .form-group label {
    text-align: right;
}

html[dir="rtl"] .form-group input,
html[dir="rtl"] .form-group textarea {
    text-align: right;
}

html[dir="rtl"] .subject-options {
    justify-content: flex-start;
}

html[dir="rtl"] .info-card {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .location-card {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .location-info {
    direction: rtl;
}

html[dir="rtl"] .phone-input .country-code {
    border-right: none;
    border-left: 1px solid var(--border-subtle);
}

html[dir="rtl"] .iti input[type="tel"] {
    padding-left: 14px !important;
    padding-right: 50px !important;
    text-align: right;
}

html[dir="rtl"] .iti__selected-flag {
    right: 0;
    left: auto;
}

/* ==========================================================================
   FULL-WIDTH INTERACTIVE LOCATION MAP
   ========================================================================== */
.office-location-section {
    width: 100%;
    margin-top: 60px;
    padding-top: 20px;
}

.location-header-wrapper {
    max-width: 1320px;
    margin: 0 auto 28px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.location-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.location-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-red-light);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    border: 1px solid rgba(201, 151, 56, 0.2);
}

.location-pretitle {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--brand-red);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.location-main-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-main, #1a2a4a);
    margin: 0 0 4px;
}

.location-sub {
    font-size: 0.95rem;
    color: var(--text-secondary, #566987);
    margin: 0;
}

.get-directions-btn {
    background: var(--brand-red);
    color: #ffffff;
    padding: 13px 26px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-red);
    transition: all var(--transition-fast);
}

.get-directions-btn:hover {
    background: var(--brand-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--brand-red-glow);
}

.interactive-map-frame.full-width-map {
    width: 100% !important;
    height: 500px !important;
    min-height: 480px !important;
    border-radius: 0 !important;
    border: none !important;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.interactive-map-frame.full-width-map iframe {
    width: 100% !important;
    height: 100% !important;
    min-height: 480px !important;
    border: 0 !important;
    display: block !important;
}

[data-theme="dark"] .location-main-title {
    color: #ffffff !important;
}

[data-theme="dark"] .location-sub {
    color: #a6b7d8 !important;
}

[data-theme="dark"] .location-icon-badge {
    background: rgba(201, 151, 56, 0.18) !important;
    color: #dfb743 !important;
    border-color: rgba(201, 151, 56, 0.3) !important;
}

[data-theme="dark"] .interactive-map-frame.full-width-map {
    border-top-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

html[dir="rtl"] .location-header-wrapper {
    flex-direction: row-reverse;
    text-align: right;
}

html[dir="rtl"] .location-header-left {
    flex-direction: row-reverse;
    text-align: right;
}

/* ============================================
   NAVBAR
============================================ */
/* Shared navbar styled in style/common.css */


/* ======================================= */
/* تنسيق قسم التواصل والخلفية */
/* ======================================= */
.contact-banner {
    width: 100%;
    /* مسار الصورة كما حددتِه (مع استبدال \ بـ / لتعمل في CSS بشكل صحيح) */
    background-image: url('../photos/Frame 71.png'); 
    background-color: #0d132a; /* لون كحلي احتياطي في حال تأخر الصورة */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    padding: 100px 20px; /* مساحات واسعة من الأعلى والأسفل */
    display: flex;
    justify-content: center;
}

/* حاوية المحتوى الداخلي لضبط المحاذاة والعرض */
.contact-container {
    width: 100%;
    max-width: 1200px;
    text-align: left;
    margin-left: 45px;
}

/* ======================================= */
/* تنسيق الشارة، العنوان، والنص */
/* ======================================= */

/* شارة CONTACT US */
.badge-contact {
    display: inline-block;
    background-color: #4a2737; /* لون خلفية أحمر/بنفسجي داكن يتماشى مع الصورة */
    color: #ffb8c6; /* لون نص وردي فاتح */
    font-family: inherit;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 25px;
}

/* العنوان الرئيسي */
.contact-container h2 {
    font-family: inherit;
    font-size: 48px;
    color: #ffffff;
    margin: 0 0 20px 0;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* الفقرة النصية */
.contact-container p {
    font-family: inherit;
    font-size: 16px;
    color: #b0b4c9; /* لون رمادي فاتح مائل للأزرق ليكون مريحاً للعين على الخلفية الداكنة */
    max-width: 550px; /* تحديد عرض النص لكي لا يمتد لآخر الشاشة */
    line-height: 1.6;
    margin: 0;
}

/* ======================================= */
/* تخطيط القسم الرئيسي */
/* ======================================= */
.contact-page-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    font-family: inherit;
}

.contact-page-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr; /* الفورم يأخذ مساحة أكبر قليلاً */
    gap: 30px;
}

/* ======================================= */
/* تصميم العمود الأيسر (الفورم) */
/* ======================================= */
.contact-form-box {
    background: #fff;
    border: 1px solid rgba(201, 151, 56, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(6, 16, 45, 0.05);
}

.red-subtitle {
    color: var(--brand-gold, #c99738);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.contact-title {
    font-family: inherit;
    font-size: 32px;
    color: #1a1a24;
    margin: 10px 0 30px;
}

/* تنسيق الحقول */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #666;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #c99738;
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 151, 56, 0.18);
}
/* تعديل عرض مكتبة الأعلام ليتناسب مع تصميمنا */
.iti {
    width: 100%;
    display: block;
}

/* تنسيق حقل الإدخال ليطابق باقي الحقول */
.iti input[type="tel"] {
    width: 100%;
    padding: 14px;
    padding-left: 50px !important; /* مساحة لترك مكان للعلم على اليسار */
    border: 1px solid #eef0f4;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.iti input[type="tel"]:focus {
    border-color: #c99738;
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 151, 56, 0.18);
}
/* حقل رقم الهاتف المدمج */
.phone-input {
    display: flex;
    border: 1px solid #eef0f4;
    border-radius: 8px;
    overflow: hidden;
}

.phone-input .country-code {
    background: #f8f9fc;
    padding: 14px;
    font-size: 13px;
    color: #333;
    border-right: 1px solid #eef0f4;
    font-weight: bold;
}

.phone-input input {
    border: none !important;
    border-radius: 0 !important;
}
/* ======================================= */
/* تنسيق الأزرار الأساسية */
/* ======================================= */
.btn {
    display: inline-block;
    padding: 15px 24px;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* زر الإرسال المتناسق مع الهوية الذهبية */
.btn-red {
    background: linear-gradient(135deg, #dfb743 0%, #c99738 50%, #a27520 100%);
    color: #070913;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(201, 151, 56, 0.35);
}

.btn-red:hover {
    background: linear-gradient(135deg, #f0ca55 0%, #dfb743 100%);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(201, 151, 56, 0.45);
}

/* كلاس العرض الكامل 100% */
.w-100 {
    width: 100%;
    display: block;
}
/* أزرار اختيار الموضوع (Radio Pills) */
.subject-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.subject-options input[type="radio"] {
    display: none; /* إخفاء الدائرة الافتراضية */
}

.subject-options label {
    background: #f8fafc;
    color: #555;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    border: 1px solid rgba(6, 16, 45, 0.08);
    transition: all 0.25s ease;
    margin-bottom: 0;
}

.subject-options label:hover {
    border-color: #c99738;
    color: #c99738;
    background: rgba(201, 151, 56, 0.08);
}

/* ستايل الزر عند اختياره */
.subject-options input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #dfb743 0%, #c99738 100%);
    color: #070913;
    border-color: #c99738;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(201, 151, 56, 0.35);
}

/* ======================================= */
/* تصميم العمود الأيمن (معلومات التواصل) */
/* ======================================= */
.contact-info-column {
   display: flex;
    flex-direction: column;
    justify-content: space-between; /* توزع المسافات بين الصناديق بالتساوي */
    height: 100%; /* تجبر العمود الأيمن على أخذ نفس ارتفاع الفورم بالضبط */
    min-height: 100%;
}

.info-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(201, 151, 56, 0.18);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(6, 16, 45, 0.04);
    transition: all 0.25s ease;
}

.info-card:hover {
    border-color: #c99738;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 151, 56, 0.15);
}

.info-icon {
    width: 45px;
    height: 45px;
    background: rgba(201, 151, 56, 0.12);
    border: 1.5px solid rgba(201, 151, 56, 0.25);
    border-radius: 12px;
    color: #c99738;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

/* تصغير الأيقونات التي ستضعينها */
.info-icon img {
    width: 20px; 
    height: 20px;
    object-fit: contain;
}

.info-text span {
    font-size: 10px;
    color: #888;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.info-text h4 {
    margin: 3px 0;
    font-size: 14px;
    color: #1a1a1a;
}

.info-text p {
    margin: 0;
    font-size: 12px;
    color: #777;
}

.text-red {
    color: var(--text-main, #0b193d) !important;
    font-weight: 700;
}

/* ======================================= */
/* صندوق السوشيال ميديا */
/* ======================================= */
.social-card {
    align-items: flex-start;
}

.social-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* تنسيق الأيقونات الجديدة */
.social-item svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* تكبير خفيف للأيقونة عند مرور الماوس */
.social-item:hover svg {
    transform: scale(1.1);
}
.social-item div strong {
    display: block;
    font-size: 12px;
    color: #1a1a1a;
}

.social-item div a {
    font-size: 11px;
    color: #c99738;
    font-weight: 600;
    text-decoration: none;
}
/* Clean full-width map wrapper */



/* ============================================
   RESPONSIVE MEDIA QUERIES
============================================ */
@media (max-width: 1100px) {
    .contact-page-grid {
        grid-template-columns: 1fr;
    }

    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form-box {
        padding: 30px 24px;
    }

    .contact-section {
        padding: 40px 24px;
    }

    .form-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 700px) {
    .contact-banner {
        padding: 50px 16px 30px !important;
    }

    .contact-container {
        margin-left: 0;
    }

    .contact-container h2 {
        font-size: 32px;
    }

    .contact-page-section {
        margin: 24px auto !important;
        padding: 0 16px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .phone-input-wrapper {
        flex-direction: column;
    }

    .phone-input-wrapper select {
        flex-basis: auto;
    }

    .business-form .submit-btn {
        width: 100%;
    }

    .location-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .location-card .btn {
        width: auto;
        margin-top: 0;
    }
}