/* style/contact.css */

/* Base styles */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Text Main */
    background-color: #F5F7FA; /* Background */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #E53935; /* Main color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-contact__section-title--light {
    color: #ffffff;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-button--primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button gradient */
    color: #ffffff;
    border: none;
}

.page-contact__cta-button--primary:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-contact__cta-button--secondary {
    background: #ffffff;
    color: #E53935; /* Main color */
    border: 2px solid #E53935; /* Main color */
}

.page-contact__cta-button--secondary:hover {
    transform: translateY(-2px);
    background: #f0f0f0;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Adjust for header offset */
    padding-bottom: 0;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero */
}

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

.page-contact__main-title {
    font-size: 3em;
    color: #E53935; /* Main color */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

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

/* Methods Section */
.page-contact__methods-section {
    padding: 60px 0;
    background-color: #F5F7FA; /* Background */
}

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

.page-contact__method-card {
    background: #FFFFFF; /* Card BG */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    border: 1px solid #E0E0E0; /* Border */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__method-icon {
    width: 100%; /* Ensure image fills card width responsively */
    height: 200px; /* Fixed height for consistency */
    object-fit: contain;
    margin-bottom: 20px;
    max-width: 300px; /* Max width for icon */
}

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

.page-contact__method-description {
    font-size: 1em;
    color: #333333;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow description to grow */
}

.page-contact__email-address,
.page-contact__phone-number,
.page-contact__working-hours {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #333333;
}

.page-contact__email-link,
.page-contact__phone-link {
    color: #E53935; /* Main color */
    text-decoration: none;
    font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
    text-decoration: underline;
}

/* Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: #E53935; /* Main color for dark section */
    color: #ffffff;
}

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

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 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: #333333; /* Text Main */
}

.page-contact__form-input,
.page-contact__form-select,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0; /* Border */
    border-radius: 5px;
    font-size: 1em;
    color: #333333;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #888888;
}

.page-contact__form-input:focus,
.page-contact__form-select:focus,
.page-contact__form-textarea:focus {
    border-color: #E53933; /* Main color */
    outline: none;
    box-shadow: 0 0 5px rgba(229, 57, 51, 0.5);
}

.page-contact__form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23E53935%22%20d%3D%22M287%20197.3l-136.5-136.5c-4.7-4.7-12.3-4.7-17%200L5.4%20197.3c-4.7%204.7-4.7%2012.3%200%2017l11.3%2011.3c4.7%204.7%2012.3%204.7%2017%200l106.6-106.6c4.7-4.7%2012.3-4.7%2017%200l106.6%20106.6c4.7%204.7%2012.3%204.7%2017%200l11.3-11.3c4.7-4.7%204.7-12.3%200-17z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px;
    padding-right: 30px;
}

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

.page-contact__faq-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #333333;
}

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

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

.page-contact__faq-item summary {
    list-style: none; /* Hide default marker */
}

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

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #E53935; /* Main color */
    cursor: pointer;
    background-color: #fcfcfc;
    position: relative;
}

.page-contact__faq-qtext {
    flex-grow: 1;
    margin-right: 10px;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    color: #E53935; /* Main color */
    width: 25px;
    text-align: center;
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #333333;
    line-height: 1.6;
}

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

.page-contact__faq-link {
    color: #FF5A4F; /* Accent color */
    text-decoration: none;
    font-weight: bold;
}

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

/* Commitment Section */
.page-contact__commitment-section {
    padding: 60px 0;
    text-align: center;
    background-color: #F5F7FA; /* Background */
}

.page-contact__commitment-text {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #333333;
}

/* Responsive Styles */
/* Tablet & Mobile */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.5em;
    }

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

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

    .page-contact__method-card {
        padding: 25px;
    }

    .page-contact__contact-form {
        padding: 30px;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Fixed small top padding */
        padding-bottom: 0 !important;
    }

    .page-contact__hero-image {
        max-height: 300px;
    }

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

    .page-contact__main-title {
        font-size: 2em !important;
        margin-bottom: 15px;
    }

    .page-contact__intro-text {
        font-size: 1em !important;
        margin-bottom: 20px;
    }

    /* 产品展示图区域 (General content images, here it's method cards) */
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-contact__method-card {
        padding: 20px;
    }

    .page-contact__method-icon {
        height: 150px;
        max-width: 200px;
    }

    /* 通用图片与容器 */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-contact__container,
    .page-contact__section,
    .page-contact__card,
    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

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

    /* 其他内容模块 */
    .page-contact__section-title {
        font-size: 1.8em !important;
        margin-bottom: 30px;
    }

    .page-contact__form-section {
        padding: 40px 0;
    }

    .page-contact__contact-form {
        padding: 25px;
    }

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

    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
    }

    .page-contact__faq-intro,
    .page-contact__form-description,
    .page-contact__commitment-text {
        font-size: 0.95em;
    }
}