/* style/register.css */

/* Base Styles */
.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 */
}

.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; /* Ensure high contrast */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  overflow: hidden;
  min-height: 600px;
  background-color: #0a0a0a; /* Fallback, but body should be dark */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.4;
}

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

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

.page-register__hero-button {
  font-size: 1.2em;
  padding: 15px 30px;
}

/* Buttons */
.page-register__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom Register button color */
  color: #FFFF00; /* Custom Register/Login font color */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

/* Sections */
.page-register__why-join-section,
.page-register__security-section,
.page-register__faq-section {
  padding: 80px 0;
}

.page-register__registration-guide-section,
.page-register__promotions-section,
.page-register__cta-section {
  padding: 80px 0;
}

/* Background colors for sections based on body background */
.page-register__dark-bg {
  background-color: #0a0a0a; /* Matches body background */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
  color: #ffffff;
}

/* Benefits Grid */
.page-register__benefits-grid,
.page-register__steps-grid,
.page-register__security-features,
.page-register__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__benefit-card,
.page-register__step-card,
.page-register__feature-item,
.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-image,
.page-register__step-image,
.page-register__feature-icon,
.page-register__promo-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__benefit-title,
.page-register__step-title,
.page-register__feature-title,
.page-register__promo-title {
  font-size: 1.5em;
  color: #017439; /* Primary brand color for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__benefit-description,
.page-register__step-description,
.page-register__feature-description,
.page-register__promo-description {
  font-size: 1em;
  color: #cccccc;
}

/* Registration Form */
.page-register__form-container {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for the form */
  padding: 40px;
  border-radius: 10px;
  max-width: 600px;
  margin: 60px auto 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-register__form-title {
  font-size: 2em;
  color: #017439; /* Primary brand color */
  text-align: center;
  margin-bottom: 30px;
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #333333;
  border-radius: 5px;
  background-color: #1a1a1a; /* Dark input background */
  color: #ffffff;
  box-sizing: border-box;
  font-size: 1em;
}

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

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

.page-register__form-checkbox input[type="checkbox"] {
  margin-top: 5px;
  margin-right: 10px;
  min-width: 18px; /* Ensure checkbox is visible */
  min-height: 18px;
}

.page-register__form-link {
  color: #017439; /* Primary brand color for links */
  text-decoration: underline;
}

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

.page-register__form-submit-button {
  width: 100%;
  padding: 15px;
  margin-top: 30px;
  font-size: 1.1em;
}

/* Promotions Section */
.page-register__view-promotions-button {
  margin-top: 40px;
  text-align: center;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #0a0a0a; /* Darker background for question */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-register__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #017439; /* Primary brand color for FAQ titles */
}

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

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg); /* No rotation needed for '-' */
}

.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 show content */
  padding: 20px 25px;
}

/* CTA Section */
.page-register__cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-register__cta-button {
  margin-top: 40px;
  font-size: 1.3em;
  padding: 18px 35px;
}

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

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 60px 15px;
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensures space on mobile */
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__why-join-section,
  .page-register__registration-guide-section,
  .page-register__security-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 60px 0;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__feature-item,
  .page-register__promo-card,
  .page-register__form-container,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  /* Mobile button responsiveness */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important; /* Force full width on mobile */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .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;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px;
  }

  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 0 20px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px;
  }

  .page-register__benefit-card, .page-register__step-card, .page-register__feature-item, .page-register__promo-card {
    padding: 20px;
  }

  .page-register__form-container {
    padding: 30px;
  }

  .page-register__form-checkbox label {
    font-size: 0.9em;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__hero-button {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-register__form-title {
    font-size: 1.8em;
  }
  .page-register__faq-title {
    font-size: 1.1em;
  }
  .page-register__faq-toggle {
    font-size: 1.5em;
  }
}