/* ==========================================================================
   RKAZ Contact Page Styles (contact.css)
   ========================================================================== */

/* المتغيرات الأساسية */
:root {
    --primary-color: #0D1B2A;       
    --accent-gold: #C5A880;         
    --accent-gold-hover: #A88F68;   
    --text-dark: #2F3E46;           
    --bg-light: #F8F9FA;            
    --white: #FFFFFF;               
    --transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   1. قسم الهيرو (Contact Hero)
   ========================================================================== */
.contact-hero {
    background: linear-gradient(135deg, rgba(13, 27, 42, 0.95), rgba(20, 39, 61, 0.85)), 
                url('assets/images/rkazgroub.jpg') no-repeat center center/cover;
    padding: 120px 0 80px 0;
    text-align: center;
    color: var(--white);
    position: relative;
}

.contact-hero .subtitle {
    display: inline-block;
    color: var(--accent-gold);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.contact-hero .title {
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.3;
}

.contact-hero .description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

/* ==========================================================================
   2. قسم المحتوى (Contact Content & Grid)
   ========================================================================== */
.contact-content-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* تقسيم المساحة: ثلث للمعلومات وثلثين للنموذج */
    gap: 50px;
    margin-bottom: 60px;
}

.contact-heading {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.contact-subheading {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 30px;
}

/* بطاقات معلومات الاتصال (Info Cards) */
.info-card {
    display: flex;
    align-items: flex-start;
    background-color: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(13, 27, 42, 0.05);
    border-right: 4px solid var(--accent-gold); /* خط جانبي ذهبي (للعربية RTL) */
    transition: var(--transition);
}

.info-card:hover {
    transform: translateX(-5px);
    box-shadow: 0 8px 20px rgba(13, 27, 42, 0.1);
}

body[dir="ltr"] .info-card {
    border-right: none;
    border-left: 4px solid var(--accent-gold);
}

body[dir="ltr"] .info-card:hover {
    transform: translateX(5px);
}

.info-icon {
    background-color: rgba(197, 168, 128, 0.15);
    color: var(--accent-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-left: 20px; /* لليسار في العربية */
    flex-shrink: 0;
}

body[dir="ltr"] .info-icon {
    margin-left: 0;
    margin-right: 20px;
}

.info-text h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.info-text p {
    font-size: 15px;
    color: var(--text-dark);
    margin: 0;
}

/* ==========================================================================
   3. نموذج المراسلة (Contact Form)
   ========================================================================== */
.contact-form-container {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.08);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.form-group .required {
    color: #E63946;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 15px;
    color: var(--text-dark);
    background-color: var(--bg-light);
    border: 1px solid rgba(13, 27, 42, 0.1);
    border-radius: 8px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(197, 168, 128, 0.15);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 700;
    font-family: inherit;
    color: var(--primary-color);
    background-color: var(--accent-gold);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(197, 168, 128, 0.3);
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. خريطة الموقع (Google Maps)
   ========================================================================== */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(13, 27, 42, 0.1);
}

/* ==========================================================================
   5. التجاوب (Responsive Design)
   ========================================================================== */
@media (max-width: 991px) {
    .contact-grid {
        grid-template-columns: 1fr; /* ترتيب عمودي في التابلت */
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr; /* الخانات بجانب بعض بتصير تحت بعض بالموبايل */
        gap: 0;
    }
    
    .contact-hero {
        padding: 100px 0 60px 0;
    }
    
    .contact-hero .title {
        font-size: 32px;
    }
    
    .contact-form-container {
        padding: 25px;
    }
}