/* ====================================================
   CONTACT HERO SECTION
   ==================================================== */
.contact-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 8%;
    background: #f8f8f8;
    gap: 30px;
}

.contact-content {
    width: 50%;
}

.contact-content span {
    display: inline-block;
    color: #003366;
    font-size: clamp(20px, 3.5vw, 40px); /* Combined duplicate and made responsive */
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
    padding-right: 70px;
    white-space: nowrap;
}

.contact-content span::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 2px;
    background: #00A651;
}

.contact-content h1 {
    font-size: clamp(32px, 5vw, 60px); /* Dynamic typography */
    color: #003366;
    line-height: 1.2;
}

.contact-content h2 {
    font-size: clamp(26px, 4vw, 48px);
    color: #00A651;
    line-height: 1.2;
    margin-top: 5px;
}

.contact-image {
    width: 45%;
    display: flex;
    justify-content: center;
}

.contact-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    display: block;
}

/* ====================================================
   CONTACT INFO CARDS (Grid configuration)
   ==================================================== */
.contact-info {
    display: grid;
    /* Automatically creates columns that wrap cleanly */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 60px 8%;
}

.info-card {
    background: #fff;
    padding: 30px 20px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 24px;
    color: #00A651;
    margin-bottom: 15px;
}

/* ====================================================
   CONTACT FORM & MAP SECTION
   ==================================================== */
.contact-form-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 60px 8%;
    background: #fff;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0 !important; /* Fixed padding and margin */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00A651;
}

.contact-form .form-group {
    position: relative;
    padding-bottom: 15px;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    background: #00A651;
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.contact-form button:hover {
    background: #008a45;
}

.contact-success {
    display: block;
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    background: #eafaf1;
    color: #046c2e;
    border: 1px solid #b3f2c0;
    font-weight: 600;
}

.contact-form .error-message {
    display: block;
    position: absolute;
    left: 5px;
    bottom: -2px;
    color: #d93025 !important;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    min-height: 18px;
}

.input-error {
    border-color: #d93025 !important;
    box-shadow: 0 0 0 1px rgba(217, 48, 37, 0.2);
}

/* Map adjustment */
.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* ====================================================
   BUTTONS
   ==================================================== */
.contact-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

/* Call Now Button */
.btn2 {
    background: #ffffff;
    color: #0b5e2b;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid #0b5e2b;
    transition: .3s;
    white-space: nowrap;
}

.btn2:hover {
    background: #0b5e2b;
    color: #ffffff;
}

/* Ensure anchor jump lands below sticky header */
#contact-form, #contact-form h2 {
    scroll-margin-top: 140px; 
}

/* ====================================================
   RESPONSIVE MEDIA QUERIES
   ==================================================== */

@media (max-width: 991px) {
    .contact-hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
        gap: 30px;
    }

    .contact-content, 
    .contact-image {
        width: 100%;
    }

    .contact-content span {
        padding-right: 0;
        margin-bottom: 15px;
    }

    .contact-content span::after {
        display: none; /* Hide line line decoration on centered mobile view */
    }

    .contact-form-section {
        grid-template-columns: 1fr; /* Form and Map stack neatly on top of each other */
        padding: 40px 5%;
        gap: 30px;
    }

    .contact-map iframe {
        min-height: 350px; /* Reduced height on mobile for better scrolling */
    }
}

@media (max-width: 768px) {
    .contact-info {
        padding: 40px 5%;
        grid-template-columns: repeat(2, 1fr); /* 2 columns on medium viewports */
    }

    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn2 {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contact-info {
        grid-template-columns: 1fr; /* 1 column on small screen viewports */
        gap: 15px;
    }
}