/* style/contact.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần lặp lại */
.page-contact {
  background-color: var(--bg-color, #0D0E12); /* Default to dark background if var not set */
  color: var(--text-main, #FFF3E6); /* Default to light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  overflow: hidden;
  background-color: #0D0E12;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-contact__hero-content {
  text-align: center;
  padding: 20px;
  max-width: 900px;
  margin-top: 20px;
  color: #FFF3E6;
}

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

.page-contact__intro-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #FFF3E6;
}

.page-contact__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #FFB04D;
}

/* Contact Methods Section */
.page-contact__contact-methods {
  background-color: #0D0E12; /* Background from custom colors */
  padding: 60px 0;
  color: #FFF3E6;
}

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

.page-contact__method-card {
  background-color: #17191F; /* Card BG from custom colors */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border from custom colors */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-icon {
  width: 100%; /* Ensure image uses full card width */
  max-width: 250px; /* Max width for the icon */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__method-title {
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFA53A;
}

.page-contact__method-description {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-contact__contact-info {
  font-size: 1.1rem;
  font-weight: bold;
  margin-top: 15px;
  color: #FFF3E6;
}

.page-contact__contact-link {
  color: #FFA53A;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__contact-link:hover {
  color: #FFB04D;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #ffffff; /* Light background for contrast */
  padding: 60px 0;
  color: #333333; /* Dark text for light background */
}

.page-contact__faq-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

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

.page-contact__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-contact__faq-item summary {
  list-style: none; /* Hide default marker */
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #FFA53A; /* Use auxiliary color for summary */
  color: #ffffff; /* White text for auxiliary background */
  transition: background-color 0.3s ease;
}

.page-contact__faq-item summary:hover {
  background-color: #FFB04D;
}

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

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

.page-contact__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.7;
  background-color: #ffffff;
  color: #333333;
}

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

.page-contact__cta-faq {
  text-align: center;
}

/* Contact Form Section */
.page-contact__form-section {
  background-color: #0D0E12; /* Background from custom colors */
  padding: 60px 0;
  color: #FFF3E6;
}

.page-contact__form-intro {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF3E6;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #17191F; /* Card BG from custom colors */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border from custom colors */
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #A84F0C; /* Border from custom colors */
  border-radius: 5px;
  background-color: #0D0E12; /* Darker input background */
  color: #FFF3E6;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 243, 230, 0.7);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #FFB04D;
  box-shadow: 0 0 0 3px rgba(255, 176, 77, 0.5);
}

/* Working Hours Section */
.page-contact__working-hours {
  background-color: #17191F; /* Card BG from custom colors */
  padding: 40px 0;
  text-align: center;
  color: #FFF3E6;
  border-top: 1px solid #A84F0C;
  border-bottom: 1px solid #A84F0C;
}

.page-contact__hours-description {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #FFF3E6;
}

.page-contact__hours-time {
  font-size: 2.5rem;
  font-weight: bold;
  color: #FFB04D;
}

/* Conclusion Section */
.page-contact__conclusion {
  background-color: #ffffff; /* Light background for contrast */
  padding: 60px 0;
  text-align: center;
  color: #333333;
}

.page-contact__conclusion-text {
  font-size: 1.2rem;
  max-width: 900px;
  margin: 0 auto;
  color: #333333;
}

/* Buttons */
.page-contact__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  background-color: transparent;
  color: #FF8C1A;
  border: 2px solid #FF8C1A;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
}

.page-contact__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-contact__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
  .page-contact__methods-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__container {
    padding: 0 15px;
  }
  .page-contact__hero-section,
  .page-contact__contact-methods,
  .page-contact__faq-section,
  .page-contact__form-section,
  .page-contact__working-hours,
  .page-contact__conclusion {
    padding: 40px 0;
  }
  .page-contact__hero-content {
    margin-top: 15px;
  }
  .page-contact__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-contact__intro-text,
  .page-contact__faq-intro,
  .page-contact__form-intro,
  .page-contact__hours-description,
  .page-contact__conclusion-text {
    font-size: 1rem;
  }
  .page-contact__method-card,
  .page-contact__contact-form {
    padding: 25px;
  }
  .page-contact__method-title {
    font-size: 1.4rem;
  }
  .page-contact__faq-item summary {
    padding: 18px 20px;
    font-size: 1.1rem;
  }
  .page-contact__faq-answer {
    padding: 18px 20px;
  }
  .page-contact__hours-time {
    font-size: 2rem;
  }

  /* Mobile image, video, button, and container responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  .page-contact__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, small decorative padding */
  }
  .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 {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}