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

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

.page-register__hero-section {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
  text-align: center;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7); /* Darken image for text readability */
}

.page-register__hero-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

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

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-register__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.3s ease;
  white-space: nowrap;
}

.page-register__button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for light button */
  border: 2px solid #FCBC45;
}

.page-register__button--primary:hover {
  background-color: #e0a53b;
  transform: translateY(-2px);
}

.page-register__button--secondary {
  background-color: #000000; /* Main color */
  color: #FFFFFF; /* Register button color */
  border: 2px solid #FFFFFF;
}

.page-register__button--secondary:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.page-register__button--tertiary {
  background-color: transparent;
  color: #000000;
  border: 2px solid #000000;
}

.page-register__button--tertiary:hover {
  background-color: #000000;
  color: #FFFFFF;
  transform: translateY(-2px);
}

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

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

/* Value Section */
.page-register__value-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-register__value-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-register__value-item:hover {
  transform: translateY(-5px);
}

.page-register__value-icon {
  width: 200px;
  height: 200px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-register__value-text {
  color: #666666;
}

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
}

.page-register__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-register__step-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-register__step-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-register__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #FCBC45;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #FCBC45;
  border-radius: 50%;
}

.page-register__step-content {
  flex-grow: 1;
}

.page-register__step-heading {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 10px;
}

.page-register__step-text {
  color: #555555;
}

.page-register__step-image {
  width: 400px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.page-register__call-to-action {
  text-align: center;
  margin-top: 60px;
}

.page-register__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #000000;
}

/* Conditions Section */
.page-register__conditions-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-register__conditions-list {
  list-style: disc;
  max-width: 900px;
  margin: 40px auto 0 auto;
  padding-left: 20px;
  color: #555555;
}

.page-register__condition-item {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-register__condition-item strong {
  color: #000000;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-register__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.page-register__faq-question:hover {
  background-color: #f0f0f0;
}

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

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

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
}

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

/* Responsible Gaming Section */
.page-register__responsible-gaming-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-register__responsible-gaming-section .page-register__section-description a {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-register__responsible-gaming-section .page-register__section-description a:hover {
  text-decoration: underline;
}

/* Community Section */
.page-register__community-section {
  padding: 80px 0;
}

/* Download App Section */
.page-register__download-app-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-register__app-image {
  width: 600px;
  height: 337px;
  object-fit: contain;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Section */
.page-register__contact-section {
  padding: 80px 0;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__step-item {
    flex-direction: column;
    text-align: center;
  }
  .page-register__step-item:nth-child(even) {
    flex-direction: column;
  }
  .page-register__step-image {
    width: 100%;
    height: auto;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 60px 20px;
  }
  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__button {
    width: 100%;
    max-width: 300px;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__section-description {
    font-size: 0.95em;
  }
  .page-register__value-grid {
    grid-template-columns: 1fr;
  }
  .page-register__step-item {
    gap: 20px;
  }
  .page-register__step-number {
    font-size: 2.5em;
    width: 70px;
    height: 70px;
  }
  .page-register__step-heading {
    font-size: 1.5em;
  }
  .page-register__app-image {
    width: 100%;
    max-width: 400px;
    height: auto;
  }

  /* Critical for mobile image overflow prevention */
  .page-register img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__hero-description {
    font-size: 0.9em;
  }
  .page-register__button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 0 20px 15px 20px;
  }
}