/* style/contact.css */

/* --- Base Styles & Layout --- */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color, based on dark background */
  background-color: var(--background); /* Overall page background */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-secondary);
}

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding */
  background-color: var(--deep-green); /* Ensure a background for content */
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Min size */
}

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

.page-contact__main-title {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.15em;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* --- Buttons --- */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-contact__btn-secondary {
  background: transparent;
  color: #11A84E; /* Main color */
  border: 2px solid #11A84E; /* Main color */
}

.page-contact__btn-secondary:hover {
  background: rgba(17, 168, 78, 0.1);
  color: #2AD16F; /* Lighter green */
  border-color: #2AD16F;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* --- Dark Section --- */
.page-contact__dark-section {
  background-color: var(--card-bg); /* Darker background for contrast */
  padding: 60px 0;
}

/* --- Contact Methods Section --- */
.page-contact__contact-methods-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-contact__method-card {
  background-color: var(--background); /* Dark background for card */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.page-contact__method-icon {
  width: 100%;
  max-width: 200px; /* Larger icon size */
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  min-height: 200px; /* Min size */
}

.page-contact__method-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 15px;
}

.page-contact__method-description {
  color: var(--text-secondary);
  margin-bottom: 25px;
  flex-grow: 1; /* Push button to bottom */
}

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

.page-contact__faq-list {
  margin-top: 40px;
}

.page-contact__faq-item {
  background-color: var(--card-bg); /* Dark background for FAQ item */
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid var(--border);
  color: var(--text-main);
}

.page-contact__faq-item summary {
  list-style: none; /* Remove default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
}

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-contact__faq-qtext {
  flex-grow: 1;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: var(--glow);
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
}

.page-contact__faq-answer p {
  margin: 0;
  color: var(--text-secondary);
}

/* --- Responsibility Section --- */
.page-contact__responsibility-section {
  padding: 60px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-contact__responsibility-section .page-contact__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-contact__responsibility-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px; /* Min size */
  min-height: 200px; /* Min size */
}

.page-contact__responsibility-content {
  flex: 1;
  text-align: left;
}

.page-contact__responsibility-content .page-contact__section-title,
.page-contact__responsibility-content .page-contact__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* --- VIP Section --- */
.page-contact__vip-section {
  padding: 60px 0;
  background-color: var(--background);
}

.page-contact__vip-section .page-contact__container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row-reverse; /* Image on right */
}

.page-contact__vip-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  min-width: 200px; /* Min size */
  min-height: 200px; /* Min size */
}

.page-contact__vip-content {
  flex: 1;
  text-align: left;
}

.page-contact__vip-content .page-contact__section-title,
.page-contact__vip-content .page-contact__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

/* --- Address Section --- */
.page-contact__address-section {
  padding: 60px 0;
  text-align: center;
}

.page-contact__address-info {
  margin-top: 30px;
  font-size: 1.1em;
  color: var(--text-secondary);
}

.page-contact__address-info strong {
  color: var(--text-main);
}

/* --- Global Image/Video/Button Responsiveness (Important) --- */
.page-contact img,
.page-contact video {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__video-section,
.page-contact__video-container,
.page-contact__video-wrapper,
.page-contact__section,
.page-contact__card,
.page-contact__container,
.page-contact__cta-buttons,
.page-contact__button-group,
.page-contact__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Media Queries for Mobile --- */
@media (max-width: 768px) {
  .page-contact__section-title {
    font-size: 2em;
  }

  .page-contact__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-contact__hero-section {
    padding-bottom: 40px;
  }

  .page-contact__main-title {
    font-size: 2.2em; /* Use clamp if needed, but avoid fixed large values */
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__hero-image {
    min-height: 250px; /* Adjust min height for mobile */
  }

  .page-contact__contact-methods-section,
  .page-contact__faq-section,
  .page-contact__responsibility-section,
  .page-contact__vip-section,
  .page-contact__address-section {
    padding: 40px 0;
  }

  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-contact__method-icon {
    max-width: 150px;
    min-height: 150px; /* Adjust min height for mobile */
  }

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

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

  .page-contact__responsibility-section .page-contact__container,
  .page-contact__vip-section .page-contact__container {
    flex-direction: column; /* Stack content vertically */
  }

  .page-contact__responsibility-image,
  .page-contact__vip-image {
    max-width: 100%;
    min-height: 250px; /* Adjust min height for mobile */
  }

  .page-contact__responsibility-content,
  .page-contact__vip-content {
    text-align: center;
  }

  .page-contact__responsibility-content .page-contact__section-title,
  .page-contact__responsibility-content .page-contact__section-description,
  .page-contact__vip-content .page-contact__section-title,
  .page-contact__vip-content .page-contact__section-description {
    text-align: center;
  }

  /* --- Forced Mobile Responsiveness for all images, videos, buttons, and containers --- */
  .page-contact img,
  .page-contact video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper,
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-contact__video-section {
    padding-top: 10px !important; /* body已承担--header-offset */
  }

  .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;
    padding-right: 15px;
  }

  .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;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for buttons if needed */
  }
}

/* --- Color Variables & Smart Contrast --- */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Ensure default text colors on various backgrounds */
.page-contact__dark-bg {
  color: var(--text-main); /* Deep green background, light text */
}

.page-contact__light-bg {
  color: #333333; /* For any hypothetical light background, use dark text */
  background: #ffffff;
}

/* Specific content area text colors */
.page-contact p,
.page-contact li {
  color: var(--text-secondary);
}

.page-contact__main-title,
.page-contact__section-title,
.page-contact__method-title,
.page-contact__address-info strong {
  color: var(--text-main);
}

/* Links within text */
.page-contact a:not([class*="btn"]) {
  color: var(--secondary-color);
  text-decoration: underline;
}
.page-contact a:not([class*="btn"]):hover {
  color: var(--glow);
}

/* Emergency contrast fix (if needed, though variables should handle it) */
.page-contact__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-contact__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}