/* style/contact.css */

/* General styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f5f5f5; /* Light background for the page content area */
}

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

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

.page-contact__section-subtitle {
    font-size: 1.5em;
    color: #555555;
    text-align: center;
    margin-bottom: 30px;
    font-weight: normal;
}

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

/* Hero Section */
.page-contact__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: #f5f5f5; /* Default light background */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Align items to start for image then content */
    flex-direction: column;
}

.page-contact__hero-container {
    width: 100%;
    max-width: 1200px; /* Constrain max width for content */
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    max-height: 675px; /* Max height for hero image */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 30px;
    display: block; /* Ensure block for proper spacing */
}

.page-contact__hero-content {
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.page-contact__main-title {
    font-size: 3em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__intro-text {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
}

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-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;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

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

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

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0; /* Primary brand color for text */
    border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1e87c0;
    border-color: #1e87c0;
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for contrast */
}

.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: #f9f9f9;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 450px; /* Ensure cards have similar height */
}

.page-contact__method-icon {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: contain; /* Ensure image fits without cropping */
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

.page-contact__method-text {
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

.page-contact__social-links {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 15px;
}

.page-contact__social-btn {
    flex-grow: 1;
    min-width: 120px; /* Minimum width for social buttons */
}


/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark background for contrast */
    color: #ffffff; /* White text for dark background */
}

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-subtitle {
    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.1); /* Slightly transparent white for items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    user-select: none;
    list-style: none; /* Remove default marker for details summary */
}
.page-contact__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}
.page-contact__faq-item summary::marker {
    display: none; /* Hide default marker for other browsers */
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

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

.page-contact__faq-answer p {
    margin-bottom: 15px;
}

.page-contact__faq-answer .page-contact__btn-primary,
.page-contact__faq-answer .page-contact__btn-secondary {
    margin-top: 10px;
}

/* Why Contact Section */
.page-contact__why-contact-section {
    padding: 60px 0;
    background-color: #f5f5f5;
}

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

.page-contact__benefit-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 400px;
}

.page-contact__benefit-icon {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

.page-contact__benefit-text {
    color: #666666;
    flex-grow: 1;
}

/* Final CTA Section */
.page-contact__cta-section {
    padding: 60px 0;
    background-color: #26A9E0; /* Dark background for contrast */
    color: #ffffff;
    text-align: center;
}

.page-contact__cta-section .page-contact__section-title,
.page-contact__cta-section .page-contact__section-description {
    color: #ffffff;
}

.page-contact__cta-content {
    max-width: 800px;
}

/* Image specific styles */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.5em;
    }
    .page-contact__intro-text {
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__section-subtitle {
        font-size: 1.3em;
    }
    .page-contact__method-card,
    .page-contact__benefit-card {
        min-height: unset; /* Allow height to adjust */
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles --header-offset */
        padding-bottom: 30px;
    }
    .page-contact__hero-container {
        padding: 0 15px;
    }
    .page-contact__hero-image {
        margin-bottom: 20px;
        min-width: 200px !important; /* Enforce min size */
        min-height: 200px !important; /* Enforce min size */
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__main-title {
        font-size: 2em;
        line-height: 1.3;
    }
    .page-contact__intro-text {
        font-size: 1em;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 通用图片与容器 */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__method-card,
    .page-contact__benefit-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"],
    .page-contact__social-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;
        font-size: 1em; /* Adjust font size for mobile */
    }
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container,
    .page-contact__social-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* 其他内容模块 (e.g., methods, benefits, FAQ) */
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-subtitle {
        font-size: 1.2em;
    }
    .page-contact__section-description {
        font-size: 1em;
    }
    .page-contact__methods-grid,
    .page-contact__benefits-grid {
        grid-template-columns: 1fr; /* Single column layout for cards */
        gap: 20px;
    }
    .page-contact__method-card,
    .page-contact__benefit-card {
        padding: 20px;
    }
    .page-contact__method-icon,
    .page-contact__benefit-icon {
        height: auto; /* Allow height to adjust */
        max-width: 100%;
        min-width: 200px;
        min-height: 200px;
    }
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        font-size: 1em;
        padding: 0 20px 15px;
    }
}