/* style/contact.css */

/* General styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure some space at the bottom */
}

/* Fixed header spacing (body handles padding-top: var(--header-offset)) */
.page-contact__hero-section,
.page-contact__section {
    padding-top: 10px; /* Small top padding as per rule */
    padding-bottom: 40px;
    position: relative;
}

.page-contact__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Prevent image overflow */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-contact__hero-content {
    max-width: 900px;
    padding: 20px;
    margin-top: 20px; /* Space between image and content */
    box-sizing: border-box;
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 font-size */
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-contact__description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break */
    text-align: center;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-contact__btn-secondary {
    background: transparent;
    color: #2AD16F; /* A lighter green for contrast */
    border: 2px solid #2AD16F;
}

.page-contact__btn-secondary:hover {
    background: rgba(42, 209, 111, 0.1);
    transform: translateY(-2px);
}

/* Sections for content */
.page-contact__section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-contact__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-contact__section-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Contact Methods Grid */
.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-contact__method-card {
    background-color: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #2E7A4E; /* Border */
}

.page-contact__method-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 200px; /* Max width for icons */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-contact__method-title {
    font-size: 1.5rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-contact__method-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

.page-contact__btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: unset;
}

/* When to Contact Section */
.page-contact__contact-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__list-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__list-item strong {
    color: #F2FFF6; /* Text Main */
}

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

.page-contact__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-item summary {
    list-style: none; /* Hide default marker */
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #11271B; /* Card BG */
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #0A4B2C; /* Deep Green */
}

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

.page-contact__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
}

/* Office Info Section */
.page-contact__address-card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    margin: 30px auto 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__address-line {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 10px;
}

.page-contact__address-line strong {
    color: #F2FFF6; /* Text Main */
}

.page-contact__address-line:last-child {
    margin-bottom: 0;
}

.page-contact__final-cta {
    text-align: center;
}

.page-contact__cta-buttons--bottom {
    margin-top: 30px;
}

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

    .page-contact__hero-content {
        padding: 15px;
        margin-top: 15px;
    }

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

    .page-contact__description {
        font-size: 1rem;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 350px; /* Constrain button group width */
        padding: 0 15px;
    }
    
    .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-left: 15px;
        padding-right: 15px;
    }

    .page-contact__section {
        padding: 30px 15px;
    }

    .page-contact__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .page-contact__section-description {
        font-size: 0.95rem;
    }

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

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

    .page-contact__list-item,
    .page-contact__faq-item {
        padding: 15px;
        font-size: 0.95rem;
    }
    
    .page-contact__faq-question {
        font-size: 1rem;
        padding: 15px;
    }

    .page-contact__faq-answer {
        padding: 0 15px 15px;
    }

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

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-image-wrapper,
    .page-contact__cta-buttons,
    .page-contact__methods-grid,
    .page-contact__method-card,
    .page-contact__contact-list,
    .page-contact__list-item,
    .page-contact__faq-list,
    .page-contact__faq-item,
    .page-contact__address-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right already handled by sections and cta-buttons */
    }

    .page-contact__hero-section {
        padding-top: 10px !important;
    }
}