/* style/contact.css */

/* Base Styles */
.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 handled by shared.css */
}

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

.page-contact__section-padding {
  padding: 80px 0;
}

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
}

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

.page-contact__text-block {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0; /* Light grey for readability on dark body */
}

.page-contact__text-block--light {
  color: #ffffff;
}

.page-contact__keyword {
  color: #FFFF00; /* Highlight keywords */
  font-weight: bold;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-contact__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

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

.page-contact__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff; /* White title on dark overlay */
  line-height: 1.2;
}

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

/* Buttons */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
}

.page-contact__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand color */\  border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Why Contact Section */
.page-contact__why-contact-section {
  background-color: #1a1a2e; /* Body background color */
  color: #f0f0f0;
}

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

.page-contact__reason-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background on dark body */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-contact__reason-heading {
  font-size: 22px;
  color: #FFFF00; /* Highlight heading */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__reason-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Contact Form Section */
.page-contact__contact-form-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for form background */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__label {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: bold;
}

.page-contact__input,
.page-contact__textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439;
  border-radius: 5px;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.9); /* Light background for input fields */
  color: #333333;
  box-sizing: border-box;
}

.page-contact__input::placeholder,
.page-contact__textarea::placeholder {
  color: #888888;
}

.page-contact__textarea {
  resize: vertical;
}

.page-contact__submit-button {
  width: 100%;
  padding: 15px;
  font-size: 20px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background-color: #C30808; /* Submit button color */
  color: #FFFF00; /* Submit button font color */
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-contact__submit-button:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

/* Direct Contact Section */
.page-contact__direct-contact-section {
  background-color: #1a1a2e;
  color: #f0f0f0;
}

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

.page-contact__contact-info-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__icon {
  width: 200px; /* Adjusted for strict rule */
  height: 200px; /* Adjusted for strict rule */
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact__info-heading {
  font-size: 22px;
  color: #FFFF00;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-contact__info-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-contact__info-link {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-contact__info-link:hover {
  color: #FFFF00;
}

.page-contact__operating-hours,
.page-contact__address {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #017439;
  color: #ffffff;
}

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

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-heading {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
}

.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Plus to X (minus) */
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  color: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
  padding-top: 10px; /* Adjust padding for better flow */
}

.page-contact__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #f0f0f0;
}

/* Responsible Gambling Section */
.page-contact__responsible-gambling-section {
  background-color: #1a1a2e;
  color: #f0f0f0;
}

.page-contact__responsible-gambling-section .page-contact__section-title {
  color: #017439;
}

.page-contact__responsible-gambling-section .page-contact__text-block {
  color: #f0f0f0;
}

.page-contact__responsible-gambling-section .page-contact__btn-secondary {
  margin-top: 20px;
}

/* Call to Action Section */
.page-contact__cta-section {
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-contact__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__cta-buttons {
  margin-top: 30px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 40px;
  }
  .page-contact__hero-description {
    font-size: 18px;
  }
  .page-contact__section-title {
    font-size: 30px;
  }
  .page-contact__text-block {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-contact__hero-title {
    font-size: 32px;
  }
  .page-contact__hero-description {
    font-size: 16px;
  }
  .page-contact__section-padding {
    padding: 60px 0;
  }
  .page-contact__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-contact__text-block {
    font-size: 16px;
  }
  .page-contact__reason-item,
  .page-contact__contact-info-card {
    padding: 25px;
  }
  .page-contact__form {
    padding: 25px;
  }
  .page-contact__faq-question {
    font-size: 16px;
    padding: 15px;
  }
  .page-contact__faq-answer {
    padding: 0 15px;
  }
  .page-contact__faq-item.active .page-contact__faq-answer {
    padding: 15px;
    padding-top: 10px;
  }
  
  /* Mobile image and video responsiveness */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-contact__hero-section .page-contact__hero-image {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Mobile button responsiveness */
  .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;
    margin: 10px 0 !important; /* Stack buttons vertically */
  }
  
  .page-contact__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .page-contact__submit-button {
    width: 100% !important;
  }
  
  /* Content area image minimum size check for mobile */
  /* The icons themselves must be 200x200 as per the rule */
  .page-contact__icon {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-section {
    height: 400px;
  }
  .page-contact__hero-title {
    font-size: 28px;
  }
  .page-contact__hero-description {
    font-size: 15px;
  }
  .page-contact__section-padding {
    padding: 40px 0;
  }
  .page-contact__section-title {
    font-size: 22px;
  }
  .page-contact__reason-heading,
  .page-contact__info-heading {
    font-size: 20px;
  }
  .page-contact__faq-question {
    font-size: 15px;
  }
}