/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  color: #FFFFFF;
  overflow: hidden;
}

.page-contact__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-contact__main-heading {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-contact__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

/* General Section Styling */
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__support-principles-section,
.page-contact__responsible-gaming-section,
.page-contact__feedback-section {
  padding: 80px 0;
  text-align: center;
}

.page-contact__section-heading {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #017439;
}

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

/* Color Schemes for Sections */
.page-contact__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-contact__light-bg .page-contact__section-heading {
  color: #017439;
}

.page-contact__light-bg .page-contact__section-description {
  color: #333333;
}

.page-contact__dark-bg {
  background-color: #017439;
  color: #FFFFFF;
}

.page-contact__dark-bg .page-contact__section-heading {
  color: #FFFFFF;
}

.page-contact__dark-bg .page-contact__section-description {
  color: #F0F0F0;
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-contact__btn-primary {
  background-color: #017439;
  color: #FFFFFF; /* High contrast for brand color */
  border: 2px solid #017439;
}

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

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

.page-contact__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #017439;
}

.page-contact__btn-primary.page-contact__btn-small,
.page-contact__btn-secondary.page-contact__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Specific button styles for login/register if needed, prioritizing contrast */
.page-contact__btn-register,
.page-contact__btn-login {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFFFF; /* Adjusted for WCAG AA contrast, overriding #FFFF00 */
  border: 2px solid #C30808;
}

.page-contact__btn-register:hover,
.page-contact__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-contact__contact-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

.page-contact__contact-card .page-contact__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-contact__contact-card .page-contact__card-text {
  margin-bottom: 20px;
}

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

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

.page-contact__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #017439;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
  background-color: #005f2c;
}

/* Contact Form Section */
.page-contact__contact-form {
  max-width: 700px;
  margin: 40px auto 0;
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  padding: 15px 40px;
  margin-top: 20px;
}

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

.page-contact__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e8f5e9; /* Light green background for questions */
  border-bottom: 1px solid #e0e0e0;
}

.page-contact__faq-question:hover {
  background-color: #d4edda;
}

.page-contact__faq-item[open] > .page-contact__faq-question {
  border-bottom: 1px solid #e0e0e0;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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: 15px 20px;
  font-size: 1em;
  color: #333333;
  background-color: #FFFFFF;
}

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

/* Remove default details arrow */
.page-contact__faq-item > summary::-webkit-details-marker {
  display: none;
}

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

/* Support Principles Section */
.page-contact__principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-contact__principle-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #FFFFFF;
}

.page-contact__principle-card .page-contact__card-title {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-contact__principle-card .page-contact__card-text {
  font-size: 0.95em;
  color: #F0F0F0;
}

/* Images within sections */
.page-contact__image-fluid {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-heading {
    font-size: 2.8em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header */
  }

  .page-contact__main-heading {
    font-size: 2.2em;
  }

  .page-contact__intro-text {
    font-size: 1em;
  }

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

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

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 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;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact__contact-grid,
  .page-contact__principles-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-contact__contact-form {
    padding: 25px;
    margin: 40px 15px 0;
  }

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

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

  .page-contact img {
    max-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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-contact__main-heading {
    font-size: 1.8em;
  }

  .page-contact__section-heading {
    font-size: 1.6em;
  }

  .page-contact__contact-card,
  .page-contact__principle-card {
    padding: 20px;
  }
}

/* Ensure content area images are not too small */
.page-contact__info-section img,
.page-contact__form-section img,
.page-contact__faq-section img,
.page-contact__responsible-gaming-section img {
  min-width: 200px;
  min-height: 200px;
}

/* Filter for hero image is allowed as it's a background effect, not changing original image color */
.page-contact__hero-image { 
    filter: brightness(0.6);
}