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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  background-color: #26A9E0; /* Brand primary color for hero section background */
  color: #ffffff; /* White text on primary brand color */
  text-align: center;
}

.page-register__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  height: auto;
  display: block;
  margin-bottom: 30px; /* Space between image and text */
  border-radius: 10px;
  object-fit: cover;
}

.page-register__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-register__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* General Container */
.page-register__container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Sections */
.page-register__benefits-section,
.page-register__steps-section,
.page-register__promotions-section,
.page-register__faq-section,
.page-register__cta-final {
  padding: 80px 0;
  text-align: center;
}

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

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

.page-register__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

.page-register__light-bg .page-register__section-title {
  color: #000000;
}

.page-register__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  padding: 0 20px;
}

/* Feature Grid */
.page-register__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__feature-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

.page-register__feature-card .page-register__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__feature-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for feature titles */
}

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

/* Step List */
.page-register__step-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-register__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__dark-section .page-register__step-item {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-register__step-number {
  background: #EA7C07; /* Login color for step numbers */
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: 700;
  margin-bottom: 20px;
}

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

.page-register__step-text {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-register__step-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

.page-register__promo-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-register__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-register__promo-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__promo-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-register__all-promos-cta {
  margin-top: 50px;
}

/* FAQ Section */
.page-register__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-register__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-register__dark-section .page-register__faq-item {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none;
}

.page-register__faq-item[open] .page-register__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #EA7C07; /* Login color for toggle */
}

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

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

/* Final CTA Section */
.page-register__cta-final {
  padding-bottom: 80px;
}

.page-register__cta-final .page-register__description {
  color: #555555;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-register__btn-primary {
  background-color: #26A9E0; /* Primary brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #26A9E0;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-register__step-button {
  width: auto;
  max-width: 300px;
}

/* Images in content areas */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-content {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__cta-final {
    padding: 40px 0;
  }

  .page-register__hero-image {
    margin-bottom: 20px;
  }
  
  .page-register__feature-grid,
  .page-register__promo-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }

  .page-register__step-list {
    padding: 0 15px;
  }

  .page-register__faq-list {
    padding: 0 15px;
  }

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

  .page-register__cta-button,
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__feature-card,
  .page-register__promo-card,
  .page-register__step-item,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
    padding-left: 0;
    padding-right: 0;
  }
  .page-register__hero-content {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.6em;
  }
}