/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for potentially dark body background */
  background-color: transparent; /* Rely on body background */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  min-height: 500px;
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 20px;
}

.page-contact__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-contact__dark-bg {
  background-color: #26A9E0; /* Primary brand color for dark sections */
  color: #ffffff;
}

.page-contact__light-bg {
  background-color: #ffffff; /* Auxiliary brand color for light sections */
  color: #333333;
}

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

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

.page-contact__method-card {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-contact__method-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__method-description {
  font-size: 1em;
  margin-bottom: 25px;
}

/* Social Media Section */
.page-contact__social-section {
  padding: 80px 0;
  text-align: center;
}

.page-contact__social-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-contact__social-icon {
  width: 60px; /* Minimum 200px rule applies to content images, not small functional icons/logos */
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  background-color: #ffffff;
  padding: 5px;
}

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

.page-contact__faq-list {
  margin-top: 40px;
}

.page-contact__faq-item {
  background: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: #333333;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  color: #26A9E0;
}

.page-contact__faq-item[open] .page-contact__faq-question {
  border-bottom: none;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  background-color: #f8f8f8;
}

.page-contact__faq-answer p {
  margin-bottom: 15px;
}

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

.page-contact__faq-item summary {
  list-style: none;
}

/* Responsible Gaming Section */
.page-contact__responsible-gaming-section {
  padding: 80px 0;
  text-align: center;
}

.page-contact__responsible-gaming-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-contact__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__faq-button {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

.page-contact__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-contact__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-contact__btn-secondary:hover {
  background-color: #e0f2ff;
  color: #1a8ccb;
  border-color: #1a8ccb;
}

.page-contact__faq-button {
  margin-top: 15px;
}

/* Ensure all images are responsive and not small */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

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

  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

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

  .page-contact__hero-section {
    padding-bottom: 40px;
    min-height: 400px;
  }

  .page-contact__methods-section,
  .page-contact__social-section,
  .page-contact__faq-section,
  .page-contact__responsible-gaming-section,
  .page-contact__cta-section {
    padding: 40px 0;
  }

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

  .page-contact__method-card {
    padding: 20px;
  }

  .page-contact__method-title {
    font-size: 1.5em;
  }

  .page-contact__social-links {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__social-icon {
    width: 50px;
    height: 50px;
  }

  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  /* Mobile responsive for images, videos, buttons (mandatory) */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper,
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-contact__hero-section {
    padding-top: 10px !important; /* body has --header-offset */
  }

  .page-contact__cta-button,
  .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;
    margin-bottom: 10px; /* Spacing for stacked buttons */
  }

  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}