/* style/register.css */

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

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

.page-register__dark-section {
  background-color: #017439; /* Main brand color for dark sections */
  color: #ffffff;
  padding: 80px 0;
}

.page-register__light-bg {
  background-color: #ffffff; /* Auxiliary color for light sections */
  color: #333333;
  padding: 80px 0;
}

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

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

.page-register__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #017439; /* Use brand color for hero background */
}

.page-register__hero-section .page-register__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-register__hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
}

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

.page-register__hero-description {
  font-size: 1.2em;
  color: #ffffff;
  margin-bottom: 30px;
}

.page-register__registration-form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #005f2e;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-register__terms {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-register__checkbox {
  width: 20px;
  height: 20px;
  accent-color: #FFFF00; /* Highlight checkbox with yellow */
}

.page-register__checkbox-label {
  font-size: 0.95em;
  color: #ffffff;
}

.page-register__btn-register {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #C30808; /* Custom color for register button */
  color: #000000; /* Ensure high contrast for font on red background */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.page-register__btn-register:hover {
  background-color: #a00707;
}

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

.page-register__link {
  color: #FFFF00; /* Custom color for links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__link:hover {
  color: #fff;
}

.page-register__hero-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

/* Why Join Section */
.page-register__why-join-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-register__why-join-section .page-register__section-title,
.page-register__why-join-section .page-register__section-description {
  color: #333333;
}

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

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

.page-register__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px; /* Adjust max-width for feature icons */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #017439;
}

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

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

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
  position: relative;
  padding-top: 60px; /* Space for number */
}

.page-register__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFFF00; /* Custom color for step number */
  color: #017439;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-register__step-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for step title */
}

.page-register__step-text {
  font-size: 1em;
}

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

.page-register__cta-button {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
}

/* Promotions Section */
.page-register__promotions-section .page-register__section-title,
.page-register__promotions-section .page-register__section-description {
  color: #333333;
}

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

.page-register__promo-card {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  color: #333333;
  display: flex;
  flex-direction: column;
}

.page-register__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-register__card-title {
  font-size: 1.4em;
  padding: 20px 20px 10px;
  color: #017439;
}

.page-register__card-text {
  font-size: 0.95em;
  padding: 0 20px 20px;
  flex-grow: 1;
  color: #555555;
}

.page-register__btn-primary {
  background-color: #017439;
  color: #ffffff;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  margin: 0 20px 20px;
  display: inline-block; /* For proper button behavior */
  transition: background-color 0.3s ease;
}

.page-register__btn-primary:hover {
  background-color: #005f2e;
}

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

.page-register__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-register__security-icon {
  width: 100%;
  height: auto;
  max-width: 150px; /* Adjust max-width for security icons */
  margin-bottom: 20px;
}

.page-register__security-item-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-register__security-item-text {
  font-size: 1em;
}

.page-register__security-cta-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #ffffff;
}

/* FAQ Section */
.page-register__faq-section .page-register__section-title,
.page-register__faq-section .page-register__section-description {
  color: #333333;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-item-title {
  font-size: 1.2em;
  margin: 0;
  color: #017439;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #017439;
}

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

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

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px;
}

.page-register__faq-text {
  margin: 0;
  font-size: 1em;
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-register__text-center {
  text-align: center;
}

.page-register__cta-final-section .page-register__section-title {
  color: #FFFF00; /* Custom color for final CTA title */
}

.page-register__cta-final-section .page-register__section-description {
  color: #ffffff;
  margin-bottom: 40px;
}

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

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section .page-register__container {
    flex-direction: column;
    text-align: center;
  }
  .page-register__hero-content {
    order: 2;
    max-width: 100%;
  }
  .page-register__hero-image-wrapper {
    order: 1;
    margin-bottom: 30px;
    max-width: 100%;
  }
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-register__registration-form,
  .page-register__feature-item,
  .page-register__step-item,
  .page-register__promo-card,
  .page-register__security-item,
  .page-register__faq-item {
    padding: 20px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__cta-button {
    width: 100%;
  }
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final-section,
  .page-register__hero-image-wrapper,
  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__promo-grid,
  .page-register__security-features,
  .page-register__faq-list,
  .page-register__registration-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure hero is below header */
  }
  .page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important;
    padding: 15px 20px !important;
  }
  .page-register__cta-button,
  .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;
    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;
    gap: 10px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
  }
}