/* style/register.css */

/* Base styles for the register page content */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

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

/* Section titles and descriptions */
.page-register__section-title {
  font-size: 2.5em;
  color: #FFFF00; /* Use custom color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: var(--header-offset, 120px) 0 60px 0; /* Apply header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 700px; /* Ensure hero section has a decent height */
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-register__hero-title {
  font-size: 3.5em;
  color: #FFFF00; /* Custom color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

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

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

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-submit {
  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, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

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

.page-register__btn-primary:hover,
.page-register__btn-submit:hover {
  background-color: #e02020;
  border-color: #e02020;
}

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

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

.page-register__btn-large {
  padding: 18px 35px;
  font-size: 1.2em;
}

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

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

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

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

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

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

.page-register__form-hint {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}

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

.page-register__form-checkbox {
  margin-right: 10px;
  margin-top: 4px; /* Align checkbox with text */
}

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

.page-register__text-link {
  color: #017439; /* Brand color for links */
  text-decoration: none;
}

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

.page-register__form-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-register__form-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-register__benefit-card {
  background-color: rgba(0, 0, 0, 0.3); /* Dark translucent background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

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

.page-register__benefit-icon {
  width: 200px; /* Min size for image requirement */
  height: 200px; /* Min size for image requirement */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px; 
}

.page-register__benefit-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for benefit titles */
}

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

/* Guide Section */
.page-register__guide-section {
  background-color: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

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

.page-register__guide-item {
  text-align: center;
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-register__guide-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-register__guide-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439; /* Brand color for guide titles */
}

.page-register__guide-text {
  font-size: 1em;
  color: #555;
}

/* Security Section */
.page-register__security-section {
  background-color: #1a1a2e;
  padding: 60px 0;
}

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

.page-register__feature-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for feature titles */
}

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

.page-register__security-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-register__tip-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-register__tip-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__tip-text {
  font-size: 1em;
  color: #555;
}

.page-register__responsible-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1em;
  color: #555;
}

/* FAQ Section */
.page-register__faq-section {
  background-color: #1a1a2e;
  padding: 60px 0;
}

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

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

.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.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

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

.page-register__faq-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00; /* Custom color for FAQ titles */
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFFF00; /* Custom color for FAQ toggle */
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Rotate to form an 'X' or '-' */
}

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

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

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

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

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

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