/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#1a1a1a) */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

/* Hero Section */
.page-contact__hero-section {
  background-image: url('[GALLERY:hero:1920x1080:game_iwin_club_club_contact_hero,customer_support,online_betting]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px; /* Ensure a decent height */
}

.page-contact__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-contact__hero-section > .page-contact__container {
  position: relative;
  z-index: 2;
}

.page-contact__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-contact__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* General button styles */
.page-contact__btn-primary,
.page-contact__btn-secondary {
  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, border-color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: nowrap; /* Prevent text wrapping by default */
}

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

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

.page-contact__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

/* Info Section */
.page-contact__info-section {
  padding: 80px 0;
  text-align: center;
  background-color: #017439; /* Primary brand color background */
  color: #ffffff; /* White text for contrast */
}

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

.page-contact__section-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-contact__info-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card for dark background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-contact__info-icon {
  width: 200px; /* Adjusted to meet minimum 200x200 requirement */
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 50%;
}

.page-contact__info-card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-contact__info-card-text {
  font-size: 1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-contact__info-link {
  color: #FFFF00; /* Highlight links */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-contact__info-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Contact Form Section */
.page-contact__form-section {
  padding: 80px 0;
  background-color: #2a2a2a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-contact__contact-form {
  max-width: 700px;
  margin: 0 auto;
  background-color: #1a1a1a; /* Darker background for the form itself */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__required {
  color: #C30808;
}

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

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

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

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

.page-contact__contact-form .page-contact__btn-primary {
  width: auto;
  margin-top: 20px;
  padding: 15px 40px;
  font-size: 1.1em;
  cursor: pointer;
}

/* FAQ Section */
.page-contact__faq-section {
  padding: 80px 0;
  background-color: #017439; /* Primary brand color background */
  color: #ffffff;
  text-align: center;
}

.page-contact__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-contact__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #ffffff;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

.page-contact__faq-question::marker {
  display: none;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
  content: '−';
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(255, 255, 255, 0.03);
}

.page-contact__faq-answer p {
  margin: 0;
}


/* Floating Buttons */
.page-contact__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1000;
}

.page-contact__floating-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 50px;
  border-radius: 25px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  color: #FFFF00; /* Register/Login font color */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.page-contact__floating-btn--register {
  background-color: #C30808; /* Register color */
}

.page-contact__floating-btn--login {
  background-color: #017439; /* Primary brand color */
}

.page-contact__floating-btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__hero-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2em;
  }
}

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

  /* Fixed header offset for mobile */
  .page-contact {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-contact__hero-section {
    padding-top: 80px;
    min-height: 350px;
  }

  .page-contact__hero-title {
    font-size: 2.2em;
  }

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

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

  .page-contact__btn-primary,
  .page-contact__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

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

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

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

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

  .page-contact__contact-form {
    padding: 30px 20px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 12px;
  }

  .page-contact__contact-form .page-contact__btn-primary {
    width: 100% !important;
    font-size: 1em;
    padding: 12px 20px;
  }

  .page-contact__faq-question {
    font-size: 1.1em;
    padding: 18px 20px;
  }

  .page-contact__faq-answer {
    padding: 18px 20px;
  }

  .page-contact__floating-buttons {
    flex-direction: row; /* Keep them side by side on smaller screens */
    bottom: 15px;
    right: 50%; /* Center them */
    left: auto;
    transform: translateX(50%);
    width: calc(100% - 30px);
    justify-content: center;
    gap: 10px;
  }

  .page-contact__floating-btn {
    width: calc(50% - 5px) !important; /* Two buttons, nearly half width each with a gap */
    height: 45px;
    font-size: 0.9em;
  }

  /* Image responsive adaptations */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__info-icon {
    width: 200px !important; /* Keep 200x200 even on mobile */
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-contact__section,
  .page-contact__card,
  .page-contact__container,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__hero-section,
  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-title {
    font-size: 1.8em;
  }
  .page-contact__hero-description {
    font-size: 0.9em;
  }
  .page-contact__section-title {
    font-size: 1.5em;
  }
  .page-contact__floating-buttons {
    flex-direction: column; /* Stack them vertically on very small screens */
    right: 15px;
    bottom: 15px;
    transform: translateX(0); /* Remove centering transform */
    width: auto;
    align-items: flex-end; /* Align to the right */
  }
  .page-contact__floating-btn {
    width: 120px !important; /* Fixed width for stacked buttons */
  }
}

/* Global image filter restriction */
.page-contact img {
  filter: none !important; /* Ensure no filter is applied to images */
}

/* Ensure content area images are not too small by CSS */
.page-contact img {
  /* Default styles */
  width: auto;
  height: auto;
  max-width: 100%;
  box-sizing: border-box;
}

/* For images in content areas, prevent CSS from making them smaller than 200px */
.page-contact img:not(.page-contact__info-icon) {
  min-width: 200px;
  min-height: 200px;
}

/* Specific override for info icons to allow their defined size if it's 200x200, but not smaller */
.page-contact__info-icon {
  width: 200px;
  height: 200px;
  min-width: 200px; /* Explicitly set min-width/height to 200px */
  min-height: 200px;
  object-fit: contain;
}