/* 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 */
}

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

/* 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 for the first section */
  overflow: hidden;
}

.page-contact__dark-bg {
  background-color: #0a0a0a; /* Ensure dark background for sections */
  color: #ffffff; /* Light text for dark background */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: #26A9E0; /* Brand color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Section Titles and Descriptions */
.page-contact__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-contact__section-description {
  font-size: 1rem;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

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

.page-contact__card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark body */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have similar height */
  box-sizing: border-box;
  color: #ffffff;
}

.page-contact__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Use contain to show full illustration */
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Ensure it behaves as a block element for max-width */
}

.page-contact__card-title {
  font-size: 1.6rem;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-contact__card-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to grow */
}

.page-contact__email-link,
.page-contact__phone-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-contact__email-link:hover,
.page-contact__phone-link:hover {
  text-decoration: underline;
}

/* Call to Action Buttons */
.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box; /* Include padding in width */
  max-width: 100%; /* Ensure button doesn't overflow */
}

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

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

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

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

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

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px; /* Example size */
  height: 60px; /* Example size */
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1rem; /* Text label for social icon */
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-contact__social-icon:hover {
  background-color: #26A9E0;
  transform: translateY(-3px);
}

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

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

.page-contact__faq-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
  padding: 0 20px; /* Add padding to details item */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 1.2rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* Hide default marker for summary */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  user-select: none; /* Disable text selection */
}

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

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

.page-contact__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #ffffff;
}

.page-contact__faq-answer {
  padding-bottom: 20px;
  font-size: 1rem;
  color: #f0f0f0;
}

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

/* --- Responsive Design --- */

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

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

  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

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

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

  .page-contact__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    padding-top: 30px;
  }

  .page-contact__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-contact__contact-cards {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }

  .page-contact__card {
    padding: 20px;
    min-height: auto;
  }

  .page-contact__card-image {
    height: 150px; /* Adjust image height for mobile cards */
  }

  .page-contact__card-title {
    font-size: 1.4rem;
  }

  .page-contact__cta-button {
    width: 100% !important; /* Ensure buttons take full width */
    max-width: 100% !important;
    font-size: 1rem;
    padding: 12px 20px;
  }

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

  .page-contact__social-icon {
    width: 50px;
    height: 50px;
    font-size: 0.9rem; /* Adjust text size for smaller icons */
  }

  .page-contact__faq-question {
    font-size: 1.1rem;
    padding: 15px 0;
  }

  .page-contact__faq-answer {
    font-size: 0.95rem;
  }

  /* Image responsive rules */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images/content must be responsive */
  .page-contact__hero-section,
  .page-contact__methods-section,
  .page-contact__social-section,
  .page-contact__faq-section,
  .page-contact__responsible-gaming-section,
  .page-contact__container,
  .page-contact__contact-cards,
  .page-contact__card,
  .page-contact__social-links,
  .page-contact__faq-list,
  .page-contact__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Padding for main sections on mobile */
  .page-contact__methods-section,
  .page-contact__social-section,
  .page-contact__faq-section,
  .page-contact__responsible-gaming-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Specific padding for hero content */
  .page-contact__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Button groups in mobile to stack */
  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure no CSS filters are applied to images */
.page-contact img {
  filter: none !important;
}

/* Ensure content area images are not too small */
.page-contact__hero-image,
.page-contact__card-image {
  min-width: 200px;
  min-height: 200px;
}
/* Override min-height for card image for better mobile display, but ensure it's still > 200px wide */
@media (max-width: 768px) {
  .page-contact__card-image {
    min-height: 150px; /* Adjust for mobile, but min-width: 100% will make it wide enough */
  }
}

/* Specific color for login button if needed */
.page-contact__login-button { /* Example class, not used in current HTML */
  background-color: #EA7C07;
  color: #ffffff;
}

/* Body background is dark, so primary text should be light */
.page-contact p,
.page-contact li,
.page-contact__section-description,
.page-contact__card-text {
  color: #f0f0f0;
}

/* Headings can use brand color */
.page-contact__main-title,
.page-contact__section-title,
.page-contact__card-title,
.page-contact__faq-question {
  color: #26A9E0;
}

/* Ensure text on dark-bg sections is light */
.page-contact__dark-section p,
.page-contact__dark-section li,
.page-contact__dark-section .page-contact__section-description {
  color: #ffffff;
}