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

.page-register__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  padding-bottom: 60px;
  background-color: #017439; /* Brand primary color for hero background */
  color: #FFFFFF; /* White text for dark background */
}

.page-register__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 40px 16px;
  gap: 24px;
}

.page-register__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

.page-register__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-register__hero-description {
  font-size: 1.125rem;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-register__cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.page-register__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for register/login */
  border: 2px solid #FFFF00;
}

.page-register__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
}

.page-register__hero-image {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: center;
}

.page-register__hero-side-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-register__intro-section,
.page-register__steps-section,
.page-register__security-section,
.page-register__faq-section,
.page-register__cta-bottom-section {
  padding: 60px 0;
}

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

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

.page-register__content-area {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-register__section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

.page-register__section-description {
  font-size: 1.125rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: inherit;
}

.page-register__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-register__feature-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-register__icon-box-media {
  width: 240px;
  height: 240px;
  aspect-ratio: 1/1;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #017439;
}

.page-register__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image inside is also round */
  display: block;
}

.page-register__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

.page-register__feature-text {
  font-size: 1rem;
  color: #555555;
}

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

.page-register__step-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  position: relative;
  padding-top: 60px; /* Space for step number */
}

.page-register__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #017439;
  color: #FFFFFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  border: 2px solid #FFFFFF;
}

.page-register__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

.page-register__step-text {
  font-size: 1rem;
  color: #555555;
}

.page-register__steps-image-container {
  text-align: center;
}

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

.page-register__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.page-register__security-text-block {
  flex: 1 1 55%;
  min-width: 300px;
  color: #FFFFFF;
}

.page-register__security-text-block p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.page-register__security-image {
  flex: 1 1 35%;
  min-width: 300px;
  text-align: center;
}

.page-register__security-main-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto;
}

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

.page-register__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  list-style: none; /* For details/summary */
  position: relative;
}

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

.page-register__faq-question::marker {
  display: none; /* Hide default marker */
}

.page-register__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #555555;
}

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

.page-register__cta-bottom-content {
  text-align: center;
}

.page-register__cta-bottom-content .page-register__section-title,
.page-register__cta-bottom-content .page-register__section-description {
  color: #FFFFFF;
}

.page-register__cta-bottom-content .page-register__cta-button {
  margin-top: 20px;
}

/* Universal image and container responsive rules */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register__section,
.page-register__card,
.page-register__container,
.page-register__content-area,
.page-register__cta-buttons,
.page-register__button-group,
.page-register__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-register__hero-container {
    flex-direction: column;
    padding: 30px 15px;
  }

  .page-register__hero-content {
    text-align: center;
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-register__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

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

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-register__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .page-register__hero-image {
    flex: 1 1 100%;
    min-width: unset;
    margin-top: 30px;
  }

  /* Intro Section (Module 1) */
  .page-register__intro-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    padding: 40px 0;
  }

  .page-register__content-area {
    padding: 0 15px;
  }

  .page-register__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-register__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

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

  .page-register__icon-box-media {
    width: 200px; /* Maintain square aspect ratio */
    height: 200px;
    margin-bottom: 15px;
  }

  .page-register__feature-title {
    font-size: 1.3rem;
  }

  .page-register__feature-text {
    font-size: 0.95rem;
  }

  /* Steps Section */
  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .page-register__step-item {
    padding: 50px 25px 25px;
  }

  .page-register__step-number {
    width: 35px;
    height: 35px;
    font-size: 1.1rem;
    top: 10px;
  }

  .page-register__step-title {
    font-size: 1.2rem;
  }

  .page-register__step-text {
    font-size: 0.95rem;
  }

  /* Security Section */
  .page-register__security-content {
    flex-direction: column;
    gap: 20px;
  }

  .page-register__security-text-block,
  .page-register__security-image {
    flex: 1 1 100%;
    min-width: unset;
  }

  .page-register__security-text-block p {
    font-size: 1rem;
  }

  /* FAQ Section */
  .page-register__faq-list {
    padding: 0 15px;
  }

  .page-register__faq-item {
    margin-bottom: 10px;
  }

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

  .page-register__faq-toggle {
    font-size: 1.3rem;
  }

  .page-register__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Bottom CTA */
  .page-register__cta-bottom-content .page-register__cta-button {
    margin-top: 15px;
    padding: 12px 20px;
    font-size: 1rem;
  }

  /* General image and container overrides for mobile */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__content-area,
  .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 and padding-right are handled by content-area for sections, and cta-buttons for buttons */
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}