/* style/contact.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --bg-color-main: #08160F;
  --bg-color-card: #11271B;
  --text-color-main: #F2FFF6;
  --text-color-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-contact {
  font-family: Arial, sans-serif;
  color: var(--text-color-main);
  background-color: var(--bg-color-main);
  line-height: 1.6;
}

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

/* Hero Section */
.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 */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

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

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-contact__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-contact__main-title {
  color: var(--gold-color);
  font-size: clamp(2em, 3.5vw, 3.5em);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.7);
}

.page-contact__description {
  font-size: 1.1em;
  color: var(--text-color-main);
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.5;
}

.page-contact__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--text-color-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

/* Section Titles */
.page-contact__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 0 5px rgba(34, 199, 104, 0.3);
}

.page-contact__section-description {
  font-size: 1.1em;
  color: var(--text-color-secondary);
  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: var(--bg-color-main);
}

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

.page-contact__channel-card {
  background-color: var(--bg-color-card);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.page-contact__channel-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-contact__channel-text {
  color: var(--text-color-secondary);
  margin-bottom: 20px;
}

.page-contact__channel-button {
  display: inline-block;
  background: var(--deep-green-color);
  color: var(--text-color-main);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__channel-button:hover {
  background-color: var(--secondary-color);
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: var(--bg-color-main);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--bg-color-card);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
}

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

.page-contact__form-label {
  display: block;
  color: var(--text-color-main);
  font-weight: bold;
  margin-bottom: 8px;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--deep-green-color);
  color: var(--text-color-main);
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: var(--text-color-secondary);
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(17, 168, 78, 0.3);
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  background: var(--button-gradient);
  color: var(--text-color-main);
  padding: 15px 25px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4);
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: var(--bg-color-main);
}

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

.page-contact__faq-item {
  background-color: var(--bg-color-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-color-main);
}

.page-contact__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--primary-color);
  list-style: none;
}

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

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: "−";
}

.page-contact__faq-answer {
  padding: 0 20px 20px;
  color: var(--text-color-secondary);
  font-size: 1em;
}

/* Social Section */
.page-contact__social-section {
  padding: 60px 0;
  background-color: var(--bg-color-main);
  text-align: center;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-contact__social-button {
  display: inline-flex;
  align-items: center;
  background: var(--deep-green-color);
  color: var(--text-color-main);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__social-button:hover {
  transform: translateY(-3px);
  background-color: var(--secondary-color);
}

.page-contact__social-facebook::before,
.page-contact__social-telegram::before,
.page-contact__social-zalo::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 10px;
}

.page-contact__social-facebook::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F2FFF6"><path d="M12 2C6.477 2 2 6.477 2 12c0 5.016 3.657 9.177 8.438 9.879V14.62h-2.92v-2.677h2.92v-1.99c0-2.898 1.766-4.49 4.364-4.49 1.248 0 2.322.092 2.63.134v2.793h-1.65c-1.306 0-1.558.62-1.558 1.53V14.62h3.128l-.504 3.259h-2.624V21.88C18.343 21.177 22 17.016 22 12c0-5.523-4.477-10-10-10z"/></svg>');
}

.page-contact__social-telegram::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F2FFF6"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.35 8.16l-3.21 3.03c-.22.2-.4.32-.6.32-.2 0-.38-.12-.6-.32l-1.04-.98c-.16-.15-.36-.23-.57-.23s-.41.08-.57.23l-1.92 1.8c-.3.28-.47.66-.47 1.07V15c0 .55.45 1 1 1h.14c.24 0 .47-.09.64-.26l2.12-2.02c.16-.15.36-.23.57-.23s.41.08.57.23l2.84 2.7c.18.17.4.26.65.26h.14c.55 0 1-.45 1-1v-.8c0-.41-.17-.79-.47-1.07l-2.02-1.9-.98-.98c-.22-.2-.4-.32-.6-.32-.2 0-.38-.12-.6-.32l-3.21-3.03c-.3-.28-.47-.66-.47-1.07V7c0-.55.45-1 1-1h.14c.24 0 .47.09.64.26l2.12 2.02c.16.15.36.23.57.23s.41-.08.57-.23l2.84-2.7c.18-.17.4-.26.65-.26h.14c.55 0 1 .45 1 1v.8c0 .41-.17.79-.47 1.07z"/></svg>');
}

.page-contact__social-zalo::before {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23F2FFF6"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-1.87 14.16c-.22.2-.4.32-.6.32-.2 0-.38-.12-.6-.32l-1.04-.98c-.16-.15-.36-.23-.57-.23s-.41.08-.57.23l-1.92 1.8c-.3.28-.47.66-.47 1.07V15c0 .55.45 1 1 1h.14c.24 0 .47-.09.64-.26l2.12-2.02c.16-.15.36-.23.57-.23s.41.08.57.23l2.84 2.7c.18.17.4.26.65.26h.14c.55 0 1-.45 1-1v-.8c0-.41-.17-.79-.47-1.07l-2.02-1.9-.98-.98c-.22-.2-.4-.32-.6-.32-.2 0-.38-.12-.6-.32l-3.21-3.03c-.3-.28-.47-.66-.47-1.07V7c0-.55.45-1 1-1h.14c.24 0 .47.09.64.26l2.12 2.02c.16.15.36.23.57.23s.41-.08.57-.23l2.84-2.7c.18-.17.4-.26.65-.26h.14c.55 0 1 .45 1 1v.8c0 .41-.17.79-.47 1.07z"/></svg>');
}

.page-contact__social-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin-top: 40px;
  border-radius: 10px;
  object-fit: cover;
}

/* Why Choose Section */
.page-contact__why-choose-section {
  padding: 60px 0;
  background-color: var(--bg-color-main);
}

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

.page-contact__feature-item {
  background-color: var(--bg-color-card);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-contact__feature-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__feature-text {
  color: var(--text-color-secondary);
  line-height: 1.5;
}

.page-contact__support-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin-top: 60px;
  border-radius: 10px;
  object-fit: cover;
}

/* CTA Bottom Section */
.page-contact__cta-bottom-section {
  padding: 60px 0;
  background-color: var(--bg-color-main);
  text-align: center;
}

.page-contact__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

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

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

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

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

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

  .page-contact__hero-content {
    position: static;
    transform: none;
    background: none;
    padding: 20px 15px;
    max-width: 100%;
  }

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

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

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

  .page-contact__cta-button,
  .page-contact__channel-button,
  .page-contact__submit-button,
  .page-contact__social-button,
  .page-contact__cta-button--large {
    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__channels-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__social-section,
  .page-contact__why-choose-section,
  .page-contact__cta-bottom-section {
    padding: 40px 0;
  }

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

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

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

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

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

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

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

  .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__contact-form,
  .page-contact__faq-item,
  .page-contact__feature-item,
  .page-contact__hero-section,
  .page-contact__hero-image-wrapper,
  .page-contact__social-image,
  .page-contact__support-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
}

/* Ensure images in content areas are at least 200px where not explicitly smaller by design */
.page-contact__channel-icon,
.page-contact__social-image,
.page-contact__support-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific adjustment for hero image to prevent text overlay on small screens */
@media (max-width: 576px) {
  .page-contact__hero-section {
    flex-direction: column;
    padding-bottom: 20px;
  }
  .page-contact__hero-content {
    position: static;
    transform: none;
    background: none;
    padding: 0 15px;
  }
  .page-contact__hero-image-wrapper {
    margin-bottom: 20px;
  }
}