/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF6D6); /* Default text color for dark background */
  background-color: var(--background-color, #0A0A0A);
}

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

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main, #FFF6D6);
  position: relative;
  padding-bottom: 10px;
}

.page-contact__section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--main-color, #F2C14E);
  margin: 10px auto 0;
}

.page-contact__section-intro {
  text-align: center;
  font-size: 18px;
  margin-bottom: 40px;
  color: #DDD;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Adjusted padding to avoid conflict with shared header offset */
  background-color: var(--background-color, #0A0A0A);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover; /* Desktop default */
  display: block;
}

.page-contact__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
}

.page-contact__main-title {
  font-size: 48px;
  color: var(--main-color, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-contact__hero-description {
  font-size: 18px;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 30px;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Ensure contrast on gold button */
  border: none;
}

.page-contact__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background: var(--card-bg, #111111);
  color: var(--main-color, #F2C14E);
  border: 2px solid var(--border-color, #3A2A12);
}

.page-contact__btn-secondary:hover {
  background: var(--main-color, #F2C14E);
  color: #0A0A0A; /* Ensure contrast */
  border-color: var(--main-color, #F2C14E);
  transform: translateY(-2px);
}

/* Info Section */
.page-contact__info-section {
  padding: 80px 0;
  background-color: var(--card-bg, #111111);
}

.page-contact__dark-section {
  background-color: var(--card-bg, #111111);
  color: var(--text-main, #FFF6D6);
}

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

.page-contact__method-card {
  background: var(--background-color, #0A0A0A);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color, #3A2A12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

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

.page-contact__method-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact__method-title {
  font-size: 24px;
  color: var(--main-color, #F2C14E);
  margin-bottom: 15px;
}

.page-contact__method-description {
  font-size: 16px;
  color: #CCC;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__email-address,
.page-contact__phone-number {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-main, #FFF6D6);
  margin-bottom: 15px;
}

.page-contact__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: auto;
}

.page-contact__availability-text {
  text-align: center;
  margin-top: 50px;
  font-size: 18px;
  color: #DDD;
}

/* Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: var(--background-color, #0A0A0A);
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--card-bg, #111111);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color, #3A2A12);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  font-weight: bold;
  color: var(--text-main, #FFF6D6);
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color, #3A2A12);
  border-radius: 5px;
  background: var(--background-color, #0A0A0A);
  color: var(--text-main, #FFF6D6);
  font-size: 16px;
  box-sizing: border-box;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--main-color, #F2C14E);
  outline: none;
  box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.3);
}

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

.page-contact__form-submit-btn {
  width: auto;
  padding: 15px 40px;
  font-size: 18px;
  cursor: pointer;
  border: none;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg, #111111);
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #3A2A12);
  overflow: hidden;
  background: var(--background-color, #0A0A0A);
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main, #FFF6D6);
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: rgba(var(--main-color-rgb, 242, 193, 78), 0.1);
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #FFF6D6);
}
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--main-color, #F2C14E);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: var(--background-color, #0A0A0A);
  border-radius: 0 0 5px 5px;
  color: #CCC;
}
.page-contact__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
}
.page-contact__faq-answer a {
  color: var(--main-color, #F2C14E);
  text-decoration: none;
}
.page-contact__faq-answer a:hover {
  text-decoration: underline;
}

/* Location Section */
.page-contact__location-section {
  padding: 80px 0;
  background-color: var(--background-color, #0A0A0A);
}

.page-contact__map-container {
  position: relative;
  width: 100%;
  height: 480px; /* Fixed height for desktop */
  background-color: var(--card-bg, #111111);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 40px;
  border: 1px solid var(--border-color, #3A2A12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-contact__map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-contact__map-disclaimer {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: #FFF6D6;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  text-align: center;
}

.page-contact__social-media {
  text-align: center;
  margin-top: 60px;
}

.page-contact__social-title {
  font-size: 28px;
  color: var(--main-color, #F2C14E);
  margin-bottom: 25px;
}

.page-contact__social-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
}

.page-contact__social-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.page-contact__social-link:hover {
  transform: translateY(-5px);
}

.page-contact__social-link img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

/* Responsible Gambling Section */
.page-contact__responsible-gambling {
  padding: 80px 0;
  background-color: var(--card-bg, #111111);
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 42px;
  }
  .page-contact__section-title {
    font-size: 32px;
  }
  .page-contact__hero-image-wrapper {
    max-height: 400px;
  }
  .page-contact__method-card {
    padding: 25px;
  }
  .page-contact__form-input, .page-contact__form-textarea {
    padding: 10px 12px;
  }
  .page-contact__form-submit-btn {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-contact__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-contact__hero-section {
    padding-top: 10px; /* 約 10px 顶距 */
  }
  .page-contact__hero-image-wrapper {
    max-height: 300px;
  }
  .page-contact__hero-image {
    object-fit: contain !important; /* 禁止 cover 裁切两侧 */
    aspect-ratio: unset !important; /* 移除固定比例 */
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__hero-content {
    padding: 30px 15px;
  }
  .page-contact__main-title {
    font-size: clamp(28px, 8vw, 36px); /* 标题字号 clamp */
    margin-bottom: 15px;
  }
  .page-contact__hero-description {
    font-size: 16px;
  }

  /* 按钮与按钮容器 */
  .page-contact__cta-buttons {
    flex-direction: column !important; /* 移动端垂直排列 */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 16px;
  }

  /* 通用图片与容器 */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-contact__section-intro {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* 产品展示图区域 (contact page does not have a product grid, but general image rules apply) */
  .page-contact__contact-methods {
    grid-template-columns: 1fr; /* Stack cards vertically */
  }
  .page-contact__method-card {
    padding: 20px;
  }
  .page-contact__method-icon {
    width: 200px !important;
    height: 200px !important;
  }
  .page-contact__social-link img {
    width: 200px !important;
    height: 200px !important;
  }

  /* 装饰主标题 + 长文 SEO 区 (general text blocks) */
  .page-contact p, .page-contact li {
    font-size: 15px;
  }
  .page-contact__map-container {
    height: 300px; /* Adjust map height for mobile */
  }
  .page-contact__map-disclaimer {
    bottom: 10px;
    left: 10px;
    right: 10px;
    font-size: 12px;
  }
  .page-contact__social-title {
    font-size: 24px;
  }
  .page-contact__social-icons {
    gap: 15px;
  }

  /* FAQ */
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }

  /* Form */
  .page-contact__contact-form {
    padding: 25px;
  }
  .page-contact__form-label {
    font-size: 15px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    font-size: 15px;
    padding: 10px 12px;
  }
  .page-contact__form-submit-btn {
    width: 100% !important;
    font-size: 16px;
  }
}