/* style/contact.css */
/* 
 * Contact Page Specific Styles
 * BEM Naming Convention: .page-contact__element-name
 * Scope limited to .page-contact
 * Body background: #1a1a1a (dark) -> default text color should be light (#ffffff)
 */

/* Base styles for the contact page content */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Explicitly setting for clarity, though shared.css defines body */
}

/* Header offset for fixed header */
.page-contact__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* General container for content sections */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Section styling */
.page-contact__hero-section {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:contact_hero:1920x1080:customer_service_team,online_betting_support,contact_center,vietnamese_staff,keo_nha_cai_net]'); /* Placeholder for hero background image */
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.page-contact__hero-image {
    display: none; /* Hide the img tag if background image is used via CSS */
}

.page-contact__hero-content {
  max-width: 800px;
  z-index: 1;
}

.page-contact__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFFFF; /* White for strong contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #e0e0e0; /* Lighter white for body text on dark background */
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Sections with light background */
.page-contact__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
}

.page-contact__light-bg .page-contact__section-title {
  color: #017439; /* Brand color */
}

.page-contact__light-bg .page-contact__section-description,
.page-contact__light-bg p,
.page-contact__light-bg li {
  color: #333333; /* Dark text */
}

.page-contact__light-bg a {
  color: #017439; /* Link color */
}

/* Sections with dark background */
.page-contact__dark-bg {
  background-color: #017439; /* Brand green background */
  color: #ffffff; /* White text for brand green background */
}

.page-contact__dark-bg .page-contact__section-title {
  color: #ffffff; /* White title for dark background */
}

.page-contact__dark-bg .page-contact__section-description,
.page-contact__dark-bg p,
.page-contact__dark-bg li {
  color: #f0f0f0; /* Lighter white text */
}

.page-contact__dark-bg a {
  color: #FFFF00; /* Yellow for links on dark background, high contrast */
}

/* Contact Methods Section */
.page-contact__info-section {
  padding: 60px 0;
}

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

.page-contact__method-card {
  background-color: #017439; /* Brand green */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #ffffff;
}

.page-contact__method-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-contact__method-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
  color: #f0f0f0;
}

.page-contact__email-address,
.page-contact__phone-number {
  font-weight: bold;
  margin-top: 15px;
  font-size: 1.1em;
  color: #FFFF00; /* Yellow for high visibility */
}

.page-contact__email-link,
.page-contact__phone-link {
  color: #FFFF00; /* Yellow for links */
  text-decoration: underline;
}

.page-contact__additional-info {
  text-align: center;
  margin-top: 50px;
  font-size: 1em;
  color: #e0e0e0;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 60px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0 auto;
  padding: 30px;
  background-color: #f8f8f8; /* Light background for form */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  color: #333333; /* Dark text for form elements */
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #ffffff;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #999;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__form-illustration {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
}

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

.page-contact__faq-item {
  background-color: #f8f8f8; /* Light background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333; /* Dark text */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #eee; /* Slightly darker light background for question */
  border-bottom: 1px solid #ddd;
}

.page-contact__faq-question:hover {
  background-color: #e0e0e0;
}

.page-contact__faq-title {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
  color: #017439; /* Brand color for FAQ questions */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333; /* Dark text for answer */
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 20px 25px;
}

.page-contact__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
  color: #333333; /* Dark text */
}

.page-contact__faq-answer a {
  color: #017439; /* Link color */
  text-decoration: underline;
}

/* Commitment Section */
.page-contact__commitment-section {
  padding: 60px 0;
}

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

.page-contact__point-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark green */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-contact__point-icon {
  width: 100px; /* Example size for icon images */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Make icons circular */
  background-color: rgba(255,255,255,0.2); /* Light background for icon */
  padding: 10px;
}

.page-contact__point-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-contact__point-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Call to Action Section */
.page-contact__cta-section {
  padding: 60px 0;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  gap: 20px;
  margin-top: 40px;
}

/* Button styles */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

/* Custom colors for buttons */
.page-contact__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-contact__btn-secondary {
  background-color: #017439; /* Brand green */
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
  background-color: #02944b;
  border-color: #02944b;
}

.page-contact__btn-tertiary {
  background-color: #FFFFFF;
  color: #017439; /* Brand green */
  border: 2px solid #017439;
}

.page-contact__btn-tertiary:hover {
  background-color: #f0f0f0;
  color: #02944b;
  border-color: #02944b;
}

/* Image specific styles */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block; /* Ensures images behave as blocks for layout */
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-contact__main-title {
    font-size: 2.5em;
  }

  .page-contact__section-title {
    font-size: 2em;
  }

  .page-contact__hero-section {
    padding: 80px 15px;
    min-height: 400px;
  }

  .page-contact__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__contact-methods {
    grid-template-columns: 1fr;
  }

  .page-contact__method-card,
  .page-contact__point-card,
  .page-contact__faq-item {
    padding: 20px;
  }

  .page-contact__faq-question {
    padding: 15px 20px;
  }

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