/* style/contact.css */
/* body đã padding-top: var(--header-offset) từ shared.css; trang này không cần thêm */

.page-contact {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

.page-contact__hero-section {
  display: flex;
  flex-direction: column; /* enforce image on top, text below */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom for separation */
  background-color: #F4F7FB; /* Background */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image wrapper */
  margin-bottom: 30px; /* Space between image and text content */
}

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

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

.page-contact__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* H1 font size with clamp */
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__description {
  font-size: 1.1rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-contact__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 25px;
}

.page-contact__section-title--light {
  color: #FFFFFF;
}

.page-contact__text-block {
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-contact__text-block--light {
  color: #f0f0f0; /* Lighter text for dark backgrounds */
}

/* Contact Methods Section */
.page-contact__contact-methods-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

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

.page-contact__method-card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-contact__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  margin-bottom: 15px;
}

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

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 5px;
  background-color: #2F6BFF; /* Main Color */
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  min-width: 100px; /* Ensure minimum width for social icons */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__social-icon:hover {
  background-color: #6FA3FF; /* Auxiliary Color */
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient as section background */
  color: #FFFFFF;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background: #FFFFFF; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-contact__form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 8px;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 5px;
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
  background-color: #FFFFFF;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #A5C4FF; /* Glow */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #2F6BFF; /* Main Color */
  outline: none;
}

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

.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #FFFFFF;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__form-submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

.page-contact__faq-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-contact__faq-item summary {
  list-style: none; /* Remove default marker */
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: #2F6BFF; /* Main Color */
  transition: background-color 0.3s ease;
}

.page-contact__faq-item summary::-webkit-details-marker {
  display: none; /* For Webkit browsers */
}

.page-contact__faq-item summary:hover {
  background-color: #F4F7FB; /* Light hover background */
}

.page-contact__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2F6BFF; /* Main Color */
  margin-left: 15px;
}

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
}

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

.page-contact__cta-block {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-contact__cta-text {
  font-size: 1.2rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 25px;
  font-weight: 500;
}

/* Why Contact Section */
.page-contact__why-contact-section {
  padding: 80px 0;
  background: #2F6BFF; /* Main Color */
  color: #FFFFFF;
}

.page-contact__why-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  list-style: none;
  padding: 0;
}

.page-contact__why-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__why-item-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-contact__why-item-text {
  font-size: 0.95rem;
  color: #f0f0f0;
}

/* General Buttons */
.page-contact__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #FFFFFF;
  transition: opacity 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  background: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Main Color */
  border: 2px solid #2F6BFF; /* Main Color */
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-secondary:hover {
  background-color: #2F6BFF; /* Main Color */
  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: 2.2rem;
  }
}

@media (max-width: 768px) {
  .page-contact__container {
    padding: 0 15px;
  }

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

  .page-contact__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-contact__description {
    font-size: 1rem;
  }

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

  .page-contact__contact-methods-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__why-contact-section {
    padding: 40px 0;
  }

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

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

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
  }

  .page-contact__form-submit-btn {
    padding: 12px 20px;
    font-size: 1rem;
  }

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

  .page-contact__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  .page-contact__cta-block {
    padding: 20px;
  }

  .page-contact__cta-text {
    font-size: 1.1rem;
  }
  
  /* Mobile responsive image, video, button overrides */
  .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__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: 10px !important; /* Small top padding, not --header-offset */
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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; /* Add padding to button itself for better touch target */
    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; /* Add gap for multiple buttons */
  }
  
  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }
}

/* Ensure contrast for specific elements on different backgrounds */
.page-contact__light-bg {
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
}

.page-contact__dark-bg {
  background: #2F6BFF; /* Main Color */
  color: #FFFFFF;
}

.page-contact__dark-bg .page-contact__form-label {
  color: #FFFFFF; /* Form labels on dark background */
}

.page-contact__dark-bg .page-contact__form-input,
.page-contact__dark-bg .page-contact__form-textarea {
  background-color: rgba(255, 255, 255, 0.9); /* Slightly transparent white for inputs */
  border-color: rgba(255, 255, 255, 0.3);
  color: #1F2D3D;
}

.page-contact__dark-bg .page-contact__form-input::placeholder,
.page-contact__dark-bg .page-contact__form-textarea::placeholder {
  color: #6FA3FF; /* Auxiliary Color for placeholders */
}