/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is #111 from shared.css */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* Section styling */
.page-contact__hero-section,
.page-contact__channels-section,
.page-contact__notes-section,
.page-contact__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-contact__info-section,
.page-contact__guide-section,
.page-contact__faq-section {
    padding: 60px 0;
    text-align: center;
}

/* Background color variants for sections/cards to ensure contrast */
.page-contact__dark-bg {
    background-color: #1a1a1a; /* Darker than body for visual separation, still dark */
    color: #ffffff;
}

.page-contact__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

/* Headings */
.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for main title */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.page-contact__section-title--white {
    color: #ffffff;
}

.page-contact__section-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: inherit; /* Inherit color from parent section (light/dark bg) */
}

.page-contact__section-text--white {
    color: #f0f0f0;
}

/* Call to action buttons */
.page-contact__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

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

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

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

.page-contact__btn-primary--large,
.page-contact__btn-secondary--large {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* Channel cards for contact methods */
.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.08); /* Slightly transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have similar height */
    box-sizing: border-box;
    color: #ffffff; /* Text color for cards on dark background */
}

.page-contact__channel-card .page-contact__btn-primary,
.page-contact__channel-card .page-contact__btn-secondary {
    margin-top: auto; /* Push buttons to the bottom */
}

.page-contact__channel-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%; /* Ensure image takes full width of card */
    min-height: 200px; /* Minimum image height */
}

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

.page-contact__card-text {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow and fill space */
}

/* Detailed guide section */
.page-contact__guide-item {
    background-color: #f9f9f9; /* Light background for guide items */
    border-left: 5px solid #26A9E0;
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    text-align: left;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333; /* Dark text for light background */
}

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

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

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

/* Notes section */
.page-contact__notes-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__notes-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid #26A9E0;
    color: #ffffff;
}

.page-contact__notes-item strong {
    color: #26A9E0;
}

/* FAQ section */
.page-contact__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-contact__faq-item {
    background-color: #f9f9f9; /* Light background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333; /* Dark text for light background */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    color: #26A9E0; /* Brand color for FAQ questions */
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}

.page-contact__faq-answer {
    padding: 15px 25px 20px 25px;
    background-color: #f9f9f9;
    color: #333333;
    font-size: 0.95em;
}

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


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

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

@media (max-width: 768px) {
    /* Mobile specific styles */
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__hero-section,
    .page-contact__channels-section,
    .page-contact__notes-section,
    .page-contact__cta-section,
    .page-contact__info-section,
    .page-contact__guide-section,
    .page-contact__faq-section {
        padding: 40px 0;
    }

    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__card-title {
        font-size: 1.4em;
    }
    .page-contact__guide-title {
        font-size: 1.5em;
    }

    .page-contact__hero-cta,
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__btn-primary,
    .page-contact__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Image responsiveness for mobile */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* All containing elements for images/videos/buttons must also be responsive */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__channels-section,
    .page-contact__notes-section,
    .page-contact__cta-section,
    .page-contact__info-section,
    .page-contact__guide-section,
    .page-contact__faq-section,
    .page-contact__channel-card,
    .page-contact__guide-item,
    .page-contact__faq-item,
    .page-contact__hero-cta,
    .page-contact__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Re-apply header offset for mobile hero */
    }
    
    .page-contact__channels-grid {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__section-title {
        font-size: 1.5em;
    }
    .page-contact__card-title {
        font-size: 1.2em;
    }
    .page-contact__guide-title {
        font-size: 1.3em;
    }
}