.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background: #FFFFFF; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-register__hero-section {
  padding: 10px 0 40px; /* Small top padding, more bottom padding */
  background: linear-gradient(135deg, #017439, #014f27); /* Brand color gradient */
  color: #ffffff;
  display: flex;
  flex-direction: column; /* Default column for mobile-first, then row for desktop */
  align-items: center;
  gap: 30px;
}

.page-register__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-register__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* min 2em, preferred 5vw, max 3.5em */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__hero-image-container {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Steps Section */
.page-register__steps-section {
  padding: 60px 0;
  text-align: center;
}

.page-register__section-title {
  font-size: 2.5em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: 700;
}

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

.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.page-register__step-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

.page-register__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-register__step-icon {
  font-size: 2.5em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e6f7ed;
}

.page-register__step-title {
  font-size: 1.5em;
  color: #333333;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-register__step-text {
  font-size: 1em;
  color: #666666;
}

/* CTA Section */
.page-register__cta-section {
  padding: 80px 0;
  text-align: center;
  background: #017439; /* Brand color background */
  color: #ffffff;
}

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

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

.page-register__btn-register {
  display: inline-block;
  background: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom font color for register button */
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-right: 20px;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-register:hover {
  background: #a30606;
  transform: translateY(-2px);
}

.page-register__btn-login {
  display: inline-block;
  background: #C30808; /* Custom color for login button */
  color: #FFFF00; /* Custom font color for login button */
  padding: 15px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Button responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-login:hover {
  background: #a30606;
  transform: translateY(-2px);
}

.page-register__cta-section .page-register__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* Space between buttons */
}


/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
  text-align: center;
}

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-weight: 600;
  color: #333333;
}
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: 1.1em;
  line-height: 1.5;
  text-align: left;
}
.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #017439;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  line-height: 1;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
  color: #555555;
}
.page-register__faq-answer p {
  margin: 0;
  padding-top: 15px;
}

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

/* Responsive Styles */
@media (min-width: 769px) {
  .page-register__hero-section {
    flex-direction: row; /* Desktop: row layout */
    padding: 60px 0;
    text-align: left;
  }
  .page-register__hero-content {
    text-align: left;
    max-width: 50%;
    padding-left: 50px;
    padding-right: 20px;
  }
  .page-register__hero-image-container {
    max-width: 50%;
    padding-right: 50px;
  }
  .page-register__main-title {
    /* clamp() handles desktop font size */
    margin-left: 0;
    margin-right: 0;
  }
  .page-register__description {
    margin-left: 0;
    margin-right: 0;
  }
  .page-register__cta-section .page-register__container {
    flex-direction: row; /* Desktop: row for buttons */
    justify-content: center;
  }
}

@media (max-width: 768px) {
  /* Hero Section */
  .page-register__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    gap: 20px;
  }
  .page-register__hero-content {
    padding: 0 15px;
  }
  .page-register__main-title {
    /* clamp() handles mobile font size */
    margin-bottom: 15px;
  }
  .page-register__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-register__hero-image-container {
    padding: 0 15px;
  }

  /* Steps Section */
  .page-register__steps-section {
    padding: 40px 0;
  }
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-register__steps-grid {
    padding: 0 15px;
    grid-template-columns: 1fr; /* Single column for steps */
    gap: 20px;
  }
  .page-register__step-card {
    padding: 20px;
  }
  .page-register__step-icon {
    width: 50px;
    height: 50px;
    font-size: 2em;
  }
  .page-register__step-title {
    font-size: 1.3em;
  }
  .page-register__step-text {
    font-size: 0.9em;
  }

  /* CTA Section */
  .page-register__cta-section {
    padding: 50px 0;
  }
  .page-register__cta-title {
    font-size: 2em;
    margin-bottom: 15px;
    padding: 0 15px;
  }
  .page-register__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-register__btn-register,
  .page-register__btn-login {
    max-width: 100% !important;
    width: calc(100% - 30px) !important; /* Account for padding */
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 1.1em !important;
    margin-right: 0 !important; /* Remove right margin for stacked buttons */
    margin-bottom: 15px; /* Add bottom margin for stacked buttons */
  }
  .page-register__btn-login {
    margin-bottom: 0; /* Last button doesn't need bottom margin */
  }
  .page-register__cta-section .page-register__container {
    padding: 0 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  /* FAQ Section */
  .page-register__faq-section {
    padding: 40px 0;
  }
  .page-register__faq-list {
    padding: 0 15px;
  }
  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-qtext {
    font-size: 1em;
  }
  .page-register__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 20px 15px;
  }
  .page-register__faq-answer p {
    font-size: 0.95em;
  }

  /* General image and container responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}