/* 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 handled by shared.css */
}

/* Ensure main content area respects header offset */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-contact__hero-section {
    background: #000000 url('[GALLERY:contact_hero_bg:1920x1080:fa88 contact,support,banner,professional]') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    position: relative;
}

.page-contact__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Overlay for better text readability */
    z-index: 1;
}

.page-contact__hero-section .page-contact__container {
    position: relative;
    z-index: 2;
}

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for emphasis */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    font-weight: bold;
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Call to Action Buttons */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping 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;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to width */
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

/* General Section Styles */
.page-contact__contact-methods,
.page-contact__why-support,
.page-contact__inquiry-topics,
.page-contact__faq-section,
.page-contact__contact-form-section,
.page-contact__additional-info {
    padding: 80px 0;
}

.page-contact__light-bg {
    background-color: #FFFFFF; /* White background for light sections */
    color: #333333; /* Dark text for light background */
}

.page-contact__dark-bg {
    background-color: #000000; /* Black background for dark sections */
    color: #ffffff; /* White text for dark background */
}

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

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

/* Contact Methods Grid */
.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-card {
    background-color: #f8f8f8; /* Slightly off-white for card background */
    color: #333333; /* Dark text for card content */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
    width: 200px; /* Min size 200px */
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px; /* Slightly rounded corners for images */
}

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

.page-contact__card-text {
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-contact__btn-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

/* Why Support Section */
.page-contact__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-contact__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

/* Inquiry Topics Section */
.page-contact__topic-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    padding-left: 20px;
    list-style-type: disc;
    color: #333333;
}

.page-contact__topic-list li {
    margin-bottom: 15px;
    font-size: 1.1em;
}

.page-contact__topic-list li strong {
    color: #26A9E0;
}

.page-contact__topic-list li a {
    color: #EA7C07;
    text-decoration: underline;
}

.page-contact__topic-list li a:hover {
    color: #d16e06;
}

/* FAQ Section */
.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark background */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    list-style: none; /* Hide default marker */
    -webkit-tap-highlight-color: transparent; /* Prevent tap highlight on mobile */
}

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

.page-contact__faq-question {
    flex-grow: 1;
    display: flex;
    align-items: center;
}

.page-contact__faq-qtext {
    flex-grow: 1;
}

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
}

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

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

/* Contact Form Section */
.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    background-color: #ffffff;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
    outline: none;
}

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

.page-contact__submit-btn {
    width: auto;
    min-width: 180px;
    padding: 15px 30px;
    font-size: 1.1em;
    cursor: pointer;
    background-color: #26A9E0; /* Brand color for submit */
    border-color: #26A9E0;
}

.page-contact__submit-btn:hover {
    background-color: #1e87b7;
    border-color: #1e87b7;
}

/* Additional Info Section */
.page-contact__additional-info {
    text-align: center;
}

.page-contact__info-links {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.page-contact__info-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-contact__info-link:hover {
    background-color: #1e87b7;
}

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

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 80px 20px;
        min-height: 400px;
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__contact-methods,
    .page-contact__why-support,
    .page-contact__inquiry-topics,
    .page-contact__faq-section,
    .page-contact__contact-form-section,
    .page-contact__additional-info {
        padding: 50px 0;
    }

    .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-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__container,
    .page-contact__section,
    .page-contact__card,
    .page-contact__contact-form,
    .page-contact__features-grid,
    .page-contact__topic-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    /* Images responsive */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__method-icon {
        width: 100% !important;
        height: auto !important;
        max-width: 250px !important; /* Cap max width for smaller images to avoid stretching */
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* FAQ Toggle */
    .page-contact__faq-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
    }
    .page-contact__submit-btn {
        width: 100%;
    }
    .page-contact__info-links {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__info-link {
        width: 100%;
    }
}

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