/**
 * Styles for Contact Us Page (contact.php)
 * Premium card designs, vibrant social icons, and responsive layout
 */

.contact-form-card,
.contact-info-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 118, 110, 0.12);
    border-color: rgba(13, 148, 136, 0.4);
}

.icon-box {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border-radius: 14px;
}

/* Social Icons in Contact Page */
.contact-social-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;
}

.contact-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: #ffffff !important;
}

.contact-social-btn i {
    font-size: 1.25rem;
    color: #ffffff !important;
}

.contact-social-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
    color: #ffffff !important;
}

/* Brand Specific Colors */
.contact-social-btn.facebook { background: #1877f2 !important; }
.contact-social-btn.twitter,
.contact-social-btn.x-twitter { background: #0f1419 !important; }
.contact-social-btn.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important; }
.contact-social-btn.youtube { background: #ff0000 !important; }
.contact-social-btn.whatsapp { background: #25d366 !important; }
.contact-social-btn.telegram { background: #0088cc !important; }
.contact-social-btn.linkedin { background: #0077b5 !important; }
.contact-social-btn.generic { background: #475569 !important; }

/* Map container */
.map-card-container {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.map-card-container iframe {
    border: none;
    width: 100%;
    min-height: 420px;
}

/* ========================================
   Phone Numbers Direction (Fix for RTL display)
   ======================================== */
.phone-number,
.contact-phone-link,
a[href^="tel:"] {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-flex !important;
    align-items: center;
    text-align: left;
}

[dir="rtl"] .contact-phone-link,
[dir="rtl"] a[href^="tel:"] {
    direction: ltr !important;
    unicode-bidi: isolate !important;
}

[dir="rtl"] .contact-phone-link i,
[dir="rtl"] a[href^="tel:"] i {
    margin-right: 8px !important;
    margin-left: 0 !important;
}
