/* style/contact.css */

/* Base styles for the contact page, assuming body has a light background from shared.css */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #f8f8f8; /* A very light grey for subtle contrast */
}

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

/* Section common styles */
.page-contact__hero-section,
.page-contact__contact-methods,
.page-contact__common-reasons,
.page-contact__commitment,
.page-contact__faq-section,
.page-contact__responsible-gaming,
.page-contact__legal-info,
.page-contact__final-cta {
  padding: 60px 0;
}

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

.page-contact__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #555555;
}

/* Color contrast classes */
.page-contact__dark-bg {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
}

.page-contact__dark-bg .page-contact__section-title,
.page-contact__dark-bg .page-contact__sub-title {
  color: #ffffff;
}

.page-contact__dark-bg .page-contact__text-block {
  color: #f0f0f0;
}

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

.page-contact__light-bg .page-contact__section-title,
.page-contact__light-bg .page-contact__sub-title {
  color: #26A9E0;
}

.page-contact__light-bg .page-contact__text-block {
  color: #555555;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* body handles header-offset, this is decorative */
}

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

.page-contact__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Dim the image for text readability, NO COLOR CHANGE */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 900px;
  padding: 40px 20px;
}

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

.page-contact__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-contact__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  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;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  text-align: center;
}

.page-contact__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

/* Contact Methods Section */
.page-contact__method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-contact__method-card {
  background-color: #fefefe;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #333333;
}

.page-contact__method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-contact__method-icon {
  width: 100%;
  max-width: 250px; /* Adjusted for better visual */
  height: auto;
  margin-bottom: 20px;
  display: block;
  border-radius: 8px;
}

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

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

.page-contact__method-button {
  width: 100%;
  max-width: 250px;
}

/* Common Reasons Section */
.page-contact__reason-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-contact__reason-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__reason-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-contact__reason-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-contact__reason-description a {
  color: #f0f0f0; /* Light text for links on dark background */
  text-decoration: underline;
}

.page-contact__reason-description a:hover {
  color: #ffffff;
}

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

.page-contact__commitment-item {
  background-color: #fefefe;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-contact__commitment-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-contact__commitment-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* FAQ Section */
.page-contact__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.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: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #ffffff;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: '−'; /* Changed by JS */
}

.page-contact__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-contact__faq-answer a {
  color: #f0f0f0; /* Light text for links on dark background */
  text-decoration: underline;
}

.page-contact__faq-answer a:hover {
  color: #ffffff;
}

/* Responsible Gaming Section */
.page-contact__responsible-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-contact__responsible-text {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-contact__responsible-image-wrapper {
  flex: 1 1 40%;
  min-width: 300px;
  text-align: center;
}

.page-contact__responsible-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-contact__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #555555;
}

.page-contact__list li {
  margin-bottom: 8px;
}

.page-contact__responsible-text p a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-contact__responsible-text p a:hover {
  color: #1a7bbd;
}

/* Legal Info Section */
.page-contact__legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-contact__legal-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__legal-item p a {
  color: #f0f0f0;
  text-decoration: underline;
}

.page-contact__legal-item p a:hover {
  color: #ffffff;
}

/* Final CTA Section */
.page-contact__final-cta .page-contact__cta-buttons {
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__section-title {
    font-size: 2em;
  }

  .page-contact__sub-title {
    font-size: 1.6em;
  }
}

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

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

  .page-contact__hero-section,
  .page-contact__contact-methods,
  .page-contact__common-reasons,
  .page-contact__commitment,
  .page-contact__faq-section,
  .page-contact__responsible-gaming,
  .page-contact__legal-info,
  .page-contact__final-cta {
    padding: 40px 0;
  }

  .page-contact__hero-content {
    padding: 20px 15px;
  }

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

  .page-contact__description {
    font-size: 1em;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-contact__cta-button,
  .page-contact__method-button {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-contact__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-contact__text-block {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-contact__method-grid,
  .page-contact__reason-grid,
  .page-contact__commitment-grid,
  .page-contact__legal-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-contact__method-card,
  .page-contact__reason-card,
  .page-contact__commitment-item,
  .page-contact__legal-item {
    padding: 25px;
  }

  .page-contact__method-icon,
  .page-contact__commitment-image,
  .page-contact__responsible-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

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

  .page-contact__responsible-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-contact__responsible-text,
  .page-contact__responsible-image-wrapper {
    min-width: unset;
    width: 100%;
  }

  /* Ensure all image containers are responsive */
  .page-contact__hero-image-wrapper,
  .page-contact__method-card,
  .page-contact__commitment-item,
  .page-contact__responsible-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video section top padding for mobile (if video existed) */
  .page-contact__video-section {
    padding-top: 10px !important;
  }
}

/* Details element specific styling for FAQ */
details.page-contact__faq-item > summary {
  list-style: none;
}
details.page-contact__faq-item > summary::-webkit-details-marker {
  display: none;
}