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

.page-contact__section {
  padding: 60px 20px;
  text-align: center;
}

.page-contact__dark-section {
  background-color: #0A4B2C; /* Deep Green for contrast */
}

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

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  position: relative;
}

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

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
}

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

.page-contact__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
}

.page-contact__btn-secondary {
  background: #11271B; /* Card BG */
  color: #2AD16F; /* From Button gradient */
  border: 2px solid #2AD16F;
}

.page-contact__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
}

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

.page-contact__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  font-weight: bold;
}

.page-contact__text-block {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__text-block strong {
  color: #F2FFF6;
}

.page-contact__introduction .page-contact__text-block {
  text-align: left;
}

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

.page-contact__channel-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-contact__card-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-contact__card-title {
  font-size: 1.8rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
}

.page-contact__card-text {
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__email-address {
  font-weight: bold;
  color: #F2FFF6;
}

.page-contact__link {
  color: #2AD16F;
  text-decoration: none;
}

.page-contact__link:hover {
  text-decoration: underline;
}

.page-contact__form-section {
  background-color: #0A4B2C; /* Deep Green */
  padding-bottom: 80px;
}

.page-contact__form {
  max-width: 700px;
  margin: 40px auto 0;
  background-color: #11271B; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  text-align: left;
}

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

.page-contact__form-label {
  display: block;
  font-size: 1.1rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  background-color: #08160F; /* Background */
  color: #F2FFF6; /* Text Main */
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #A7D9B8; /* Text Secondary */
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: #2AD16F;
  box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.3);
}

.page-contact__form-submit {
  width: auto;
  padding: 15px 40px;
  font-size: 1.1rem;
  cursor: pointer;
  border: none;
  text-align: center;
}

.page-contact__faq-section {
  background-color: #08160F; /* Background */
  padding-bottom: 80px;
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  background-color: #11271B;
  position: relative;
  user-select: none;
}

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

.page-contact__faq-item summary {
  list-style: none;
}

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

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

.page-contact__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

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

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

.page-contact__social-media-section {
  background-color: #0A4B2C; /* Deep Green */
  padding-bottom: 80px;
}

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

.page-contact__social-icon {
  display: block;
  width: 50px;
  height: 50px;
  background-color: #11271B; /* Card BG */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #2E7A4E;
}

.page-contact__social-icon:hover {
  background-color: #2AD16F;
  transform: translateY(-5px);
}

/* Placeholder icons for social media, should be replaced with actual SVG/font icons */
.page-contact__social-facebook::before,
.page-contact__social-twitter::before,
.page-contact__social-telegram::before,
.page-contact__social-zalo::before {
  content: '';
  display: block;
  width: 24px;
  height: 24px;
  background-color: #F2FFF6; /* Icon color */
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.page-contact__social-facebook::before {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M22 12c0-5.52-4.48-10-10-10S2 6.48 2 12c0 4.84 3.44 8.87 8 9.8V15H8v-3h2V9.5C10 7.57 11.57 6 13.5 6H16v3h-2c-.55 0-1 .45-1 1v2h3v3h-3v6.95c5.05-.5 9-4.76 9-9.95z"/></svg>');
}

.page-contact__social-twitter::before {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.37-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.53 7.6 3.6 5.25c-.37.63-.58 1.37-.58 2.19 0 1.49.75 2.81 1.88 3.59-.69-.02-1.34-.21-1.91-.53v.03c0 2.07 1.47 3.8 3.42 4.19-.36.1-.74.15-1.13.15-.28 0-.55-.03-.8-.08.54 1.7 2.11 2.93 3.97 2.96C11.31 19.5 9.4 20 7.35 20c-.39 0-.77-.02-1.15-.07 1.95 1.25 4.26 1.97 6.76 1.97 8.1 0 12.55-6.7 12.55-12.54 0-.19-.01-.37-.01-.56.86-.62 1.6-1.38 2.19-2.26z"/></svg>');
}

.page-contact__social-telegram::before {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm4.3 8.21c-.1-.04-.2-.07-.3-.07-.2 0-.4.1-.5.3l-1.3 2.5-1.5-1.5c-.1-.1-.2-.1-.3-.1-.1 0-.2.04-.3.1l-2.5 1.3c-.1.1-.1.2-.1.3 0 .1.04.2.1.3l1.5 1.5c.1.1.2.1.3.1.1 0 .2-.04.3-.1l2.5-1.3c.1-.1.1-.2.1-.3 0-.1-.04-.2-.1-.3l-1.5-1.5 1.3-2.5c.1-.1.1-.2.1-.3z"/></svg>');
}

.page-contact__social-zalo::before {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.3 8.21c-.1-.04-.2-.07-.3-.07-.2 0-.4.1-.5.3l-1.3 2.5-1.5-1.5c-.1-.1-.2-.1-.3-.1-.1 0-.2.04-.3.1l-2.5 1.3c-.1.1-.1.2-.1.3 0 .1.04.2.1.3l1.5 1.5c.1.1.2.1.3.1.1 0 .2-.04.3-.1l2.5-1.3c.1-.1.1-.2.1-.3 0-.1-.04-.2-.1-.3l-1.5-1.5 1.3-2.5c.1-.1.1-.2.1-.3z"/></svg>'); /* Example Zalo-like icon, replace with actual if needed */
}

.page-contact__commitment-section .page-contact__text-block {
  text-align: left;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-section {
    min-height: 450px;
  }

  .page-contact__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-contact__subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  }

  .page-contact__section {
    padding: 50px 15px;
  }

  .page-contact__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }

  .page-contact__text-block {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    min-height: 400px;
    padding-top: 10px !important;
  }

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

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

  .page-contact__subtitle {
    font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  }

  .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__channel-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-contact__card-image {
    max-width: 250px;
  }

  .page-contact__form {
    padding: 30px;
  }

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

  .page-contact__form-submit {
    width: 100%;
  }

  .page-contact__faq-question {
    padding: 18px 20px;
    font-size: 1.1rem;
  }

  .page-contact__faq-answer {
    padding: 0 20px 18px;
  }

  .page-contact__social-links {
    gap: 15px;
  }

  .page-contact__social-icon {
    width: 45px;
    height: 45px;
  }

  /* Mobile specific image handling */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__channel-card,
  .page-contact__form,
  .page-contact__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-contact__channel-card .page-contact__cta-button {
    width: auto !important; /* Allow buttons in cards to size naturally */
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-section {
    min-height: 350px;
  }

  .page-contact__main-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  .page-contact__subtitle {
    font-size: clamp(0.8rem, 3vw, 1rem);
  }

  .page-contact__section {
    padding: 40px 10px;
  }

  .page-contact__section-title {
    font-size: clamp(1.4rem, 4.5vw, 2rem);
  }

  .page-contact__text-block {
    font-size: 0.95rem;
  }

  .page-contact__form {
    padding: 25px;
  }

  .page-contact__faq-question {
    padding: 15px 18px;
    font-size: 1rem;
  }

  .page-contact__faq-answer {
    padding: 0 18px 15px;
  }

  .page-contact__social-icon {
    width: 40px;
    height: 40px;
  }
}