/* style/contact.css */
/* body đã có padding-top: var(--header-offset) từ shared.css, không thêm vào đây để tránh double padding */

.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly define for consistency */
}

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

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

.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: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-contact__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-contact__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-contact__btn-primary:hover {
  background-color: #1e87c2;
  border-color: #1e87c2;
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-contact__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

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

.page-contact__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0;
}

.page-contact__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-contact__dark-section .page-contact__section-title,
.page-contact__dark-section .page-contact__section-description {
  color: #ffffff;
}

.page-contact__dark-section .page-contact__description {
  color: #f0f0f0;
}

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

.page-contact__channel-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #333333;
}

.page-contact__channel-card .page-contact__card-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__channel-card .page-contact__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-contact__channel-card .page-contact__card-text {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__email-address {
  font-weight: bold;
  color: #000000;
  margin-bottom: 20px;
}

.page-contact__social-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-contact__social-list li a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.page-contact__social-list li a:hover {
  text-decoration: underline;
}

.page-contact__guide-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 20px;
}

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

.page-contact__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  color: #ffffff;
}

.page-contact__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-contact__step-text {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-contact__form-section {
  padding: 60px 20px;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 40px;
  box-sizing: border-box;
}

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

.page-contact__form-label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333333;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #26A9E0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(38, 169, 224, 0.2);
}

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

.page-contact__faq-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 20px;
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-contact__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-contact__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

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

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

.page-contact__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  padding: 15px 25px 25px 25px;
  font-size: 1rem;
  color: #f0f0f0;
}

.page-contact__commitment-section {
  padding: 60px 20px;
}

.page-contact__commitment-list {
  max-width: 800px;
  margin: 40px auto;
  list-style: none;
  padding: 0;
}

.page-contact__commitment-list li {
  background-color: #f5f5f5;
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1.05rem;
  color: #333333;
}

.page-contact__commitment-list li strong {
  color: #26A9E0;
}

.page-contact__conclusion-text {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 30px auto 40px auto;
  color: #333333;
}

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

.page-contact__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-contact__light-bg {
  background-color: #ffffff;
  color: #333333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    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__cta-end {
    flex-direction: column;
    gap: 10px;
  }

  .page-contact__container,
  .page-contact__channel-card,
  .page-contact__step-item,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__commitment-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-contact__channel-card .page-contact__card-icon,
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-contact__section-description {
    font-size: 0.95rem;
  }

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

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

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

  .page-contact__commitment-list li {
    font-size: 0.95rem;
  }
}

/* Ensure all images adhere to min-size and no filter rules */
.page-contact img:not(.page-contact__hero-image) {
  min-width: 200px;
  min-height: 200px;
  /* filter property is strictly forbidden on all images */
}

.page-contact__hero-image {
  /* filter: brightness(0.6) is allowed here as it's for background image readability, not changing the image's inherent color */
}

/* Content area images should not be smaller than 200px */
.page-contact__content-area img,
.page-contact__channel-card img,
.page-contact__step-item img {
    width: auto; /* Allow natural width */
    height: auto; /* Allow natural height */
    min-width: 200px; /* Enforce minimum width */
    min-height: 200px; /* Enforce minimum height */
    max-width: 100%; /* Ensure responsiveness */
    object-fit: contain; /* Or cover, depending on desired crop */
}

/* Specific rule for card icons to ensure they are not too small but still fit */
.page-contact__channel-card .page-contact__card-icon {
    width: 100px; /* Example, should still meet 200x200 if not an 'icon' */
    height: 100px; /* Example, should still meet 200x200 if not an 'icon' */
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

@media (max-width: 768px) {
  .page-contact__content-area img,
  .page-contact__channel-card img,
  .page-contact__step-item img,
  .page-contact__channel-card .page-contact__card-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }
}