/* style/contact.css */

/* Biến CSS */
:root {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #DC143C; /* Đỏ thẫm */
  --dark-background: #1a1a1a; /* Nền tối */
  --light-text: #ffffff; /* Chữ sáng */
  --dark-text: #333333; /* Chữ tối */
  --medium-gray: #f0f0f0;
  --border-color: #e0e0e0;
}

.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--medium-gray);
}

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

.page-contact-hero-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--light-text);
  padding: 80px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

.page-contact-hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
  transform: rotate(45deg);
  opacity: 0.3;
}

.page-contact-main-heading {
  font-size: 3.5em;
  margin-bottom: 15px;
  color: var(--light-text);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact-sub-heading {
  font-size: 1.5em;
  margin-bottom: 30px;
  color: var(--light-text);
  opacity: 0.9;
}

.page-contact-cta-button {
  display: inline-block;
  background-color: var(--dark-background);
  color: var(--primary-color);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.page-contact-cta-button:hover {
  background-color: var(--primary-color);
  color: var(--dark-background);
  border-color: var(--light-text);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-contact-section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-contact-section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-contact-intro-section, .page-contact-channels-section, .page-contact-form-section, .page-contact-faq-section, .page-contact-cta-final-section {
  padding: 60px 0;
  background-color: var(--light-text);
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-contact-intro-section p, .page-contact-channels-section p, .page-contact-form-section p, .page-contact-faq-section p, .page-contact-cta-final-section p {
  text-align: center;
  margin-bottom: 30px;
  font-size: 1.1em;
  color: var(--dark-text);
}

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

.page-contact-intro-card {
  background-color: var(--dark-background);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: var(--light-text);
  transition: transform 0.3s ease;
  border: 1px solid var(--primary-color);
}

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

.page-contact-intro-card h3 {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-contact-intro-card p {
  color: var(--light-text);
  font-size: 1em;
  text-align: center;
}

.page-contact-intro-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

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

.page-contact-channel-card {
  background-color: var(--medium-gray);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-contact-channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-color);
}

.page-contact-channel-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 20px;
}

.page-contact-channel-card h3 {
  font-size: 1.8em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-contact-channel-card p {
  color: var(--dark-text);
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
  text-align: center;
}

.page-contact-channel-card p strong {
  color: var(--secondary-color);
}

.page-contact-channel-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact-channel-card a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-contact-channel-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--dark-background);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  transition: all 0.3s ease;
  margin-top: auto; /* Đẩy nút xuống dưới cùng */
}

.page-contact-channel-button:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact-social-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.page-contact-social-list li {
  margin-bottom: 8px;
}

.page-contact-social-list li a {
  color: var(--secondary-color);
  font-weight: normal;
}

.page-contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--medium-gray);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-contact-form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--dark-text);
}

.page-contact-form-group input[type="text"],
.page-contact-form-group input[type="email"],
.page-contact-form-group input[type="tel"],
.page-contact-form-group textarea {
  width: calc(100% - 20px);
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 1em;
  background-color: var(--light-text);
  color: var(--dark-text);
}

.page-contact-form-group input::placeholder,
.page-contact-form-group textarea::placeholder {
  color: #888;
}

.page-contact-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact-submit-button {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: var(--secondary-color);
  color: var(--light-text);
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact-submit-button:hover {
  background-color: var(--primary-color);
  color: var(--dark-background);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-contact-faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--light-text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: var(--dark-background);
  color: var(--light-text);
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #333333;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
}

.faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color);
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--secondary-color);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  background-color: var(--medium-gray);
  color: var(--dark-text);
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Đủ lớn để chứa nội dung */
  padding: 20px;
}

.faq-answer p {
  margin-bottom: 15px;
  text-align: left;
  color: var(--dark-text);
}

.faq-answer strong {
  color: var(--secondary-color);
}

.page-contact-faq-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--dark-background);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.9em;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.page-contact-faq-link:hover {
  background-color: var(--secondary-color);
  color: var(--light-text);
  transform: translateY(-2px);
}

.page-contact-cta-final-section {
  text-align: center;
  background: linear-gradient(90deg, var(--secondary-color) 0%, var(--dark-background) 100%);
  color: var(--light-text);
  padding: 80px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-contact-cta-final-section .page-contact-section-title {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-contact-cta-final-section .page-contact-section-title::after {
  background-color: var(--light-text);
}

.page-contact-cta-final-section p {
  color: var(--light-text);
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact-main-heading {
    font-size: 3em;
  }
  .page-contact-sub-heading {
    font-size: 1.3em;
  }
  .page-contact-section-title {
    font-size: 2em;
  }
  .page-contact-intro-card, .page-contact-channel-card {
    padding: 25px;
  }
  .page-contact-form {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-contact-hero-banner {
    padding: 60px 15px;
  }
  .page-contact-main-heading {
    font-size: 2.5em;
  }
  .page-contact-sub-heading {
    font-size: 1.1em;
  }
  .page-contact-cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-contact-section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-contact-intro-section, .page-contact-channels-section, .page-contact-form-section, .page-contact-faq-section, .page-contact-cta-final-section {
    padding: 40px 0;
  }
  .page-contact-intro-grid, .page-contact-channels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-contact-form {
    padding: 20px;
  }
  .page-contact-form-group input, .page-contact-form-group textarea {
    width: calc(100% - 24px); /* Adjust for padding and border */
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-question {
    padding: 15px;
  }
  .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact-main-heading {
    font-size: 2em;
  }
  .page-contact-sub-heading {
    font-size: 1em;
  }
  .page-contact-section-title {
    font-size: 1.6em;
  }
  .page-contact-intro-card h3, .page-contact-channel-card h3 {
    font-size: 1.5em;
  }
  .page-contact-submit-button {
    font-size: 1.1em;
    padding: 12px;
  }
  .page-contact-faq-link {
    padding: 8px 15px;
    font-size: 0.85em;
  }
}