/* style/register.css */

/* General page styling */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity if not from shared */
}

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

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #017439; /* Brand green */
  text-align: center;
  margin-bottom: 40px;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
  background-color: #017439; /* Brand green background for hero */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px; /* Add padding at bottom for content */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area without distortion */
  max-width: 1920px; /* Max width for large screens */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
  color: #FFFFFF; /* White text on green background */
}

.page-register__hero-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #FFFFFF; /* White text */
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.page-register__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #F0F0F0; /* Slightly off-white for description */
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button font color */
  border: none;
}

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

/* Registration Form Section */
.page-register__form-section {
  padding: 60px 0;
  background-color: #f8f9fa; /* Light background for form section */
}

.page-register__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-register__form-image-wrapper {
  text-align: center;
}

.page-register__form-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-register__registration-steps {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-register__registration-steps li {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  padding: 15px 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-register__step-title {
  font-size: 20px;
  color: #017439;
  margin-top: 0;
  margin-bottom: 5px;
}

.page-register__registration-steps p {
  font-size: 15px;
  color: #555;
}

.page-register__registration-form {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 20px 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 #cccccc;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.page-register__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  border: none;
  font-size: 18px;
  font-weight: bold;
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button font color */
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-register__login-link {
  color: #017439; /* Brand green for login link */
  text-decoration: none;
  font-weight: bold;
}

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background for benefits */
  color: #FFFFFF; /* White text on dark background */
}

.page-register__benefits-section .page-register__section-title {
  color: #FFFFFF; /* White title */
}

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.page-register__benefit-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  padding: 30px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

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

.page-register__benefit-icon {
  width: 200px; /* Set display size to 200x200 */
  height: 200px;
  object-fit: contain; /* Ensure full icon is visible */
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-register__benefit-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFFFF;
}

.page-register__benefit-description {
  font-size: 16px;
  color: #F0F0F0;
}

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

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #f5f5f5;
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px !important;
  }

  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  /* Hero Section Mobile */
  .page-register__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-register__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-register__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-register__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto;
  }

  /* Form Section Mobile */
  .page-register__form-section {
    padding: 40px 0;
  }

  .page-register__form-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-register__form-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__registration-form {
    padding: 20px;
  }

  .page-register__form-input {
    padding: 10px 12px;
    font-size: 15px;
  }

  .page-register__submit-button {
    padding: 12px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Benefits Section Mobile */
  .page-register__benefits-section {
    padding: 40px 0;
  }

  .page-register__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__benefit-item {
    padding: 25px;
  }

  .page-register__benefit-icon {
    width: 150px !important;
    height: 150px !important;
    margin-bottom: 15px;
    max-width: 100% !important;
    object-fit: contain !important;
  }

  .page-register__benefit-title {
    font-size: 20px;
  }

  .page-register__benefit-description {
    font-size: 15px;
  }

  /* FAQ Section Mobile */
  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px;
  }
  .page-register__faq-qtext {
    font-size: 15px;
  }
  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 15px 15px;
  }

  /* Universal image and container rules for mobile */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Button container mobile adaptation */
  .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;
  }
  /* If hero content contains a button, ensure it stacks */
  .page-register__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}