/* style/contact.css */

/* --- Base Styles & Variables (Scoped to .page-contact) --- */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light background */
    background-color: var(--secondary-color, #FFFFFF); /* Body background is white */
}

/* Ensure padding-top for header offset */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Desktop default */
}

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

.page-contact__dark-bg {
    background-color: var(--primary-color, #017439);
    color: #FFFFFF;
}

.page-contact__light-bg {
    background-color: var(--secondary-color, #FFFFFF);
    color: #333333;
}

.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: inherit; /* Inherits from parent section */
}

.page-contact__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit; /* Inherits from parent section */
}

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjusted to not double padding with header offset */
    overflow: hidden; /* Prevent content overflow */
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential background effects */
}

.page-contact__main-heading {
    font-size: 48px;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for main heading on dark background */
    line-height: 1.2;
}

.page-contact__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 900px;
    color: #f0f0f0; /* Light gray for readability on dark background */
}

.page-contact__hero-image {
    width: 100%;
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    /* No filter allowed */
}

/* --- Buttons --- */
.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.page-contact__btn-primary {
    background: #C30808; /* Custom color for Register/Login type buttons */
    color: #FFFF00; /* Custom font color for Register/Login type buttons */
    box-shadow: 0 4px 10px rgba(195, 8, 8, 0.4);
}

.page-contact__btn-primary:hover {
    background: #a30606;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(195, 8, 8, 0.5);
}

.page-contact__btn-secondary {
    background: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-secondary:hover {
    background: #f0f0f0;
    color: #005a2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-contact__text-link {
    color: #FFFF00; /* Consistent with button text for links in dark sections */
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__text-link:hover {
    color: #f0f0f0;
}

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

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

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

.page-contact__channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__channel-card img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    /* No filter allowed */
}

.page-contact__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #017439;
}

.page-contact__card-text {
    font-size: 16px;
    margin-bottom: 25px;
    flex-grow: 1; /* Ensures cards are same height */
}

.page-contact__email-address {
    font-size: 18px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 20px;
}

.page-contact__social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    width: 100%; /* Ensure buttons within card adapt */
    flex-wrap: wrap;
}

.page-contact__social-btn {
    flex-grow: 1;
    max-width: 150px;
    padding: 12px 20px;
    font-size: 16px;
}


/* --- Support Topics Section --- */
.page-contact__support-topics-section {
    padding: 80px 0;
}

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

.page-contact__topic-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    border-radius: 12px;
    padding: 30px;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__topic-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom color for topic titles */
}

.page-contact__topic-text {
    font-size: 16px;
    line-height: 1.7;
}

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

.page-contact__faq-list {
    margin-top: 40px;
}

.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    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: 18px 25px;
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    color: #333333;
}

.page-contact__faq-question:hover {
    background: #f8f8f8;
    border-color: #d0d0d0;
}

.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #017439; /* Brand color for question titles */
}

.page-contact__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #017439; /* Brand color for toggle icon */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect, or just change text to '-' */
    color: #C30808; /* Red for active toggle */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
    padding: 0 25px;
    opacity: 0;
    background: #f9f9f9;
    border-radius: 0 0 10px 10px;
    color: #333333;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.page-contact__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* --- Feedback Section --- */
.page-contact__feedback-section {
    padding: 80px 0;
    text-align: center;
}

/* --- Join Us Section --- */
.page-contact__join-us-section {
    padding: 80px 0;
    text-align: center;
}

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

    /* Header offset for mobile */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }

    .page-contact__container {
        padding: 15px;
    }

    .page-contact__section-title {
        font-size: 28px;
    }

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

    /* Hero Section Mobile */
    .page-contact__main-heading {
        font-size: 32px;
    }

    .page-contact__intro-text {
        font-size: 16px;
    }

    .page-contact__hero-image {
        margin-top: 30px;
        border-radius: 8px;
    }

    .page-contact__hero-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons 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: 12px 15px;
        font-size: 16px;
    }

    .page-contact__social-links {
        flex-direction: column;
        gap: 10px;
    }

    .page-contact__social-btn {
        max-width: 100%;
    }

    /* Images Mobile (General) */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

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

    /* Contact Channels Mobile */
    .page-contact__channels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__channel-card {
        padding: 20px;
        border-radius: 8px;
    }

    .page-contact__channel-card img {
        max-width: 200px; /* Adjust for smaller screens */
    }

    .page-contact__card-title {
        font-size: 20px;
    }

    /* Support Topics Mobile */
    .page-contact__topics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__topic-item {
        padding: 20px;
        border-radius: 8px;
    }

    .page-contact__topic-title {
        font-size: 18px;
    }

    /* FAQ Mobile */
    .page-contact__faq-item {
        border-radius: 8px;
    }
    .page-contact__faq-question {
        padding: 15px 20px;
        border-radius: 8px;
    }
    .page-contact__faq-question h3 {
        font-size: 16px;
    }
    .page-contact__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px !important;
    }
    .page-contact__faq-answer p {
        font-size: 15px;
    }
}