/* style/contact.css */

/* Base Styles */
.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 */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Color Contrast Classes */
.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-contact__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Call to Action Buttons */
.page-contact__cta-button {
    display: block;
    width: fit-content;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 30px auto 0 auto;
    max-width: 100%; /* For mobile */
    box-sizing: border-box; /* For mobile */
    white-space: normal; /* For mobile */
    word-wrap: break-word; /* For mobile */
}

.page-contact__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin: 20px auto 0 auto; /* Adjust margin for individual cards */
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Hero Section */
.page-contact__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #f0f8ff; /* Light background for hero section */
    display: flex;
    flex-direction: column; /* Ensure image is above text initially */
    align-items: center;
    text-align: center;
    padding-bottom: 50px;
}

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

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover; /* Desktop: cover to fill space */
    max-width: 100%; /* Ensure responsiveness */
}

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

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive H1 font size */
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-contact__intro-text {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
}

/* Contact Info Section */
.page-contact__contact-info-section {
    padding: 60px 0;
}

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

.page-contact__channel-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__channel-card:hover {
    transform: translateY(-5px);
}

.page-contact__channel-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure responsiveness */
    display: block; /* Ensure responsiveness */
}

.page-contact__channel-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-contact__channel-description {
    font-size: 1em;
    color: #666666;
    flex-grow: 1; /* Allow description to take available space */
    margin-bottom: 20px;
}

/* Issues Section */
.page-contact__issues-section {
    padding: 60px 0;
}

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

.page-contact__issue-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.page-contact__issue-item:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-contact__issue-title {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-contact__issue-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

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

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

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    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: #26A9E0;
    outline: none;
}

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

.page-contact__submit-button {
    width: 100%;
    max-width: 300px; /* Limit width for submit button */
    margin: 30px auto 0 auto;
}

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

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

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-contact__faq-item[open] {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    list-style: none; /* Hide default marker for details */
}

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

.page-contact__faq-qtext {
    flex-grow: 1;
    /* pointer-events: none; This is not needed for details/summary and can interfere */
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    /* pointer-events: none; This is not needed for details/summary and can interfere */
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    /* max-height, overflow, transition are not strictly needed for native <details> but are fine to keep */
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: 500px; /* Arbitrary large value for smooth transition */
    padding-top: 10px;
}


.page-contact__faq-cta {
    text-align: center;
    margin-top: 50px;
    color: #f0f0f0;
    font-size: 1.1em;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 60px 0;
    text-align: center;
}

.page-contact__commitment-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-contact__commitment-list li {
    background-color: #f8f8f8;
    border-left: 5px solid #26A9E0;
    margin-bottom: 15px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #444444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-contact__commitment-list li strong {
    color: #26A9E0;
}

.page-contact__final-cta-text {
    font-size: 1.3em;
    font-weight: bold;
    color: #333333;
    margin-top: 50px;
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__container {
        padding: 20px 30px;
    }

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

    .page-contact__hero-image-wrapper {
        margin-bottom: 20px;
    }

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

    .page-contact__intro-text {
        font-size: 1.1em;
    }

    .page-contact__channels-grid,
    .page-contact__issues-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

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

    /* Hero Section - Mobile */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px;
    }

    .page-contact__hero-image-wrapper {
        margin-bottom: 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    .page-contact__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important; /* Mobile: contain to prevent cropping */
        aspect-ratio: unset !important; /* Reset aspect ratio for contain */
        max-height: none !important; /* Remove max-height restriction */
    }

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

    .page-contact__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em); /* Adjust H1 for smaller screens */
    }

    .page-contact__intro-text {
        font-size: 1em;
    }

    /* General Images & Containers - Mobile */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__channels-grid,
    .page-contact__issues-grid,
    .page-contact__faq-list,
    .page-contact__contact-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons & Button Containers - Mobile */
    .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; /* Ensure internal padding */
        padding-right: 15px; /* Ensure internal padding */
        margin-left: auto !important; /* Center buttons */
        margin-right: auto !important; /* Center buttons */
    }
    
    .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; /* Allow buttons to wrap */
        gap: 10px; /* Space between wrapped buttons */
        display: flex; /* Ensure flex context for wrap */
        flex-direction: column; /* Stack buttons vertically by default on mobile */
    }
    
    /* Contact Info Section - Mobile */
    .page-contact__channels-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }
    
    .page-contact__channel-card {
        padding: 20px;
    }
    
    .page-contact__channel-icon {
        width: 80px;
        height: 80px;
    }

    /* Issues Section - Mobile */
    .page-contact__issues-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    /* Contact Form Section - Mobile */
    .page-contact__contact-form {
        padding: 25px;
    }

    /* FAQ Section - Mobile */
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-contact__faq-cta {
        margin-top: 30px;
        font-size: 1em;
    }
    
    /* Commitment Section - Mobile */
    .page-contact__commitment-list {
        padding: 0 15px;
    }
    .page-contact__commitment-list li {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-contact__final-cta-text {
        font-size: 1.1em;
    }
}