/* ===========================================
   Contact Page Styles
   =========================================== */

:root {
    --main-color: #19868b;
    --secondary-color: #0d6b6f;
    --accent-color: #e1273d;
}

/* ===========================================
   Hero Section
   =========================================== */
.contact-hero-section {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.contact-hero-gradient {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 50%, #064d50 100%);
}

.contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 0;
}

.contact-hero-content .breadcrumb {
    background: transparent;
    margin-bottom: 20px;
}

.contact-hero-content .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-hero-content .breadcrumb-item a:hover {
    color: #ffffff;
}

.contact-hero-content .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

.contact-hero-content .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.contact-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.contact-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===========================================
   Contact Info Cards
   =========================================== */
.contact-info-section {
    background: #ffffff;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.contact-info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    height: 100%;
    border: 1px solid rgba(25, 134, 139, 0.1);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(25, 134, 139, 0.15);
}

.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    box-shadow: 0 8px 25px rgba(25, 134, 139, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.contact-info-card:hover .contact-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(25, 134, 139, 0.4);
}

.contact-icon-wrapper i {
    font-size: 32px;
    color: #ffffff;
}

.contact-card-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--main-color);
    margin-bottom: 15px;
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-link {
    font-size: 16px;
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--main-color);
    text-decoration: none;
}

.contact-address {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ===========================================
   Contact Form Section
   =========================================== */
.contact-form-section {
    background: #f8fafc;
}

.contact-form-wrapper,
.contact-map-wrapper {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.label-line {
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--main-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
}

.label-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
}

/* Contact Form Styles */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.contact-form .form-control {
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 18px;
    font-size: 15px;
    transition: all 0.3s;
    background: #f8fafc;
}

.contact-form .form-control:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(25, 134, 139, 0.1);
    background: #ffffff;
}

.contact-form textarea.form-control {
    height: auto;
    min-height: 140px;
    resize: vertical;
}

.contact-form .form-control.is-invalid {
    border-color: var(--accent-color);
}

.contact-form .invalid-feedback {
    font-size: 13px;
    color: var(--accent-color);
}

.btn-submit {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.4s;
    box-shadow: 0 8px 25px rgba(25, 134, 139, 0.3);
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(25, 134, 139, 0.4);
    color: #ffffff;
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* ===========================================
   Map Section
   =========================================== */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 350px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
}

.map-placeholder i {
    font-size: 60px;
    margin-bottom: 15px;
    color: var(--main-color);
    opacity: 0.5;
}

.map-placeholder p {
    font-size: 16px;
    margin: 0;
}

/* ===========================================
   Social Links
   =========================================== */
.social-links-wrapper {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.social-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffffff;
    transition: all 0.3s;
    text-decoration: none;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    text-decoration: none;
    color: #ffffff;
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5db8 100%);
}

