/* style/contact.css */

/* --- Base Styles for Contact Page --- */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#1a1a1a), so text should be light */
  background-color: transparent; /* Inherit from body or shared, ensuring text contrast */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Ensure contrast on dark background */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure header offset */
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.5); /* Darken background image for text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
  border-radius: 8px;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight title with yellow */
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.3em;
  line-height: 1.5;
}

/* --- Contact Info Section --- */
.page-contact__contact-info {
  background-color: #1a1a1a; /* Dark background for this section */
  padding: 80px 0;
}

.page-contact__dark-section {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 80px 0;
}

.page-contact__light-bg {
  background-color: #2a2a2a; /* Slightly lighter dark for cards */
  color: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

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

.page-contact__item-title {
  font-size: 1.8em;
  color: #017439; /* Brand color for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__item-text {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 10px;
  flex-grow: 1; /* Allows text to take available space */
}

.page-contact__item-detail {
  font-size: 1.2em;
  color: #FFFF00; /* Highlight contact details */
  font-weight: bold;
  margin-top: 10px;
}

/* --- Contact Form Section --- */
.page-contact__form-section {
  background-color: #0d0d0d; /* Slightly darker background */
  padding: 80px 0;
  color: #ffffff;
}

.page-contact__form-container {
  display: flex;
  gap: 40px;
  align-items: center;
  background-color: #1a1a1a; /* Darker background for form container */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-contact__form-content {
  flex: 1;
}

.page-contact__form-title {
  font-size: 2.2em;
  color: #017439; /* Brand color for form title */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__form-description {
  font-size: 1.1em;
  color: #e0e0e0;
  margin-bottom: 30px;
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

.page-contact__form-label {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid #017439; /* Brand color border */
  border-radius: 6px;
  background-color: #2a2a2a; /* Dark input background */
  color: #ffffff;
  font-size: 1em;
  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: #FFFF00; /* Yellow on focus */
  box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.3);
  outline: none;
}

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

.page-contact__form-submit-btn {
  background-color: #C30808; /* Red for submit button */
  color: #FFFF00; /* Yellow text for submit button */
  padding: 15px 25px;
  border: none;
  border-radius: 6px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  text-decoration: none; /* Ensure it looks like a button */
}

.page-contact__form-submit-btn:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-contact__form-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__form-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__faq-item {
  background-color: #1a1a1a; /* Darker background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #005a2d; /* Darker shade on hover */
}

.page-contact__faq-title {
  margin: 0;
  color: #ffffff;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to form an X or minus */
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: #2a2a2a; /* Lighter dark for answer background */
  color: #e0e0e0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  font-size: 1em;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value for expansion */
  padding: 20px 25px;
}

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

.page-contact__answer-link {
  color: #FFFF00; /* Yellow link for answers */
  text-decoration: underline;
  font-weight: bold;
}

.page-contact__answer-link:hover {
  color: #e0e000;
}

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

.page-contact__location-details {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  align-items: flex-start;
}

.page-contact__map-wrapper {
  flex: 2;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
}

.page-contact__address-info {
  flex: 1;
  background-color: #2a2a2a; /* Lighter dark for address info */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Buttons (general styles) --- */
.page-contact__btn-primary {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  background-color: #005a2d;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
  text-align: center;
  border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  transform: translateY(-2px);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__form-container {
    flex-direction: column;
  }
  .page-contact__location-details {
    flex-direction: column;
  }
  .page-contact__hero-title {
    font-size: 2.5em;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-contact__hero-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-contact__info-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__form-container {
    padding: 30px;
  }
  .page-contact__form-title {
    font-size: 1.8em;
  }
  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 15px 20px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px 20px !important;
  }

  /* Mobile image, video, button adaptations */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px;
    min-height: 200px;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-container,
  .page-contact__location-details,
  .page-contact__map-wrapper,
  .page-contact__address-info,
  .page-contact__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-contact__hero-section,
  .page-contact__contact-info,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__location-section {
      padding-left: 0;
      padding-right: 0;
  }
  
  .page-contact video,
  .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 {
    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: var(--header-offset, 120px) !important;
  }
  
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"],
  .page-contact__form-submit-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;
    overflow-x: hidden !important;
  }
  
  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* Ensure no filter is applied to images */
.page-contact img {
  filter: none;
}

/* Overriding the default filter for hero image to just darken, not change color */
.page-contact__hero-image {
    filter: brightness(0.5); /* Only brightness, no color-changing filters */
}

/* Button colors from custom配色 */
.page-contact__form-submit-btn {
    background-color: #C30808; /* Red for submit button */
    color: #FFFF00; /* Yellow text for submit button */
}
.page-contact__form-submit-btn:hover {
    background-color: #e00b0b; /* Slightly darker red on hover */
}