/* style/contact.css */

/* Base styles for the contact page content */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default background, overridden by shared.css var(--background-color) */
}

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #017439; /* Brand primary color for hero background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-contact__hero-content {
    text-align: center;
    padding-bottom: 40px;
    color: #FFFFFF; /* White text on dark hero background */
    max-width: 800px;
    margin: 0 auto;
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H1 */
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for H1 on dark background */
}

.page-contact__hero-description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    margin-bottom: 20px;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em);
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand primary color for section titles on light background */
}

.page-contact__section-description {
    font-size: clamp(0.9em, 1.2vw, 1.1em);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Light Background Section */
.page-contact__light-bg {
    background-color: #FFFFFF;
    color: #333333;
    padding: 60px 0;
}

/* Dark Background Section */
.page-contact__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* White text on dark background */
    padding: 60px 0;
}
.page-contact__dark-section .page-contact__section-title {
    color: #FFFF00; /* Yellow for titles on dark background */
}
.page-contact__dark-section .page-contact__section-description {
    color: #f0f0f0; /* Lighter white for descriptions on dark background */
}


/* Form Section */
.page-contact__form-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

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

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    color: #333333;
    background-color: #FFFFFF;
}

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

.page-contact__form-submit-btn {
    width: 100%;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* Other Methods Section */
.page-contact__method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-contact__method-icon {
    width: 100%;
    max-width: 150px; /* Ensure icon is not too large */
    height: auto;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 8px; /* Slightly rounded corners for icons */
}

.page-contact__method-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFF00; /* Yellow for titles on card */
}

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

.page-contact__method-btn {
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

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

.page-contact__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e8f5e9; /* Light green background for question */
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: "−";
}

.page-contact__faq-answer {
    padding: 20px 25px;
    background-color: #ffffff;
    border-top: 1px solid #eee;
    color: #333333;
}

.page-contact__faq-answer p {
    margin: 0;
    font-size: 1em;
}

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

/* CTA Section */
.page-contact__cta-section {
    text-align: center;
    padding-top: 60px;
    padding-bottom: 60px;
}

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

/* Button Styles */
.page-contact__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
}

.page-contact__btn-primary:hover {
    background-color: #a30606;
}

.page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2c;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, small top padding */
    }

    .page-contact__hero-image {
        max-height: 300px;
        margin-bottom: 15px;
    }

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

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

    .page-contact__hero-description {
        font-size: clamp(0.9em, 3vw, 1.1em);
    }

    .page-contact__light-bg,
    .page-contact__dark-section {
        padding: 40px 0;
    }

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

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

    .page-contact__section-description {
        margin-bottom: 30px;
    }

    .page-contact__form {
        padding: 20px;
    }

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

    .page-contact__method-icon {
        max-width: 100px;
    }

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

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

    .page-contact__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    /* Mobile image, video, button overflow fix */
    .page-contact img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-contact video,
    .page-contact__video { /* If video were present */
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__video-section,
    .page-contact__video-container,
    .page-contact__video-wrapper,
    .page-contact__form,
    .page-contact__method-card,
    .page-contact__faq-item,
    .page-contact__cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Ensure no horizontal scroll */
    }
    
    .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;
    }
    
    .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;
      flex-direction: column !important; /* Force vertical stack for buttons */
    }
}