/* Base styles for the contact page */
.page-contact {
  background-color: transparent; /* Body background is handled by shared.css */
  color: #F3F8FF; /* Main text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

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

.page-contact__section-title {
  font-size: 32px;
  color: #F2C14E; /* Gold color for main titles */
  text-align: center;
  margin-bottom: 40px;
  margin-top: 60px;
  font-weight: bold;
  position: relative;
}

.page-contact__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #F2C14E, transparent);
  margin: 15px auto 0;
}

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 40px;
  display: flex; /* Use flex for image-below-text */
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-contact__hero-content {
  text-align: center;
  padding: 30px 15px;
  max-width: 900px;
  margin-top: -80px; /* Adjust to slightly overlap the image for visual flow, but not overlay text */
  position: relative; /* Ensure it's in normal flow */
  background: rgba(16, 35, 63, 0.9); /* Card BG with slight transparency */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
  z-index: 2; /* Bring content slightly above */
}

.page-contact__main-title {
  font-size: clamp(28px, 3.5vw, 48px); /* Responsive H1 font size */
  color: #F3F8FF; /* Text Main */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.page-contact__intro-text {
  font-size: 18px;
  color: #AFC4E8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto;
}

/* Channels Section */
.page-contact__channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

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

.page-contact__channel-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.page-contact__channel-icon {
  width: 200px;
  height: 200px;
  object-fit: cover; /* Use cover to fill the 200x200 space */
  margin-bottom: 20px;
  border-radius: 10px; /* Make it square with rounded corners */
  background: rgba(255,255,255,0.05);
  padding: 0; /* No padding if image is supposed to fill */
  box-shadow: 0 0 10px rgba(79, 168, 255, 0.3); /* Glow */
}

.page-contact__channel-title {
  font-size: 24px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__channel-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 25px;
  flex-grow: 1; /* Allow description to take available space */
}

/* Contact Form Section */
.page-contact__form-content {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
  background-color: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border color */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.page-contact__form-image-wrapper {
  flex: 1;
  min-width: 400px;
}

.page-contact__form-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-contact__form-wrapper {
  flex: 1;
}

.page-contact__form-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
}

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

.page-contact__form-label {
  display: block;
  font-size: 15px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 8px;
  font-weight: 500;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #244D84; /* Border color */
  border-radius: 5px;
  background-color: #08162B; /* Deep Navy - slightly darker input background */
  color: #F3F8FF; /* Text Main */
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #AFC4E8; /* Text Secondary */
  opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #1D5FD1; /* Auxiliary color */
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.3); /* Glow effect */
}

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

.page-contact__form-submit {
  width: auto;
  min-width: 180px;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
  color: #ffffff; /* White text for button */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.page-contact__form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(43, 115, 246, 0.4);
}

/* FAQ Section */
.page-contact__faq-intro {
  text-align: center;
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 40px;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border color */
  overflow: hidden;
  background: #10233F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F3F8FF; /* Text Main */
}
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: rgba(29, 95, 209, 0.1); /* Slight highlight on hover */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF; /* Text Main */
}
.page-contact__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  color: #F2C14E; /* Gold color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 25px;
  background: #08162B; /* Deep Navy - slightly darker for answer background */
  border-radius: 0 0 10px 10px;
  color: #AFC4E8; /* Text Secondary */
  font-size: 16px;
}
.page-contact__faq-answer p {
  margin: 0;
}


/* Other Info Section */
.page-contact__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

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

.page-contact__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.page-contact__info-icon {
  width: 200px; /* Enforce min image size */
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  padding: 0;
  box-shadow: 0 0 10px rgba(79, 168, 255, 0.3); /* Glow */
}

.page-contact__info-title {
  font-size: 24px;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-contact__info-description {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-contact__btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%; /* Ensure group respects container width */
}

/* Commitment Section */
.page-contact__commitment-section {
  text-align: center;
  padding: 50px 0;
  background-color: #10233F; /* Card BG */
  border-top: 1px solid #244D84; /* Border color */
  border-bottom: 1px solid #244D84;
  margin-bottom: 60px;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.page-contact__commitment-text {
  font-size: 18px;
  color: #AFC4E8; /* Text Secondary */
  max-width: 900px;
  margin: 0 auto 40px;
}

/* Reusable Button Styles */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons adapt to container */
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
  color: #ffffff; /* White text */
  border: none;
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.3);
}

.page-contact__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 115, 246, 0.5);
  opacity: 0.9;
}

.page-contact__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold color */
  border: 2px solid #F2C14E; /* Gold border */
  box-shadow: 0 2px 10px rgba(242, 193, 78, 0.2);
}

.page-contact__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

/* Mobile responsive adaptations */
@media (max-width: 1023px) {
  /* No specific 1023px rules for contact page, but keeping the block for completeness */
}

