/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
  padding: 80px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.page-register__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-register__subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-register__cta-button {
  display: inline-block;
  background-color: #EA7C07; /* Login/Register color */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__cta-button:hover {
  background-color: #d16b06;
}

/* Form Section */
.page-register__form-section {
  background-color: #ffffff;
  padding: 60px 0;
  color: #333333;
}

.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: #333333;
}

.page-register__form-wrapper {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.page-register__registration-form {
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.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;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
}

.page-register__form-checkbox {
  margin-right: 10px;
  width: 20px;
  height: 20px;
}

.page-register__link {
  color: #26A9E0;
  text-decoration: none;
}

.page-register__link:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  background-color: #26A9E0;
  color: #ffffff;
  padding: 15px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-register__form-image-container {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

/* Benefits Section */
.page-register__benefits-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 200px; /* Constrain icon size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px;
}

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

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

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

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

.page-register__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

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

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

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

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

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

.page-register__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #555555;
}

/* Call to Action Bottom Section */
.page-register__cta-bottom-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-register__cta-bottom-content {
  max-width: 900px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    padding: 60px 0;
    min-height: 300px;
  }
  .page-register__main-title {
    font-size: 2.2em;
  }
  .page-register__subtitle {
    font-size: 1em;
  }
  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__form-section, .page-register__benefits-section, .page-register__faq-section, .page-register__cta-bottom-section {
    padding: 40px 0;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 0.95em;
  }
  .page-register__form-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-register__registration-form, .page-register__form-image-container {
    max-width: 100%;
    width: 100%;
  }
  .page-register__form-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__benefit-card {
    padding: 20px;
  }
  .page-register__benefit-icon {
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-title {
    font-size: 1.1em;
  }
  .page-register__faq-answer {
    padding: 0 20px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px;
  }

  /* Ensure all images are responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Ensure all containers containing images/buttons/videos are responsive */
  .page-register__section, .page-register__card, .page-register__container, .page-register__form-wrapper, .page-register__benefits-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__cta-button, .page-register__submit-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__btn-primary, .page-register__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .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;
    display: flex;
    flex-direction: column; /* Ensure buttons stack */
  }
}

/* Color Contrast Fixes (as per instructions) */
.page-register__dark-section {
  background: #26A9E0;
  color: #ffffff; /* Forced white text */
}

.page-register__light-bg {
  background: #ffffff;
  color: #333333; /* Forced dark text */
}

.page-register__btn-primary {
  background: #26A9E0;
  color: #ffffff; /* Button text always white */
  border: 2px solid transparent;
}

.page-register__btn-primary.page-register__cta-button {
  background-color: #EA7C07; /* Specific color for CTA buttons */
}

.page-register__submit-button {
  background-color: #26A9E0;
}

.page-register__btn-secondary {
  background: #ffffff;
  color: #26A9E0; /* Use brand color ensure contrast */
  border: 2px solid #26A9E0;
}

.page-register__form-label {
  color: #333333;
}

.page-register__faq-answer p {
  color: #555555;
}

.page-register__faq-question {
  color: #333333;
}

.page-register__login-prompt, .page-register__link {
  color: #333333;
}
.page-register__link {
  color: #26A9E0;
}