/* style/contact.css */

/* General page styling */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background is white */
}

.page-contact__container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Enforce top-to-bottom for image and content */
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    background-color: #B71C1C; /* Custom background color */
}

.page-contact__hero-content-wrapper {
    width: 100%;
    padding-top: 20px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 20px;
    z-index: 2; /* Ensure content is above image if any overlap */
    color: #FFF5E1; /* Custom text color for dark background */
}

.page-contact__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFF5E1; /* Custom text color for dark background */
}

.page-contact__hero-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #FFF5E1; /* Custom text color for dark background */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    z-index: 1;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
    color: #C91F17; /* Main brand color for titles */
}

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

.page-contact__section-description {
    font-size: 1.05em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #333333;
}

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

.page-contact__sub-section-title {
    font-size: clamp(1.5em, 2.8vw, 2.2em);
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #C91F17;
}

/* Contact Methods Section */
.page-contact__contact-methods {
    padding: 60px 0;
    background-color: #f8f8f8;
}

.page-contact__method-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__card {
    background-color: #D32F2F; /* Custom card background */
    color: #FFF5E1; /* Custom text color for card */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have consistent height */
    box-sizing: border-box;
}

.page-contact__card-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-contact__card-title {
    font-size: 1.6em;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFD86A; /* Gold color for card titles */
}

.page-contact__card-text {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-contact__phone-number {
    font-size: 1.1em;
    font-weight: 600;
    color: #FFD86A; /* Gold color for phone number */
    margin-top: 15px;
}

.page-contact__why-contact {
    margin-top: 80px;
    padding: 40px;
    background-color: #f0f0f0;
    border-radius: 10px;
    text-align: left;
    color: #333333;
}

.page-contact__why-contact ul {
    list-style: disc;
    padding-left: 25px;
    margin-top: 20px;
}

.page-contact__why-contact li {
    margin-bottom: 10px;
    font-size: 1em;
}

.page-contact__why-contact a {
    color: #C91F17;
    text-decoration: underline;
}

/* Buttons */
.page-contact__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    margin: 5px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn--primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
    color: #7A0E0E; /* Deep Red text on gold button */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__btn--primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-contact__btn--secondary:hover {
    background-color: #f0f0f0;
    border-color: #E53935;
    color: #E53935;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-contact__btn--submit {
    width: auto;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    color: #7A0E0E;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-contact__btn--submit:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}


/* Contact Form Section */
.page-contact__contact-form-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-contact__form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    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;
}

.page-contact__form-note {
    max-width: 700px;
    margin: 20px auto 0 auto;
    padding: 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 8px;
    color: #856404;
    font-size: 0.9em;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #f0f0f0;
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

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

.page-contact__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    font-weight: 600;
    font-size: 1.1em;
    color: #333333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-item summary:hover {
    background-color: #f5f5f5;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #C91F17;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: "−"; /* Change icon when open */
    transform: rotate(45deg); /* Simple rotation for X effect */
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
}

.page-contact__faq-answer p {
    margin-bottom: 10px;
}

.page-contact__faq-answer a {
    color: #C91F17;
    text-decoration: underline;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-contact__dark-section {
    background-color: #B71C1C; /* Custom dark background */
    color: #FFF5E1; /* Custom light text */
    padding: 50px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__hero-content-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__method-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-contact__card {
        min-height: 480px; /* Adjust card height for more content */
    }

    .page-contact__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

    .page-contact__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }

    .page-contact__sub-section-title {
        font-size: clamp(1.4em, 3vw, 2em);
    }
}

@media (max-width: 768px) {
    /* 1. Top section/Hero */
    .page-contact__hero-section {
        padding-bottom: 20px;
    }

    .page-contact__hero-content-wrapper {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-contact__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-contact__hero-description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-contact__hero-image-wrapper {
        max-height: 350px;
    }

    /* 2. Single column content containers */
    .page-contact__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact__contact-methods,
    .page-contact__contact-form-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 40px 0;
    }

    .page-contact__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-top: 40px;
        margin-bottom: 15px;
    }

    .page-contact__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    .page-contact__sub-section-title {
        font-size: clamp(1.3em, 5vw, 1.8em);
    }

    .page-contact__method-cards {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-contact__card {
        padding: 25px;
        min-height: auto; /* Allow height to adjust */
    }

    .page-contact__why-contact {
        padding: 25px;
        margin-top: 50px;
    }

    .page-contact__form {
        padding: 25px;
    }

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

    .page-contact__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    /* 3. General images */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-contact__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* 4. Buttons and button containers */
    .page-contact__btn,
    .page-contact__btn--primary,
    .page-contact__btn--secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 5px 0 !important; /* Stack buttons vertically */
        padding-left: 15px !important; /* Add padding to prevent text overflow */
        padding-right: 15px !important;
    }

    .page-contact__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-contact__btn--submit {
        width: 100% !important;
    }

    /* 5. FAQ/details */
    .page-contact__faq-list {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Ensure text on dark backgrounds uses custom light color */
.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description {
    color: #FFF5E1;
}

/* Links in content */
.page-contact p a, .page-contact li a {
    color: #C91F17;
    text-decoration: underline;
}
.page-contact p a:hover, .page-contact li a:hover {
    color: #E53935;
}