/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  background-color: #0A0A0A; /* Background color from custom配色 */
  color: #FFF6D6; /* Main text color from custom配色 */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-contact__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2C14E; /* Main color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #FFF6D6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-contact__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Adjust as needed for visual separation, ensure no overlap */
  position: relative; /* Ensure content is above any potential background elements */
  z-index: 2; /* Higher z-index to ensure text is visible */
  background: rgba(17, 17, 17, 0.8); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-contact__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  color: #F2C14E;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff; /* White text for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-contact__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

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

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

.page-contact__method-card {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.2);
}

.page-contact__method-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes color */
}

.page-contact__method-title {
  font-size: 1.8em;
  color: #F2C14E;
  margin-bottom: 15px;
}

.page-contact__method-text {
  color: #FFF6D6;
  font-size: 1em;
  margin-bottom: 25px;
}

.page-contact__method-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.95em;
  transition: background 0.3s ease;
}

.page-contact__method-button:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
}

/* Office Info Section */
.page-contact__office-info {
  padding: 60px 0;
  background-color: #111111; /* Card BG color */
  border-top: 1px solid #3A2A12;
  border-bottom: 1px solid #3A2A12;
}

.page-contact__info-block {
  background-color: #0A0A0A;
  border: 1px solid #3A2A12;
  border-radius: 10px;
  padding: 30px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.page-contact__info-subtitle {
  font-size: 1.5em;
  color: #FFD36B; /* Glow color */
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-contact__info-text {
  color: #FFF6D6;
  font-size: 1.1em;
  margin-bottom: 10px;
}

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

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

.page-contact__faq-item {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: #2a2a2a;
}

.page-contact__faq-heading {
  font-size: 1.2em;
  color: #F2C14E;
  margin: 0;
  flex-grow: 1;
  text-align: left;
}

.page-contact__faq-toggle {
  font-size: 1.8em;
  color: #FFD36B;
  margin-left: 20px;
  transition: transform 0.3s ease;
  line-height: 1;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(0deg);
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
  text-align: left;
}

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

.page-contact__faq-answer p {
  margin-bottom: 1em;
}

.page-contact__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-contact__faq-button {
  margin-top: 15px;
}

/* Feedback Section */
.page-contact__feedback-section {
  padding: 60px 0;
  background-color: #0A0A0A;
}

.page-contact__feedback-form {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 10px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  font-size: 1.1em;
  color: #FFD36B; /* Glow color */
  margin-bottom: 8px;
  text-align: left;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px); /* Adjust for padding */
  padding: 12px 10px;
  background-color: #0A0A0A;
  border: 1px solid #3A2A12;
  border-radius: 5px;
  color: #FFF6D6;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-contact__submit-button:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  transform: translateY(-2px);
}

/* Why Choose Section */
.page-contact__why-choose {
  padding: 60px 0;
  background-color: #111111;
}

.page-contact__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-contact__advantage-item {
  background-color: #0A0A0A;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  padding: 25px;
  color: #FFF6D6;
  font-size: 1.05em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-contact__advantage-item:hover {
  transform: scale(1.02);
}

.page-contact__advantage-item strong {
  color: #F2C14E;
}

.page-contact__large-cta {
  margin-top: 50px;
  font-size: 1.3em;
  padding: 18px 35px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    margin-top: -80px;
  }
  .page-contact__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-contact__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding-bottom: 40px;
  }
  .page-contact__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-contact__main-title {
    font-size: clamp(1.8em, 6vw, 2.8em);
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    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__contact-methods, .page-contact__office-info, .page-contact__faq-section, .page-contact__feedback-section, .page-contact__why-choose {
    padding: 40px 0;
  }

  .page-contact__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

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

  .page-contact__method-card, .page-contact__info-block, .page-contact__feedback-form {
    padding: 20px;
  }

  .page-contact__method-title {
    font-size: 1.5em;
  }

  .page-contact__form-label {
    font-size: 1em;
  }
  .page-contact__form-input, .page-contact__form-textarea {
    width: 100%;
  }

  .page-contact__submit-button {
    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__advantage-list {
    grid-template-columns: 1fr;
  }

  /* Images 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__methods-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__cta-button, .page-contact__method-button, .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;
  }
  .page-contact__cta-buttons, .page-contact__button-group, .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-content {
    margin-top: -40px;
    padding: 20px 10px;
  }
  .page-contact__main-title {
    font-size: clamp(1.5em, 7vw, 2.5em);
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
}

/* Color Contrast Adjustments (as per Black Gold theme) */
.page-contact {
  color: #FFF6D6; /* Text Main */
}

.page-contact__card, .page-contact__method-card, .page-contact__faq-item, .page-contact__feedback-form {
  background-color: #111111; /* Card BG */
  border-color: #3A2A12; /* Border */
}

.page-contact__hero-content {
  background: rgba(17, 17, 17, 0.9); /* Slightly darker for text readability */
}

.page-contact__main-title, .page-contact__section-title, .page-contact__method-title, .page-contact__faq-heading {
  color: #F2C14E; /* Main color */
}

.page-contact__hero-description, .page-contact__section-description, .page-contact__method-text, .page-contact__info-text, .page-contact__faq-answer, .page-contact__advantage-item {
  color: #FFF6D6; /* Text Main */
}

.page-contact__info-subtitle, .page-contact__faq-toggle, .page-contact__form-label {
  color: #FFD36B; /* Glow */
}

.page-contact__cta-button, .page-contact__method-button, .page-contact__submit-button {
  color: #ffffff; /* White text on gradient buttons for contrast */
}