/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Assuming body is white from shared.css */
}

/* Dark section styles */
.page-contact__dark-section {
    background-color: #B71C1C; /* Custom background color */
    color: #FFF5E1; /* Custom text color for dark backgrounds */
    padding: 60px 20px;
}

.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description,
.page-contact__dark-section .page-contact__method-title,
.page-contact__dark-section .page-contact__method-text,
.page-contact__dark-section .page-contact__why-heading,
.page-contact__dark-section .page-contact__why-text {
    color: #FFF5E1; /* Ensure all text within dark section is light */
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
    padding-bottom: 60px;
    background-color: #C91F17; /* Main brand color for visual consistency */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any background elements */
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #FFF5E1; /* Light text for dark hero background */
    margin-bottom: 20px;
    max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-contact__hero-description {
    font-size: 1.1rem;
    color: #FFF5E1;
    margin-bottom: 30px;
}

/* CTA Buttons */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit overall width for aesthetics */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow their container */
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #333333; /* Dark text for contrast on gold */
    border: 2px solid #F2B544; /* Custom border color */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #C91F17; /* Main brand color for text */
    border: 2px solid #C91F17; /* Main brand color for border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background-color: #f0f0f0;
}

/* General Section Styles */
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__why-choose-us,
.page-contact__final-cta {
    padding: 60px 0;
    text-align: center;
}

.page-contact__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #C91F17; /* Main brand color for titles */
    margin-bottom: 20px;
}

.page-contact__dark-section .page-contact__section-title {
    color: #FFF5E1; /* Light text for dark sections */
}

.page-contact__section-description {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__dark-section .page-contact__section-description {
    color: #FFF5E1; /* Light text for dark sections */
}

/* Contact Methods Section */
.page-contact__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.page-contact__method-card {
    background-color: #D32F2F; /* Custom card background color */
    color: #FFF5E1; /* Custom text color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push button to bottom */
}

.page-contact__method-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFF5E1;
    margin-bottom: 15px;
}

.page-contact__method-text {
    font-size: 1rem;
    color: #FFF5E1;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to grow and push button down */
}

.page-contact__method-card .page-contact__btn-primary,
.page-contact__method-card .page-contact__btn-secondary {
    width: auto; /* Allow button to size naturally */
    align-self: center; /* Center button in card */
}

.page-contact__support-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 40px auto 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Contact Form Section */
.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.page-contact__form-group {
    margin-bottom: 20px;
}

.page-contact__form-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    color: #333333;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #C91F17;
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__contact-form .page-contact__btn-primary {
    width: auto;
    padding: 15px 40px;
    margin-top: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-contact__faq-list {
    max-width: 900px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.page-contact__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: #C91F17;
    cursor: pointer;
    background-color: #fcfcfc;
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details summary */
}

.page-contact__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #f0f0f0;
}

.page-contact__faq-question:hover {
    background-color: #f0f0f0;
}

.page-contact__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: #C91F17;
    margin-left: 15px;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: "−"; /* Change to minus sign when open */
}

.page-contact__faq-answer {
    padding: 15px 25px 25px 25px;
    font-size: 1rem;
    color: #555555;
    border-top: 1px solid #eee;
}

.page-contact__faq-answer p {
    margin: 0;
}

.page-contact__faq-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin: 40px auto 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us Section */
.page-contact__why-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-contact__why-item {
    background-color: #D32F2F; /* Custom card background color */
    color: #FFF5E1; /* Custom text color */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__why-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFF5E1;
    margin-bottom: 10px;
}

.page-contact__why-text {
    font-size: 1rem;
    color: #FFF5E1;
}

/* Final CTA Section */
.page-contact__final-cta {
    background-color: #f8f8f8;
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-contact__final-cta .page-contact__section-title {
    color: #C91F17;
}

.page-contact__final-cta .page-contact__section-description {
    color: #555555;
}

.page-contact__final-cta .page-contact__cta-buttons {
    margin-top: 40px;
}

.page-contact__cta-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 50px auto 0 auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Styles --- */

/* Mobile general images and containers */
@media (max-width: 768px) {
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact__hero-section,
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__why-choose-us,
    .page-contact__final-cta {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__section-title {
        font-size: 2rem;
    }

    .page-contact__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

/* HERO Section mobile */
@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px;
    }

    .page-contact__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-contact__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* Buttons and Button Containers mobile */
@media (max-width: 768px) {
    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px; /* Add padding to container */
        box-sizing: border-box !important;
    }

    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }

    .page-contact__method-card .page-contact__btn-primary,
    .page-contact__method-card .page-contact__btn-secondary,
    .page-contact__contact-form .page-contact__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Other Content Modules mobile */
@media (max-width: 768px) {
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__why-choose-us,
    .page-contact__final-cta {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-contact__contact-methods {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }

    .page-contact__method-card {
        padding: 25px;
    }

    .page-contact__method-title {
        font-size: 1.5rem;
    }

    .page-contact__method-text {
        font-size: 0.95rem;
    }

    .page-contact__contact-form {
        padding: 20px;
    }

    .page-contact__form-label {
        font-size: 1rem;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .page-contact__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-contact__faq-answer {
        font-size: 0.95rem;
        padding: 10px 20px 20px 20px;
    }

    .page-contact__why-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__why-item {
        padding: 20px;
    }

    .page-contact__why-heading {
        font-size: 1.3rem;
    }

    .page-contact__why-text {
        font-size: 0.95rem;
    }
}