/* ===== CONTACT PAGE MOBILE OPTIMIZATIONS ===== */

@media (max-width: 768px) {
    /* Section header mobile optimization */
    .section-header {
        padding: 0 16px;
        margin-bottom: 32px;
    }
    
    .section-header h2 {
        font-size: 2rem !important;
    }
    
    .section-header p {
        font-size: 1rem !important;
    }
    
    /* Contact content stacking */
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 32px;
        padding: 0 16px;
    }
    
    /* Contact info section */
    .contact-info {
        order: 2;
    }
    
    .contact-item {
        margin-bottom: 24px;
    }
    
    /* Contact form comes first on mobile */
    .contact-form {
        order: 1;
        padding: 24px 20px;
        margin: 0;
    }
    
    /* Form row stacking */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0;
    }
    
    /* Form group spacing */
    .form-group {
        margin-bottom: 20px;
    }
    
    /* Map responsive */
    .contact-info iframe {
        width: 100%;
        height: 300px;
        border-radius: 12px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    /* Section adjustments */
    .section {
        padding: 40px 0 !important;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 28px;
    }
    
    .section-header h2 {
        font-size: 1.75rem !important;
        margin-bottom: 12px;
    }
    
    .section-header p {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }
    
    /* Contact form mobile optimization */
    .contact-form {
        padding: 20px 16px !important;
        border-radius: 12px;
    }
    
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 14px !important;
        font-size: 1rem !important;
    }
    
    .form-group textarea {
        min-height: 120px !important;
    }
    
    /* Submit button full width */
    .contact-form button[type="submit"],
    .contact-form .cta-button {
        width: 100% !important;
        padding: 14px 24px !important;
        font-size: 1rem !important;
        border-radius: 8px;
    }
    
    /* Contact items mobile styling */
    .contact-item {
        flex-direction: row;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 20px;
        padding: 16px;
        background: white;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 103, 127, 0.08);
    }
    
    .contact-item i {
        font-size: 1.25rem;
        margin-top: 0;
        flex-shrink: 0;
    }
    
    .contact-item h4 {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    .contact-item p,
    .contact-item a {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    /* Map smaller on mobile */
    .contact-info iframe {
        height: 250px !important;
        margin-top: 16px;
    }
    
    /* Language-specific mobile adjustments for Arabic */
    html[lang="ar"] .contact-item {
        direction: rtl;
        text-align: right;
    }
    
    html[lang="en"] .contact-item {
        direction: ltr;
        text-align: left;
    }
    
    html[lang="ar"] .section-header h2,
    html[lang="ar"] .section-header p {
        text-align: center;
    }
    
    html[lang="en"] .section-header h2,
    html[lang="en"] .section-header p {
        text-align: center;
    }
    
    html[lang="ar"] .form-group label {
        text-align: right;
        display: block;
    }
    
    html[lang="en"] .form-group label {
        text-align: left;
        display: block;
    }
    
    html[lang="ar"] .form-group input,
    html[lang="ar"] .form-group textarea,
    html[lang="ar"] .form-group select {
        text-align: right;
        direction: rtl;
    }
    
    html[lang="en"] .form-group input,
    html[lang="en"] .form-group textarea,
    html[lang="en"] .form-group select {
        text-align: left;
        direction: ltr;
    }
    
    /* Error messages alignment */
    html[lang="ar"] .form-group small {
        text-align: right;
        display: block;
        margin-top: 4px;
    }
    
    html[lang="en"] .form-group small {
        text-align: left;
        display: block;
        margin-top: 4px;
    }
    
    /* Button text alignment */
    html[lang="ar"] .contact-form button[type="submit"],
    html[lang="ar"] .contact-form .cta-button {
        direction: rtl;
    }
    
    html[lang="en"] .contact-form button[type="submit"],
    html[lang="en"] .contact-form .cta-button {
        direction: ltr;
    }
}

