/* style/contact.css */
:root {
  --primary-color: #FF4500;
  --secondary-color: #1E90FF;
  --dark-bg-1: #0d0d0d; /* Giả định từ shared.css */
  --text-light: #ffffff;
  --text-dark: #333333;
  --card-bg: #ffffff;
  --border-light: #e0e0e0;
  --form-border: #cccccc;
}

.page-contact {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark); /* Default cho nền sáng */
  line-height: 1.6;
  background-color: var(--dark-bg-1); /* Body background từ shared.css */
  padding-top: 120px; /* Dành cho thanh điều hướng cố định */
}

.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Dành cho thanh điều hướng cố định trên desktop */
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-light);
}

.page-contact__hero-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-light);
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--card-bg);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-contact__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-dark);
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #f1f3f5; /* Nền sáng cho form */
}

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

.page-contact__card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.page-contact__contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-contact__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid var(--form-border);
  border-radius: 5px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.2);
}

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

.page-contact__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-primary:hover {
  background: #e63900;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Methods Section */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: var(--dark-bg-1);
}

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

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

.page-contact__method-card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-contact__method-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-contact__method-text {
  font-size: 0.95em;
  margin-bottom: 20px;
  color: var(--text-dark);
  flex-grow: 1;
}

.page-contact__method-link {
  display: inline-block;
  padding: 10px 20px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: 1px solid var(--secondary-color);
}

.page-contact__method-link:hover {
  background: #1a7fdc;
}

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

.page-contact__btn-secondary:hover {
  background: #1a7fdc;
  border-color: #1a7fdc;
}

.page-contact__social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.page-contact__social-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__social-link:hover {
  color: var(--primary-color);
}

/* Info Section */
.page-contact__info-section {
  padding: 60px 0;
  background-color: #f1f3f5;
}

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

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

.page-contact__info-item {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.page-contact__info-subtitle {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-contact__info-text {
  margin-bottom: 15px;
  color: var(--text-dark);
}

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

.page-contact__hours-list li {
  margin-bottom: 5px;
  color: var(--text-dark);
}

.page-contact__address {
  font-style: normal;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-contact__map-container {
  width: 100%;
  height: 250px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

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

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

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

.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-contact__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-contact__faq-question:active {
  background: #eeeeee;
}

.page-contact__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-dark);
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__card {
    padding: 30px;
  }
  .page-contact__methods-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: 100px; /* Dành cho thanh điều hướng cố định trên mobile */
  }
  .page-contact__hero-section {
    padding-top: 160px !important; /* Dành cho thanh điều hướng cố định trên mobile */
    padding-bottom: 40px;
  }
  .page-contact__hero-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-contact__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-contact__card {
    padding: 25px;
  }
  .page-contact__contact-form {
    gap: 15px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 0.95em;
  }
  .page-contact__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-contact__methods-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__method-icon {
    width: 80px;
    height: 80px;
  }
  .page-contact__method-title {
    font-size: 1.3em;
  }
  .page-contact__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact__map-container {
    height: 200px;
  }
  .page-contact__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-contact__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-contact__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px !important;
  }
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }
  .page-contact__hero-section {
    padding-top: 160px !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__hero-description {
    font-size: 0.9em;
  }
  .page-contact__cta-button {
    font-size: 0.9em;
    padding: 10px 25px;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__methods-grid {
    gap: 15px;
  }
  .page-contact__method-icon {
    width: 70px;
    height: 70px;
  }
  .page-contact__method-title {
    font-size: 1.2em;
  }
  .page-contact__method-text {
    font-size: 0.85em;
  }
  .page-contact__method-link {
    padding: 8px 15px;
    font-size: 0.9em;
  }
  .page-contact__social-links {
    gap: 10px;
  }
  .page-contact__social-link {
    font-size: 0.9em;
  }
  .page-contact__info-subtitle {
    font-size: 1.2em;
  }
  .page-contact__info-text {
    font-size: 0.9em;
  }
  .page-contact__faq-question h3 {
    font-size: 14px;
  }
}