/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--Text-Main, #F2FFF6); /* Default text color for the page */
    background-color: var(--background-color, #08160F); /* Page background from custom palette */
}

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

.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--Text-Main, #F2FFF6);
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page-contact__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--Glow, #57E38D);
    border-radius: 2px;
}

.page-contact__section-description {
    font-size: 18px;
    color: var(--Text-Secondary, #A7D9B8);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* HERO Section */
.page-contact__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 40px;
}

.page-contact__hero-image {
    width: 100%;
    height: 500px; /* Fixed height for desktop */
    overflow: hidden;
}

.page-contact__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop */
    display: block;
    border-radius: 10px;
}

.page-contact__hero-content {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(180deg, rgba(17, 40, 27, 0.8) 0%, rgba(8, 22, 15, 0.9) 100%);
    border-radius: 10px;
    margin-top: -80px; /* Overlap with image slightly for visual appeal */
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    color: var(--Text-Main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 18px;
    color: var(--Text-Secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-button {
    display: inline-block;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 60px 0;
    background-color: var(--background-color, #08160F);
}

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

.page-contact__method-card {
    background: var(--Card-B-G, #11271B);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--Border, #2E7A4E);
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-contact__method-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
    min-width: 200px; /* Min size */
    min- /* Min size, aspect ratio will adjust */
    object-fit: cover;
}

.page-contact__card-title {
    font-size: 24px;
    color: var(--Text-Main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-contact__card-text {
    font-size: 16px;
    color: var(--Text-Secondary, #A7D9B8);
    margin-bottom: 25px;
}

.page-contact__method-button {
    display: inline-block;
    background: var(--Deep-Green, #0A4B2C);
    color: var(--Text-Main, #F2FFF6);
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: 1px solid var(--Border, #2E7A4E);
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__method-button:hover {
    background: var(--Glow, #57E38D);
    color: #000000;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: var(--background-color, #08160F);
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--Card-B-G, #11271B);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--Border, #2E7A4E);
}

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

.page-contact__form-label {
    display: block;
    font-size: 16px;
    color: var(--Text-Main, #F2FFF6);
    margin-bottom: 8px;
    font-weight: 500;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--Border, #2E7A4E);
    border-radius: 6px;
    background-color: var(--Deep-Green, #0A4B2C);
    color: var(--Text-Main, #F2FFF6);
    font-size: 16px;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: var(--Text-Secondary, #A7D9B8);
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: var(--Glow, #57E38D);
    box-shadow: 0 0 0 3px rgba(87, 227, 141, 0.3);
}

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

.page-contact__submit-button {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none; /* For <a> tag */
    font-weight: bold;
    font-size: 18px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure responsiveness */
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__submit-button:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
    background-color: var(--background-color, #08160F);
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  border: 1px solid var(--Border, #2E7A4E);
  overflow: hidden;
  background: var(--Card-B-G, #11271B);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--Text-Main, #F2FFF6);
  font-weight: 600;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: var(--Deep-Green, #0A4B2C);
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px; /* Slightly larger font */
  line-height: 1.5;
  text-align: left;
}
.page-contact__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  color: var(--Glow, #57E38D);
  flex-shrink: 0;
  margin-left: 20px; /* Increased margin */
  width: 30px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 25px;
  background: var(--Deep-Green, #0A4B2C);
  border-radius: 0 0 8px 8px;
  color: var(--Text-Secondary, #A7D9B8);
}
.page-contact__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}
.page-contact__faq-answer a {
    color: var(--Glow, #57E38D);
    text-decoration: none;
}
.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

/* Why Choose Us Section */
.page-contact__why-choose-us {
    padding: 60px 0;
    background-color: var(--background-color, #08160F);
}

.page-contact__content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.page-contact__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
    display: inline-block; /* To center the list */
}

.page-contact__feature-list li {
    font-size: 18px;
    color: var(--Text-Main, #F2FFF6);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.page-contact__list-icon {
    color: var(--Glow, #57E38D);
    font-weight: bold;
    margin-right: 10px;
    font-size: 20px;
    line-height: 1;
}

.page-contact__closing-text {
    font-size: 18px;
    color: var(--Text-Secondary, #A7D9B8);
    margin-top: 40px;
    margin-bottom: 30px;
}

.page-contact__cta-button--bottom {
    margin-top: 20px;
}

/* General image rules for content area */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive styles --- */
@media (max-width: 1024px) {
    .page-contact__hero-image {
        height: 400px;
    }
    .page-contact__hero-content {
        margin-top: -60px;
        padding: 30px 20px;
    }
    .page-contact__main-title {
        font-size: clamp(24px, 5vw, 40px);
    }
    .page-contact__hero-description {
        font-size: 16px;
    }
    .page-contact__cta-button {
        padding: 12px 25px;
        font-size: 16px;
    }
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__section-description {
        font-size: 16px;
    }
    .page-contact__methods-grid {
        gap: 20px;
    }
    .page-contact__method-card {
        padding: 20px;
    }
    .page-contact__method-card img {
        min-width: 200px;
        min-
    }
    .page-contact__card-title {
        font-size: 20px;
    }
    .page-contact__card-text {
        font-size: 15px;
    }
    .page-contact__method-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    .page-contact__contact-form {
        padding: 30px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    .page-contact__submit-button {
        padding: 12px 20px;
        font-size: 16px;
    }
    details.page-contact__faq-item summary.page-contact__faq-question {
        padding: 18px 20px;
    }
    .page-contact__faq-qtext {
        font-size: 16px;
    }
    .page-contact__faq-toggle {
        font-size: 24px;
        margin-left: 15px;
        width: 28px;
    }
    details.page-contact__faq-item .page-contact__faq-answer {
        padding: 0 20px 20px;
    }
    .page-contact__faq-answer p {
        font-size: 15px;
    }
    .page-contact__feature-list li {
        font-size: 16px;
    }
    .page-contact__closing-text {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-contact__hero-section {
        padding-top: 10px;
        margin-bottom: 30px;
    }
    .page-contact__hero-image {
        height: auto;
        aspect-ratio: unset !important;
    }
    .page-contact__hero-image img {
        object-fit: contain !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-contact__main-title {
        font-size: clamp(22px, 7vw, 36px);
        margin-bottom: 10px;
    }
    .page-contact__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-contact__cta-button {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 通用容器和图片 */
    .page-contact__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-contact__method-card img {
        min-width: 200px !important;
        min-
        object-fit: cover !important;
    }

    /* 产品展示图区域 (Contact Methods Grid acts as a similar layout) */
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-contact__method-card {
        padding: 20px;
        margin: 0 auto;
        max-width: 400px;
    }
    .page-contact__card-title {
        font-size: 20px;
    }
    .page-contact__card-text {
        font-size: 15px;
    }
    .page-contact__method-button {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Form Section */
    .page-contact__form-section {
        padding: 40px 0;
    }
    .page-contact__contact-form {
        padding: 25px;
        margin: 0 15px;
    }
    .page-contact__form-group {
        margin-bottom: 20px;
    }
    .page-contact__form-label {
        font-size: 15px;
        margin-bottom: 5px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    .page-contact__submit-button {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* FAQ Section */
    .page-contact__faq-section {
        padding: 40px 0;
    }
    .page-contact__faq-list {
        margin-top: 25px;
        margin-left: 15px;
        margin-right: 15px;
    }
    details.page-contact__faq-item summary.page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-qtext {
        font-size: 15px;
    }
    .page-contact__faq-toggle {
        font-size: 22px;
        margin-left: 15px;
        width: 25px;
    }
    details.page-contact__faq-item .page-contact__faq-answer {
        padding: 0 20px 20px;
    }
    .page-contact__faq-answer p {
        font-size: 14px;
    }

    /* Why Choose Us Section */
    .page-contact__why-choose-us {
        padding: 40px 0;
    }
    .page-contact__content-wrapper {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-contact__feature-list {
        margin-top: 20px;
    }
    .page-contact__feature-list li {
        font-size: 15px;
        margin-bottom: 10px;
    }
    .page-contact__list-icon {
        font-size: 18px;
        margin-right: 8px;
    }
    .page-contact__closing-text {
        font-size: 15px;
        margin-top: 30px;
        margin-bottom: 25px;
    }
    .page-contact__cta-button--bottom {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}