/* style/contact.css */

/* Biến CSS */
:root {
  --primary-color: #FFD700; /* Vàng */
  --secondary-color: #8B0000; /* Đỏ sẫm */
  --dark-background: #1a1a1a; /* Nền tối */
  --light-text: #ffffff;
  --dark-text: #333333;
  --medium-gray: #f0f0f0;
  --border-color: #333333;
  --button-hover-bg: #c7a400;
}

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

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

.page-contact section {
  padding: 60px 0;
  text-align: center;
}

.page-contact section:nth-of-type(even) {
  background-color: #2a2a2a;
}

.page-contact h1,
.page-contact h2,
.page-contact h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact h1 {
  font-size: 3em;
}

.page-contact h2 {
  font-size: 2.5em;
  margin-top: 40px;
}

.page-contact h3 {
  font-size: 1.8em;
}

.page-contact p {
  margin-bottom: 15px;
  color: #cccccc;
}

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

.page-contact a:hover {
  color: var(--secondary-color);
}

/* Hero Section */
.page-contact .hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--dark-background) 0%, #000000 100%);
}

.page-contact .hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-contact .hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-contact .hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-contact .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-contact .hero-content h1 {
  color: var(--primary-color);
  font-size: 3.5em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-contact .hero-content p {
  font-size: 1.2em;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-contact .cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--light-text);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid var(--primary-color);
}

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

/* Contact Channels Section */
.page-contact .contact-channels-section {
  background-color: var(--dark-background);
}

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

.page-contact .channel-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-contact .channel-item:hover {
  transform: translateY(-5px);
  background-color: #3a3a3a;
}

.page-contact .channel-item img {
  width: 100%; /* Ensure images take up space */
  max-width: 250px; /* Adjust max width for content images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact .channel-item h3 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-contact .channel-item p {
  color: #cccccc;
  font-size: 0.95em;
}

.page-contact .channel-item .channel-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background-color: var(--secondary-color);
  color: var(--light-text);
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--primary-color);
}

.page-contact .channel-item .channel-button:hover {
  background-color: var(--primary-color);
  color: var(--dark-text);
  transform: translateY(-2px);
}

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

.page-contact .contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  padding: 30px;
  background-color: var(--dark-background);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: left;
  border: 1px solid var(--border-color);
}

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

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

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

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

.page-contact .form-group input:focus,
.page-contact .form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.page-contact .submit-button {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: var(--primary-color);
  color: var(--dark-text);
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact .submit-button:hover {
  background-color: var(--button-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Why Contact Section */
.page-contact .why-contact-section {
  background-color: var(--dark-background);
}

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

.page-contact .why-item {
  background-color: #2a2a2a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-contact .why-item img {
  width: 100%; /* Ensure images take up space */
  max-width: 280px; /* Adjust max width for content images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact .why-item h3 {
  color: var(--primary-color);
  font-size: 1.6em;
  margin-bottom: 15px;
}

.page-contact .why-item p {
  color: #cccccc;
  font-size: 0.95em;
}

/* Responsible Gambling Section */
.page-contact .responsible-gambling-section {
  background-color: #2a2a2a;
}

.page-contact .responsible-gambling-section p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #cccccc;
}

.page-contact .responsible-gambling-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--secondary-color);
  color: var(--light-text);
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid var(--primary-color);
}

.page-contact .responsible-gambling-button:hover {
  background-color: var(--primary-color);
  color: var(--dark-text);
  transform: translateY(-2px);
}

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

.page-contact .faq-section p {
  color: #cccccc;
  margin-bottom: 30px;
}

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

.page-contact .faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background-color: #2a2a2a;
}

.page-contact .faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #3a3a3a;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-contact .faq-question:hover {
  background: #4a4a4a;
}

.page-contact .faq-question h3 {
  margin: 0;
  font-size: 1.15em;
  color: var(--light-text);
}

.page-contact .faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--primary-color);
  transition: transform 0.3s ease;
}

.page-contact .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 20px;
  background-color: #2a2a2a;
  color: #cccccc;
}

.page-contact .faq-answer p {
  margin: 0 0 15px 0;
  padding-top: 15px;
  color: #cccccc;
}

.page-contact .faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact .hero-content h1 {
    font-size: 3em;
  }
  .page-contact h2 {
    font-size: 2em;
  }
  .page-contact h3 {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-contact section {
    padding: 40px 0;
  }
  .page-contact .hero-content h1 {
    font-size: 2.5em;
  }
  .page-contact .hero-content p {
    font-size: 1em;
  }
  .page-contact .cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-contact h2 {
    font-size: 1.8em;
  }
  .page-contact h3 {
    font-size: 1.3em;
  }
  .page-contact .channels-grid,
  .page-contact .why-contact-grid {
    grid-template-columns: 1fr;
  }
  .page-contact .channel-item,
  .page-contact .why-item {
    padding: 20px;
  }
  .page-contact .contact-form {
    padding: 20px;
  }
  .page-contact .faq-question {
    padding: 12px 15px;
  }
  .page-contact .faq-question h3 {
    font-size: 1em;
  }
  .page-contact .faq-toggle {
    font-size: 1.5em;
  }
  .page-contact .faq-answer {
    padding: 0 15px;
  }
  .page-contact .faq-item.active .faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-contact .hero-content h1 {
    font-size: 2em;
  }
  .page-contact .hero-image {
    margin-bottom: 20px;
  }
  .page-contact .cta-button {
    width: 90%;
  }
  .page-contact h2 {
    font-size: 1.5em;
  }
  .page-contact h3 {
    font-size: 1.2em;
  }
  .page-contact .channel-item img,
  .page-contact .why-item img {
    max-width: 200px;
  }
}