/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main from custom palette */
  background-color: #B71C1C; /* Background from custom palette */
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height for hero image */
}

.page-contact__hero-content {
  position: relative; /* Not absolute, to ensure "上图下文" */
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Adjust to pull content slightly over the image if desired, but still below it */
  background: rgba(122, 14, 14, 0.8); /* Deep Red with transparency */
  border-radius: 10px;
  z-index: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
  font-weight: bold;
  color: #F4D34D; /* Gold */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
}

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

/* General Section Styles */
.page-contact__channels-section,
.page-contact__faq-section,
.page-contact__feedback-section,
.page-contact__responsible-gaming-section,
.page-contact__legal-info-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
  text-align: center;
}

.page-contact__section-title {
  font-size: 2.5em;
  color: #F4D34D; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__section-description {
  font-size: 1.1em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__channel-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
}

.page-contact__channel-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-contact__channel-title {
  font-size: 1.8em;
  color: #F4D34D; /* Gold */
  margin-bottom: 15px;
}

.page-contact__channel-text {
  font-size: 1em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__email-link {
  color: #FFD86A; /* Button color for emphasis */
  text-decoration: underline;
}

/* FAQ Section */
.page-contact__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-contact__faq-item {
  background-color: #7A0E0E; /* Deep Red */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #C91F17; /* Main color */
  color: #FFF5E1; /* Text Main */
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s ease;
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}

.page-contact__faq-question:hover {
  background-color: #E53935; /* Auxiliary color */
}

.page-contact__faq-qtext {
  flex-grow: 1;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-contact__faq-answer {
  padding: 20px 25px;
  background-color: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
  font-size: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-contact__faq-answer p {
  margin: 0;
}

/* Feedback Form */
.page-contact__feedback-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #D32F2F; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #F2B544; /* Border */
  border-radius: 5px;
  background-color: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 245, 225, 0.7);
}

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

/* Responsible Gaming Section */
.page-contact__gaming-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__feature-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.page-contact__feature-title {
  font-size: 1.5em;
  color: #F4D34D; /* Gold */
  margin-bottom: 10px;
}

.page-contact__feature-text {
  font-size: 0.95em;
  color: #FFF5E1; /* Text Main */
  flex-grow: 1;
}

.page-contact__responsible-gaming-text {
  margin-top: 40px;
  font-size: 1.1em;
  color: #FFF5E1; /* Text Main */
}

/* Legal Info Section */
.page-contact__legal-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 30px;
}

.page-contact__address,
.page-contact__license,
.page-contact__copyright {
  font-size: 0.9em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 10px;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact a[class*="button"],
.page-contact a[class*="btn"] {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom Button Color */
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F2B544; /* Border */
  box-shadow: 0 0 10px rgba(255, 204, 102, 0.5); /* Glow */
}

.page-contact__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  color: #000;
  box-shadow: 0 0 15px rgba(255, 204, 102, 0.8);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #FFD86A; /* Gold for contrast */
  border: 2px solid #F2B544; /* Border */
}

.page-contact__btn-secondary:hover {
  background-color: rgba(255, 216, 106, 0.1);
  color: #F4D34D; /* Gold */
}

.page-contact__text-link {
  color: #FFD86A; /* Gold */
  text-decoration: underline;
}

.page-contact__text-link:hover {
  color: #F4D34D; /* Gold */
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-contact__hero-content {
    margin-top: -50px; /* Adjust for mobile */
    padding: 20px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact a[class*="button"],
  .page-contact a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__channel-grid,
  .page-contact__gaming-features {
    grid-template-columns: 1fr;
  }

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

  .page-contact__section-description {
    font-size: 1em;
  }

  .page-contact__feedback-form {
    padding: 20px;
  }

  /* Mobile image and video responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__channel-card,
  .page-contact__feature-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Video section top padding for mobile */
  .page-contact__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-contact__legal-links {
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure images meet minimum size requirements */
.page-contact img:not(.page-contact__hero-image, .page-contact__channel-icon, .page-contact__feature-icon) {
    min-width: 200px;
    min-height: 200px;
}

/* WCAG AA contrast for text elements (re-checking against palette) */
.page-contact h1, .page-contact h2, .page-contact h3, .page-contact h4, .page-contact h5, .page-contact h6 {
    color: #F4D34D; /* Gold on #B71C1C (Background) is good contrast */
}

.page-contact p, .page-contact li, .page-contact label {
    color: #FFF5E1; /* Text Main on #B71C1C (Background) is good contrast */
}

/* Buttons for contrast */
.page-contact__btn-primary {
    color: #7A0E0E; /* Deep Red on Gold gradient is good contrast */
}

.page-contact__btn-secondary {
    color: #FFD86A; /* Gold on #B71C1C (Background) is good contrast */
}

.page-contact__email-link, .page-contact__text-link {
    color: #FFD86A; /* Gold on #B71C1C (Background) is good contrast */
}

/* Additional contrast for form elements */
.page-contact__form-input,
.page-contact__form-textarea {
  color: #FFF5E1; /* Text Main */
  background-color: #7A0E0E; /* Deep Red for input background */
  border: 1px solid #F2B544; /* Border */
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 245, 225, 0.6); /* Lighter Text Main */
}