/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Explicitly set default background */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* Adhering to fixed header offset rule */
    background-color: #f0f8ff; /* Light blue tint */
    padding-bottom: 40px;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 450px; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 20px;
}

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

.page-contact__hero-content-wrapper {
    text-align: center;
    padding: 0 20px;
}

.page-contact__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #26A9E0; /* Brand color for title */
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* General Button Styles */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

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

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

.page-contact__btn-secondary:hover {
    background-color: #e0f0ff;
    color: #1a8cc7;
    border-color: #1a8cc7;
}

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

/* Section titles and descriptions */
.page-contact__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
}

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

.page-contact__text-white {
    color: #ffffff;
}

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

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

.page-contact__form-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-contact__contact-form {
    flex: 1;
    max-width: 50%;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #26A9E0;
    outline: none;
}

.page-contact__form-submit-btn {
    width: auto;
    padding: 12px 30px;
    font-size: 1.1em;
    margin-top: 10px;
}

/* Live Chat Section */
.page-contact__livechat-section {
    background-color: #26A9E0; /* Brand color background */
    padding: 60px 0;
    text-align: center;
}

.page-contact__livechat-content {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.page-contact__livechat-image {
    flex: 1;
    max-width: 45%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-contact__livechat-text {
    flex: 1;
    max-width: 45%;
    text-align: left;
    color: #ffffff;
}

.page-contact__livechat-text p {
    font-size: 1.1em;
    margin-bottom: 25px;
}

.page-contact__livechat-btn {
    font-size: 1.1em;
    padding: 14px 35px;
}

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

.page-contact__faq-list {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    margin-top: 40px;
}

.page-contact__faq-image {
    flex: 1;
    max-width: 40%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-contact__faq-items {
    flex: 1;
    max-width: 60%;
}

.page-contact__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1.1em;
    color: #333333;
    cursor: pointer;
    list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
    display: none;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.2s ease-in-out;
    display: inline-block;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Simple visual change for toggle */
}

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

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

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

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

/* Social Section */
.page-contact__social-section {
    background-color: #26A9E0;
    padding: 60px 0;
    text-align: center;
}

.page-contact__social-links {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
}

.page-contact__social-image {
    flex: 1;
    max-width: 45%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-contact__social-icons {
    flex: 1;
    max-width: 45%;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.page-contact__social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    color: #26A9E0;
    border-radius: 50%;
    font-size: 1.8em;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-contact__social-icon-link:hover {
    background-color: #f0f0f0;
    color: #1a8cc7;
}

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

.page-contact__advantages-list {
    list-style: none;
    padding: 0;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-contact__advantages-list li {
    margin-bottom: 15px;
    font-size: 1.05em;
    position: relative;
    padding-left: 30px;
}

.page-contact__advantages-list li i {
    color: #26A9E0;
    position: absolute;
    left: 0;
    top: 5px;
    font-size: 1.2em;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #f0f8ff; /* Light blue tint */
}

.page-contact__large-cta-btn {
    font-size: 1.3em;
    padding: 15px 40px;
    margin-top: 30px;
}

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

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-section {
        padding-bottom: 30px;
    }
    .page-contact__hero-image-wrapper {
        max-height: 350px;
    }
    .page-contact__main-title {
        font-size: clamp(1.8em, 5vw, 2.8em);
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__form-wrapper,
    .page-contact__livechat-content,
    .page-contact__faq-list,
    .page-contact__social-links {
        flex-direction: column;
        gap: 30px;
    }
    .page-contact__form-image,
    .page-contact__contact-form,
    .page-contact__livechat-image,
    .page-contact__livechat-text,
    .page-contact__faq-image,
    .page-contact__faq-items,
    .page-contact__social-image,
    .page-contact__social-icons {
        max-width: 100%;
    }
    .page-contact__livechat-text,
    .page-contact__faq-items {
        text-align: center;
    }
    .page-contact__social-icons {
        justify-content: center;
    }
    .page-contact__advantages-list {
        padding: 0 20px;
    }
    .page-contact__advantages-list li {
        padding-left: 30px;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-contact__container {
        padding: 30px 15px;
    }
    /* HERO 主图区域 */
    .page-contact__hero-section {
        padding-top: 10px; /* Still 10px, not var(--header-offset) */
        padding-bottom: 20px;
    }
    .page-contact__hero-image-wrapper {
        max-height: 250px;
    }
    .page-contact__main-title {
        font-size: clamp(1.6em, 6vw, 2.5em);
        margin-bottom: 10px;
    }
    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    /* 按钮与按钮容器 */
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
        flex-wrap: wrap !important;
    }
    .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__form-section,
    .page-contact__livechat-section,
    .page-contact__faq-section,
    .page-contact__social-section,
    .page-contact__why-contact-section,
    .page-contact__cta-section {
        padding: 40px 0;
    }
    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    /* 通用图片与容器 */
    .page-contact__form-image,
    .page-contact__livechat-image,
    .page-contact__faq-image,
    .page-contact__social-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__contact-form {
        padding: 20px;
    }
    .page-contact__livechat-text {
        text-align: center;
    }
    .page-contact__faq-question {
        font-size: 1em;
        padding: 12px 15px;
    }
    .page-contact__faq-answer {
        padding: 0 15px 12px 15px;
        font-size: 0.9em;
    }
    .page-contact__social-icon-link {
        width: 50px;
        height: 50px;
        font-size: 1.5em;
    }
    .page-contact__large-cta-btn {
        font-size: 1.1em;
        padding: 12px 25px;
    }
    /* Ensure all content containers are responsive */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-wrapper,
    .page-contact__livechat-content,
    .page-contact__faq-list,
    .page-contact__social-links,
    .page-contact__advantages-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}