/* General Font Styles */
body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: #1f0e05; /* Darker tone for headings, consistent across pages */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === Contact Top Banner (Parallax Background) === */
.contact-top-banner {
    position: fixed; /* Fixed position for parallax */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Full viewport height */
    color: #FFF;
    text-align: center;
    padding: 10rem 1.5rem 4rem; /* Keep existing padding for content spacing */
    z-index: -1; /* Ensures it stays behind scrolling content */
    display: flex; /* To vertically center content */
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Hide any overflow from background image */
}

.contact-top-banner::before {
    content: '';
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7)); /* Slightly darker overlay for better contrast */
    position: absolute;
    z-index: 2;
    inset: 0;
}

.contact-hero-content {
    position: relative;
    z-index: 3;
    padding: 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-top-banner h1 {
    font-size: 3.8rem; /* Larger for impact, consistent with other pages */
    margin-bottom: 1rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); /* Add text shadow for readability */
}

.contact-top-banner p {
    font-size: 1.3rem; /* Larger font size */
    max-width: 700px;
    margin: 0 auto;
    color: #f0f0f0; /* Lighter white for readability */
    line-height: 1.5;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

/* === Main Contact Card Section (Scrolling on top of hero) === */
.contact-main {
    padding: 6rem 1.5rem; /* Increased top padding to push content below hero */
    background-color: #fdfdfd; /* Light background */
    margin-top: 100vh; /* Pushes content down to scroll over fixed hero */
    position: relative;
    z-index: 1; /* Ensures it scrolls on top */
    box-shadow: 0 -10px 30px rgba(0,0,0,0.05); /* Subtle shadow for depth */
}

.contact-card {
    display: flex;
    flex-wrap: wrap;
    background-color: white;
    border-radius: 1.5rem; /* More rounded corners */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); /* Enhanced shadow */
    overflow: hidden;
}

/* Left: Form */
.contact-left {
    flex: 1 1 55%;
    padding: 3rem; /* Increased padding */
    min-width: 300px;
    background: #fff;
}

.contact-left h2 {
    font-size: 2.8rem; /* Larger heading, consistent with other pages */
    margin-bottom: 1rem;
    color: #e63946; /* Vibrant red, consistent with other pages */
}

.contact-left p {
    font-size: 1.05rem;
    margin-bottom: 2rem; /* Spacing below description */
    color: #555;
}

/* Contact Form 7 Styling */
.wpcf7 form {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Consistent gap between form fields */
}

.wpcf7 form .form-row p {
  margin-bottom: 10px;
}


/* All input types, select, and textarea */
.wpcf7 input:not([type="submit"]),
.wpcf7 select,
.wpcf7 textarea {
    width: 100%; /* Ensure full width */
    padding: 1rem 1.2rem; /* Larger padding for input fields */
    border: 2px solid #aebcda; /* Softer blue border */
    border-radius: 0.75rem; /* More rounded input fields */
    font-size: 1rem;
    background: #fdfdff; /* Slightly off-white background */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #333;
    /* Removed margin-bottom here to rely solely on gap for consistency */
}

.wpcf7 input:focus:not([type="submit"]),
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: #e63946; /* Vibrant red on focus */
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2); /* Soft red glow on focus */
    outline: none;
}

.wpcf7 textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px; /* Minimum height for textarea */
}

/* Labels for Contact Form 7 fields */
.wpcf7-form-control-wrap {
    display: block; /* Ensures each field-label-input block takes full width */
}

/* Styling for labels, assuming they are present in the CF7 output structure */
.wpcf7-form-control-wrap > label { /* Targeting direct child label if CF7 wraps them */
    display: block; /* Make label a block element */
    margin-bottom: 0.5rem; /* Space between label and input */
    font-weight: 600; /* Make labels bolder */
    color: #003893; /* Blue color for labels */
    font-size: 0.95rem;
}


/* Submit Button */
.wpcf7 input[type="submit"] {
    background-color: #003893; /* Blue, consistent with other pages */
    color: #fff;
    padding: 1rem 2.5rem; /* Larger padding for button */
    border: none;
    border-radius: 40px; /* Highly rounded button */
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: auto; /* Allow button to size based on content */
    align-self: flex-start; /* Align button to the start of the form */
    box-shadow: 0 4px 15px rgba(0, 56, 147, 0.3);
}

