/* Base Styles */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  line-height: 1.6;
}

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

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

.page-contact__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935; /* Primary Color */
  text-align: center;
  margin-bottom: 15px;
}

.page-contact__section-intro {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #555555;
}

/* Hero Section */
.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button Gradient */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.page-contact__hero-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 40px;
}

.page-contact__hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

.page-contact__main-title {
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 15px;
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size for H1 */
}

.page-contact__hero-description {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 20px;
}

/* Contact Methods Section */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Background */
}

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

.page-contact__method-card {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.page-contact__method-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  object-fit: contain;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-contact__method-title {
  font-size: 22px;
  font-weight: 600;
  color: #E53935; /* Primary Color */
  margin-bottom: 10px;
}

.page-contact__method-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Card BG */
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  background-color: #FFFFFF;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #E0E0E0;
  border-radius: 5px;
  font-size: 16px;
  color: #333333;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FF5A4F; /* Accent Color */
  outline: none;
}

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

.page-contact__form-submit-btn {
  width: 100%;
  padding: 15px 20px;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button Gradient */
  color: #ffffff;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

/* FAQ Section */
.page-contact__faq-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Background */
}

.page-contact__faq-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 30px auto 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #333333;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: #f5f5f5;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
.page-contact__faq-link {
  color: #E53935; /* Primary Color */
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  display: inline-block;
}
.page-contact__faq-link:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%); /* Reversed gradient for contrast */
  color: #ffffff;
}

.page-contact__cta-section .page-contact__section-title,
.page-contact__cta-section .page-contact__section-intro {
  color: #ffffff;
}

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

.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 5px;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: #ffffff;
  color: #E53935; /* Primary Color */
  border: 2px solid #ffffff;
}

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

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

.page-contact__btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

/* Universal Image & Button Responsive */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__cta-buttons,
.page-contact__button-group,
.page-contact__btn-container,
.page-contact__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  /* This page is not an index page, so homepage specific rules for game trial are not applicable.
     General responsive rules apply. */
}

@media (max-width: 768px) {
  .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-contact__section-title {
    font-size: 28px;
  }

  .page-contact__section-intro {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-contact__hero-image {
    margin-bottom: 15px;
  }

  .page-contact__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 10px;
  }

  .page-contact__hero-description {
    font-size: 16px;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr;
  }

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

  .page-contact__method-icon {
    max-width: 120px;
  }

  .page-contact__method-title {
    font-size: 20px;
  }

  .page-contact__method-description {
    font-size: 15px;
  }

  .page-contact__contact-form {
    padding: 25px;
  }

  .page-contact__form-label {
    font-size: 15px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }

  .page-contact__form-submit-btn {
    padding: 12px 15px;
    font-size: 16px;
  }

  details.page-contact__faq-item summary.page-contact__faq-question { padding: 15px; }
  .page-contact__faq-qtext { font-size: 15px; }
  .page-contact__faq-toggle { font-size: 20px; margin-left: 10px; width: 24px; text-align: center; }
  details.page-contact__faq-item .page-contact__faq-answer { padding: 0 15px 15px; }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Color Contrast Fixes (if needed, applied automatically based on body background) */
/* Assuming body background is light, so default text is dark */
.page-contact__dark-section {
  background: #E53935;
  color: #ffffff;
}

/* The provided 'homepage specific' CSS for 1023px and 1024px is explicitly for an index page.
   Since this is 'contact.html', those rules are not directly applicable and are omitted
   to avoid generating irrelevant CSS. General responsive rules are provided instead. */