/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  background-color: var(--bg, #08160F); /* Use custom background color, fallback to dark green */
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom before footer */
}

/* Container for consistent content width */
.page-contact__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section titles */
.page-contact__section-title {
  font-size: 2.5em;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* Section descriptions */
.page-contact__section-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-contact__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-contact__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--gold, #F2C14E); /* Use gold for main title */
  margin-bottom: 20px;
  /* No fixed font-size, rely on responsive scaling */
  font-size: clamp(2em, 4vw, 3.5em); /* Example using clamp for responsive H1 */
}

.page-contact__hero-description {
  font-size: 1.2em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 30px;
}

.page-contact__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* --- Contact Methods Section --- */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: var(--background, #08160F); /* Ensure consistency */
}

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

.page-contact__method-card {
  background-color: var(--card-bg, #11271B); /* Card background color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border, #2E7A4E);
  color: var(--text-main, #F2FFF6); /* Ensure text on card is light */
}

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

.page-contact__method-icon {
  width: 100px; /* Adjust size for icons */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block; /* Ensure it respects width/height */
  margin-left: auto;
  margin-right: auto;
}

.page-contact__method-title {
  font-size: 1.8em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__method-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
}

.page-contact__contact-info {
  font-size: 1.1em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
}

.page-contact__contact-info a {
  color: var(--glow, #57E38D); /* Link color */
  text-decoration: none;
  font-weight: bold;
}

.page-contact__contact-info a:hover {
  text-decoration: underline;
}

.page-contact__method-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  margin-top: 15px;
}

.page-contact__method-button:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Contact Form */
.page-contact__contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
  text-align: left;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 6px;
  background-color: rgba(17, 39, 27, 0.7); /* Slightly darker than card background */
  color: var(--text-main, #F2FFF6);
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: var(--text-secondary, #A7D9B8);
  opacity: 0.8;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--glow, #57E38D);
  box-shadow: 0 0 0 2px rgba(87, 227, 141, 0.3);
}

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

.page-contact__form-button {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__form-button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* --- FAQ Section --- */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: var(--background, #08160F);
}

.page-contact__faq-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-contact__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--text-main, #F2FFF6); /* Ensure text on card is light */
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-main, #F2FFF6);
  background-color: var(--deep-green, #0A4B2C); /* Slightly different background for question */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-contact__faq-item[open] > .page-contact__faq-question {
  background-color: var(--deep-green, #0A4B2C);
  border-bottom: 1px solid var(--divider, #1E3A2A);
}

.page-contact__faq-question::-webkit-details-marker {
  display: none;
}
.page-contact__faq-question::marker {
  display: none;
}

.page-contact__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C); /* Darker hover */
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold, #F2C14E);
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  max-height: 0; /* For JS-controlled collapse */
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 20px 25px;
}

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

.page-contact__faq-link {
  display: inline-block;
  color: var(--glow, #57E38D);
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}

.page-contact__faq-link:hover {
  text-decoration: underline;
}

/* --- Social Media Section --- */
.page-contact__social-section {
  padding: 60px 0;
  background-color: var(--background, #08160F);
}

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

.page-contact__social-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
  border-radius: 50%;
  font-size: 1.2em;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid var(--border, #2E7A4E);
  font-weight: bold; /* Make text visible */
}

.page-contact__social-icon-link:hover {
  background-color: var(--glow, #57E38D);
  color: #08160F; /* Dark text on bright hover */
  transform: translateY(-3px) scale(1.05);
}


/* --- CTA Banner Section --- */
.page-contact__cta-banner {
  background: linear-gradient(rgba(17, 168, 78, 0.7), rgba(34, 199, 104, 0.7)), url("[GALLERY:cta_banner:1920x400:32wim no hu,game,players,excitement,green gold]") center center / cover no-repeat;
  padding: 80px 20px;
  text-align: center;
  border-radius: 15px;
  margin: 60px auto;
  max-width: 1200px;
  box-sizing: border-box;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-contact__cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-contact__cta-title {
  font-size: 2.8em;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-contact__cta-description {
  font-size: 1.2em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 40px;
}

.page-contact__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__hero-description {
    font-size: 1.1em;
  }
  .page-contact__method-title {
    font-size: 1.5em;
  }
  .page-contact__faq-question {
    font-size: 1.1em;
  }
  .page-contact__cta-title {
    font-size: 2.2em;
  }
}

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

  /* Specific section padding */
  .page-contact__hero-section,
  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__social-section,
  .page-contact__cta-banner {
    padding: 30px 0;
  }

  /* Ensure containers have padding to prevent edge-to-edge content */
  .page-contact__container,
  .page-contact__hero-content,
  .page-contact__cta-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  /* Buttons responsive */
  .page-contact__cta-button,
  .page-contact__method-button,
  .page-contact__form-button,
  .page-contact__faq-link,
  .page-contact__social-icon-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center; /* Center text in full-width buttons */
  }

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

  .page-contact__social-links {
    flex-direction: column; /* Stack social icons vertically */
    gap: 15px;
    align-items: center;
  }

  .page-contact__social-icon-link {
    width: 80% !important;
    height: auto !important;
    padding: 15px 0;
    border-radius: 8px !important;
  }

  .page-contact__hero-image-wrapper {
    max-height: 300px; /* Adjust hero image height for mobile */
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust clamp for mobile H1 */
  }
  .page-contact__cta-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__hero-description,
  .page-contact__section-description,
  .page-contact__method-text,
  .page-contact__contact-info,
  .page-contact__faq-answer,
  .page-contact__cta-description {
    font-size: 0.95em;
  }
  .page-contact__method-title {
    font-size: 1.3em;
  }
  .page-contact__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-contact__faq-answer {
    padding: 15px 20px;
  }
  .page-contact__cta-banner {
    border-radius: 0; /* Remove border-radius on mobile for full width */
    margin: 30px 0;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-image-wrapper {
    max-height: 250px;
  }
}