/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Inherit from body or shared.css */
    padding-bottom: 60px; /* Space for footer */
}

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

.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.page-contact__section-description {
    font-size: 18px;
    color: #f0f0f0; /* Slightly lighter white for descriptions */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 180px; /* Desktop: Adjust for fixed header */
    background: linear-gradient(135deg, #0a0a0a, #333333); /* Dark gradient background */
    color: #ffffff;
    overflow: hidden;
}

.page-contact__hero-title {
    font-size: 48px;
    font-weight: bold;
    color: #FFD700; /* Gold for H1 */
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 20px;
    color: #f0f0f0;
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-contact__hero-image {
    width: 100%;
    max-width: 800px;
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

/* CTA Button */
.page-contact__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: #FFD700; /* Primary gold button */
    color: #000000; /* Dark text on gold */
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-contact__cta-button:hover {
    background: #e6c200; /* Slightly darker gold on hover */
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.4);
}

.page-contact__btn-primary {
    background: #FFD700;
    color: #000000;
}

.page-contact__btn-primary:hover {
    background: #e6c200;
}

.page-contact__btn-secondary {
    background: #000000;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.page-contact__btn-secondary:hover {
    background: #FFD700;
    color: #000000;
    border-color: #e6c200;
}

/* Ways to Contact Section */
.page-contact__ways-to-contact-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Slightly lighter dark background */
    color: #ffffff;
}

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

.page-contact__method-card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-contact__card-title {
    font-size: 24px;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-contact__card-text {
    font-size: 16px;
    color: #e0e0e0;
    margin-bottom: 25px;
    min-height: 100px; /* Ensure consistent card height */
}

.page-contact__social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.page-contact__social-link {
    color: #FFD700;
    font-size: 16px;
    text-decoration: none;
    padding: 8px 15px;
    border: 1px solid #FFD700;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.page-contact__social-link:hover {
    background-color: #FFD700;
    color: #000000;
}

/* Contact Form Section */
.page-contact__contact-form-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Darker background */
    color: #ffffff;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 50px auto 0 auto;
    background: rgba(255, 255, 255, 0.05); /* Very subtle white overlay */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.1);
}

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

.page-contact__form-label {
    display: block;
    font-size: 16px;
    color: #FFD700;
    margin-bottom: 8px;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.5); /* Dark input background */
    color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFD700;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

/* FAQ容器样式 */
.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* FAQ默认状态 - 答案隐藏 */
.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px; /* Adjusted padding for better visual */
  opacity: 0;
  background: rgba(255, 215, 0, 0.05); /* Light gold tint for answer */
  color: #e0e0e0;
}

/* FAQ展开状态 - ⚠️ 使用!important和足够大的max-height确保一定能展开 */
.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use !important for priority, value large enough */
  padding: 20px !important; /* Adjusted padding for better visual */
  opacity: 1;
  background: rgba(255, 215, 0, 0.05); /* Light gold tint for answer */
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1); /* Slightly lighter background for question */
  border: 1px solid rgba(255, 215, 0, 0.3); /* Gold border */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFD700;
}

.page-contact__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

/* 问题标题样式 */
.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for FAQ question titles */
  pointer-events: none; /* Prevent h3 from blocking click events */
}

/* 切换图标 */
.page-contact__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger toggle area */
  height: 32px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: #e6c200; /* Darker gold when active */
  transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
}

/* Why Choose Us Section */
.page-contact__why-choose-us-section {
    padding: 80px 0 100px 0;
    background-color: #000000; /* Deep black background */
    color: #ffffff;
    text-align: center;
}

.page-contact__why-choose-us-image {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-contact__why-choose-us-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-contact__cta-group {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 40px;
    }
    .page-contact__section-title {
        font-size: 30px;
    }
    .page-contact__section-description {
        font-size: 16px;
    }
    .page-contact__cta-button {
        padding: 15px 35px;
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: 140px !important; /* Mobile: Adjust for fixed header */
        padding-bottom: 40px;
    }
    .page-contact__hero-title {
        font-size: 32px;
    }
    .page-contact__hero-description {
        font-size: 16px;
    }
    .page-contact__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }
    .page-contact__contact-methods {
        grid-template-columns: 1fr;
    }
    .page-contact__method-card {
        padding: 25px;
    }
    .page-contact__card-text {
        min-height: auto; /* Allow height to adjust on mobile */
    }
    .page-contact__contact-form {
        padding: 25px;
        margin-top: 30px;
    }
    .page-contact__form-group {
        margin-bottom: 20px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
        font-size: 15px;
    }
    .page-contact__form-label {
        font-size: 15px;
    }
    .page-contact__form-textarea {
        min-height: 100px;
    }
    .page-contact__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-contact__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-contact__faq-toggle {
        margin-left: 10px;
        width: 28px;
        height: 28px;
        font-size: 24px;
    }
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }
    .page-contact__cta-button {
        padding: 14px 30px;
        font-size: 16px;
    }
    .page-contact__cta-group {
        flex-direction: column;
        gap: 20px;
    }
    .page-contact__hero-image {
        margin-bottom: 30px;
    }
    .page-contact__why-choose-us-image {
        margin: 30px auto;
    }
    /* Ensure all images are responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 28px;
    }
    .page-contact__section-title {
        font-size: 24px;
    }
    .page-contact__hero-section,
    .page-contact__ways-to-contact-section,
    .page-contact__contact-form-section,
    .page-contact__faq-section,
    .page-contact__why-choose-us-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__container {
        padding: 0; /* Container padding handled by section padding */
    }
    .page-contact__contact-form {
        padding: 20px;
    }
    .page-contact__card-title {
        font-size: 20px;
    }
    .page-contact__card-text {
        font-size: 15px;
    }
    .page-contact__cta-button {
        font-size: 15px;
        padding: 12px 25px;
    }
    .page-contact__social-link {
        font-size: 14px;
        padding: 6px 10px;
    }
}