/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, rgba(38, 103, 255, 0.1) 0%, rgba(255, 71, 84, 0.05) 100%);
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%232667FF' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.3;
}

.contact-hero .row {
    display: flex;
    flex-wrap: wrap;
}

.contact-hero-content {
    text-align: left;
    padding: 0;
}

.contact-hero-image {
    margin-bottom: 30px;
    text-align: center;
}

.contact-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-hero-content p {
    font-size: 1.2rem;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.contact-hero-image img {
    transition: transform 0.5s ease;
    max-width: 100%;
    height: auto;
}

.contact-hero-image:hover img {
    transform: scale(1.02);
}

.contact-info {
    margin-top: 40px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(38, 103, 255, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-info-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.contact-info-item p,
.contact-info-item a {
    color: var(--dark-color);
    margin-bottom: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
    background-color: white;
    position: relative;
}

.contact-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border: 1px solid #e9ecef;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(38, 103, 255, 0.25);
}

textarea.form-control {
    min-height: 150px;
}

/* Map Section */
.map-section {
    padding: 0;
}

.map-container {
    width: 100%;
    height: 450px;
}

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

/* Mobile devices (default) */
@media (max-width: 991.98px) {
    .contact-hero {
        padding: 80px 0 40px;
    }
    
    .contact-hero .row {
        flex-direction: column;
    }
    
    .contact-hero-image {
        order: -1; /* This moves the image to the top */
        margin-bottom: 30px;
    }
    
    .contact-hero-content {
        order: 1; /* This moves the content below the image */
        text-align: left; /* Keep left alignment */
    }
    
    .contact-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .contact-info-item {
        justify-content: flex-start;
    }
    
    .contact-form {
        padding: 30px;
    }
}

/* Tablet devices */
@media (max-width: 937px) {
    .contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 12px;
    }
    
    .contact-info-item h4 {
        font-size: 1rem;
    }
    
    .contact-info-item p,
    .contact-info-item a {
        font-size: 0.95rem;
    }
}

/* Mobile devices */
@media (max-width: 767.98px) {
    .contact-hero {
        padding: 60px 0 30px;
    }
    
    .contact-hero-content h1 {
        font-size: 2rem;
    }
    
    .contact-hero-content p {
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 25px 20px;
    }
    
    .map-container {
        height: 350px;
    }
}

/* Small mobile devices */
@media (max-width: 575.98px) {
    .contact-hero-content h1 {
        font-size: 1.8rem;
    }
    
    .contact-form {
        padding: 20px 15px;
    }
    
    .map-container {
        height: 300px;
    }
    
    .contact-info-item {
        flex-direction: column;
    }
    
    .contact-info-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Menu Fix for 1245px breakpoint */
@media (max-width: 1245px) and (min-width: 992px) {
    .navbar {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .navbar-brand img {
        width: 140px;
    }
    
    .navbar-nav {
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .navbar-nav .nav-item {
        margin-right: 4px;
        white-space: nowrap;
    }
    
    .nav-link {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.85rem !important;
    }
    
    .dropdown-toggle .fa-chevron-down {
        font-size: 0.65rem;
        margin-left: 2px;
    }
    
    .nav-cta {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.85rem !important;
        margin-left: 8px !important;
        white-space: nowrap;
    }
    
    .dropdown-menu {
        min-width: 200px;
    }
    
    .dropdown-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

/* Override Bootstrap's default column ordering */
    @media (max-width: 991.98px) {
        .contact-hero .row {
            display: flex;
            flex-direction: column;
        }
        
        .contact-hero .col-lg-6:first-child {
            order: 2; /* Content moves below */
        }
        
        .contact-hero .col-lg-6:last-child {
            order: 1; /* Image moves to top */
            margin-bottom: 30px;
        }
        
        .contact-hero-content {
            text-align: left;
            padding: 0 15px;
        }
        
        ..contact-hero-image {
            text-align: center;
        }
        
        .btn-group-mobile {
            flex-direction: column;
        }
        
        .btn-group-mobile .btn {
            width: 100%;
            margin-bottom: 10px;
        }
		
		.btn-send {
        display: block;
        width: 100% !important;
        margin: 0 0 10px 0 !important;
       }
	
    }

/* Make buttons full width on mobile */
/*@media (max-width: 767.98px) {
    .btn-send {
        display: block;
        width: 100% !important;
        margin: 0 0 10px 0 !important;
    }
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top:hover {
    background: var(--secondary-color);
    color: white;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}