/* style/contact.css */

/* Variables from custom palette */
:root {
    --page-contact-primary: #FF8C1A;
    --page-contact-secondary: #FFA53A;
    --page-contact-card-bg: #17191F;
    --page-contact-background: #0D0E12; /* Main body background */
    --page-contact-text-main: #FFF3E6;
    --page-contact-border: #A84F0C;
    --page-contact-glow: #FFB04D;
    --page-contact-deep-orange: #D96800;
    --page-contact-button-gradient: linear-gradient(180deg, var(--page-contact-secondary) 0%, var(--page-contact-deep-orange) 100%);
}

/* General page styling */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-contact-text-main); /* Text color for dark background */
    background-color: var(--page-contact-background); /* Explicitly set background for main content */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

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

.page-contact__section-title {
    font-size: clamp(1.8em, 3vw, 2.5em); 
    color: var(--page-contact-primary);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: var(--page-contact-text-main);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background: var(--page-contact-button-gradient);
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px var(--page-contact-glow);
}

.page-contact__btn-secondary {
    background: transparent;
    color: var(--page-contact-primary);
    border: 2px solid var(--page-contact-primary);
}

.page-contact__btn-secondary:hover {
    background: var(--page-contact-primary);
    color: #ffffff;
    box-shadow: 0 0 15px var(--page-contact-glow);
}

/* Images */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as body handles header offset */
    margin-bottom: 50px;
    background-color: var(--page-contact-background);
    width: 100%;
    box-sizing: border-box;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    height: 500px; /* Fixed height for hero image on desktop */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-contact__hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-contact__hero-title {
    font-size: clamp(2.5em, 4.5vw, 3.5em); /* H1 font size with clamp */
    color: var(--page-contact-primary);
    margin-bottom: 15px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -1px;
}

