/* style/contact.css */
/* Base styles for page-contact */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Background */
    overflow-x: hidden; /* Prevent horizontal scroll on desktop too */
}

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

.page-contact__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 20px;
    margin-top: 40px;
}

.page-contact__intro-text {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-contact__hero-image {
    width: 100%;
    max-height: 675px; /* Max height for hero image */
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default cover for desktop */
}

.page-contact__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-contact__main-title {
    font-size: 48px;
    font-weight: 800;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__description {
    font-size: 20px;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

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

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

.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: transparent;
    color: #11A84E; /* Main Color */
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #11A84E; /* Border color */
    cursor: pointer;
    margin-left: 20px;
    max-width: 100%; /* Ensure button adapts */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
    background: #11A84E; /* Main Color */
    color: #F2FFF6; /* Text Main */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Contact Methods Section */
.page-contact__info-section {
    padding: 60px 0;
    margin-bottom: 60px;
}

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

.page-contact__method-card {
    background: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #F2FFF6;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__method-card img {
    width: 200px; /* Min size requirement */
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 50%; /* Make them circular */
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.3); /* Glow */
}

.page-contact__card-title {
    font-size: 24px;
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-contact__card-description {
    font-size: 16px;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 25px;
    flex-grow: 1; /* Ensure descriptions take available space */
}

.page-contact__operating-hours {
    background: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: #F2FFF6;
}

.page-contact__hours-title {
    font-size: 26px;
    font-weight: 700;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
}

.page-contact__hours-text {
    font-size: 18px;
    color: #A7D9B8; /* Text Secondary */
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    margin-bottom: 60px;
    background-color: #0A4B2C; /* Deep Green for a subtle change */
}

.page-contact__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    background: #11271B; /* Card BG */
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-contact__form-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.page-contact__form-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.page-contact__contact-form {
    flex: 1;
    min-width: 350px;
}

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

.page-contact__form-label {
    display: block;
    font-size: 16px;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 8px;
    text-align: left;
}

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

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #A7D9B8; /* Text Secondary */
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    outline: none;
    border-color: #F2C14E; /* Gold */
    box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.3);
}

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

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

.page-contact__faq-image {
    text-align: center;
    margin-bottom: 40px;
}

.page-contact__faq-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
    margin: 0 auto;
}

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

/* FAQ styles from template */
details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  color: #F2FFF6; /* Text Main */
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #0A4B2C; /* Deep Green */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 0 0 5px 5px;
  color: #A7D9B8; /* Text Secondary */
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    text-align: center;
    background: #0A4B2C; /* Deep Green */
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__dark-section {
    background: #0A4B2C; /* Deep Green */
    color: #F2FFF6; /* Text Main */
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    width: 100%; /* For responsive check */
    max-width: 800px; /* Limit width */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 40px;
    }
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__contact-methods {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-contact__form-wrapper {
        flex-direction: column;
    }
    .page-contact__form-image,
    .page-contact__contact-form {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 849px) {
    /* HERO 主图区域: 移动 object-fit:contain !important; aspect-ratio:unset; 禁止 cover 裁切两侧; */
    .page-contact__hero-image img {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        max-height: 400px; /* Adjust max height for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-contact__container {
        padding: 0 15px !important; /* Ensure padding on mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-contact__hero-section {
        padding-top: 10px;
        margin-bottom: 40px;
    }
    .page-contact__main-title {
        font-size: 32px;
        line-height: 1.3;
    }
    .page-contact__description {
        font-size: 16px;
    }

    /* 产品展示图区域 (General grid adaptability) */
    .page-contact__contact-methods {
        grid-template-columns: 1fr; /* Single column for contact methods */
        gap: 20px;
    }
    .page-contact__method-card img {
        
        
    }

    /* 装饰主标题 + 长文 SEO 区 (general text blocks) */
    .page-contact__section-title {
        font-size: 28px;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-contact__intro-text {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-contact__faq-qtext {
        font-size: 15px;
    }
    .page-contact__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-contact__faq-item summary.page-contact__faq-question {
        padding: 15px;
    }
    details.page-contact__faq-item .page-contact__faq-answer {
        padding: 0 15px 15px;
    }

    /* 通用图片与容器 */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__form-image img,
    .page-contact__faq-image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

    /* Form specific adjustments */
    .page-contact__form-wrapper {
        padding: 20px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }
}