/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light background */
  background-color: #f4f4f4; /* Default from shared, ensure contrast */
}

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

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

.page-register__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-intro {
  font-size: 1.1em;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Header offset for fixed header */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px); /* Desktop and mobile controlled by shared */
  position: relative;
  background-color: #26A9E0;
  color: #ffffff;
  padding-bottom: 60px;
  overflow: hidden; /* Prevent image overflow */
  display: flex;
  align-items: center;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  padding-top: 40px;
  padding-bottom: 40px;
  flex: 1;
}

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

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
}

.page-register__hero-image-wrapper {
  width: 50%; /* Adjust as needed for visual balance */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 0.8;
  filter: brightness(0.8); /* Allow brightness filter for background images if it doesn't change color */
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.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: #d16e06;
  border-color: #d16e06;
}

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

.page-register__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__btn-center {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 300px; /* Limit width for center button */
}

/* Why JBO Section */
.page-register__why-jbo {
  background-color: #ffffff;
}

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

.page-register__feature-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #26A9E0;
}

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

.page-register__feature-text {
  color: #555555;
}

/* Registration Guide Section */
.page-register__registration-guide {
  background-color: #f4f4f4;
}

.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  text-align: left;
  align-items: center; /* Vertically align items */
}

.page-register__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-register__step-number {
  background-color: #26A9E0;
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
}

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

.page-register__step-text {
  color: #555555;
}

.page-register__step-image-wrapper {
  grid-column: span 1; /* Adjust grid column span for image */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px; /* Ensure minimum size */
}

.page-register__steps-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

/* New Member Promotions Section */
.page-register__new-member-promotions {
  background-color: #ffffff;
}

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

.page-register__promotion-card {
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 200px; /* Ensure minimum size for card */
}

.page-register__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-register__promotion-card > * {
  padding: 0 20px;
}

.page-register__promotion-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-register__promotion-description {
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow description to take available space */
}

.page-register__promotion-card .page-register__btn-secondary {
  margin: 0 20px 20px 20px;
  width: calc(100% - 40px);
  text-align: center;
}

/* Payment Methods Section */
.page-register__payment-methods {
  background-color: #f4f4f4;
}

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

.page-register__payment-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  min-height: 200px; /* Ensure minimum size */
}

.page-register__payment-icon {
  width: 100%;
  max-width: 250px; /* Max width for payment icons */
  height: auto;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

.page-register__payment-name {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-register__payment-desc {
  color: #555555;
}

.page-register__section-note {
  margin-top: 40px;
  font-style: italic;
  color: #777777;
}

/* Security & Privacy Section */
.page-register__security-privacy {
  background-color: #ffffff;
}

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

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

.page-register__security-subtitle {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-register__security-description {
  color: #555555;
  margin-bottom: 20px;
}

.page-register__security-description a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-register__security-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px; /* Ensure minimum size */
}

.page-register__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px;
}

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

.page-register__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-register__faq-item details > summary {
  list-style: none; /* Hide default marker for details tag */
}

.page-register__faq-item details > summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  color: #26A9E0;
  font-weight: bold;
  cursor: pointer;
  background-color: #eaf6fc; /* Lighter shade of brand color */
  border-bottom: 1px solid #d0e7f5;
}

.page-register__faq-item details[open] .page-register__faq-question {
  border-bottom: none;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-register__faq-item details[open] .page-register__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or 'minus' effect */
}

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  color: #555555;
  font-size: 1.05em;
  line-height: 1.8;
}

/* Final CTA Section */
.page-register__cta-final {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
}

.page-register__cta-content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__hero-section .page-register__hero-image-wrapper {
    width: 45%;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
  }

  .page-register__hero-content {
    text-align: center;
    padding-top: 20px;
    padding-bottom: 20px;
    flex: none;
  }

  .page-register__hero-title {
    font-size: 2em;
    line-height: 1.3;
  }

  .page-register__hero-description {
    font-size: 1em;
    max-width: 100%;
  }

  .page-register__hero-image-wrapper {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 30px;
  }

  .page-register__hero-image {
    max-height: 300px;
    object-fit: contain;
  }

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

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

  .page-register__section-intro {
    font-size: 1em;
  }

  .page-register__features-grid,
  .page-register__promotions-grid,
  .page-register__payment-grid {
    grid-template-columns: 1fr;
  }

  .page-register__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-register__step-image-wrapper {
    order: -1; /* Move image above steps on mobile */
    margin-bottom: 30px;
  }

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

  .page-register__security-text {
    min-width: unset;
  }

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

  /* Mobile image/video/button responsiveness */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper,
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Buttons in mobile */
  .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;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-register__btn-center {
    max-width: 100% !important; /* Ensure center button also expands */
  }

  .page-register__cta-buttons {
    display: flex;
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

/* Ensure all content area images are at least 200px */
.page-register img:not(.shared-header img, .shared-footer img) {
  min-width: 200px;
  min-height: 200px;
}