/* style/register.css */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Text color for dark body background */
  background-color: #1a1a1a; /* Inherited from body, but explicitly set for clarity */
  line-height: 1.6;
}

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

.page-register__hero-section {
  position: relative;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  background-color: #017439; /* Primary brand color for hero background */
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

.page-register__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: #FFFF00; /* Custom font color for title */
  position: relative;
  z-index: 1;
}

.page-register__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  position: relative;
  z-index: 1;
}

.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

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

.page-register__btn-secondary {
  background-color: #017439; /* Primary brand color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  font-weight: bold;
  color: #017439; /* Default title color for light sections */
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #333333; /* Dark text for light background */
}

/* Form Section */
.page-register__form-section {
  padding: 80px 20px;
  background-color: #FFFFFF; /* Custom background for form section */
  color: #333333; /* Dark text for light background */
}

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

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-register__form-group {
  display: flex;
  flex-direction: column;
}

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

.page-register__form-input {
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  color: #333333;
  background-color: #ffffff;
}

.page-register__form-input::placeholder {
  color: #999999;
}

.page-register__checkbox-group {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.page-register__checkbox {
  width: 18px;
  height: 18px;
  accent-color: #017439;
}

.page-register__checkbox-label {
  font-size: 0.95em;
  color: #333333;
}

.page-register__form-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

.page-register__submit-button {
  background-color: #C30808; /* Custom color for Register button */
  color: #FFFF00; /* Custom font color for Register button */
  border: none;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

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

.page-register__login-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 1em;
  color: #333333;
}

.page-register__login-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Dark background */
  color: #ffffff;
}

.page-register__benefits-section .page-register__section-title {
  color: #FFFF00;
}

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

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

.page-register__benefit-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-register__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-register__benefit-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Guide Section */
.page-register__guide-section {
  padding: 80px 20px;
  background-color: #FFFFFF;
  color: #333333;
}

.page-register__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 50px;
}

.page-register__guide-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__guide-item:nth-child(even) {
  flex-direction: column-reverse;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  flex-shrink: 0;
}

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

.page-register__step-text {
  font-size: 1em;
  max-width: 700px;
  margin-bottom: 30px;
  color: #333333;
}

.page-register__guide-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-register__promotions-section .page-register__section-title {
  color: #FFFF00;
}

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

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

.page-register__promotion-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-register__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__promotion-image {
  width: 100%;
  max-width: 400px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__promotion-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00;
}

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

.page-register__promotion-button {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-register__promotion-button:hover {
  background-color: #005f2e;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 20px;
  background-color: #FFFFFF;
  color: #333333;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-register__faq-item {
  background-color: #f8f8f8;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #e6f7ed; /* Light green for question background */
  user-select: none;
  list-style: none; /* For details/summary */
}

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

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

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  margin-left: 20px;
  color: #017439;
}

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #333333;
  border-top: 1px solid #e0e0e0;
  text-align: left;
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

.page-register__final-cta-section .page-register__section-title {
  color: #FFFF00;
}

.page-register__final-cta-section .page-register__section-description {
  color: #f0f0f0;
}

/* Dark background elements */
.page-register__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-register__dark-bg .page-register__section-title {
  color: #FFFF00;
}

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

/* Light background elements */
.page-register__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-register__light-bg .page-register__section-description {
  color: #333333;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.8em;
  }

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

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

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

  .page-register__intro-text {
    font-size: 1em;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__submit-button,
  .page-register__promotion-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 50px 15px;
  }

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

  .page-register__benefits-grid,
  .page-register__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__benefit-title,
  .page-register__promotion-title {
    font-size: 1.3em;
  }

  .page-register__guide-item {
    flex-direction: column !important; /* Ensure consistent column direction */
  }

  .page-register__guide-item:nth-child(even) {
    flex-direction: column !important;
  }

  .page-register__guide-image,
  .page-register__benefit-icon,
  .page-register__promotion-image,
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-register__container,
  .page-register__form-card,
  .page-register__registration-form,
  .page-register__cta-buttons,
  .page-register__benefits-grid,
  .page-register__promotions-grid,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

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

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

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

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

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

  .page-register__submit-button {
    font-size: 1em;
    padding: 12px 15px;
  }
}