.page-register {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly white for content area */
  line-height: 1.6;
}

.page-register__section-padding {
  padding: 60px 0;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  overflow: hidden;
  background-color: #26A9E0; /* Brand color as background */
  padding-top: 10px; /* Small top padding, assuming body has header offset */
}

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

.page-register__hero-content {
  padding: 40px 20px;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto;
}

.page-register__main-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
  max-width: 100%; /* Ensure H1 doesn't overflow */
}

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

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Button responsive requirement */
  box-sizing: border-box; /* Button responsive requirement */
  white-space: normal; /* Button responsive requirement */
  word-wrap: break-word; /* Button responsive requirement */
}

.page-register__cta-button--primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-register__cta-button--primary:hover {
  background-color: #cc6d06;
  transform: translateY(-2px);
}

.page-register__cta-button--secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-register__cta-button--secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
  transform: translateY(-2px);
}

.page-register__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

.page-register__section-title--light {
  color: #ffffff;
}

.page-register__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #555555;
}

.page-register__section-description--light {
  color: #f0f0f0;
}

/* Why Join Section */
.page-register__why-join-section {
  background-color: #f8f8f8;
}

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

.page-register__feature-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Ensure dark text on light card background */
}

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

.page-register__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-register__feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
  padding: 0 20px;
}

.page-register__feature-text {
  font-size: 15px;
  color: #555555;
  padding: 0 20px;
}

/* How to Register Section */
.page-register__how-to-register-section {
  background-color: #26A9E0; /* Dark section uses brand color */
}

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

.page-register__step-item {
  text-align: center;
  color: #ffffff;
}

.page-register__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background-color: #EA7C07; /* Login color for icons */
  color: #ffffff;
  border-radius: 50%;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-register__step-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-register__cta-container {
  text-align: center;
  margin-top: 60px;
}

/* Registration Form Section */
.page-register__registration-form-section {
  background-color: #ffffff;
}

.page-register__form-wrapper {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.page-register__form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  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;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-register__form-input:focus {
  border-color: #26A9E0;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.2);
  outline: none;
}

.page-register__form-hint {
  font-size: 13px;
  color: #777777;
  margin-top: 5px;
  display: block;
}

.page-register__verification-input-group {
  display: flex;
  gap: 10px;
}

.page-register__form-input--code {
  flex-grow: 1;
}

.page-register__get-code-button {
  padding: 12px 20px;
  background-color: #26A9E0;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Button responsive requirement */
  box-sizing: border-box; /* Button responsive requirement */
  white-space: normal; /* Button responsive requirement */
  word-wrap: break-word; /* Button responsive requirement */
}

.page-register__get-code-button:hover {
  background-color: #1e87b7;
}

.page-register__terms-checkbox {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #555555;
}

.page-register__terms-checkbox input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
}

.page-register__terms-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

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

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  color: #ffffff;
  background-color: #EA7C07; /* Login color for submit button */
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Button responsive requirement */
  box-sizing: border-box; /* Button responsive requirement */
  white-space: normal; /* Button responsive requirement */
  word-wrap: break-word; /* Button responsive requirement */
}

.page-register__submit-button:hover {
  background-color: #cc6d06;
}

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

.page-register__login-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: 600;
}

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

/* Security & Privacy Section */
.page-register__security-privacy-section {
  background-color: #f0f5f9; /* Light background for contrast with dark section */
}

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-register__security-image {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-register__security-text {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
}

.page-register__security-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-register__security-list li {
  margin-bottom: 10px;
  font-size: 16px;
  color: #333333;
  display: flex;
  align-items: flex-start;
}

.page-register__list-icon {
  color: #26A9E0;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
  line-height: 1;
  flex-shrink: 0;
}

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

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333; /* Dark text for FAQ questions */
}
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; /* Ensure dark text */
}
.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; /* Darker text for answers */
}

/* Call to Action Bottom Section */
.page-register__call-to-action-bottom {
  background-color: #26A9E0;
}

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

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

/* --- Responsive Design (Mobile First adjustments for larger screens, then specific mobile) --- */

/* Desktop / Tablet styles (adjustments for larger screens) */
@media (min-width: 769px) {
  .page-register__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 20px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3); /* Slightly darker overlay for text readability */
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-register__hero-image {
    height: 600px; /* Fixed height for desktop hero image */
  }
}

/* Mobile specific styles */
@media (max-width: 768px) {
  .page-register__section-padding {
    padding: 40px 0;
  }

  .page-register__container {
    padding: 0 15px !important; /* Ensure padding for mobile containers */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__hero-section {
    padding-top: 10px;
  }

  .page-register__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Banner: 849px object-fit:contain */
  }

  .page-register__hero-content {
    padding: 30px 15px;
  }

  .page-register__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  /* Buttons responsive requirement */
  .page-register__cta-button,
  .page-register__get-code-button,
  .page-register__submit-button {
    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;
  }

  .page-register__cta-buttons-bottom {
    flex-direction: column !important; /* Multiple buttons stack vertically */
    gap: 15px;
  }

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

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

  .page-register__feature-image {
    height: 180px; /* Adjust feature image height for mobile */
  }

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

  .page-register__security-content {
    flex-direction: column;
    gap: 30px;
  }

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

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

  .page-register__verification-input-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__get-code-button {
    width: auto; /* Allow button to size naturally, but still max-width: 100% */
  }

  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; }
}

/* Ensure all images are responsive */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile specific image override */
@media (max-width: 768px) {
  .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;
  }
}