/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

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

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

/* Hero Section */
.page-register__hero-section {
  display: flex;
  align-items: center;
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__hero-section .page-register__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-register__hero-content {
  flex: 1;
}

.page-register__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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;
  text-align: center;
}

.page-register__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* General Section Styling */
.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-description {
  color: #333333;
}

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

.page-register__benefit-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
}

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

/* How to Register Section */
.page-register__how-to-register {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-register__step-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-register__step-card .page-register__card-title {
  color: #26A9E0;
}

.page-register__step-card .page-register__btn-secondary,
.page-register__step-card .page-register__btn-primary {
  margin-top: auto; /* Push button to bottom */
}

.page-register__register-form-wrapper {
  background-color: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  margin: 0 auto;
  color: #333333;
}

.page-register__form-title {
  font-size: 2em;
  text-align: center;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__form-description {
  text-align: center;
  margin-bottom: 30px;
  color: #555555;
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-register__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-register__captcha-image {
  display: block;
  margin-top: 10px;
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 4px;
  height: 80px;
  width: 200px;
  line-height: 80px;
  text-align: center;
  font-size: 1.2em;
  color: #555;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-register__captcha-image img {
  max-width: 100%;
  height: auto;
}

.page-register__form-submit-btn {
  width: 100%;
  margin-top: 30px;
  padding: 15px 20px;
  font-size: 1.1em;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

.page-register__promotions-section .page-register__section-title,
.page-register__promotions-section .page-register__section-description {
  color: #333333;
}

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

.page-register__promo-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
}

.page-register__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-register__promo-card .page-register__card-title {
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-register__promo-card p {
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-register__promo-card .page-register__btn-secondary {
  margin-top: auto;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px 25px;
}

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

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-color: #f8f8f8;
  color: #333333;
}

.page-register__cta-final-section .page-register__section-title,
.page-register__cta-final-section .page-register__section-description {
  color: #333333;
}

.page-register__cta-final-section .page-register__cta-buttons {
  justify-content: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-section .page-register__container {
    flex-direction: column;
    text-align: center;
  }

  .page-register__hero-content {
    order: 2;
  }

  .page-register__hero-image-wrapper {
    order: 1;
    margin-bottom: 40px;
  }

  .page-register__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-register__container {
    padding: 0 15px;
  }

  .page-register__main-title {
    font-size: 2.2em;
  }

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

  .page-register__section-title {
    font-size: 2em;
  }

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    margin: 0 0 15px 0 !important;
    padding: 12px 15px !important;
    font-size: 1em !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__hero-image-wrapper,
  .page-register__steps-grid,
  .page-register__promo-grid,
  .page-register__benefits-grid,
  .page-register__register-form-wrapper,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-register__register-form-wrapper {
    padding: 30px 15px;
  }

  .page-register__form-input {
    width: 100%;
  }

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-register__faq-answer {
    padding: 0 20px;
  }

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 20px 15px 20px;
  }
}

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

  .page-register__section-title {
    font-size: 1.8em;
  }

  .page-register__form-title {
    font-size: 1.5em;
  }
}