/* style/contact.css */

/* Root variables for colors */
:root {
  --bet88-primary-color: #F2C14E;
  --bet88-auxiliary-color: #FFD36B;
  --bet88-card-bg: #111111;
  --bet88-background-color: #0A0A0A;
  --bet88-text-main: #FFF6D6;
  --bet88-border-color: #3A2A12;
  --bet88-glow-color: #FFD36B;
  --bet88-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-contact {
  background-color: var(--bet88-background-color);
  color: var(--bet88-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Adjusted padding-top to 10px */
  background-color: var(--bet88-background-color);
  overflow: hidden;
}

.page-contact__hero-image-container {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-width: 1920px; /* Ensure image doesn't stretch too wide */
}

.page-contact__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over image slightly for visual flow */
  background-color: var(--bet88-background-color); /* Match body background */
  border-radius: 10px;
  position: relative;
  z-index: 1;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-contact__main-title {
  color: var(--bet88-auxiliary-color);
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__description {
  color: var(--bet88-text-main);
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--bet88-background-color);
  border-bottom: 1px solid var(--bet88-border-color);
}

.page-contact__section:last-of-type {
  border-bottom: none;
}

.page-contact__section-title {
  color: var(--bet88-primary-color);
  font-size: clamp(1.8em, 3vw, 2.8em);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-contact__section-description {
  color: var(--bet88-text-main);
  text-align: center;
  font-size: 1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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, transform 0.2s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-contact__cta-button--primary {
  background: var(--bet88-button-gradient);
  color: #ffffff;
  border: none;
  margin: 10px;
}

.page-contact__cta-button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-contact__cta-button--secondary {
  background-color: transparent;
  color: var(--bet88-primary-color);
  border: 2px solid var(--bet88-primary-color);
  margin: 10px;
}

.page-contact__cta-button--secondary:hover {
  background-color: var(--bet88-primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

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

.page-contact__channel-card {
  background-color: var(--bet88-card-bg);
  border: 1px solid var(--bet88-border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-contact__channel-card:hover {
  transform: translateY(-5px);
}

.page-contact__channel-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__card-title {
  color: var(--bet88-auxiliary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-contact__card-text {
  color: var(--bet88-text-main);
  font-size: 0.95em;
  margin-bottom: 25px;
}

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

.page-contact__faq-item {
  background-color: var(--bet88-card-bg);
  border: 1px solid var(--bet88-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--bet88-auxiliary-color);
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-contact__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--bet88-text-main);
  font-size: 0.95em;
}

.page-contact__faq-item.active .page-contact__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

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

.page-contact__faq-button {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__responsible-gaming-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.page-contact__responsible-gaming-content {
  flex: 1;
  text-align: left;
}

.page-contact__responsible-gaming-content .page-contact__section-title,
.page-contact__responsible-gaming-content .page-contact__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.page-contact__responsible-gaming-image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-contact__responsible-gaming-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  object-fit: cover;
}

.page-contact__responsible-gaming-content .page-contact__cta-button {
  margin-left: 0;
  margin-right: auto;
  width: fit-content;
}

.page-contact__get-started-section {
  text-align: center;
  padding-bottom: 80px;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-contact__hero-content {
    margin-top: -50px;
  }
}

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

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

  .page-contact__hero-content {
    padding: 30px 15px;
    margin-top: -80px; /* Adjust for smaller screens */
    max-width: 95%;
  }

  .page-contact__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-contact__description {
    font-size: 1em;
  }

  .page-contact__section {
    padding: 40px 15px;
  }

  .page-contact__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
  }

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

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

  .page-contact__channel-card {
    padding: 20px;
  }

  .page-contact__responsible-gaming-section {
    flex-direction: column;
    text-align: center;
  }

  .page-contact__responsible-gaming-content .page-contact__section-title,
  .page-contact__responsible-gaming-content .page-contact__section-description {
    text-align: center;
  }

  .page-contact__responsible-gaming-content .page-contact__cta-button {
    margin-left: auto;
    margin-right: auto;
  }

  .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 {
    flex-direction: column; 
  }

  /* Image responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-contact__section,
  .page-contact__card,
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific overrides for small icons if they were allowed and needed */
  .page-contact__channel-icon {
    max-width: 150px !important; /* Still larger than 200px rule, but smaller for mobile */
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .page-contact__hero-content {
    margin-top: -60px;
  }
  .page-contact__cta-button {
    font-size: 1em;
    padding: 12px 20px;
  }
}