.social-link.instagram {
    background: linear-gradient(135deg, #e4405f 0%, #c13584 50%, #833ab4 100%);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.social-link.pinterest {
    background: linear-gradient(135deg, #e60023 0%, #ad081b 100%);
}

/* ===========================================
   CTA Section
   =========================================== */
.contact-cta-section {
    background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
}

.contact-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: rgba(255, 255, 255, 0.05);
    transform: rotate(15deg);
    pointer-events: none;
}

.cta-title {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.cta-bio {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cta-button {
    background: #ffffff;
    color: var(--main-color);
    border: none;
    border-radius: 50px;
    padding: 16px 35px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    color: var(--secondary-color);
}

.cta-button.whatsapp-btn {
    background: #25d366;
    color: #ffffff;
}

.cta-button.whatsapp-btn:hover {
    background: #128c7e;
    color: #ffffff;
}

/* ===========================================
   Responsive Styles
   =========================================== */
@media (max-width: 991.98px) {
    .contact-hero-title {
        font-size: 36px;
    }
    
    .contact-hero-subtitle {
        font-size: 16px;
    }
    
    .contact-form-wrapper,
    .contact-map-wrapper {
        padding: 30px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .cta-title {
        font-size: 26px;
    }
}

@media (max-width: 767.98px) {
    .contact-hero-section {
        min-height: 280px;
    }
    
    .contact-hero-title {
        font-size: 28px;
    }
    
    .contact-info-section {
        margin-top: -40px;
    }
    
    .contact-info-card {
        padding: 30px 20px;
    }
    
    .contact-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon-wrapper i {
        font-size: 24px;
    }
    
    .contact-form-wrapper,
    .contact-map-wrapper {
        padding: 25px 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .map-container {
        height: 280px;
    }
    
    .cta-title {
        font-size: 22px;
    }
    
    .cta-button {
        padding: 14px 30px;
        font-size: 15px;
    }
}

/* ===========================================
   Contact Branches Section
   =========================================== */
.contact-branches-section {
    background: #f8f9fa;
}

.contact-branches-section .branches-section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(25, 134, 139, 0.1) 0%, rgba(13, 107, 111, 0.1) 100%);
    border-radius: 50px;
    color: var(--main-color);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.contact-branches-section .branches-section-badge i {
    font-size: 16px;
}

.contact-branches-section .branches-section-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.contact-branches-section .branches-section-subtitle {
    font-size: 16px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.btn-view-branches {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--main-color) 0%, var(--secondary-color) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-view-branches:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--main-color) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(25, 134, 139, 0.3);
    color: #fff;
    text-decoration: none;
}

/* ===========================================
   RTL Support
   =========================================== */
[dir="rtl"] .section-label {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn-submit i,
[dir="rtl"] .cta-button i {
    margin-right: 0;
    margin-left: 8px;
}

[dir="rtl"] .contact-hero-content .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

/* ===========================================
   Animations
   =========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-animate="fadeInUp"] {
    animation: fadeInUp 0.6s ease-out forwards;
}

[data-animate="fadeInLeft"] {
    animation: fadeInUp 0.6s ease-out forwards;
}

[data-animate="fadeInRight"] {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===========================================
   Company Profile Download Section
   =========================================== */
.company-profile-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.company-profile-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2319868b' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.company-profile-wrapper {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 50px;
    box-shadow: 0 15px 50px rgba(25, 134, 139, 0.1);
    border: 1px solid rgba(25, 134, 139, 0.1);
    position: relative;
    overflow: hidden;
}

.company-profile-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--main-color) 0%, var(--accent-color) 100%);
}

.profile-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.profile-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: linear-gradient(135deg, #e1273d 0%, #c41e32 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(225, 39, 61, 0.3);
}

.profile-icon i {
    font-size: 36px;
    color: #ffffff;
}

.profile-text {
    flex: 1;
}

.profile-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.profile-description {
    font-size: 15px;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

.btn-download-profile {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #e1273d 0%, #c41e32 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(225, 39, 61, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-download-profile::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-download-profile:hover::before {
    left: 100%;
}

.btn-download-profile:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(225, 39, 61, 0.4);
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, #c41e32 0%, #a91828 100%);
}

.btn-download-profile i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.btn-download-profile:hover i {
    transform: translateY(2px);
}

/* RTL Support for Company Profile */
[dir="rtl"] .company-profile-wrapper::before {
    left: auto;
    right: 0;
}

[dir="rtl"] .profile-content {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn-download-profile {
    flex-direction: row-reverse;
}

[dir="rtl"] .text-lg-right {
    text-align: left !important;
}

/* Responsive Styles for Company Profile */
@media (max-width: 991px) {
    .company-profile-wrapper {
        padding: 30px;
        text-align: center;
    }
    
    .profile-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-icon {
        margin: 0 auto;
    }
    
    .btn-download-profile {
        width: 100%;
        justify-content: center;
    }
    
    [dir="rtl"] .profile-content {
        flex-direction: column;
    }
}

@media (max-width: 767px) {
    .company-profile-wrapper {
        padding: 25px 20px;
    }
    
    .profile-icon {
        width: 70px;
        height: 70px;
        min-width: 70px;
    }
    
    .profile-icon i {
        font-size: 30px;
    }
    
    .profile-title {
        font-size: 20px;
    }
    
    .profile-description {
        font-size: 14px;
    }
    
    .btn-download-profile {
        padding: 16px 30px;
        font-size: 15px;
    }
}
