/* 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 background */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    color: #ffffff; /* Text color for dark background */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-contact__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-contact__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

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

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

/* General Sections */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-contact__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for titles */
}

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

/* Light Background Sections */
.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* Dark Background Sections */
.page-contact__dark-section {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
}
.page-contact__dark-section .page-contact__section-title {
    color: #ffffff;
}
.page-contact__dark-section .page-contact__section-intro {
    color: #f0f0f0;
}

/* CTA Buttons */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-contact__cta-center {
    text-align: center;
    margin-top: 40px;
}

.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__link-btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-contact__btn-primary {
    background-color: #EA7C07; /* Login color for primary action */
    color: #ffffff;
    border: 2px solid #EA7C07;
}
.page-contact__btn-primary:hover {
    background-color: #d46f06;
    border-color: #d46f06;
}

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

.page-contact__link-btn {
    background-color: #ffffff;
    color: #26A9E0;
    border: 1px solid #26A9E0;
    padding: 10px 20px;
    font-size: 1em;
    margin-top: 15px;
    margin-right: 10px;
}
.page-contact__link-btn:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Contact Channels Section */
.page-contact__channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.page-contact__card-image {
    width: 100%; /* Ensure images are responsive within cards */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-contact__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-contact__channel-detail {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 15px;
    color: #333333;
}
.page-contact__link-text {
    color: #26A9E0;
    text-decoration: none;
}
.page-contact__link-text:hover {
    text-decoration: underline;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #26A9E0;
    color: #ffffff;
    font-size: 1.2em;
    text-decoration: none;
    transition: background-color 0.3s ease;
}
.page-contact__social-icon:hover {
    background-color: #EA7C07;
}

/* In-depth Support Section */
.page-contact__support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-contact__support-item {
    background-color: rgba(255, 255, 255, 0.1); /* Light transparent background on dark section */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.page-contact__item-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-contact__item-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-contact__faq-list {
    margin-top: 50px;
}

.page-contact__faq-item {
    background-color: #f9f9f9;
    border-radius: 12px;
    margin-bottom: 15px;
    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: 20px 30px;
    cursor: pointer;
    background-color: #ffffff;
    color: #26A9E0; /* Brand color for question */
    font-weight: bold;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}
.page-contact__faq-question:hover {
    background-color: #f0f0f0;
}

.page-contact__faq-title {
    font-size: 1.2em;
    margin: 0;
}

.page-contact__faq-toggle {
    font-size: 1.8em;
    font-weight: normal;
    transition: transform 0.3s ease;
    display: inline-block;
    color: #EA7C07; /* Login color for toggle icon */
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 30px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #f9f9f9;
    color: #555555;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px 30px;
}

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

/* Commitment Section */
.page-contact__brand-bg {
    background-color: #26A9E0;
    color: #ffffff;
}
.page-contact__brand-bg .page-contact__section-title {
    color: #ffffff;
}
.page-contact__brand-bg .page-contact__section-intro {
    color: #f0f0f0;
}

.page-contact__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__commitment-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    color: #ffffff;
    display: flex;
    align-items: center;
}
.page-contact__commitment-item::before {
    content: '✓';
    color: #EA7C07; /* Login color for checkmark */
    font-size: 1.5em;
    margin-right: 15px;
    font-weight: bold;
}

/* Address Section */
.page-contact__address-info {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    margin: 40px auto 0 auto;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__address-line {
    font-size: 1.1em;
    color: #333333;
    margin-bottom: 10px;
}
.page-contact__address-line strong {
    color: #26A9E0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__channel-grid,
    .page-contact__support-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    /* Mobile General Content Area Constraints */
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__contact-channels,
    .page-contact__in-depth-support,
    .page-contact__faq-section,
    .page-contact__commitment-section,
    .page-contact__address-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scrolling */
    }

    /* Images */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__card-image {
        height: auto !important; /* Allow height to adjust */
        max-height: 200px; /* Max height to keep it from being too tall */
    }

    /* Buttons */
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__link-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__link-btn {
        margin-right: 0;
    }
    .page-contact__cta-center .page-contact__btn-primary {
        width: auto !important; /* Allow button to size to content if only one */
        max-width: 100% !important;
    }


    /* Hero Section */
    .page-contact__hero-section {
        height: 500px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }

    /* General Sections */
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-intro {
        font-size: 0.95em;
    }

    /* Channel Grid */
    .page-contact__channel-grid,
    .page-contact__support-grid {
        grid-template-columns: 1fr;
    }

    /* FAQ */
    .page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-title {
        font-size: 1.1em;
    }
    .page-contact__faq-answer {
        padding: 15px 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px 20px !important;
    }

    /* Commitment List */
    .page-contact__commitment-item {
        font-size: 1em;
        padding: 12px 20px;
    }
}