/* style/contact.css */

/* Base styles for the contact page, ensuring contrast with dark body background */
.page-contact {
    color: #ffffff; /* Light text for dark body background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Inherit from body or shared, actual background is #1a1a2e */
}

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

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

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

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover the area */
    max-height: 500px; /* Limit hero image height */
}

.page-contact__hero-content {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    width: 100%;
    box-sizing: border-box;
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size */
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
}

.page-contact__hero-description {
    font-size: 1.1em;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto;
}

/* Channels Section */
.page-contact__channels-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background as per body, but explicitly set for section */
    color: #ffffff;
}

.page-contact__channel-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 lighter card background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__channel-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__channel-icon {
    width: 200px; /* Enforce minimum image size */
    height: 200px; /* Enforce minimum image size */
    margin-bottom: 20px;
    object-fit: contain;
}

.page-contact__channel-title {
    font-size: 1.5em;
    color: #26A9E0; /* Brand color for titles */
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-submit {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-contact__btn-primary:hover {
    background-color: #1e87b6; /* Darker shade of primary */
    border-color: #1e87b6;
}

.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-submit {
    background-color: #26A9E0;
    color: #ffffff;
    border: none;
    width: auto; /* Adjust width for submit button */
}

.page-contact__btn-submit:hover {
    background-color: #1e87b6;
}

.page-contact__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Benefits Section */
.page-contact__benefits-section {
    padding: 80px 0;
    background-color: #22223a; /* A slightly different dark background for contrast */
    color: #ffffff;
}

.page-contact__benefits-list {
    list-style: none;
    padding: 0;
    margin: 40px 0 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-contact__benefit-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-contact__benefit-item:hover {
    transform: translateY(-5px);
}

.page-contact__benefit-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-contact__benefit-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Issues Section */
.page-contact__issues-section {
    padding: 80px 0;
    background-color: #1a1a2e;
    color: #ffffff;
}

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

.page-contact__issue-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-contact__issue-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-contact__issue-text {
    font-size: 1em;
    color: #e0e0e0;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #22223a;
    color: #ffffff;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #aaaaaa;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    background-color: rgba(0, 0, 0, 0.5);
    outline: none;
}

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #1a1a2e;
    color: #ffffff;
}

.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.08);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.2em;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.18);
}

.page-contact__faq-qtext {
    flex-grow: 1;
    color: #26A9E0; /* Brand color for question text */
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 30px;
    text-align: center;
    color: #ffffff;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: '−'; /* Change to minus when open */
}

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #e0e0e0;
    background-color: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__faq-answer p {
    margin: 0;
}

/* Address Section */
.page-contact__address-section {
    padding: 80px 0;
    background-color: #22223a;
    color: #ffffff;
    text-align: center;
}

.page-contact__address-details {
    margin-top: 40px;
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__address-text {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #e0e0e0;
}

.page-contact__address-text strong {
    color: #26A9E0;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #1a1a2e;
    color: #ffffff;
    text-align: center;
}

.page-contact__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* Ensure container takes full width for responsiveness */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-image {
        max-height: 400px;
    }
    .page-contact__channel-grid,
    .page-contact__benefits-list,
    .page-contact__issue-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-bottom: 40px;
    }
    .page-contact__hero-image {
        max-height: 300px;
    }
    .page-contact__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__section-description {
        font-size: 0.95em;
    }

    .page-contact__channel-grid,
    .page-contact__benefits-list,
    .page-contact__issue-grid {
        grid-template-columns: 1fr; /* Stack columns on mobile */
        padding: 0 15px; /* Add padding to grid containers */
    }
    .page-contact__channel-card,
    .page-contact__benefit-item,
    .page-contact__issue-card {
        padding: 25px;
    }

    .page-contact__channel-icon {
        min-width: 200px !important;
        min-height: 200px !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__address-section,
    .page-contact__cta-section {
        padding: 60px 0;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
    }

    .page-contact__faq-item summary {
        font-size: 1.1em;
        padding: 18px 20px;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile container responsiveness */
    .page-contact__channels-section,
    .page-contact__benefits-section,
    .page-contact__issues-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__address-section,
    .page-contact__cta-section,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no horizontal scroll */
    }

    /* Mobile button responsiveness */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__btn-submit,
    .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 {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__main-title {
        font-size: clamp(1.5em, 8vw, 2em);
    }
    .page-contact__hero-description {
        font-size: 0.9em;
    }
    .page-contact__channel-title,
    .page-contact__benefit-title,
    .page-contact__issue-title {
        font-size: 1.2em;
    }
    .page-contact__faq-item summary {
        font-size: 1em;
    }
}