.wpcf7 input[type="submit"]:hover {
    background-color: #e63946; /* Vibrant red on hover */
    transform: translateY(-3px); /* Slight lift effect */
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

/* Right: Info Section */
.contact-right {
    flex: 1 1 40%; /* Adjusted flex basis */
    background-color: #f1f4ff; /* Light blueish background */
    padding: 3rem; /* Increased padding */
    min-width: 280px;
    border-left: 3px solid #003893; /* Blue border */
    display: flex;
    flex-direction: column;
}

.contact-right .info-block {
    margin-bottom: 1.2rem; /* Reduced gap between info blocks for consistency */
}

.contact-right .info-block:last-of-type {
    margin-bottom: 0; /* No margin after the last block */
}

.contact-right h3 {
    font-size: 1.4rem; /* Larger heading */
    color: #003893; /* Blue color for info headings */
    margin-bottom: 0.8rem; /* Increased margin */
    font-weight: 600;
}

.contact-right p,
.contact-right a {
    color: #555; /* Darker text color */
    font-size: 1.05rem; /* Slightly larger text */
    text-decoration: none;
}

.contact-right a:hover {
    color: #e63946; /* Vibrant red on hover */
}

/* Social Icons */
.social-icons-contact {
    display: flex;
    align-items: center;
    gap: 1.2rem; /* Gap between icons */
}

.social-icons-contact h3 {
    margin-bottom: 0; /* No bottom margin for heading in social block */
    margin-right: 0.8rem; /* Space between heading and icons */
}

.social-icons-contact a {
    font-size: 1.6rem; /* Larger social icons */
    color: #1f0e05; /* Dark color for visibility against light background */
    transition: transform 0.3s, color 0.3s;
}

.social-icons-contact a:hover {
    color: #e63946; /* Vibrant red on hover */
    transform: scale(1.2); /* More pronounced scale on hover */
}

/* Map Section */
.maps-section {
    padding-bottom: 6rem; /* Consistent bottom padding */
    background-color: #fdfdfd; /* Match background of contact-main */
    position: relative;
    z-index: 1; /* Ensures it scrolls on top */
}

.map-wrapper {
    border-radius: 1.5rem; /* More rounded map wrapper */
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1); /* Stronger shadow */
}

.map-wrapper iframe {
    width: 100%;
    height: 450px; /* Keep existing height */
    border: none;
    display: block;
}

/* Animation Keyframes (already existing, kept) */
@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out both;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out both;
}


/* Responsive */
@media (max-width: 992px) {
    .contact-top-banner h1 {
        font-size: 3rem;
    }
    .contact-top-banner p {
        font-size: 1.1rem;
    }
    .contact-main {
        padding: 4rem 1.5rem;
    }
    .contact-left {
        padding: 2.5rem;
    }
    .contact-left h2 {
        font-size: 2.2rem;
    }
    .contact-right {
        padding: 2.5rem;
    }
    .contact-right h3 {
        font-size: 1.2rem;
    }
    .social-icons-contact {
        justify-content: center; /* Center social icons on medium screens */
    }
}

@media (max-width: 768px) {
    .contact-card {
        flex-direction: column;
        border-radius: 1rem; /* Slightly less rounded for smaller screens */
    }
    .contact-left,
    .contact-right {
        border-left: none; /* Remove left border on mobile */
        border-bottom: 3px solid #003893; /* Add bottom border for separation */
        padding: 2rem 1.5rem; /* Adjusted padding */
        min-width: unset; /* Remove min-width constraint */
        text-align: center; /* Center content for mobile */
    }
    .contact-right {
        background-color: #f8f9fe; /* Keep light background */
        border-bottom: none; /* Remove bottom border for the last section */
    }
    .contact-left h2,
    .contact-left p,
    .contact-right h3,
    .contact-right p,
    .contact-right a {
        text-align: center; /* Center text for mobile */
    }
    .wpcf7 input[type="submit"] {
        width: 100%; /* Make button full width */
        max-width: 300px; /* Constrain max width */
        margin-left: auto;
        margin-right: auto;
        align-self: center; /* Center button */
    }
    .contact-top-banner h1 {
        font-size: 2.5rem;
    }
    .contact-top-banner p {
        font-size: 1rem;
    }
    .maps-section {
        padding-bottom: 4rem; /* Reduced padding */
    }
    .map-wrapper iframe {
        height: 300px; /* Adjust map height for mobile */
        border-radius: 1rem; /* Slightly less rounded */
    }
    .social-icons-contact {
        flex-wrap: wrap; /* Allow icons to wrap if needed */
        justify-content: center; /* Ensure they are centered */
        gap: 1rem;
        margin-top: 1.5rem;
    }
    .social-icons-contact h3 {
        width: 100%; /* Make heading take full width */
        margin-bottom: 0.8rem;
        margin-right: 0;
    }
    .contact-right .info-block {
        margin-bottom: 1.5rem; /* Adjust margin for mobile */
    }
}

@media (max-width: 480px) {
    .contact-top-banner h1 {
        font-size: 2rem;
    }
    .contact-top-banner p {
        font-size: 0.9rem;
    }
    .contact-left,
    .contact-right {
        padding: 1.5rem 1rem;
    }
    .contact-left h2 {
        font-size: 1.8rem;
    }
    .contact-right h3 {
        font-size: 1.1rem;
    }
    .wpcf7 input:not([type="submit"]),
    .wpcf7 select,
    .wpcf7 textarea {
        padding: 0.8rem 1rem;
    }
    .wpcf7 input[type="submit"] {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}