/* Contact Text Overlay */
.has-text-overlay {
    position: relative;
}

.contact-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 10;
    pointer-events: none;
    padding: 0 15px;
}

.brand-text-main {
    color: var(--primary-color);
    font-size: 25px;
    font-weight: 600;
    margin-bottom: 30px;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.brand-text-main small {
    font-size: 16px;
    font-weight: 400;
    margin-left: 8px;
}

.brand-text-divider {
    max-width: 850px;
    margin: 40px auto;
    border: none;
    border-top: 2px solid rgba(var(--primary-rgb), 0.4);
}

.brand-text-sub {
    color: var(--primary-color);
    font-size: 25px;
    font-weight: 600;
    margin: 0;
    text-align: center;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

@media (max-width: 991px) {

    .brand-text-main,
    .brand-text-sub {
        font-size: 22px;
    }
}

@media (max-width: 767px) {
    .contact-text-overlay {
        top: 50%;
        transform: translate(-50%, -50%);
        padding: 0 15px;
    }

    .brand-text-main,
    .brand-text-sub {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .brand-text-divider {
        margin: 10px auto;
        max-width: 60%;
    }
}

@media (max-width: 480px) {

    .brand-text-main,
    .brand-text-sub {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .brand-text-divider {
        margin: 8px auto;
    }
}

/* Contact Banner Section */
.contact-banner-section {
    background: #fcfcfc;
}

.contact-banner-wrapper {
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    /* Increased height */
}

.contact-banner-wrapper .second {
    height: 300px;
}

.contact-banner-img .second {
    height: 300px;
}

.contact-banner-img {
    width: 100%;
    /* Force height for desktop */
    display: block;
    object-fit: cover;
}

.newsletter-bar {
    padding: 15px 0 15px 0;
}

.cta-box-wrapper {
    display: none;
}


@media (max-width: 767px) {
    .contact-banner-section {
        padding: 40px 0 0;
    }

    .contact-banner-wrapper {
        min-height: 180px;
    }

    .contact-banner-img {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .contact-banner-wrapper {
        min-height: 150px;
    }

    .contact-banner-img {
        height: 150px;
    }
}

/* Contact Us Page Custom Styling */
.contact-details-section .container h1 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 40px;
    color: #18577a;
    font-weight: 400;
}

.contact-details-section {
    padding: 50px 0;
    background-color: #f4f7f6;
}

.contact-details-layout {
    /* display: grid;
    grid-template-columns: 1.5fr 1fr; */
    gap: 40px;
    display: flex;
    align-items: stretch;
    /* align-items: start; */
}

.info-blocks-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.address-block {
    position: relative;
}

.address-block::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 5px;
    bottom: 0px;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.1);
}

.info-title {
    color: var(--primary-color);
    font-size: 21px;
    margin-bottom: 25px;
    font-weight: 500;
}

.info-content {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.info-content p {
    margin-bottom: 5px;
    color: #666;
}

.company-name {
    margin-bottom: 8px !important;
    font-size: 15px;
}

.detail-item-new {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.detail-item-new i {
    color: var(--primary-color);
    font-size: 14px;
    margin-right: 12px;
    margin-top: 5px;
}

.detail-item-new .detail-text a {
    color: #666;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.detail-item-new .detail-text a:hover {
    color: var(--primary-color);
}

.contact-form-col {
    background: #fff;
    padding: 35px 30px;
    border-radius: 4px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.contact-details-layout .contact-form-wrapper {
    /* height: 100%; */
    display: flex;
    flex-direction: column;
}

.contact-details-layout .contact-form-wrapper form {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.contact-details-layout .contact-form-wrapper form textarea {
    flex-grow: 1;
    min-height: 130px;
}

.map-wrapper {
    width: 100%;
    margin-top: 20px;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 350px !important;
    border: none;
}

/* Responsive Styling */
@media (max-width: 991px) {
    .contact-details-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .contact-details-section .container h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .info-blocks-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .address-block::after {
        display: none;
    }

    .contact-form-col {
        padding: 25px 20px;
    }
}

/* AOS-like animations fallback if not present */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s forwards;
}

[data-aos-delay="100"] {
    animation-delay: 0.1s;
}

[data-aos-delay="200"] {
    animation-delay: 0.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}