/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    padding-bottom: 40px;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image above text */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 40px;
    background-color: #f8f8f8;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 20px;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__hero-content {
    max-width: 800px;
    padding: 0 20px 40px;
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: #017439;
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

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

/* Common container for content sections */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

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

/* Dark background section for contrast */
.page-contact__dark-section {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description {
    color: #ffffff;
}

/* Contact Methods Section */
.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-contact__method-card:hover {
    transform: translateY(-10px);
}

.page-contact__method-icon {
    width: 100%;
    max-width: 250px; /* Ensure images are not too small, min 200px */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    min-height: 200px;
}

.page-contact__method-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-contact__method-text {
    font-size: 1em;
    margin-bottom: 20px;
}

.page-contact__phone-number {
    font-size: 1.2em;
    font-weight: bold;
    color: #017439; /* Using brand color for emphasis */
    margin-bottom: 20px;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: #f8f8f8;
    margin-bottom: 40px;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

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

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

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

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

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

.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: 20px 25px;
    cursor: pointer;
    background-color: #f9f9f9;
    font-weight: bold;
    color: #017439;
    font-size: 1.1em;
    list-style: none; /* For <summary> */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #e6ffe6; /* Lighter shade of green */
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

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

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

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

/* Benefits Section */
.page-contact__benefits-section {
    padding: 60px 0;
    margin-bottom: 40px;
}

.page-contact__benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.page-contact__benefit-item {
    text-align: center;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: #333333;
}

.page-contact__benefit-icon {
    width: 100%;
    max-width: 150px; /* Max-width for illustrative purposes */
    height: auto;
    margin: 0 auto 20px;
    display: block;
    min-width: 200px; /* Enforcing minimum size */
    min-height: 200px;
}

.page-contact__benefit-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-contact__benefit-text {
    font-size: 0.95em;
    color: #555555;
}

/* Call to Action Section */
.page-contact__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #f0fff0; /* Light green background */
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Button Base Styles */
.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* Allow text wrap in buttons */
    word-wrap: break-word; /* Allow text wrap in buttons */
}

/* Primary Button (Register/Contact Now) */
.page-contact__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    color: #ffffff; /* Slightly darker yellow on hover */
}

/* Secondary Button (Login) */
.page-contact__btn-secondary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
    color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__methods-grid,
    .page-contact__benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

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

    .page-contact__hero-content {
        padding: 0 15px 30px;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Hero Section */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        margin-bottom: 20px;
    }

    .page-contact__main-title {
        font-size: 2em;
        line-height: 1.3;
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

    /* Common container */
    .page-contact__container {
        padding: 0 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Section Titles and Descriptions */
    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

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

    /* Dark section */
    .page-contact__dark-section {
        padding: 40px 0;
        margin-bottom: 20px;
    }

    /* Contact Methods Section */
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-contact__method-icon {
        max-width: 200px !important; /* Adjust max-width for mobile, still >= 200px */
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Contact Form Section */
    .page-contact__form-section {
        padding: 40px 0;
        margin-bottom: 20px;
    }

    .page-contact__contact-form {
        padding: 25px;
        max-width: 100%;
    }

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

    /* FAQ Section */
    .page-contact__faq-section {
        padding: 40px 0;
        margin-bottom: 20px;
    }

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

    .page-contact__faq-toggle {
        font-size: 1.2em;
    }

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

    /* Benefits Section */
    .page-contact__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-contact__benefit-icon {
        max-width: 200px !important; /* Adjust max-width for mobile, still >= 200px */
        min-width: 200px !important;
        min-height: 200px !important;
    }

    /* Call to Action Section */
    .page-contact__cta-section {
        padding: 40px 0;
    }

    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
    }

    /* General Image Responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    
    /* General Button Responsive */
    .page-contact__cta-button,
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
}