/* style/contact.css */
.page-contact {
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  padding-top: 10px; /* Adhere to fixed header spacing rule */
  padding-bottom: 40px;
  text-align: center;
  background-color: #0A0A0A;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px;
  margin-bottom: 20px;
}

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

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

.page-contact__hero-description {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-contact__section-title {
  font-size: 2.5em;
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Channels Section */
.page-contact__channels-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

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

.page-contact__channel-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__channel-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin: 0 auto 20px auto;
  display: block;
  object-fit: contain;
  min-width: 200px;
  min-height: 200px;
}

.page-contact__card-title {
  font-size: 1.8em;
  color: #FFD36B; /* Auxiliary color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__card-text {
  font-size: 1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__phone-number {
  font-size: 1.2em;
  color: #F2C14E;
  font-weight: bold;
  margin-top: 15px;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG for contrast */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: #0A0A0A; /* Background */
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  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: #F2C14E; /* Main color */
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #3A2A12; /* Border */
  border-radius: 5px;
  background-color: #0A0A0A; /* Background */
  color: #FFF6D6; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 246, 214, 0.6);
}

.page-contact__form-textarea {
  resize: vertical;
}

/* When to Contact Section */
.page-contact__when-to-contact {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
}

.page-contact__reason-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__reason-item {
  background-color: #111111; /* Card BG */
  margin-bottom: 15px;
  padding: 15px 25px;
  border-radius: 8px;
  border-left: 5px solid #F2C14E; /* Main color */
  color: #FFF6D6; /* Text Main */
  font-size: 1.05em;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG */
}

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  background-color: #0A0A0A; /* Background */
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #111111; /* Card BG */
  color: #FFD36B; /* Auxiliary color */
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  padding: 15px 25px;
  color: #FFF6D6; /* Text Main */
  font-size: 1em;
  line-height: 1.7;
  border-top: 1px solid #3A2A12; /* Border */
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 0;
  background-color: #0A0A0A; /* Background */
  text-align: center;
}

.page-contact__commitment-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  margin: 0 auto 30px auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  min-width: 200px;
  min-height: 200px;
}

/* Buttons */
.page-contact__cta-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text for contrast */
  border: none;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background-color: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E; /* Main color */
  margin-top: 10px;
}

.page-contact__btn-secondary:hover {
  background-color: #F2C14E; /* Main color */
  color: #111111; /* Card BG */
}

.page-contact__channel-card .page-contact__cta-button {
  width: calc(100% - 20px); /* Adjust for padding */
  margin-left: 10px;
  margin-right: 10px;
}

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

  .page-contact__section-title {
    font-size: 2em;
  }

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

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Mandatory: Top Carousel (even if not used, placeholder for CSS) */
  .page-contact__hero-carousel-section {
    padding-top: 10px !important; /* Ensure minimal top padding */
    padding-bottom: 20px;
  }

  /* Mandatory: Operation Guide Box + Five Team Vertical Cards (placeholder for CSS) */
  .page-contact__guide-box {
    padding: 10px;
  }
  .page-contact__guide-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__guide-card {
    flex: 0 0 100%;
    max-width: 100%;
    padding-top: 0 !important;
  }
  .page-contact__guide-card img {
    aspect-ratio: 250/350;
    object-fit: contain;
    width: 100%;
    height: auto;
  }

  /* Mandatory: home_content Box (placeholder for CSS) */
  .page-contact__home-content-box {
    max-width: 100% !important;
    height: auto !important;
    margin: 0;
    padding: 10px;
  }
  .page-contact__home-content-inner {
    height: auto !important;
    overflow: visible !important;
  }

  /* Mandatory: Blog Card Section (placeholder for CSS) */
  .page-contact__blog-section {
    padding: 30px 0;
  }
  .page-contact__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* General images and buttons (fully implemented) */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

  .page-contact__hero-image {
    max-height: 300px;
  }

  .page-contact__main-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

  .page-contact__channels-section,
  .page-contact__form-section,
  .page-contact__when-to-contact,
  .page-contact__faq-section,
  .page-contact__commitment-section {
    padding: 30px 0;
  }

  .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-contact__channel-card {
    padding: 20px;
  }

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

  .page-contact__card-text {
    font-size: 0.95em;
  }

  .page-contact__contact-form {
    padding: 20px;
  }

  .page-contact__form-label {
    font-size: 1em;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  .page-contact__reason-item {
    padding: 12px 20px;
    font-size: 0.95em;
  }

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

  .page-contact__faq-answer {
    padding: 12px 20px;
    font-size: 0.95em;
  }

  .page-contact__cta-button {
    padding: 10px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__channel-card .page-contact__cta-button {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Ensure buttons in a group wrap */
  .page-contact__channel-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .page-contact__channel-card a.page-contact__cta-button {
    margin-bottom: 10px;
  }
  .page-contact__channel-card a.page-contact__cta-button:last-child {
    margin-bottom: 0;
  }
}