/* style/contact.css */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensure consistency with body background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for PC */
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header if needed, though var handles it */
  }
}

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

.page-contact__hero-section {
  background-color: #000000; /* Dark background for hero */
  color: #FFFFFF; /* Light text for dark background */
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-contact__hero-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-contact__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #F0F0F0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-contact__button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
}

.page-contact__button--register {
  background-color: #FFFFFF;
  color: #000000;
}

.page-contact__button--register:hover {
  background-color: #E0E0E0;
}

.page-contact__button--login {
  background-color: #FCBC45;
  color: #000000;
}

.page-contact__button--login:hover {
  background-color: #E6A83E;
}

.page-contact__info-section,
.page-contact__form-section,
.page-contact__additional-support-section,
.page-contact__faq-summary-section,
.page-contact__final-cta {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-contact__info-section {
  background-color: #F8F8F8;
}

.page-contact__info-title,
.page-contact__form-title,
.page-contact__additional-support-title,
.page-contact__faq-summary-title,
.page-contact__final-cta-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-contact__info-intro,
.page-contact__form-intro,
.page-contact__additional-support-intro,
.page-contact__faq-summary-intro,
.page-contact__final-cta-description {
  font-size: 1.1em;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-contact__channel-card,
.page-contact__additional-card {
  background-color: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__channel-card:hover,
.page-contact__additional-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-contact__channel-icon,
.page-contact__additional-icon {
  width: 100%; /* Make icons fill card width */
  max-width: 300px; /* Max width for icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__channel-title,
.page-contact__additional-card-title {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-contact__channel-description,
.page-contact__additional-card-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 25px;
}

.page-contact__button--livechat,
.page-contact__button--email,
.page-contact__button--faq,
.page-contact__button--responsible-gaming,
.page-contact__button--privacy-policy,
.page-contact__button--affiliate-program,
.page-contact__button--full-faq {
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  font-size: 1em;
}

.page-contact__button--livechat:hover,
.page-contact__button--email:hover,
.page-contact__button--faq:hover,
.page-contact__button--responsible-gaming:hover,
.page-contact__button--privacy-policy:hover,
.page-contact__button--affiliate-program:hover,
.page-contact__button--full-faq:hover {
  background-color: #E6A83E;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #F8F8F8;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

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

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: #FCBC45;
  outline: none;
}

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

.page-contact__button--submit {
  background-color: #000000;
  color: #FFFFFF;
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  border-radius: 8px;
}

.page-contact__button--submit:hover {
  background-color: #333333;
}

.page-contact__faq-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-contact__faq-item {
  background-color: #F0F0F0;
  border-radius: 8px;
  padding: 15px 25px;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-item a {
  text-decoration: none;
  color: #000000;
  font-weight: bold;
  font-size: 1.1em;
  display: block;
}

.page-contact__faq-item a:hover {
  color: #FCBC45;
}

.page-contact__button--full-faq {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
}

.page-contact__final-cta {
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

.page-contact__final-cta-content {
  max-width: 900px;
}

.page-contact__final-cta-title {
  color: #FFFFFF;
  font-size: 2.8em;
}

.page-contact__final-cta-description {
  color: #F0F0F0;
  font-size: 1.2em;
  margin-bottom: 40px;
}

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

.page-contact__button--register-large {
  background-color: #FFFFFF;
  color: #000000;
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-contact__button--register-large:hover {
  background-color: #E0E0E0;
}

.page-contact__button--login-large {
  background-color: #FCBC45;
  color: #000000;
  padding: 18px 35px;
  font-size: 1.2em;
}

.page-contact__button--login-large:hover {
  background-color: #E6A83E;
}

.page-contact__copyright {
  text-align: center;
  padding: 20px;
  background-color: #000000;
  color: #CCCCCC;
  font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }
  .page-contact__info-title,
  .page-contact__form-title,
  .page-contact__additional-support-title,
  .page-contact__faq-summary-title,
  .page-contact__final-cta-title {
    font-size: 2em;
  }
  .page-contact__channels-grid,
  .page-contact__additional-support-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 15px;
  }
  .page-contact__hero-image {
    display: none; /* Hide hero image on mobile for better focus on text */
  }
  .page-contact__hero-title {
    font-size: 2.2em;
  }
  .page-contact__hero-description {
    font-size: 1em;
  }
  .page-contact__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__button {
    width: 80%;
    margin: 0 auto;
  }
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__additional-support-section,
  .page-contact__faq-summary-section,
  .page-contact__final-cta {
    padding: 40px 0;
  }
  .page-contact__info-title,
  .page-contact__form-title,
  .page-contact__additional-support-title,
  .page-contact__faq-summary-title,
  .page-contact__final-cta-title {
    font-size: 1.8em;
  }
  .page-contact__info-intro,
  .page-contact__form-intro,
  .page-contact__additional-support-intro,
  .page-contact__faq-summary-intro,
  .page-contact__final-cta-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-contact__contact-form {
    padding: 30px 20px;
  }
  .page-contact__faq-list {
    flex-direction: column;
    align-items: center;
  }
  .page-contact__faq-item {
    width: 90%;
  }
  .page-contact__final-cta-title {
    font-size: 2em;
  }
  .page-contact__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__button--register-large,
  .page-contact__button--login-large {
    width: 80%;
    margin: 0 auto;
  }

  /* Mobile content image constraint */
  .page-contact img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Ensure min size is still met */
    min-height: 200px; /* Ensure min size is still met */
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__info-title,
  .page-contact__form-title,
  .page-contact__additional-support-title,
  .page-contact__faq-summary-title,
  .page-contact__final-cta-title {
    font-size: 1.5em;
  }
  .page-contact__button {
    width: 95%;
  }
  .page-contact__button--register-large,
  .page-contact__button--login-large {
    width: 95%;
  }
}

/* Ensure content images are not too small */
/* This rule applies to all img elements within .page-contact, regardless of their specific class */
.page-contact img:not(.shared-header img):not(.shared-footer img) { /* Exclude shared header/footer images */
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Specific overrides for smaller images that are still content-relevant, if needed, but must meet min-size */
/* Example: if channel icons are small, this would override. But they are set to max-width: 300px */
.page-contact__channel-icon,
.page-contact__additional-icon {
    max-width: 300px; /* This ensures they are not tiny */
    height: auto; /* Maintain aspect ratio */
    min-width: 200px; /* Explicitly set min size */
    min-height: 200px; /* Explicitly set min size */
}

/* Contrast check for all text elements */
h1, h2, h3, h4, h5, h6, p, a, label, button, input, textarea {
  color: inherit; /* Inherit color from parent, which is set to #333333 for light sections, #FFFFFF for dark sections */
}

/* Specific contrast for elements within dark backgrounds */
.page-contact__hero-section .page-contact__hero-title,
.page-contact__hero-section .page-contact__hero-description,
.page-contact__final-cta .page-contact__final-cta-title,
.page-contact__final-cta .page-contact__final-cta-description,
.page-contact__copyright p {
  color: #FFFFFF; /* Light text on dark background */
}

.page-contact__hero-section .page-contact__button--register {
  color: #000000; /* Dark text on light button in dark section */
}

.page-contact__hero-section .page-contact__button--login {
  color: #000000; /* Dark text on light button in dark section */
}