/* style/contact.css */

/* Variables */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f5f5f5;
  --background-white: #ffffff;
  --border-light: #e0e0e0;
}

/* Base styles for the page-contact scope */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--background-white); /* Assuming body background is light */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  color: var(--text-light);
  text-align: center;
  overflow: hidden;
}

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

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Slightly darken image for text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-contact__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-contact__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-contact__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-contact__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: var(--background-white);
  color: var(--text-dark);
}

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

.page-contact__method-card {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background-color: var(--background-white);
  color: var(--text-dark);
}

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

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

.page-contact__email-address,
.page-contact__phone-number {
  font-size: 1.1em;
  font-weight: bold;
  color: var(--text-dark);
}

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

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__text-block {
  color: var(--text-light);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 50px auto 0;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-contact__form-label {
  display: block;
  font-size: 1.1em;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  background-color: rgba(255, 255, 255, 0.3);
}

.page-contact__submit-button {
  width: 100%;
  background-color: var(--login-color);
  border-color: var(--login-color);
  color: var(--text-light);
  font-size: 1.2em;
  padding: 15px 20px;
}

.page-contact__submit-button:hover {
  background-color: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
}

/* Social Section */
.page-contact__social-section {
  padding: 80px 0;
  background-color: var(--background-white);
  color: var(--text-dark);
}

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

.page-contact__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-size: 1.5em;
  text-decoration: none;
  transition: transform 0.3s ease;
  overflow: hidden;
  text-indent: -9999px; /* Hide text, use background for icon */
  position: relative;
}

.page-contact__social-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
}

.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="white"><path d="M12 2C6.477 2 2 6.477 2 12c0 5.016 3.657 9.155 8.441 9.873V14.89h-2.54v-2.923h2.54v-2.196c0-2.515 1.492-3.905 3.774-3.905 1.087 0 2.24.193 2.24.193v2.465h-1.26c-1.247 0-1.638.775-1.638 1.57v1.89h2.774l-.443 2.923h-2.331v6.983C18.343 21.155 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="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.318 8.16l-3.235 2.936c-.09.082-.192.115-.294.115-.102 0-.204-.033-.294-.115L8.74 9.158c-.18-.163-.228-.42-.12-.647.108-.227.35-.35.59-.35h4.63c.24 0 .482.123.59.35.108.227.06.484-.12.647zM12 14.16c-.052 0-.104-.017-.156-.05L8.53 11.59c-.09-.082-.192-.115-.294-.115-.102 0-.204.033-.294.115L6.5 13.06c-.18.163-.228.42-.12.647.108.227.35.35.59.35h4.63c.24 0 .482.123.59.35.108.227.06.484-.12.647z"/></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="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.846 12.428c-.207-.12-.472-.182-.746-.182-.274 0-.539.062-.746.182-.207.12-.34.33-.34.568v.004c0 .238.133.448.34.568.207.12.472.182.746.182.274 0 .539-.062.746-.182.207-.12.34-.33.34-.568v-.004c0-.238-.133-.448-.34-.568zm-2.58-3.024c-.207-.12-.472-.182-.746-.182-.274 0-.539.062-.746.182-.207.12-.34.33-.34.568v.004c0 .238.133.448.34.568.207.12.472.182.746.182.274 0 .539-.062.746-.182.207-.12.34-.33.34-.568v-.004c0-.238-.133-.448-.34-.568zm-2.58-3.024c-.207-.12-.472-.182-.746-.182-.274 0-.539.062-.746.182-.207.12-.34.33-.34.568v.004c0 .238.133.448.34.568.207.12.472.182.746.182.274 0 .539-.062.746-.182.207-.12.34-.33.34-.568v-.004c0-.238-.133-.448-.34-.568zM12 4c-4.411 0-8 3.589-8 8s3.589 8 8 8 8-3.589 8-8-3.589-8-8-8zm.72 13.784c-.274 0-.539-.062-.746-.182-.207-.12-.34-.33-.34-.568v-.004c0-.238.133-.448.34-.568.207-.12.472-.182.746-.182.274 0 .539.062.746.182.207.12.34.33.34.568v.004c0 .238-.133.448-.34-.568z"/></svg>');
}

.page-contact__social-twitter::before {
  background-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.34-1.6.56-2.47.65.88-.53 1.56-1.37 1.88-2.37-.83.49-1.75.85-2.73 1.05-.78-.83-1.89-1.35-3.13-1.35-2.37 0-4.3 1.93-4.3 4.3 0 .34.04.67.11.98C8.7 8.7 5.77 7.15 3.82 4.48c-.37.64-.58 1.38-.58 2.18 0 1.49.76 2.81 1.91 3.58-.7-.02-1.37-.21-1.95-.5v.05c0 2.09 1.49 3.83 3.47 4.22-.36.1-.74.15-1.13.15-.27 0-.53-.02-.79-.08.55 1.72 2.14 2.97 4.03 3.01-1.48 1.16-3.35 1.85-5.38 1.85-.35 0-.69-.02-1.03-.06C4.4 19.95 6.47 20 8.57 20c7.85 0 12.15-6.5 12.15-12.15 0-.18-.01-.35-.01-.52.83-.6 1.55-1.36 2.12-2.22z"/></svg>');
}

.page-contact__social-icon:hover {
  transform: translateY(-5px);
}

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

.page-contact__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__faq-item {
  background-color: var(--background-white);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
  overflow: hidden;
  color: var(--text-dark);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: rgba(var(--primary-color), 0.05);
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color);
  margin-left: 10px;
}

.page-contact__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--text-dark);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
}

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

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-contact__cta-section .page-contact__section-title,
.page-contact__cta-section .page-contact__text-block {
  color: var(--text-light);
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Images */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto; /* Center images */
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-contact__image-display {
  margin-top: 50px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Dark/Light Backgrounds */
.page-contact__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-contact__light-bg {
  background-color: var(--background-white);
  color: var(--text-dark);
}

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

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

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

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-contact__hero-description {
    font-size: 1em;
  }

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

  .page-contact__text-block {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

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

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

  .page-contact__form-section,
  .page-contact__info-section,
  .page-contact__social-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 50px 0;
  }

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

  .page-contact__form-label {
    font-size: 1em;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }

  .page-contact__submit-button {
    font-size: 1.1em;
    padding: 12px 15px;
  }

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

  .page-contact__social-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2em;
  }

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

  .page-contact__faq-toggle {
    font-size: 1.3em;
  }

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

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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,
  .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;
    overflow: hidden !important;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* General image styling for content areas to ensure minimum size */
.page-contact img:not(.page-contact__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Ensure no filter is applied to images */
.page-contact img {
  filter: none; /* Remove any potential filter */
}