/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css #0a0a0a */
}

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

.page-contact__container--narrow {
  max-width: 800px;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure no image overflow */
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.4); /* Darken image slightly for text readability */
  min-height: 400px; /* Minimum height for hero image */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  color: #ffffff; /* Ensure text is white over darkened image */
  margin-top: 20px; /* Space from image */
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box; /* Include padding in width calculation */
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

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

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

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

.page-contact__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-contact__btn-small {
  padding: 8px 15px;
  font-size: 0.9em;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0; /* Brand color for titles on light background */
}

.page-contact__section-title--white {
  color: #ffffff; /* White color for titles on dark background */
}

.page-contact__section-description {
  font-size: 1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0; /* Light grey for descriptions on dark background */
}

/* Why Contact Section */
.page-contact__why-contact-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

.page-contact__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-contact__text-block {
  flex: 1;
  min-width: 300px;
}

.page-contact__image-right {
  flex: 1;
  min-width: 200px; /* Minimum image size */
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.page-contact__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-contact__benefit-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-contact__benefit-list li::before {
  content: '✔'; /* Checkmark icon */
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Contact Methods Section */
.page-contact__contact-methods-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

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

.page-contact__method-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white card on dark bg */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff; /* Ensure text is white */
}

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

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

.page-contact__email-address,
.page-contact__phone-number {
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 20px;
}

.page-contact__link {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__link:hover {
  color: #1e87c0;
  text-decoration: underline;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.page-contact__social-link {
  display: inline-block;
  padding: 8px 15px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__social-link:hover {
  background-color: #1e87c0;
}

.page-contact__image-center {
  display: block;
  margin: 60px auto 0 auto;
  max-width: 1000px;
  min-width: 200px; /* Minimum image size */
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Card background for FAQ items */
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff; /* Ensure text is white */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #26A9E0; /* Brand color for questions */
  list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome/Safari */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #ffffff; /* White for toggle icon */
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-contact__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #f0f0f0; /* Light grey for answers */
}

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

.page-contact__image-bottom {
  display: block;
  margin: 60px auto 0 auto;
  max-width: 800px;
  min-width: 200px; /* Minimum image size */
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* Responsible Gambling Section */
.page-contact__responsible-gambling-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  text-align: center;
  color: #ffffff;
}

/* Images - Global styles for responsive behavior and minimum size */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Minimum width for all images */
  min-height: 200px; /* Minimum height for all images */
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-contact__hero-section {
    padding: 40px 20px;
    padding-top: 10px;
  }

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

  .page-contact__section-title {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }

  .page-contact__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-contact__image-right {
    order: -1; /* Image appears above text on smaller screens */
  }
}

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

  .page-contact__container {
    padding: 0 15px; /* Add padding for mobile content */
  }

  .page-contact__hero-section {
    padding: 30px 15px;
    padding-top: 10px;
  }

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

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

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

  /* Buttons mobile responsive */
  .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; /* Ensure padding within button */
    padding-right: 15px; /* Ensure padding within button */
  }

  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-contact__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
  }

  .page-contact__section-description {
    margin-bottom: 30px;
  }

  .page-contact__why-contact-section,
  .page-contact__contact-methods-section,
  .page-contact__faq-section,
  .page-contact__responsible-gambling-section {
    padding: 40px 0;
  }

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

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

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

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

  /* Images mobile responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce min-width */
    min-height: 200px !important; /* Enforce min-height */
  }
  
  /* All containers with images must adapt */
  .page-contact__hero-section,
  .page-contact__why-contact-section,
  .page-contact__contact-methods-section,
  .page-contact__faq-section,
  .page-contact__responsible-gambling-section,
  .page-contact__container,
  .page-contact__card,
  .page-contact__content-wrapper,
  .page-contact__methods-grid,
  .page-contact__faq-list,
  .page-contact__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Remove specific padding for sections that have it handled by container */
  .page-contact__why-contact-section,
  .page-contact__contact-methods-section,
  .page-contact__faq-section,
  .page-contact__responsible-gambling-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Video section specific top padding on mobile */
  .page-contact__video-section {
    padding-top: 10px !important;
  }
}