/* Contact Banner */
.contact-banner {
    position: relative;
    height: 40vh; /* Match about banner height */
    background: 
      linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), /* Adjusted overlay opacity */
      url('../images/slider/6.png') center/cover no-repeat; /* Use a suitable background image */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-banner .banner-content {
    position: relative;
    text-align: center;
    color: var(--white); /* Use white variable */
    z-index: 1;
    max-width: 800px; /* Limit width */
    padding: 0 20px; /* Add horizontal padding */
}

.contact-banner .banner-content h1 {
    font-size: 3.2rem; /* Match about banner h1 */
    font-weight: 700;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.contact-banner .banner-content h2 {
    font-size: 1.6rem; /* Match about banner h2 */
    font-weight: 500;
    color: rgba(var(--white), 0.9);
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* Contact Content Wrapper (Layout) */
.contact-wrapper .container {
    margin: 80px auto; /* Match about wrapper margin */
    max-width: 1200px; /* Match content width */
    padding: 0 20px; /* Add padding for consistency */
}

.contact-map {
    margin-bottom: 40px; /* Add space below the map */
    width: 100%; /* Ensure map container is full width */
    max-width: 100%; /* Ensure map container is full width */
    border-radius: 8px; /* Add border radius */
    overflow: hidden; /* Ensure iframe respects border radius */
    border: 2px solid var(--primary-color); /* Add prominent border */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
}

.contact-map iframe {
    width: 100%;
    height: 450px; /* Adjust height as needed */
    border-radius: 6px; /* Slightly smaller than container */
    border: none; /* Remove iframe border */
    display: block; /* Ensure iframe is block level */
}

.contact-lower-content.flex {
    display: flex; /* Apply flexbox to the new container */
    gap: 40px; /* Match about wrapper gap */
    align-items: flex-start; /* Align items to the top */
    width: 100%; /* Full width within container */
}

/* Contact Form Area (Left Column) */
.contact-form-area {
    flex: 1.5;
    background-color: var(--white);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-form .contact-heading,
.contact-info .contact-heading {
    margin-bottom: 30px; /* Match about heading margin */
    position: relative;
    padding-bottom: 15px; /* Match about heading padding */
    border-bottom: 2px solid var(--secondary-color); /* Match about heading border */
}

.contact-form .contact-heading .blue-line,
.contact-info .contact-heading .blue-line {
    display: none; /* Hide blue line icon */
}

.contact-form .contact-heading h2,
.contact-info .contact-heading h2 {
    font-size: 1.3rem; /* Match about heading h2 */
    color: var(--primary-color); /* Use primary color */
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

.contact-form p {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px; /* Space below intro text */
}

.contact-form form {
    display: flex;
    flex-direction: column; /* Stack form groups initially */
    gap: 20px; /* Space between stacked form groups */
}

.form-fields-container.flex {
    display: flex;
    gap: 40px; /* Space between the two columns */
    width: 100%; /* Ensure it takes full width available */
    align-items: flex-start; /* Align items to the top */
}

.form-left {
    flex: 1; /* Allow the left column to grow */
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between form groups in the left column */
}

.form-right {
    flex: 1; /* Allow the right column to grow */
    display: flex;
    flex-direction: column;
}

.contact-form .form-group {
    margin-bottom: 0; /* Remove default margin bottom as gap is used */
    width: 100%; /* Ensure form groups take full width */
}

.contact-form label {
    display: block;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    max-width: 100%; /* Ensure inputs don't exceed container width */
    box-sizing: border-box; /* Include padding and border in width calculation */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(0, 173, 239, 0.2);
}

.contact-form textarea {
    min-height: 260px; /* Increased default height */
    resize: vertical;
}

.contact-form .btn-primary {
     display: inline-flex; /* Use flex for button content */
     align-items: center; /* Vertically align icon and text */
     gap: 8px; /* Space between icon and text */
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    vertical-align: middle;
    border: 2px solid var(--primary-color);
    font-size: 1rem;
}

.contact-form .btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
}

/* Contact Info Area (Right Column) */
.contact-info-area {
    flex: 1;
    background-color: var(--white);
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px; /* Space between info items */
}

.contact-info .info-item:last-child {
    margin-bottom: 0;
}

.contact-info .info-item i {
    font-size: 1.5rem;
    color: var(--secondary-color); /* Use secondary color for icons */
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.contact-info .info-item p {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.contact-info .info-item a {
    color: var(--secondary-color); /* Use secondary color for links */
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info .info-item a:hover {
    color: var(--primary-color); /* Hover color for links */
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .contact-wrapper .container {
        margin: 60px auto; /* Reduced margin */
        padding: 0 15px; /* Adjust padding */
    }

    .contact-lower-content.flex {
        flex-direction: column; /* Stack columns on tablets */
        gap: 30px; /* Reduced gap */
    }

    .contact-form-area,
    .contact-info-area {
        flex: none;
        width: 100%;
        padding: 30px;
    }

    .contact-map {
        margin-bottom: 30px; /* Adjusted margin */
    }

    .contact-map iframe {
        height: 350px;
    }

    .form-fields-container.flex {
        flex-direction: column; /* Stack columns on tablets */
        gap: 20px; /* Reduced gap for better spacing */
        width: 100%; /* Ensure full width */
    }

    .form-left,
    .form-right {
        flex: none; /* Remove flex grow */
        width: 100%; /* Full width for both columns */
        gap: 20px; /* Maintain gap */
    }

    .form-left {
        display: flex;
        flex-direction: column;
    }

    .form-right {
        display: flex;
        flex-direction: column;
    }

    .form-right textarea {
        min-height: 180px; /* Adjusted height for better usability */
    }

    /* Ensure all form inputs take full width */
    .contact-form .form-group {
        width: 100%;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-banner {
        height: 30vh;
    }

    .contact-banner .banner-content h1 {
        font-size: 2.5rem;
    }

    .contact-banner .banner-content h2 {
        font-size: 1.2rem;
    }

    .contact-wrapper .container {
        margin: 40px auto;
        padding: 0 10px; /* Adjust padding */
    }

    .contact-lower-content.flex {
        gap: 20px;
    }

    .contact-form-area,
    .contact-info-area {
        padding: 20px;
        width: 100%; /* Ensure full width */
    }

    .contact-form .contact-heading h2,
    .contact-info .contact-heading h2 {
        font-size: 1.8rem;
    }

    .contact-form p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .contact-form label,
    .contact-info .info-item p,
    .contact-info .info-item a {
        font-size: 0.95rem;
    }

    .contact-map {
        border-width: 1px; /* Thinner border on mobile */
    }

    .contact-map iframe {
        height: 300px;
    }

    .contact-info .info-item {
        gap: 10px;
        margin-bottom: 15px;
    }

    .contact-info .info-item i {
        font-size: 1.3rem;
    }

    .form-fields-container.flex {
        gap: 15px;
        width: 100%;
    }

    .form-left,
    .form-right {
        width: 100%; /* Full width */
        flex: none;
    }

    .form-left {
        gap: 15px;
    }

    .form-right textarea {
        min-height: 150px; /* Adjusted height */
    }

    /* Mobile specific - ensure all inputs are full width */
    .contact-form .form-group {
        width: 100%;
        margin-bottom: 15px;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .contact-banner {
        height: 25vh;
    }

    .contact-banner .banner-content h1 {
        font-size: 2rem;
    }

    .contact-banner .banner-content h2 {
        font-size: 1rem;
    }

    .contact-wrapper .container {
        margin: 30px auto;
        padding: 0 5px; /* Adjust padding */
    }

    .contact-lower-content.flex {
        gap: 15px;
    }

    .contact-form-area,
    .contact-info-area {
        padding: 15px;
        width: 100%; /* Ensure full width */
    }

    .contact-form .contact-heading h2,
    .contact-info .contact-heading h2 {
        font-size: 1.5rem;
    }

    .contact-form p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .contact-form label,
    .contact-info .info-item p,
    .contact-info .info-item a {
        font-size: 0.9rem;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        padding: 10px;
        font-size: 0.9rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-form textarea {
        min-height: 120px;
    }

    .contact-form .btn-primary {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%; /* Full width button on mobile */
    }

    .contact-map iframe {
        height: 250px;
    }

    .contact-info .info-item {
        gap: 8px;
        margin-bottom: 10px;
    }

    .contact-info .info-item i {
        font-size: 1.2rem;
    }

    .contact-info .contact-heading {
        margin-bottom: 20px;
        padding-bottom: 10px;
    }

    .form-fields-container.flex {
        gap: 15px;
        width: 100%;
    }

    .form-left,
    .form-right {
        width: 100%; /* Full width */
        flex: none;
    }

    .form-left {
        gap: 10px;
    }

    .form-right textarea {
        min-height: 120px; /* Adjusted height */
    }

    .contact-form .form-group {
        margin-bottom: 15px; /* Re-add margin for stacked layout */
        width: 100%; /* Ensure full width */
    }
}