@media (min-width: 1024px) {
  /* No specific 1024px rules for contact page, but keeping the block for completeness */
}

@media (max-width: 768px) {
  .page-contact {
    font-size: 16px;
    line-height: 1.6;
    padding-bottom: 30px;
  }
  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__section-title {
    font-size: 28px;
    margin-top: 40px;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .page-contact__hero-section {
    padding-top: 5px;
    margin-bottom: 20px;
  }
  .page-contact__hero-content {
    margin-top: -60px;
    padding: 20px 10px;
  }
  .page-contact__main-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 10px;
  }
  .page-contact__intro-text {
    font-size: 16px;
  }

  /* Channels Section */
  .page-contact__channels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .page-contact__channel-card {
    padding: 20px;
  }
  .page-contact__channel-icon {
    width: 200px;
    height: 200px;
    min-width: 200px !important; /* Ensure images are not smaller than 200px */
    min-height: 200px !important;
    margin-bottom: 15px;
  }
  .page-contact__channel-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-contact__channel-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Contact Form Section */
  .page-contact__form-content {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    margin-bottom: 40px;
  }
  .page-contact__form-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-contact__form-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-contact__form-label {
    font-size: 14px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-contact__form-submit {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 16px;
  }

  /* FAQ Section */
  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px 20px;
  }
  .page-contact__faq-qtext {
    font-size: 16px;
  }
  .page-contact__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  /* Other Info Section */
  .page-contact__info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
  }
  .page-contact__info-card {
    padding: 20px;
  }
  .page-contact__info-icon {
    width: 200px;
    height: 200px;
    min-width: 200px !important;
    min-height: 200px !important;
    margin-bottom: 15px;
  }
  .page-contact__info-title {
    font-size: 20px;
    margin-bottom: 10px;
  }
  .page-contact__info-description {
    font-size: 15px;
    margin-bottom: 20px;
  }
  .page-contact__btn-group {
    flex-direction: column;
    gap: 10px;
  }
  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Commitment Section */
  .page-contact__commitment-section {
    padding: 30px 0;
    margin-bottom: 40px;
  }
  .page-contact__commitment-text {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Global image and button adaptations for 768px */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__form-wrapper,
  .page-contact__form-content,
  .page-contact__channels-grid,
  .page-contact__info-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Buttons and button containers */
  .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% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-contact__cta-buttons,
  .page-contact__button-group,
  .page-contact__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-contact__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* Ensure all images are at least 200x200px for content display */
.page-contact img:not(.page-contact__channel-icon):not(.page-contact__info-icon) {
    min-width: 200px;
    min-height: 200px;
}

/* Fixed header spacing - using body padding-top from shared.css, so main's first child needs minimal padding */
.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

/* Placeholder for required 1023px and 1024px blocks from template. Not relevant for contact page content, but must be present. */
@media (max-width: 1023px) {
  .page-contact__home-hero { display: block !important; grid-template-columns: none !important; height: auto !important; max-height: none !important; overflow-x: hidden; box-sizing: border-box; }
  .page-contact__hero-brand, .page-contact__hero-jackpot { display: none !important; }
  .page-contact__game-trial { width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; overflow: hidden !important; margin: 0 auto; padding: 0 0 12px !important; box-sizing: border-box; }
  .page-contact__game-trial-shell { height: auto !important; max-height: none !important; width: 100%; max-width: 100%; overflow: hidden; box-sizing: border-box; }
  .page-contact__game-trial-topbar, .page-contact__game-trial-bottombar { display: none !important; }
  .page-contact__game-trial-viewport { position: relative; width: 100%; aspect-ratio: 1024 / 768; flex: none !important; min-height: 240px; max-height: none !important; overflow: hidden; box-sizing: border-box; }
  .page-contact__game-trial-frame { position: absolute; inset: 0; width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: none !important; max-width: 100%; border: none; z-index: 1; overflow: hidden; }
  .page-contact__game-trial-overlay { z-index: 5 !important; pointer-events: auto !important; }
  .page-contact__game-trial-start { z-index: 6 !important; pointer-events: auto !important; touch-action: manipulation; }
}
@media (min-width: 1024px) {
  .page-contact__home-hero { display: grid; grid-template-columns: 26% 48% 26%; gap: 16px; align-items: stretch; width: 100%; max-width: 1280px; margin: 0 auto; padding: 10px 16px 24px; box-sizing: border-box; }
  .page-contact__hero-brand, .page-contact__hero-jackpot, .page-contact__game-trial { height: 300px; max-height: 300px; overflow: hidden; box-sizing: border-box; }
  .page-contact__game-trial { max-width: none !important; width: 100%; margin: 0; padding: 0; }
  .page-contact__game-trial-shell { display: flex; flex-direction: column; height: 100%; max-height: 300px; box-sizing: border-box;}}