/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for assumed light body background */
    background-color: var(--background-color, #FFFFFF); /* Ensure body background is respected */
}

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

.page-contact__section {
    padding: 60px 0;
    text-align: center;
}

.page-contact__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Main brand color */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box; /* Include padding and border in the element's total width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-contact__btn-primary:hover {
    background-color: #1a7fb2;
    border-color: #1a7fb2;
}

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

.page-contact__btn-secondary:hover {
    background-color: #e0f0f7;
    color: #26A9E0;
    border-color: #26A9E0;
}

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    background-color: #f0f8ff; /* Light background for hero */
    padding-top: var(--header-offset, 120px); /* Clear fixed header */
    overflow: hidden;
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 600px;
    padding: 20px;
}

.page-contact__hero-title {
    font-size: 3.5em;
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-contact__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-contact__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Slightly transparent to let content stand out */
}

/* --- Intro Section --- */
.page-contact__intro-section {
    background-color: #FFFFFF;
}

/* --- Channels Section --- */
.page-contact__channels-section {
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF; /* Light text */
}

.page-contact__channels-section .page-contact__section-title,
.page-contact__channels-section .page-contact__section-description {
    color: #FFFFFF;
}

.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: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__channel-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 8px;
}

.page-contact__channel-title {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-contact__channel-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to grow */
}

.page-contact__note-text {
    margin-top: 40px;
    font-style: italic;
    color: #f0f0f0;
    font-size: 0.9em;
}

/* --- Issues Section --- */
.page-contact__issues-section {
    background-color: #f8f8f8;
}

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

.page-contact__issue-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: left;
}

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

.page-contact__issue-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-contact__issue-card li {
    margin-bottom: 10px;
    color: #555555;
}

.page-contact__issue-card li a {
    color: #26A9E0;
    text-decoration: none;
}

.page-contact__issue-card li a:hover {
    text-decoration: underline;
}

/* --- Guide Section --- */
.page-contact__guide-section {
    background-color: #e6f7ff; /* Light blue background */
}

.page-contact__guide-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-contact__guide-item {
    background-color: #FFFFFF;
    border-left: 5px solid #26A9E0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-contact__guide-item p {
    color: #555555;
}

.page-contact__guide-item a {
    color: #26A9E0;
    text-decoration: none;
}

.page-contact__guide-item a:hover {
    text-decoration: underline;
}

/* --- Commitment Section --- */
.page-contact__commitment-section {
    background-color: #FFFFFF;
}

.page-contact__team-image {
    max-width: 80%;
    height: auto;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- FAQ Section --- */
.page-contact__faq-section {
    background-color: #26A9E0; /* Dark background */
    color: #FFFFFF; /* Light text */
}

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-description {
    color: #FFFFFF;
}

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

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.page-contact__faq-item-title {
    font-size: 1.2em;
    color: #FFFFFF;
    margin: 0;
}

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

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-contact__faq-answer p {
    margin: 0;
    padding-bottom: 20px;
    color: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Change '+' to 'x' or '-' */
}

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

.page-contact__faq-image {
    max-width: 60%;
    height: auto;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- CTA Section --- */
.page-contact__cta-section {
    background-color: #f0f8ff;
}

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

/* --- General Image & Link Styles --- */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-contact a {
    color: #26A9E0;
    text-decoration: none;
}

.page-contact a:hover {
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.8em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__hero-content {
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-contact__hero-content {
        max-width: 100%;
        padding: 20px 15px;
        text-align: center;
    }

    .page-contact__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-contact__hero-image-wrapper {
        position: static;
        height: 250px; /* Adjust height for mobile */
        margin-top: 20px;
    }

    .page-contact__section {
        padding: 40px 0;
    }

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

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

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

    .page-contact__channels-grid,
    .page-contact__issues-grid,
    .page-contact__guide-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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;
        overflow: hidden !important;
    }

    /* Mobile specific image handling */
    .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__hero-image-wrapper,
    .page-contact__channels-grid,
    .page-contact__issues-grid,
    .page-contact__guide-list,
    .page-contact__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-contact__team-image,
    .page-contact__faq-image {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Ensure no content causes horizontal scroll */
    .page-contact {
        overflow-x: hidden;
    }
}