/* style/register.css */

/* Base styles for page-register */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, explicit for clarity */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:hero_register:1920x1080:dg_casino,register_hero,vietnam_betting]') no-repeat center center/cover;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-register__main-title {
  font-size: 3.5em;
  color: #FFFF00; /* Custom color for register/login font */
  margin-bottom: 20px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom color for register/login font */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
  transform: translateY(-2px);
}

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

.page-register__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  transform: translateY(-2px);
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for form */
  color: #333333; /* Dark text for light background */
}

.page-register__form-section .page-register__section-title {
  color: #017439;
}

.page-register__form-section .page-register__section-description {
  color: #555555;
}

.page-register__form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-register__form-group {
  display: flex;
  flex-direction: column;
}

.page-register__form-label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #333333;
}

.page-register__form-input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: #aaa;
}

.page-register__checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.page-register__form-checkbox {
  width: 20px;
  height: 20px;
  margin-right: 5px;
}

.page-register__terms-link {
  color: #017439;
  text-decoration: none;
}

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

.page-register__submit-button {
  background-color: #017439;
  color: #ffffff;
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__submit-button:hover {
  background-color: #005a2e;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-register__benefits-section .page-register__section-title {
  color: #FFFF00;
}

.page-register__benefits-section .page-register__section-description {
  color: #f0f0f0;
}

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

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

.page-register__benefit-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-register__benefit-card:hover .page-register__benefit-image {
  transform: scale(1.05);
}

.page-register__benefit-title {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__benefit-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Why Choose Section */
.page-register__why-choose-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-register__why-choose-section .page-register__section-title {
  color: #017439;
}

.page-register__why-choose-section .page-register__section-description {
  color: #555555;
}

.page-register__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-register__why-choose-item {
  background-color: #f0f0f0;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-register__why-choose-heading {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-register__why-choose-text {
  font-size: 0.95em;
  color: #555555;
}

.page-register__image-wrapper {
  text-align: center;
}

.page-register__why-choose-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background for contrast */
  color: #ffffff;
}

.page-register__faq-section .page-register__section-title {
  color: #FFFF00;
}

.page-register__faq-section .page-register__section-description {
  color: #cccccc;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__faq-item:last-child {
  border-bottom: none;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #cccccc;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 15px 25px;
}

.page-register__faq-answer p {
  margin-bottom: 10px;
}

.page-register__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-register__faq-link {
  color: #FFFF00;
  text-decoration: none;
}

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

/* CTA Bottom Section */
.page-register__cta-bottom-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
  text-align: center;
}

.page-register__cta-bottom-section .page-register__section-title {
  color: #017439;
}

.page-register__cta-bottom-section .page-register__section-description {
  color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 3em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__hero-description,
  .page-register__section-description {
    font-size: 1em;
  }
  .page-register__benefits-grid,
  .page-register__why-choose-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }
  .page-register__main-title {
    font-size: 2.5em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__hero-description,
  .page-register__section-description {
    font-size: 0.95em;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__submit-button {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-register__form-wrapper {
    padding: 25px;
  }
  .page-register__benefits-grid,
  .page-register__why-choose-grid {
    grid-template-columns: 1fr;
  }
  .page-register__benefits-section,
  .page-register__form-section,
  .page-register__why-choose-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    padding: 50px 0;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile container padding and overflow for images/buttons */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__form-wrapper,
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-register__faq-question,
  .page-register__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 2em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
}