/* --- Contact Page Specific Styles --- */

/* Hero Section - Contact Specific */
.contact-hero {
    height: 40vh;
    position: relative;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.contact-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(50%); /* Darken for text readability */
    z-index: 1;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
}

.contact-hero .hero-content h1 {
    font-size: 2.8em;
    margin-bottom: 10px;
    color: white;
}

.contact-hero .hero-content p {
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact Section - Layout */
.contact-section {
    padding: 60px 0;
    background-color: #fff;
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info on left, form on right */
    gap: 50px;
    align-items: flex-start; /* Align content to the top */
}

.contact-info-block h2 {
    font-size: 2.4em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.contact-info-block p {
    font-size: 1.1em;
    color: #555;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.detail-item {
    display: flex;
    align-items: flex-start; /* Align icon and text vertically */
    margin-bottom: 25px;
}

.detail-item i {
    font-size: 2em;
    color: var(--primary-color);
    margin-right: 20px;
    flex-shrink: 0; /* Prevent icon from shrinking */
    margin-top: 5px; /* Adjust vertical alignment */
}

.detail-text h3 {
    font-size: 1.2em;
    margin-bottom: 5px;
    color: var(--dark-text);
}

.detail-text p {
    font-size: 1.05em;
    color: #555;
    line-height: 1.6;
}

.detail-text p a {
    color: var(--text-color); /* Inherit text color for better readability */
    font-weight: bold;
}
.detail-text p a:hover {
    color: var(--primary-color);
}

.detail-text p br { /* Ensure line breaks in address are respected */
    display: block;
    content: "";
    margin-bottom: 5px;
}


.social-links h4 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--dark-text);
}

.social-links a {
    font-size: 1.8em;
    margin-right: 15px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Contact Form */
.contact-form-block h2 {
    font-size: 2.4em;
    margin-bottom: 25px;
    line-height: 1.2;
}

#contactForm .form-group {
    margin-bottom: 20px;
}

#contactForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--dark-text);
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm input[type="tel"],
#contactForm select,
#contactForm textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box; /* Include padding in width */
    transition: border-color 0.3s ease;
}

#contactForm input[type="text"]:focus,
#contactForm input[type="email"]:focus,
#contactForm input[type="tel"]:focus,
#contactForm select:focus,
#contactForm textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

#contactForm textarea {
    resize: vertical; /* Allow vertical resizing */
}

#contactForm button.btn-primary {
    width: 100%; /* Full width button */
    margin-top: 15px;
    padding: 15px; /* Larger button */
    font-size: 1.1em;
}

/* Map Section */
.map-section {
    padding: 0; /* No padding around map */
}

.map-container {
    width: 100%;
    height: 450px; /* Fixed height for map */
}

.map-container iframe {
    display: block; /* Remove extra space below iframe */
}

/* --- Responsive Adjustments for Contact Page --- */
@media (max-width: 991.98px) { /* Larger tablets and small desktops */
    .contact-section {
        grid-template-columns: 1fr; /* Stack info and form */
        gap: 40px;
    }
    .contact-info-block, .contact-form-block {
        text-align: center; /* Center align content */
    }
    .detail-item {
        flex-direction: column; /* Stack icon and text */
        align-items: center;
    }
    .detail-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .social-links {
        margin-top: 20px;
    }
}

@media (max-width: 767.98px) { /* Mobile devices */
    .contact-hero {
        height: 30vh;
    }
    .contact-hero .hero-content h1 {
        font-size: 2.3em;
    }
    .contact-hero .hero-content p {
        font-size: 1.1em;
    }

    .contact-section {
        padding: 40px 0;
        gap: 30px;
    }
    .contact-info-block h2, .contact-form-block h2 {
        font-size: 2em;
    }
    .detail-text p {
        font-size: 1em;
    }
    .social-links a {
        font-size: 1.5em;
    }
    #contactForm button.btn-primary {
        padding: 12px;
        font-size: 1em;
    }
}