/* style/contact.css */

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f5f5f5; /* Light background for the section */
}

.page-contact__hero-image {
  width: 100%;
  max-width: 1920px; /* Ensure image doesn't overflow */
  height: auto;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
  display: block;
}

.page-contact__hero-content {
  max-width: 900px;
  margin: 0 auto;
}

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

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

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

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__btn-tertiary,
.page-contact__form-submit-btn,
.page-contact__btn-inline {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

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

.page-contact__btn-primary:hover {
  background-color: #1a8cc7; /* Slightly darker */
  border-color: #1a8cc7;
}

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

.page-contact__btn-secondary:hover {
  background-color: #e0f2f7; /* Light hover */
  color: #1a8cc7;
  border-color: #1a8cc7;
}

.page-contact__btn-tertiary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-contact__btn-tertiary:hover {
  background-color: #d16e07;
  border-color: #d16e07;
}

.page-contact__btn-inline {
    background-color: transparent;
    color: #26A9E0;
    border: 1px solid #26A9E0;
    padding: 8px 15px;
    font-size: 0.9rem;
    margin: 5px;
    border-radius: 5px;
}

.page-contact__btn-inline:hover {
    background-color: #e0f2f7;
    color: #1a8cc7;
}

/* General Section Styling */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box; /* Ensure padding is included in width */
}

.page-contact__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-contact__section-description {
  font-size: 1.1rem;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-contact__method-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
}

.page-contact__method-icon {
  width: 200px; /* Minimum 200px */
  height: 200px; /* Minimum 200px */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-contact__method-text {
  font-size: 1rem;
  color: #666666;
  margin-bottom: 20px;
}

.page-contact__method-detail {
  font-size: 1rem;
  color: #333333;
  margin-bottom: 10px;
  font-weight: 500;
}

.page-contact__method-detail a {
  color: #26A9E0;
  text-decoration: none;
}

.page-contact__method-detail a:hover {
  text-decoration: underline;
}

/* Contact Form Section */
.page-contact__contact-form {
  padding: 80px 0;
  background-color: #f5f5f5;
}

.page-contact__form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #FFFFFF;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  color: #333333;
  background-color: #fafafa;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #26A9E0;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
  outline: none;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__form-submit-btn {
  width: 100%;
  background-color: #26A9E0;
  color: #FFFFFF;
  border: none;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-contact__form-submit-btn:hover {
  background-color: #1a8cc7;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

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

.page-contact__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden; /* For smooth collapse */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #e0f2f7; /* Light brand color background for question */
  border-bottom: 1px solid #d0e8f0;
  list-style: none; /* Hide default marker for details summary */
  -webkit-touch-callout: none; /* Disable text selection on iOS */
  -webkit-user-select: none; /* Disable text selection on WebKit */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Disable text selection */
}

/* Hide default marker for details summary */
.page-contact__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-contact__faq-item summary::marker {
  display: none;
}


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

.page-contact__faq-qtext {
  flex-grow: 1;
  color: #26A9E0; /* Brand color for FAQ question text */
}

.page-contact__faq-toggle {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-contact__faq-item[open] .page-contact__faq-question {
  border-bottom-color: transparent; /* No border when open */
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #555555;
  background-color: #FFFFFF;
  border-top: 1px solid #f0f0f0;
}

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

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

.page-contact__game-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

/* Social Media Section */
.page-contact__social-media {
  padding: 60px 0;
  background-color: #26A9E0; /* Brand color background */
  color: #FFFFFF; /* White text for dark background */
}

.page-contact__social-media .page-contact__section-title,
.page-contact__social-media .page-contact__section-description {
  color: #FFFFFF; /* Ensure white text on brand color background */
}

.page-contact__social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-contact__social-link {
  display: block;
  transition: transform 0.3s ease;
}

.page-contact__social-link:hover {
  transform: translateY(-5px);
}

.page-contact__social-link img {
  width: 200px; /* Minimum 200px as per rules */
  height: 200px; /* Minimum 200px as per rules */
  object-fit: contain;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 10px;
  box-sizing: border-box;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-contact__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-contact__main-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }

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

  .page-contact__contact-methods,
  .page-contact__contact-form,
  .page-contact__faq-section,
  .page-contact__social-media {
    padding: 60px 0;
  }
}

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

  /* Force responsive images */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Force responsive videos (if any) */
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Force responsive containers */
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form .page-contact__form,
  .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; /* Prevent horizontal scroll */
  }

  /* Video section specific padding for mobile */
  .page-contact__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Force responsive buttons */
  .page-contact__cta-button,
  .page-contact__btn-primary,
  .page-contact__btn-secondary,
  .page-contact__btn-tertiary,
  .page-contact__form-submit-btn,
  .page-contact__btn-inline,
  .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; /* Add padding for readability on small screens */
    padding-right: 15px;
    margin-bottom: 10px; /* Space out stacked buttons */
  }
  
  .page-contact__cta-group,
  .page-contact__button-group,
  .page-contact__btn-container,
  .page-contact__game-links {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr; /* Stack contact cards */
  }

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

  .page-contact__form {
    padding: 30px;
  }

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

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

  .page-contact__social-icons {
    gap: 20px;
  }
}