/* style/contact.css */

.page-contact {
    background-color: #F4F7FB; /* Background */
    color: #1F2D3D; /* Text Main */
    font-family: sans-serif; /* Roboto气质 */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

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

/* Header/Hero Section */
.page-contact__hero-section {
    position: relative;
    background-color: #2F6BFF; /* Main color as fallback */
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #FFFFFF;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/5; /* Recommended for hero banners */
}

.page-contact__hero-content {
    position: relative; /* Ensure content is above image if image is a background */
    padding: 20px;
    max-width: 800px;
    width: 100%; /* Ensure width 100% for flex item */
    box-sizing: border-box;
}

.page-contact__main-title {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-contact__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #E0E0E0;
}

.page-contact__hero-cta.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
    color: #FFFFFF;
    min-width: 200px; /* Ensure button is not too small */
    text-align: center;
}

.page-contact__hero-cta.btn:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

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

.page-contact__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
}

.page-contact__section-description {
    font-size: 1.1rem;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: #FFFFFF; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #D6E2FF; /* Border */
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: calc(100% - 20px); /* Adjust for padding */
    padding: 12px 10px;
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 5px;
    font-size: 1rem;
    color: #000000; /* Custom Color_1776249996415 */
    background-color: #FFFFFF;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #6FA3FF; /* Auxiliary color for placeholders */
    opacity: 0.7;
}

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

.page-contact__submit-btn.btn {
    display: block;
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
    color: #FFFFFF;
    text-decoration: none; /* For when it's an <a> tag */
    text-align: center;
}

.page-contact__submit-btn.btn:hover {
    background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
}

/* Info Section */
.page-contact__info-section {
    padding: 60px 0;
    background-color: #E0E7F5; /* A lighter shade derived from main/aux for contrast */
}

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

.page-contact__info-card {
    background-color: #FFFFFF; /* Card BG */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #D6E2FF; /* Border */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 350px; /* Ensure cards have similar height */
}

.page-contact__info-icon {
    width: 200px; /* Minimum size requirement */
    height: 200px; /* Minimum size requirement */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-contact__info-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 10px;
}

.page-contact__info-card-text {
    font-size: 1rem;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
    flex-grow: 1; /* Push link to bottom */
}

.page-contact__info-link {
    color: #2F6BFF; /* Main color */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-contact__info-link:hover {
    color: #6FA3FF; /* Auxiliary color */
    text-decoration: underline;
}

.page-contact__info-card-address {
    font-style: normal;
    font-size: 1rem;
    color: #1F2D3D; /* Text Main */
}

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

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

.page-contact__faq-item {
    background-color: #FFFFFF; /* Card BG */
    border: 1px solid #D6E2FF; /* Border */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-contact__faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1F2D3D; /* Text Main */
    padding: 20px;
    cursor: pointer;
    position: relative;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-contact__faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #2F6BFF;
    transition: transform 0.3s ease;
}

.page-contact__faq-question.active::after {
    content: '-';
    transform: rotate(0deg); /* No rotation needed for - */
}

.page-contact__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    color: #1F2D3D; /* Text Main */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-contact__faq-answer a {
    color: #2F6BFF;
    text-decoration: none;
}

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

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-contact__hero-section {
        padding-bottom: 20px;
    }
    .page-contact__hero-image {
        aspect-ratio: 4/3; /* Adjust aspect ratio for mobile hero */
    }
    .page-contact__hero-content {
        padding: 15px;
    }
    .page-contact__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-contact__hero-description {
        font-size: 1rem;
    }
    .page-contact__hero-cta.btn {
        padding: 10px 20px;
        min-width: unset;
        width: 80%; /* Ensure CTA button is responsive */
    }
    .page-contact__section-title {
        font-size: 1.8rem;
    }
    .page-contact__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        width: calc(100% - 20px);
    }
    .page-contact__info-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__info-card {
        min-height: unset; /* Allow height to adjust */
    }
    .page-contact__faq-question {
        font-size: 1.1rem;
        padding: 15px;
    }
    .page-contact__faq-answer {
        font-size: 0.95rem;
        padding: 0 15px 15px 15px;
    }
}

/* Ensure content area images are not smaller than 200px width/height and responsive */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Specific rule for mobile images to prevent overflow */
@media (max-width: 768px) {
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
    }
    .page-contact__info-icon {
        width: 100%; /* Allow it to scale to 100% of parent width */
        height: auto;
        min-width: 200px; /* Still maintain minimum if parent allows */
        min-height: 200px;
    }
    /* Any img within .page-contact */
    .page-contact__form-section img,
    .page-contact__info-section img,
    .page-contact__faq-section img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure content images are not too small */
        min-height: 200px;
    }
}