/* style/register.css */

/* Base Styles & Typography */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#000) */
}

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

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

.page-register__section-intro {
  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 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #017439, #004d2b);
  position: relative;
  overflow: hidden;
}

.page-register__hero-content {
  z-index: 10;
  max-width: 900px;
}

.page-register__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

.page-register__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

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

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

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

.page-register__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for Login */
  border: 2px solid #C30808;
}

.page-register__btn-secondary:hover {
  background-color: #C30808;
  color: #FFFFFF;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 5;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle overlay */
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Darker background for contrast, derived from body #000 */
  color: #ffffff; /* Light text for dark background */
}

.page-register__dark-section .page-register__section-title {
  color: #FFFFFF;
}

.page-register__dark-section .page-register__section-intro {
  color: #f0f0f0;
}

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

.page-register__feature-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

.page-register__feature-description {
  font-size: 1em;
  color: #e0e0e0;
}

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

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #000;
  color: #ffffff;
}

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

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #017439;
  color: #FFFFFF;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  border: 2px solid #017439;
}

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

.page-register__step-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 15px;
  min-width: 200px;
  min-height: 200px;
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color as background */
  color: #ffffff; /* Light text for brand primary background */
}

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

.page-register__form-section .page-register__section-intro {
  color: #f0f0f0;
}

.page-register__registration-form {
  max-width: 600px;
  margin: 50px auto 0;
  background-color: rgba(0, 0, 0, 0.3); /* Darker transparent background for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
  color: #FFFFFF;
  font-weight: bold;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.5); /* Dark input background */
  color: #FFFFFF;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-register__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.5);
}

.page-register__form-checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.page-register__form-checkbox {
  margin-right: 10px;
  margin-top: 4px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
}

.page-register__form-checkbox-label {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-register__form-link {
  color: #FFFF00; /* Custom font color for links */
  text-decoration: underline;
}

.page-register__form-link:hover {
  color: #FFD700;
}

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

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

.page-register__login-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__login-link {
  color: #FFFF00; /* Custom font color for links */
  text-decoration: underline;
  font-weight: bold;
}

.page-register__login-link:hover {
  color: #FFD700;
}

/* Bonuses Section */
.page-register__bonuses-section {
  padding: 80px 0;
  background-color: #000;
  color: #ffffff;
}

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

.page-register__bonus-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__bonus-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-register__bonus-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-register__bonus-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-register__cta-buttons--center {
  margin-top: 50px;
}

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

.page-register__responsible-gaming-section .page-register__section-title {
  font-size: 2em;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #000;
  color: #ffffff;
}

.page-register__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  font-size: 1.25em;
  color: #FFFFFF;
  margin: 0;
  font-weight: bold;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  color: #FFFF00; /* Custom color for toggle icon */
  font-weight: bold;
  transition: transform 0.3s ease;
  min-width: 25px; /* Ensure toggle icon has enough space */
  text-align: center;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg); /* Text content handles +/- */
  color: #C30808; /* Change color when active */
}

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

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

.page-register__faq-answer p {
  margin: 0;
  padding: 0;
  color: #e0e0e0;
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
  background-color: #0d0d0d;
  text-align: center;
}

.page-register__btn-primary--large {
  padding: 18px 45px;
  font-size: 1.3em;
  border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.2em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__section-intro {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}