/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    color: #FFF6D6; /* Text Main */
    background-color: #0A0A0A; /* Body background from shared */
    line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
    padding-top: 10px; /* Small top padding, body handles header-offset */
    margin-bottom: 40px;
    text-align: center;
    background-color: #0A0A0A; /* Ensure background matches body */
    overflow: hidden;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 40px; /* Add margin below image to separate from content */
}

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

.page-contact__hero-content {
    padding: 0 20px 40px 20px; /* Adjust padding, no negative margins or transforms */
    background: none; /* Ensure no background here if not overlapping */
}

.page-contact__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
    font-weight: bold;
    color: #FFD36B; /* Glow color for emphasis */
    margin-bottom: 15px;
    line-height: 1.2;
}

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

/* Section Titles & Descriptions */
.page-contact__section-title {
    font-size: 2.5em;
    color: #FFD36B;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #FFF6D6;
}

/* Buttons */
.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary {
    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, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure buttons don't overflow */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #ffffff; /* White text for contrast */
    border: none;
}

.page-contact__btn-primary:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.page-contact__btn-secondary {
    background: #111111; /* Card BG */
    color: #FFD36B; /* Glow color */
    border: 2px solid #FFD36B; /* Glow color border */
    margin-left: 20px;
}

.page-contact__btn-secondary:hover {
    transform: translateY(-3px);
    background: #FFD36B;
    color: #111111;
}

/* Intro Section - Contact Methods Grid */
.page-contact__intro-section {
    padding: 60px 0;
    background-color: #0A0A0A;
}

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

.page-contact__contact-method-card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #F2C14E; /* Main color */
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-contact__phone-number {
    font-size: 1.2em;
    color: #FFD36B;
    font-weight: bold;
    display: block;
    margin-top: 20px;
}

/* Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: #0A0A0A;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
    color: #F2C14E; /* Main color */
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    background-color: #0A0A0A; /* Darker background for input fields */
    color: #FFF6D6;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 246, 214, 0.6); /* Lighter placeholder text */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #FFD36B; /* Glow color on focus */
    box-shadow: 0 0 0 3px rgba(255, 211, 107, 0.3);
}

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: #0A0A0A;
}

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

.page-contact__faq-item {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    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: #F2C14E; /* Main color */
    cursor: pointer;
    background-color: #111111;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details/summary */
}

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

.page-contact__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.1);
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD36B;
}

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

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #FFF6D6;
    border-top: 1px solid #3A2A12;
    background-color: #0A0A0A;
}

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

.page-contact__faq-link {
    color: #FFD36B;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__faq-link:hover {
    text-decoration: underline;
}

/* CTA Banner Section */
.page-contact__cta-banner-section {
    background-color: #111111; /* Card BG */
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid #3A2A12;
}

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

.page-contact__cta-banner-title {
    font-size: 2.5em;
    color: #F2C14E;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__cta-banner-description {
    font-size: 1.1em;
    color: #FFF6D6;
    margin-bottom: 40px;
}

.page-contact__cta-buttons-wrapper {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%; /* Ensure container doesn't overflow */
    box-sizing: border-box; /* Include padding and border */
    overflow: hidden; /* Hide overflow */
}

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

    .page-contact__main-title {
        font-size: clamp(2em, 4vw, 3em);
    }

    .page-contact__section-title {
        font-size: 2em;
    }

    .page-contact__cta-banner-title {
        font-size: 2em;
    }

    .page-contact__btn-secondary {
        margin-left: 15px;
    }
}


@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header-offset */
        margin-bottom: 20px;
    }
    .page-contact__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-contact__hero-content {
        padding: 0 15px 20px 15px;
    }
    .page-contact__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em) !important; /* Smaller H1 for mobile */
        margin-bottom: 10px;
    }
    .page-contact__hero-description {
        font-size: 0.95em;
        margin-bottom: 15px;
    }

    /* 深色导语区 */
    .page-contact__intro-section {
        padding: 40px 0;
    }
    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 0.9em;
        margin-bottom: 30px;
    }

    /* 通用图片与容器 */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__cta-banner-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__contact-methods-grid {
        grid-template-columns: 1fr; /* Single column for contact methods */
        gap: 20px;
    }
    .page-contact__contact-method-card {
        padding: 25px;
    }

    /* 按钮与按钮容器 */
    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .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-wrapper,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }
    .page-contact__btn-secondary {
        margin-left: 0; /* Remove left margin for stacking */
    }

    /* FAQ */
    .page-contact__faq-question {
        font-size: 1.05em;
        padding: 18px 20px;
    }
    .page-contact__faq-answer {
        font-size: 0.9em;
        padding: 0 20px 18px 20px;
    }

    /* 其他模块 - Form Section */
    .page-contact__contact-form {
        padding: 30px;
    }
    .page-contact__form-label {
        font-size: 1em;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
        font-size: 0.95em;
    }

    /* CTA Banner Section */
    .page-contact__cta-banner-section {
        padding: 50px 0;
    }
    .page-contact__cta-banner-title {
        font-size: 1.8em;
    }
    .page-contact__cta-banner-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
}