/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default light text for potentially dark background */
  background: var(--background, #08160F); /* Default dark background for the page */
}

/* Container for consistent content width */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Headings */
.page-register__hero-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  max-width: 900px; /* Prevent H1 from being too wide */
  margin-left: auto;
  margin-right: auto;
}

.page-register__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-register__feature-title,
.page-register__step-title,
.page-register__promotion-title,
.page-register__security-title {
  font-size: clamp(1.2em, 2.5vw, 1.8em);
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-top: 15px;
  margin-bottom: 10px;
}

/* Paragraphs and descriptions */
.page-register__hero-description,
.page-register__section-description,
.page-register__feature-text,
.page-register__step-text,
.page-register__promotion-text,
.page-register__security-text,
.page-register p,
.page-register li {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

/* Links and Buttons */
.page-register__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box; /* Ensure padding doesn't increase total width */
}

.page-register__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-register__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-register__btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--text-main, #F2FFF6);
  border: 2px solid var(--border-color, #2E7A4E);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: background 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

.page-register__btn-secondary:hover {
  background: var(--border-color, #2E7A4E);
  color: #ffffff;
}

/* Card styles */
.page-register__card {
  background: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-bottom: 60px; /* Spacing below content */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: var(--background, #08160F);
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure minimum size */
}

.page-register__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
  background: var(--deep-green, #0A4B2C); /* Darker background for contrast */
}

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

.page-register__feature-item {
  text-align: center;
}

.page-register__feature-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

/* Registration Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background: var(--background, #08160F);
}

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

.page-register__step-card {
  text-align: center;
  position: relative;
  padding-top: 60px; /* Space for number */
}

.page-register__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--main-color, #11A84E);
  color: #ffffff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: 700;
  border: 3px solid var(--deep-green, #0A4B2C);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.page-register__process-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  margin-top: 50px;
  border-radius: 10px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-register__image-center {
  text-align: center;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background: var(--deep-green, #0A4B2C);
}

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

.page-register__promotion-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__promotion-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

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

.page-register__full-promo-cta {
  text-align: center;
  margin-top: 50px;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background: var(--background, #08160F);
}

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

.page-register__security-item {
  text-align: center;
}

.page-register__security-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background: var(--deep-green, #0A4B2C);
}

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

.page-register__faq-item {
  margin-bottom: 20px;
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
  font-weight: 600;
  font-size: 1.15em;
  cursor: pointer;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--main-color, #11A84E);
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  background: var(--card-bg, #11271B);
  color: var(--text-secondary, #A7D9B8);
  font-size: 1em;
  line-height: 1.6;
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background: var(--background, #08160F);
}

.page-register__cta-final-section .page-register__cta-button {
  margin-top: 30px;
}

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

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-register__hero-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-register__section-title {
    font-size: clamp(1.6em, 7vw, 2.2em);
  }

  .page-register__hero-description,
  .page-register__section-description,
  .page-register p,
  .page-register li {
    font-size: 1em;
  }

  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 40px 0; /* Adjust section padding */
  }

  .page-register__hero-image-wrapper {
    margin-bottom: 20px;
  }

  /* Image responsive rules */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Container responsive rules */
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__promotions-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final-section,
  .page-register__container,
  .page-register__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Button responsive rules */
  .page-register__cta-button,
  .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; /* Add padding to buttons themselves */
    padding-right: 15px;
    text-align: center;
  }

  .page-register__full-promo-cta,
  .page-register__hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .page-register__promotion-cards,
  .page-register__features-grid,
  .page-register__steps-wrapper,
  .page-register__security-grid {
    grid-template-columns: 1fr; /* Stack columns */
    gap: 20px;
  }

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

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

/* Color Contrast Enforcement */
/* Assuming body background is dark, so text is light by default */
/* Ensure specific sections maintain contrast */

.page-register__dark-bg {
  background: var(--deep-green, #0A4B2C); /* A specified dark background */
  color: var(--text-main, #F2FFF6); /* Light text on dark background */
}

.page-register__card {
  background: var(--card-bg, #11271B); /* Dark card background */
  color: var(--text-main, #F2FFF6); /* Light text on dark card */
}

.page-register__card p,
.page-register__card li {
  color: var(--text-secondary, #A7D9B8); /* Secondary text on dark card */
}

/* Special text colors */
.page-register p,
.page-register li {
  color: var(--text-secondary, #A7D9B8);
}

/* Ensure button text is always visible */
.page-register__cta-button {
  color: #ffffff; /* Always white text for primary buttons */
}
.page-register__btn-secondary {
  color: var(--text-main, #F2FFF6); /* White-ish text for secondary buttons */
}
.page-register__btn-secondary:hover {
  color: #ffffff; /* White text on hover */
}

/* Ensure all images are content images and not small icons */
.page-register img {
  min-width: 200px;
  min-height: 200px;
}