.page-contact__hero-description {
    font-size: 1.2em;
    color: var(--page-contact-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__hero-cta .page-contact__btn-primary {
    min-width: 200px;
}

/* Info Section (Contact Methods) */
.page-contact__info-section {
    padding: 60px 0;
    margin-bottom: 50px;
    background-color: var(--page-contact-card-bg); /* Darker background for contrast */
}

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

.page-contact__method-card {
    background-color: var(--page-contact-card-bg); /* Use card-bg for consistency */
    border: 1px solid var(--page-contact-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%; /* Ensure cards are same height */
    box-sizing: border-box;
}

.page-contact__method-icon {
    width: 150px;
    height: 150px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-contact__method-title {
    font-size: 1.5em;
    color: var(--page-contact-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__method-text {
    color: var(--page-contact-text-main);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take available space */
}

/* Form Section */
.page-contact__form-section {
    padding: 60px 0;
    margin-bottom: 50px;
    background-color: var(--page-contact-background);
}

.page-contact__form-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
    justify-content: center;
}

.page-contact__form-image {
    flex: 1;
    max-width: 50%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__form {
    flex: 1;
    max-width: 50%;
    background-color: var(--page-contact-card-bg);
    border: 1px solid var(--page-contact-border);
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--page-contact-primary);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--page-contact-border);
    border-radius: 8px;
    background-color: #252b38; /* Slightly lighter dark for input fields */
    color: var(--page-contact-text-main);
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 243, 230, 0.7);
}

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

.page-contact__form .page-contact__btn-primary {
    width: auto; /* Allow button to size naturally */
    min-width: 180px;
}

.page-contact__form-note {
    text-align: center;
    font-size: 0.9em;
    color: rgba(255, 243, 230, 0.8);
    margin-top: 30px;
}

/* Benefits Section */
.page-contact__benefits-section {
    padding: 60px 0;
    margin-bottom: 50px;
    background-color: var(--page-contact-card-bg);
}

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

.page-contact__benefit-card {
    background-color: var(--page-contact-card-bg); /* Use card-bg for consistency */
    border: 1px solid var(--page-contact-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    box-sizing: border-box;
}

.page-contact__benefit-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-contact__benefit-title {
    font-size: 1.4em;
    color: var(--page-contact-primary);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__benefit-text {
    color: var(--page-contact-text-main);
    flex-grow: 1;
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    margin-bottom: 50px;
    background-color: var(--page-contact-card-bg);
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__faq-item {
    background-color: var(--page-contact-background); /* Darker background for FAQ items */
    border: 1px solid var(--page-contact-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-contact-text-main);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--page-contact-primary);
    cursor: pointer;
    background-color: var(--page-contact-card-bg); /* Use card-bg for summary */
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #252b38; /* Slightly lighter on hover */
}

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

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

/* Details element specific styling */
.page-contact__faq-item[open] .page-contact__faq-question {
    background-color: #252b38;
}
.page-contact__faq-item[open] .page-contact__faq-toggle {
    content: "−"; /* Change to minus when open for native details */
}

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

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--page-contact-text-main);
}

.page-contact__faq-answer p {
    margin-top: 10px;
    margin-bottom: 0;
}
.page-contact__faq-answer a {
    color: var(--page-contact-secondary);
    text-decoration: underline;
}

/* Final CTA Section */
.page-contact__final-cta-section {
    padding: 60px 0;
    background-color: var(--page-contact-card-bg);
    text-align: center;
}

.page-contact__final-cta-section .page-contact__section-title {
    color: var(--page-contact-primary);
}

.page-contact__final-cta-section .page-contact__section-description {
    color: var(--page-contact-text-main);
    margin-bottom: 40px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__container {
        padding: 20px 30px;
    }

    .page-contact__hero-image-wrapper {
        height: 400px;
    }

    .page-contact__form-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .page-contact__form-image,
    .page-contact__form {
        max-width: 100%;
        width: 100%;
    }

    .page-contact__contact-methods,
    .page-contact__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}


@media (max-width: 768px) {
    /* General Mobile Styles */
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-contact__container {
        padding: 15px !important; /* Mobile padding */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-contact__section-description {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    /* HERO 主图区域 */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        margin-bottom: 30px;
    }

    .page-contact__hero-image-wrapper {
        height: 250px;
        margin-bottom: 20px;
    }

    .page-contact__hero-content {
        padding: 0 15px;
    }

    .page-contact__hero-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Adjust H1 for mobile */
        line-height: 1.1;
    }

    .page-contact__hero-description {
        font-size: 1.1em;
        margin-bottom: 20px;
    }

    /* Info Section (Deep Orange Intro Section) */
    .page-contact__info-section {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .page-contact__contact-methods {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__method-icon {
        width: 120px;
        height: 120px;
    }

    /* Form Section */
    .page-contact__form-section {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .page-contact__form-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .page-contact__form-image,
    .page-contact__form {
        max-width: 100% !important;
        width: 100% !important;
        padding: 30px 20px;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px;
    }
    .page-contact__form .page-contact__btn-primary {
        width: 100% !important;
    }
    .page-contact__form-note {
        margin-top: 20px;
        padding: 0 10px;
    }

    /* Benefits Section (Other Module) */
    .page-contact__benefits-section {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .page-contact__benefits-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-contact__benefit-card {
        padding: 25px;
    }
    .page-contact__benefit-icon {
        width: 80px;
        height: 80px;
    }

    /* FAQ Section */
    .page-contact__faq-section {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .page-contact__faq-list {
        padding: 0 10px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }

    .page-contact__faq-toggle {
        font-size: 1.3em;
    }

    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95em;
    }

    /* Final CTA Section (Other Module) */
    .page-contact__final-cta-section {
        padding: 40px 0;
    }

    .page-contact__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px;
    }
    .page-contact__cta-buttons .page-contact__btn-primary,
    .page-contact__cta-buttons .page-contact__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 15px;
    }
}