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

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

.page-register__hero-section {
  position: relative;
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Brand color */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-register__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-register__form-section {
  padding: 60px 20px;
  background-color: #f5f5f5; /* Light background for form */
  color: #333333;
}

.page-register__form-section .page-register__container {
  background-color: #ffffff; /* White background for the form card */
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-register__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}

.page-register__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-register__form-input {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  color: #333333;
}

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

.page-register__form-checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-register__form-checkbox {
  width: 18px;
  height: 18px;
}

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

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

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

.page-register__btn-submit {
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom color for register button font */
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-submit:hover {
  background-color: #a00606;
}

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

.page-register__benefits-section {
  padding: 60px 20px;
  background-color: #017439; /* Brand dark background */
  color: #ffffff;
  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: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-register__benefit-icon {
  width: 100%; /* Ensure images fill card width */
  height: auto;
  max-width: 250px; /* Max size for card images */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

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

.page-register__faq-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
  color: #333333;
}

.page-register__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-register__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
}

.page-register__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid #e0e0e0;
}

.page-register__faq-item[open] .page-register__faq-question {
  background-color: #e9ecef;
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-register__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #f0f0f0;
}

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

.page-register__cta-section {
  padding: 60px 20px;
  background-color: #017439; /* Brand dark background */
  color: #ffffff;
  text-align: center;
}

.page-register__btn-primary {
  background-color: #017439;
  color: #ffffff;
  padding: 15px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-register__btn-large {
  font-size: 1.3em;
  padding: 18px 35px;
}

/* Responsive Styles */

/* All images base responsive style */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All buttons base responsive style */
.page-register__btn-primary,
.page-register__btn-submit,
.page-register a[class*="button"],
.page-register a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
  .page-register {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-register__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .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__form-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 40px 15px;
  }

  .page-register__form-section .page-register__container {
    padding: 30px 20px;
  }

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

  .page-register__benefit-icon {
    max-width: 200px;
  }

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

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

  /* Force responsive for images */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Force responsive for containers with images/content */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__benefits-grid,
  .page-register__form-section .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Force responsive for buttons */
  .page-register__btn-primary,
  .page-register__btn-submit,
  .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 !important;
    padding-right: 15px !important;
  }

  /* If multiple buttons in a group, ensure they wrap */
  .page-register__cta-buttons,
  .page-register__button-group {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

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

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