/* style/contact.css */

/* Biến màu sắc */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E0B14A;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f4f7f6;
  --background-dark: #0A2463;
  --border-color: #e0e0e0;
}

/* Thiết lập chung cho trang liên hệ */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-light);
}

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

.page-contact section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-contact section:nth-of-type(odd) {
  background-color: #ffffff;
}

.page-contact section:nth-of-type(even) {
  background-color: var(--background-light);
}

.page-contact .section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  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(--secondary-color);
  border-radius: 2px;
}

.page-contact .section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Banner */
.page-contact .hero-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a70 100%);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.page-contact .hero-banner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-contact .hero-content {
  max-width: 800px;
}

.page-contact .hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--secondary-color);
}

.page-contact .hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-contact .hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-contact .cta-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--secondary-color);
}

.page-contact .cta-button:hover {
  background-color: #ffc857;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Contact Methods Section */
.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-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-contact .method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-contact .method-icon {
  width: 120px; /* Tăng kích thước icon */
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact .method-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact .method-text {
  font-size: 16px;
  color: #666666;
  margin-bottom: 25px;
}

.page-contact .method-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact .method-button:hover {
  background-color: #1a3a70;
}

.page-contact .social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.page-contact .social-button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact .social-button:hover {
  background-color: #ffc857;
}

/* Contact Form Section */
.page-contact .contact-form-section {
  background-color: #ffffff;
}

.page-contact .contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

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

.page-contact .form-label {
  display: block;
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 8px;
  font-weight: bold;
}

.page-contact .form-input,
.page-contact .form-textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-dark);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact .form-input:focus,
.page-contact .form-textarea:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(224, 177, 74, 0.3);
  outline: none;
}

.page-contact .form-textarea {
  resize: vertical;
}

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

.page-contact .submit-button:hover {
  background-color: #1a3a70;
  transform: translateY(-2px);
}

/* FAQ Section */
.page-contact .faq-section {
  background-color: var(--background-light);
}

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

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

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f0f0f0;
}

.faq-question h3 {
  margin: 0;
  font-size: 18px;
  color: var(--primary-color);
  font-weight: bold;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #f9f9f9;
  border-top: 1px solid var(--border-color);
}

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

.faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #555555;
}

/* Why Choose Us Section */
.page-contact .why-choose-us-section {
  background-color: #ffffff;
}

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

.page-contact .benefit-item {
  background-color: #fcfcfc;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  padding: 30px;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact .benefit-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-contact .benefit-icon {
  width: 100px; /* Tăng kích thước icon */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact .benefit-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 12px;
  font-weight: bold;
}

.page-contact .benefit-text {
  font-size: 16px;
  color: #666666;
}

/* Final CTA Section */
.page-contact .final-cta-section {
  background: linear-gradient(135deg, #1a3a70 0%, var(--primary-color) 100%);
  color: var(--text-light);
  text-align: center;
  padding: 80px 0;
}

.page-contact .final-cta-section .cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-contact .cta-title {
  font-size: 42px;
  color: var(--secondary-color);
  margin-bottom: 25px;
  font-weight: bold;
}

.page-contact .cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
}

.page-contact .large-button {
  padding: 20px 50px;
  font-size: 22px;
  border-width: 3px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact .hero-title {
    font-size: 42px;
  }
  .page-contact .section-title {
    font-size: 32px;
  }
  .page-contact .cta-title {
    font-size: 38px;
  }
}

@media (max-width: 768px) {
  .page-contact section {
    padding: 40px 0;
  }
  .page-contact .hero-banner .container {
    flex-direction: column-reverse;
  }
  .page-contact .hero-title {
    font-size: 36px;
  }
  .page-contact .hero-description {
    font-size: 18px;
  }
  .page-contact .cta-button {
    padding: 15px 30px;
    font-size: 18px;
  }
  .page-contact .section-title {
    font-size: 28px;
  }
  .page-contact .section-description {
    font-size: 16px;
  }
  .page-contact .methods-grid,
  .page-contact .benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-contact .method-card,
  .page-contact .benefit-item {
    padding: 25px;
  }
  .page-contact .method-title,
  .page-contact .benefit-title {
    font-size: 20px;
  }
  .page-contact .form-group {
    margin-bottom: 20px;
  }
  .page-contact .form-label {
    font-size: 16px;
  }
  .page-contact .form-input,
  .page-contact .form-textarea {
    padding: 12px;
    font-size: 15px;
  }
  .page-contact .submit-button {
    padding: 15px;
    font-size: 18px;
  }
  .faq-question h3 {
    font-size: 16px;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
  }
  .page-contact .cta-title {
    font-size: 32px;
  }
  .page-contact .cta-description {
    font-size: 18px;
  }
  .page-contact .large-button {
    padding: 18px 40px;
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .page-contact .hero-title {
    font-size: 30px;
  }
  .page-contact .hero-description {
    font-size: 16px;
  }
  .page-contact .cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-contact .section-title {
    font-size: 24px;
  }
  .page-contact .section-description {
    font-size: 15px;
  }
  .page-contact .method-icon,
  .page-contact .benefit-icon {
    width: 80px;
    height: 80px;
  }
  .page-contact .method-title,
  .page-contact .benefit-title {
    font-size: 18px;
  }
  .page-contact .method-text,
  .page-contact .benefit-text {
    font-size: 14px;
  }
  .page-contact .method-button,
  .page-contact .social-button {
    padding: 10px 18px;
    font-size: 14px;
  }
  .page-contact .contact-form {
    padding: 25px;
  }
  .page-contact .form-label {
    font-size: 15px;
  }
  .faq-question h3 {
    font-size: 15px;
  }
  .page-contact .cta-title {
    font-size: 28px;
  }
  .page-contact .cta-description {
    font-size: 16px;
  }
  .page-contact .large-button {
    padding: 15px 30px;
    font-size: 18px;
  }
}