/* Base Styles for Register Page */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
}

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

.page-register__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-register__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: inherit; /* Inherit from parent section */
}

.page-register__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  position: relative;
  z-index: 0;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  margin-top: -120px; /* Overlap slightly for visual effect */
  background: rgba(1, 116, 57, 0.85); /* Semi-transparent brand color background */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color */
}

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

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-submit,
.page-register a[class*="button"],
.page-register a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary,
.page-register__btn-submit {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover,
.page-register__btn-submit:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-register__large-btn {
  padding: 18px 40px;
  font-size: 20px;
}

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

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  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__checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-register__checkbox-label a {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
}

.page-register__checkbox-label a:hover {
  text-decoration: underline;
}

.page-register__button-container {
  text-align: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
}

.page-register__login-prompt a {
  color: #C30808; /* Login button color */
  font-weight: 600;
  text-decoration: none;
}

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

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

.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: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-register__benefit-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__benefit-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #FFFF00; /* Register/Login font color */
}

.page-register__benefit-description {
  font-size: 16px;
  color: #f0f0f0;
  flex-grow: 1;
}

/* How To Section */
.page-register__how-to-section {
  padding: 80px 0;
}

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

.page-register__step-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__step-description {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
}

.page-register__center-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Important Notes Section */
.page-register__important-notes-section {
  padding: 80px 0;
}

.page-register__notes-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-register__notes-list li {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  padding: 20px 25px;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
}

.page-register__notes-list li::before {
  content: '✓';
  color: #FFFF00;
  font-size: 24px;
  margin-right: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-register__notes-list p {
  margin: 0;
  color: #f0f0f0;
  font-size: 16px;
}

.page-register__notes-list strong {
  color: #ffffff;
}

/* FAQ Section */
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;
}

/* CTA Section */
.page-register__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-register__center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Global image styles */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-register__hero-content {
    margin-top: -80px;
    padding: 15px;
  }
  .page-register__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }
  .page-register__hero-description {
    font-size: 16px;
  }
  .page-register__section-title {
    font-size: 30px;
  }
  .page-register__section-subtitle {
    font-size: 16px;
  }
  .page-register__benefits-grid,
  .page-register__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-register__registration-form {
    padding: 30px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-submit,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    padding: 12px 25px;
    font-size: 16px;
  }
  .page-register__large-btn {
    padding: 15px 35px;
    font-size: 18px;
  }
}

/* Mobile Specific */
@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 40px;
  }
  .page-register__hero-image-wrapper {
    max-height: 300px;
  }
  .page-register__hero-image {
    object-fit: contain !important; /* Mobile HERO image must be contain */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__hero-content {
    margin-top: -60px;
    padding: 15px;
    width: calc(100% - 30px); /* Account for padding */
  }
  .page-register__main-title {
    font-size: clamp(22px, 7vw, 36px);
  }
  .page-register__hero-description {
    font-size: 15px;
  }
  .page-register__section-title {
    font-size: 28px;
    padding: 0 15px;
  }
  .page-register__section-subtitle {
    font-size: 15px;
    padding: 0 15px;
    margin-bottom: 30px;
  }
  .page-register__registration-form {
    padding: 20px;
    width: calc(100% - 30px);
  }
  .page-register__form-label {
    font-size: 15px;
  }
  .page-register__form-input {
    font-size: 15px;
    padding: 10px 12px;
  }
  .page-register__checkbox-label {
    font-size: 14px;
  }
  .page-register__login-prompt {
    font-size: 15px;
  }
  .page-register__benefits-grid,
  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-register__benefit-card,
  .page-register__step-card {
    padding: 25px;
  }
  .page-register__benefit-title {
    font-size: 20px;
  }
  .page-register__step-title {
    font-size: 22px;
  }
  .page-register__notes-list {
    padding: 0 15px;
  }
  .page-register__notes-list li {
    padding: 15px 20px;
  }
  .page-register__notes-list p {
    font-size: 15px;
  }
  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 Mobile Image Adaptation */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Mobile Button Adaptation */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .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;
    margin-left: 0 !important; /* Reset margin for single column */
    margin-bottom: 15px; /* Add spacing between stacked buttons */
  }

  .page-register__button-container,
  .page-register__center-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px; /* Spacing between stacked buttons */
  }

  /* Ensure content sections respect mobile padding */
  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__form-section, .page-register__why-join-section, .page-register__how-to-section, .page-register__important-notes-section, .page-register__faq-section, .page-register__cta-section {
    padding: 40px 0;
  }
}