.page-contact {
  font-family: Arial, sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f5f5f5;
}

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

.page-contact__section-title {
  font-size: clamp(28px, 4vw, 40px);
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Rely on body for header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

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

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 20px;
  max-width: 900px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.page-contact__hero-section h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  color: #ffffff;
}

.page-contact__hero-section p {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 0;
  color: #f0f0f0;
}

/* Form Section */
.page-contact__form-section {
  padding: 40px 0;
  background-color: #ffffff;
  margin-bottom: 40px;
}

.page-contact__form-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-contact__contact-form {
  flex: 1;
  max-width: 600px;
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__form-button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background-color: #C30808; /* Login/Register color */
  color: #FFFF00; /* Login/Register font color */
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-contact__form-button:hover {
  background-color: #a00606;
}

.page-contact__form-image-container {
  flex: 1;
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__form-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Info Section */
.page-contact__info-section {
  padding: 40px 0;
  background-color: #f0f0f0;
  margin-bottom: 40px;
}

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

.page-contact__info-item {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-contact__info-heading {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
}

.page-contact__info-item p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 10px;
}

.page-contact__info-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 6px;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 40px 0;
  background-color: #ffffff;
  margin-bottom: 40px;
}

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

.page-contact__faq-item {
  background: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  list-style: none;
}

.page-contact__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  color: #333333;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

.page-contact__faq-item summary:hover {
  background-color: #e5e5e5;
}

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

.page-contact__faq-qtext {
  flex-grow: 1;
  padding-right: 10px;
}

.page-contact__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  transform: rotate(45deg);
}

.page-contact__faq-answer {
  padding: 20px;
  border-top: 1px solid #e0e0e0;
  color: #555555;
  font-size: 16px;
  background-color: #ffffff;
}

.page-contact__faq-image-container {
    margin-top: 40px;
    text-align: center;
}

.page-contact__faq-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 8px;
}

/* CTA Section */
.page-contact__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #017439; /* Brand primary color */
}

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

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

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

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

.page-contact__btn-primary:hover {
  background-color: #a00606;
}

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

.page-contact__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #017439;
}

/* General image rules */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

  .page-contact__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__section-title {
    font-size: clamp(24px, 6vw, 36px);
  }

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

  /* Hero Section */
  .page-contact__hero-section {
    flex-direction: column;
    padding-top: 10px !important;
    min-height: 300px;
  }

  .page-contact__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important;
    max-height: none !important;
    position: relative; /* Adjust for contain */
  }

  .page-contact__hero-content {
    padding: 15px;
    margin-top: 10px; /* Space below image */
    background: rgba(0, 0, 0, 0.6);
  }

  .page-contact__hero-section h1 {
    font-size: clamp(28px, 7vw, 40px);
  }

  .page-contact__hero-section p {
    font-size: clamp(14px, 3vw, 18px);
  }

  /* Form Section */
  .page-contact__form-wrapper {
    flex-direction: column;
    gap: 20px;
  }

  .page-contact__contact-form,
  .page-contact__form-image-container {
    max-width: 100%;
    width: 100%;
  }

  .page-contact__form-button {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Info Section */
  .page-contact__info-details {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__info-item {
    padding: 20px;
  }

  .page-contact__info-heading {
    font-size: 20px;
  }

  /* FAQ Section */
  .page-contact__faq-item summary {
    font-size: 16px;
    padding: 15px;
  }

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

  .page-contact__faq-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* CTA Section */
  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General images and containers */
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Placeholders for homepage specific elements, if they were present */
  .page-contact__game-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  .page-contact__game-tile {
    aspect-ratio: 1 / 1 !important;
    width: 100% !important;
  }
  .page-contact__winner-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
  }
  .page-contact__winner-item {
    display: flex !important;
    align-items: center !important;
    padding: 10px !important;
    border: 1px solid #eee !important;
    border-radius: 8px !important;
  }
  .page-contact__winner-item img {
    
    
    margin-right: 10px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
  }
  .page-contact__winner-details {
    flex: 1 !important;
  }
  .page-contact__winner-name {
    font-size: 16px !important;
    font-weight: bold !important;
  }
  .page-contact__winner-amount {
    font-size: 14px !important;
    color: #017439 !important;
  }
  .page-contact__blog-card {
    max-width: 100% !important;
    width: 100% !important;
  }
}