.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff);
}

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

.page-register__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
  margin-bottom: 40px;
}

.page-register__hero-image {
  width: 100%;
  height: 675px; /* Fixed height for desktop hero */
  object-fit: cover;
  display: block;
}

.page-register__hero-content {
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin: -100px auto 0; /* Adjust to sit below image */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
}

.page-register__hero-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.page-register__hero-description {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: #555555;
}

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

.page-register__btn-primary:hover {
  background-color: #1e87c0;
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #26A9E0;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  border: 2px solid #26A9E0;
  cursor: pointer;
  margin-left: 15px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-secondary:hover {
  background-color: #f0f8ff;
  transform: translateY(-2px);
  border-color: #1e87c0;
}

.page-register__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

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

.page-register__why-join-section,
.page-register__steps-section,
.page-register__security-section,
.page-register__faq-section,
.page-register__cta-bottom-section {
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-register__why-join-section {
  background-color: #f9f9f9;
}

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

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

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

.page-register__feature-icon {
  width: 100%;
  height: 250px; /* Consistent height for feature images */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

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

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

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

.page-register__step-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  position: relative;
  padding-top: 60px;
  color: #333333;
}

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

.page-register__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(38, 169, 224, 0.4);
}

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

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

.page-register__cta-buttons--center {
  text-align: center;
  margin-top: 50px;
}

.page-register__security-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-subtitle {
  color: #ffffff;
}

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-register__security-image {
  flex: 1;
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-register__security-text-block {
  flex: 1;
}

.page-register__security-sub-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
  color: #ffffff;
}

.page-register__security-text-block p {
  font-size: 1rem;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #f0f0f0;
}

/* FAQ Styles */
details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  color: #333333;
}
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: #26A9E0;
}
.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;
}

.page-register__cta-bottom-section {
  background-color: #f0f8ff;
  text-align: center;
}

.page-register__cta-bottom-section .page-register__container {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 50px 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-register__cta-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-register__cta-description {
  font-size: 1.1rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.2rem;
}

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

/* Media Queries */
@media (max-width: 1024px) {
  .page-register__container {
    padding: 15px;
  }

  .page-register__hero-content {
    margin-top: -80px;
    padding: 25px 20px;
  }

  .page-register__hero-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .page-register__hero-description {
    font-size: 1rem;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-register__section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
  }

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

  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    padding: 40px 0;
  }

  .page-register__feature-card,
  .page-register__step-card {
    padding: 25px;
    padding-top: 55px;
  }

  .page-register__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
    top: -15px;
  }

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

  .page-register__security-image {
    margin-bottom: 30px;
  }

  .page-register__security-sub-title {
    font-size: 1.6rem;
  }

  .page-register__cta-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
  }

  .page-register__cta-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__hero-section {
    padding-top: 10px !important; /* Ensures small top padding */
  }

  .page-register__hero-image {
    height: auto !important;
    object-fit: contain !important; /* Mobile hero image should not be cropped */
    aspect-ratio: unset !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-register__hero-content {
    margin-top: -60px;
    padding: 20px 15px;
  }

  .page-register__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem) !important;
  }

  .page-register__hero-description {
    font-size: 0.95rem !important;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    margin-bottom: 10px;
  }

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

  .page-register__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }

  .page-register__section-subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 25px;
  }

  .page-register__features-grid,
  .page-register__steps-grid {
    grid-template-columns: 1fr !important; /* Single column layout for cards */
  }

  .page-register__feature-icon,
  .page-register__security-image {
    min-width: 200px !important;
    min-height: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__feature-card,
  .page-register__step-card {
    padding: 20px;
    padding-top: 50px;
  }

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

  .page-register__security-sub-title {
    font-size: 1.4rem !important;
  }

  .page-register__security-text-block p {
    font-size: 0.9rem !important;
  }

  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px !important;
  }

  .page-register__faq-qtext {
    font-size: 15px !important;
  }

  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 15px 15px !important;
  }

  .page-register__cta-title {
    font-size: clamp(1.6rem, 5vw, 2rem) !important;
  }

  .page-register__cta-description {
    font-size: 0.95rem !important;
  }

  .page-register__btn-primary--large {
    padding: 15px 30px !important;
    font-size: 1.1rem !important;
  }

  /* Ensure all images and their containers are responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section,
  .page-register__container,
  .page-register__feature-card,
  .page-register__step-card,
  .page-register__security-content,
  .page-register__security-text-block,
  .page-register__faq-list,
  .page-register__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
}