/* -------------------------------------------------------------------------- */
/*                              Global CSS Rules                              */
/* -------------------------------------------------------------------------- */

/* Body background is dark (#0D0E12), so main text should be light */
.page-contact {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
}

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

.page-contact__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #FF8C1A; /* Main color */
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

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

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
  box-sizing: border-box;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Max height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin-top: 30px;
  padding: 0 15px;
  box-sizing: border-box;
}

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

.page-contact__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

/* -------------------------------------------------------------------------- */
/*                               Button Styles                                */
/* -------------------------------------------------------------------------- */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-contact__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
}

.page-contact__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-contact__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FF8C1A; /* Main color */
  border: 2px solid #A84F0C; /* Border */
}

.page-contact__btn-secondary:hover {
  background: #FF8C1A;
  color: #ffffff;
  border-color: #FF8C1A;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

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

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

.page-contact__method-card {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  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;
}

.page-contact__method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.2);
}

.page-contact__method-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__method-title {
  font-size: 24px;
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
}

.page-contact__method-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

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

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

.page-contact__form-image {
  flex: 1 1 400px;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-contact__form {
  flex: 1 1 400px;
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #A84F0C; /* Border */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent background */
  color: #FFF3E6; /* Text Main */
  font-size: 16px;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #a0a0a0;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FF8C1A; /* Main color */
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 140, 26, 0.3);
}

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

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

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}

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: #FFF3E6;
}

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(255, 140, 26, 0.1);
}

.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D; /* Glow */
}

.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FF8C1A; /* Main color */
  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: #17191F; /* Card BG */
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  color: #f0f0f0;
}

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

/* -------------------------------------------------------------------------- */
/*                              Additional Info Section                       */
/* -------------------------------------------------------------------------- */
.page-contact__additional-info {
  padding: 60px 0 80px;
  background-color: #0D0E12;
}

.page-contact__benefits-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-contact__benefits-list li {
  background: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  font-size: 17px;
  color: #FFF3E6;
  display: flex;
  align-items: center;
}

.page-contact__benefits-list li p {
  margin: 0;
}

.page-contact__benefits-list li strong {
  color: #FFB04D; /* Glow */
  margin-right: 8px;
}

.page-contact__cta-bottom {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/*                            Homepage CSS Rules (Required)                   */
/* -------------------------------------------------------------------------- */
/* This section is required by the prompt to be in the CSS output, 
   even if the current page (contact.html) does not use these elements. */

@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;
  }
  .page-contact__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-contact__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-contact__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
  .page-contact__promo-strip {
    margin-top: 16px;
  }
  .page-contact__promo-strip-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .page-contact__promo-card {
    display: flex;
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  .page-contact__promo-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin-right: 15px;
  }
  .page-contact__hot-games-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    text-align: center;
  }
  .page-contact__hot-games-item-name,
  .page-contact__hot-games-item-rtp,
  .page-contact__hot-games-item-desc {
    display: block;
  }
}

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

  .page-contact__container,
  .page-contact__hero-content,
  .page-contact__cta-buttons,
  .page-contact__methods-grid,
  .page-contact__method-card,
  .page-contact__form-wrapper,
  .page-contact__form,
  .page-contact__faq-list,
  .page-contact__faq-item,
  .page-contact__benefits-list,
  .page-contact__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-contact__hero-section {
    padding-bottom: 30px;
  }

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

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

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

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

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

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

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

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

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

  .page-contact__form-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-contact__form-image {
    max-width: 100%;
  }

  .page-contact__form {
    padding: 30px;
  }

  .page-contact__faq-section {
    padding: 40px 0;
  }

  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: 24px;
  }

  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
  }

  .page-contact__additional-info {
    padding: 40px 0 60px;
  }

  .page-contact__benefits-list {
    margin: 30px auto;
  }

  .page-contact__benefits-list li {
    font-size: 16px;
    padding: 12px 15px;
  }

  .page-contact__cta-bottom {
    flex-direction: column;
    gap: 15px;
    margin-top: 40px;
  }

  /* Homepage elements that might be present in a global CSS */
  .page-contact__promo-strip-track {
    grid-template-columns: repeat(2, 1fr) !important; /* Example for 768px */
    gap: 15px !important;
    overflow-x: hidden !important;
  }
  .page-contact__promo-card {
    flex-direction: column !important;
    text-align: center !important;
    padding: 15px !important;
  }
  .page-contact__promo-image {
    margin-right: 0 !important;
    margin-bottom: 10px !important;
  }
  .page-contact__hot-games-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }
  .page-contact__hot-games-item-name,
  .page-contact__hot-games-item-rtp,
  .page-contact__hot-games-item-desc {
    display: none !important; /* Hide for mobile */
  }
  .page-contact__brand-intro {
    display: block !important; /* If hidden on desktop, show on mobile */
    padding: 20px 15px !important;
  }
  .page-contact__winner-ticker {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 999 !important;
  }
  body {
    padding-bottom: 50px; /* Adjust body padding for fixed ticker */
  }
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-contact__game-trial-overlay.is-hidden {
    display: none !important;
    pointer-events: none !important;
  }
  .page-contact__reward-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10000 !important;
  }
}

/* Common styles for game trial and modals, required in CSS output */
.page-contact__game-trial-overlay{
  z-index:5;
  pointer-events:auto;
}
.page-contact__game-trial-overlay.is-hidden{
  display:none!important;
  pointer-events:none!important;
}
.page-contact__game-trial-start{
  z-index:6;
  pointer-events:auto;
  touch-action:manipulation;
}
.page-contact__game-trial-shell{
  border:1px solid rgba(212,175,55,.45);
  border-radius:10px;
  overflow:hidden;
}
.page-contact__reward-modal{
  position:fixed;
  inset:0;
  z-index:10000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  box-sizing: border-box;
}
.page-contact__reward-modal[hidden] {
  display: none;
}
.page-contact__reward-modal-content {
  background: #17191F;
  color: #FFF3E6;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 5px 25px rgba(0,0,0,0.5);
}
.page-contact__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  color: #FFF3E6;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
  transition: color 0.3s ease;
}
.page-contact__reward-modal-close:hover {
  color: #FF8C1A;
}
.page-contact__reward-modal h3 {
  font-size: 24px;
  color: #FFB04D;
  margin-bottom: 15px;
}
.page-contact__reward-modal p {
  font-size: 16px;
  margin-bottom: 25px;
}
.page-contact__reward-modal .page-contact__btn-primary {
  width: auto;
  padding: 10px 25px;
  font-size: 16px;
}
body.page-contact--reward-open {
  overflow: hidden;
}