/* style/contact.css */
/* body đã padding-top: var(--header-offset) từ shared.css */

:root {
  --mv88-blue: #26A9E0;
  --mv88-white: #FFFFFF;
  --mv88-orange-login: #EA7C07;
  --mv88-black: #000000;
  --body-bg-color: #0a0a0a;
  --text-light: #ffffff;
  --text-dark: #333333;
}

.page-contact {
  color: var(--text-light); /* Body background is dark, so text is light */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  overflow: hidden;
  background-color: var(--body-bg-color); /* Match body background for seamless blend */
}

.page-contact__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle overlay to ensure text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for text */
  border-radius: 8px;
}

.page-contact__hero-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--mv88-white);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1rem;
  color: var(--mv88-white);
  margin-bottom: 30px;
}

.page-contact__hero-cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-contact__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.3;
}

.page-contact__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.5;
}

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

/* Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: var(--mv88-white); /* Light background for this section */
  color: var(--text-dark); /* Dark text on light background */
}

.page-contact__info-section .page-contact__section-title,
.page-contact__info-section .page-contact__section-description {
  color: var(--text-dark);
}

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

.page-contact__method-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 350px;
}

.page-contact__method-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-contact__method-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--mv88-blue);
  margin-bottom: 10px;
}

.page-contact__method-text {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-contact__method-detail {
  font-size: 1rem;
  font-weight: 500;
  color: var(--mv88-orange-login);
  margin-top: 10px;
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: var(--body-bg-color); /* Dark background */
  color: var(--text-light); /* Light text */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 8px;
}

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

.page-contact__form-label {
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--mv88-white);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.4);
  color: var(--mv88-white);
  font-size: 1rem;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--mv88-blue);
  box-shadow: 0 0 0 2px rgba(38, 169, 224, 0.5);
}

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

.page-contact__form-submit-button {
  width: auto;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: var(--mv88-white); /* Light background */
  color: var(--text-dark); /* Dark text */
}

.page-contact__faq-section .page-contact__section-title,
.page-contact__faq-section .page-contact__section-description {
  color: var(--text-dark);
}

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

.page-contact__faq-item {
  background: #f9f9f9;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--mv88-blue);
  cursor: pointer;
  border-bottom: 1px solid #eee;
  list-style: none;
}

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

.page-contact__faq-item[open] .page-contact__faq-question {
  border-bottom: 1px solid #ddd;
}

.page-contact__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--mv88-orange-login);
}

.page-contact__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

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

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

.page-contact__faq-answer a {
  color: var(--mv88-blue);
  text-decoration: underline;
}

/* Why Choose Us Section */
.page-contact__why-choose-us-section {
  padding: 80px 0;
  background-color: var(--mv88-blue); /* Brand color background */
  color: var(--text-light); /* Light text */
}

.page-contact__why-choose-us-section .page-contact__section-title,
.page-contact__why-choose-us-section .page-contact__section-description {
  color: var(--text-light);
}

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

.page-contact__reason-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__reason-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-contact__reason-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--mv88-white);
  margin-bottom: 10px;
}

.page-contact__reason-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.page-contact__cta-container {
  text-align: center;
  margin-top: 60px;
}

/* Buttons */
.page-contact__btn-primary {
  background-color: var(--mv88-orange-login);
  color: var(--mv88-white);
  border: 2px solid transparent;
}

.page-contact__btn-primary:hover {
  background-color: #d16b06;
}

.page-contact__btn-secondary {
  background-color: var(--mv88-white);
  color: var(--mv88-blue);
  border: 2px solid var(--mv88-blue);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-contact__btn-secondary:hover {
  background-color: var(--mv88-blue);
  color: var(--mv88-white);
}

/* General image sizing */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Enforce min size for content images if needed, but not global */
  /* If an image is meant to be smaller than 200px, it should be an icon, which is forbidden. */
  /* Ensure no content images are below 200x200px display size */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-contact__section-title {
    font-size: clamp(1.6rem, 4vw, 2.5rem);
  }
}

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

  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__why-choose-us-section {
    padding: 40px 0;
  }

  .page-contact__hero-content {
    padding: 15px;
  }

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

  .page-contact__method-card {
    min-height: auto;
  }

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

  .page-contact__faq-question {
    font-size: 1.05rem;
    padding: 15px 20px;
  }

  .page-contact__faq-answer {
    padding: 10px 20px 15px 20px;
  }

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

  /* Mobile specific overrides for images, videos, buttons, and containers */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure content images fill container if needed */
    height: auto !important;
    display: block !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__method-card,
  .page-contact__reason-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__hero-section {
    padding-top: 10px !important; /* body đã xử lý --header-offset */
  }

  /* Buttons responsive */
  .page-contact__hero-cta-button,
  .page-contact__form-submit-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;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-contact__cta-container,
  .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;
  }
  .page-contact__cta-container a {
      margin: 0 auto;
  }
  .page-contact__contact-methods a[class*="btn"] {
      width: auto !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-contact__hero-description {
    font-size: 1rem;
  }
  .page-contact__hero-cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-contact__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .page-contact__faq-question {
    font-size: 1rem;
  }
  .page-contact__method-card,
  .page-contact__reason-card {
    padding: 20px;
  }
}