.page-contact {
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  background-color: #FFFFFF; /* Default background */
  color: #000000; /* Dark text for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-contact__hero-section {
  text-align: center;
  padding: 80px 20px 40px;
  position: relative;
  overflow: hidden;
  display: flex; /* Use flex to layer image and content */
  align-items: center;
  justify-content: center;
}

.page-contact__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent background for readability */
  border-radius: 10px;
}

.page-contact__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #000000;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-contact__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 30px;
  color: #333333;
}

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

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  margin: 10px;
  min-width: 200px; /* Ensure button minimum width */
  text-align: center;
}

.page-contact__cta-button--register {
  background-color: #FCBC45;
  color: #000000; /* Register text color from custom palette */
}

.page-contact__cta-button--register:hover {
  background-color: #e0a53b;
}

.page-contact__cta-button--secondary {
  background-color: #000000;
  color: #FFFFFF;
}

.page-contact__cta-button--secondary:hover {
  background-color: #333333;
}

.page-contact__cta-button--tertiary {
  background-color: #666666;
  color: #FFFFFF;
}

.page-contact__cta-button--tertiary:hover {
  background-color: #888888;
}

.page-contact__cta-button--register-large,
.page-contact__cta-button--login-large {
  padding: 18px 35px;
  font-size: 1.3em;
  margin: 15px;
}

.page-contact__cta-button--login-large {
  background-color: #FCBC45; /* Login button color from custom palette */
  color: #000000;
}

.page-contact__cta-button--login-large:hover {
  background-color: #e0a53b;
}

.page-contact__methods-section,
.page-contact__faq-section,
.page-contact__responsible-gaming-section,
.page-contact__feedback-section,
.page-contact__business-inquiries-section,
.page-contact__security-commitment-section,
.page-contact__social-media-section,
.page-contact__final-cta-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-contact__section-title {
  font-size: 2.5em;
  margin-bottom: 25px;
  color: #000000;
}

.page-contact__section-intro {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #333333;
}

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

.page-contact__card {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-contact__card-icon {
  width: 200px; /* Minimum size for content images */
  height: auto;
  max-width: 100%;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-contact__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #000000;
}

.page-contact__card-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-contact__email-link,
.page-contact__phone-number {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

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

.page-contact__card-button {
  display: inline-block;
  padding: 12px 25px;
  background-color: #000000;
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Pushes button to bottom */
  transition: background-color 0.3s ease;
}

.page-contact__card-button:hover {
  background-color: #333333;
}

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

.page-contact__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-contact__faq-question {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-contact__faq-answer {
  font-size: 1em;
  color: #555555;
}

.page-contact__inline-link {
  color: #000000;
  text-decoration: underline;
}

.page-contact__inline-link:hover {
  color: #333333;
}

.page-contact__more-faq {
  margin-top: 30px;
}

.page-contact__responsible-gaming-text,
.page-contact__feedback-text,
.page-contact__business-inquiries-text,
.page-contact__security-commitment-text,
.page-contact__social-disclaimer {
  font-size: 1.1em;
  max-width: 900px;
  margin: 20px auto 30px;
  color: #333333;
}

.page-contact__responsible-gaming-image,
.page-contact__feedback-image,
.page-contact__business-inquiries-image,
.page-contact__security-commitment-image {
  width: 800px; /* Example display size */
  height: auto;
  max-width: 100%;
  margin-top: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-contact__social-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #000000;
  background-color: #f8f8f8;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 240px; /* Ensure card is large enough */
}

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

.page-contact__social-link-image {
  width: 200px; /* Minimum size for content images */
  height: 200px; /* Fixed height for consistency */
  object-fit: contain; /* Ensure image fits without cropping */
  margin-bottom: 15px;
}

.page-contact__social-link-text {
  font-size: 1.2em;
  font-weight: bold;
  color: #000000;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .page-contact__hero-title {
    font-size: 2.5em;
  }

  .page-contact__hero-description {
    font-size: 1em;
  }

  .page-contact__section-title {
    font-size: 2em;
  }

  .page-contact__section-intro {
    font-size: 0.95em;
  }

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

  .page-contact__card-icon {
    width: 200px; /* Maintain minimum size */
    height: auto;
  }

  .page-contact__responsible-gaming-image,
  .page-contact__feedback-image,
  .page-contact__business-inquiries-image,
  .page-contact__security-commitment-image {
    width: 100%;
    height: auto;
  }
  
  /* Mobile content image overflow prevention */
  .page-contact img {
    max-width: 100%;
    height: auto;
  }

  .page-contact__social-link-image {
    width: 200px; /* Ensure minimum size is maintained */
    height: 200px;
  }

  .page-contact__social-link-card {
    min-width: unset;
    width: 100%;
  }

  /* Ensure main content area does not cause horizontal scroll */
  .page-contact {
    overflow-x: hidden;
  }
}