/* 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; /* Body background is handled by shared.css */
}

/* Fixed header offset */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Section styling */
.page-register__hero-section,
.page-register__form-section,
.page-register__benefits-section,
.page-register__steps-section,
.page-register__faq-section,
.page-register__cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Color schemes for sections */
.page-register__dark-bg {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for contrast */
}

/* Titles and descriptions */
.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero section specific styles */
.page-register__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  position: relative;
  overflow: hidden;
}

.page-register__hero-section .page-register__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

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

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

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

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

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* 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;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1.1em;
}

.page-register__btn-primary,
.page-register__btn-submit {
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register */
}

.page-register__btn-primary:hover,
.page-register__btn-submit:hover {
  background-color: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Primary brand color for text */
  border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #00562c;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Form section */
.page-register__form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background-color: #f8f8f8;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.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 #ccc;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #ffffff;
}

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

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

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

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

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

.page-register__text-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-register__text-link:hover {
  text-decoration: underline;
  color: #00562c;
}

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

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Ensure cards are same height */
}

.page-register__benefit-icon {
  width: 100%; /* Ensure images are responsive within card */
  height: 200px; /* Fixed height for consistency, will be object-fit: cover */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

/* Steps section */
.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: #ffffff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #333333;
  position: relative;
  overflow: hidden;
  height: 100%; /* Ensure cards are same height */
}

.page-register__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

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

.page-register__step-text {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-register__step-image {
  max-width: 100%;
  height: 250px; /* Fixed height for consistency, will be object-fit: cover */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

/* FAQ section */
.page-register__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  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.05);
  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.2em;
  margin: 0;
  color: #ffffff;
}

.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(45deg);
}

.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; /* Sufficient height for content */
  padding: 15px 25px 25px 25px;
}

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

/* CTA section */
.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Image responsiveness and styling */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-register__hero-section .page-register__container {
    flex-direction: column;
    text-align: center;
  }

  .page-register__hero-content {
    max-width: 100%;
  }

  .page-register__hero-buttons {
    justify-content: center;
  }

  .page-register__hero-title {
    font-size: 2.5em;
  }

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

  .page-register__benefits-grid,
  .page-register__steps-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-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;
  }

  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 60px 0;
  }

  .page-register__container {
    padding: 0 15px; /* Add padding to prevent content touching edges */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__form-wrapper {
    padding: 30px 15px;
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure card images are responsive */
  .page-register__benefit-icon,
  .page-register__step-image {
    height: auto !important; /* Let height adjust to maintain aspect ratio */
    max-height: 250px;
  }

  /* Buttons responsive */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-submit {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 15px 15px !important; /* Adjust padding for smaller screens */
  }

  .page-register__hero-buttons,
  .page-register__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-register__checkbox-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-register__checkbox-group input[type="checkbox"] {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }

  .page-register__section-title {
    font-size: 1.5em;
  }

  .page-register__form-wrapper {
    padding: 25px 15px;
  }

  .page-register__faq-question {
    padding: 15px 20px;
  }

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}