/* style/register.css */

/* --- Base styles for .page-register --- */
.page-register {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default text color, fallback to custom */
  background-color: var(--background, #08160F); /* Default background, fallback to custom */
  line-height: 1.6;
  padding-bottom: 40px; /* General padding to avoid footer overlap */
}

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding: 10px 20px 60px; /* Small top padding, larger bottom padding */
  box-sizing: border-box;
  background-color: var(--card-bg, #11271B); /* Use card background for hero section */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  overflow: hidden; /* Ensure image doesn't overflow */
  border-radius: 10px;
}

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

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

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size, not fixed large value */
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-register__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

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

/* --- General Button Styles --- */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-large {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  text-align: center;
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #ffffff; /* White text for primary button */
  border: 2px solid transparent;
}

.page-register__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-register__btn-secondary {
  background: transparent;
  color: var(--text-main, #F2FFF6); /* Main text color for secondary button */
  border: 2px solid var(--border, #2E7A4E); /* Custom border color */
}

.page-register__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.1em;
  min-width: 200px;
}

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

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

.page-register__section-description {
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* --- Why Join Section --- */
.page-register__why-join-section {
  padding: 80px 0;
  background-color: var(--background, #08160F);
}

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

.page-register__feature-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  color: var(--text-secondary, #A7D9B8); /* Text color for card content */
}

.page-register__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.page-register__feature-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

.page-register__card-title {
  font-size: 1.5em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__card-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
}

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

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

.page-register__step-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 35px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-secondary, #A7D9B8);
}

.page-register__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(42, 209, 111, 0.3);
}

.page-register__step-title {
  font-size: 1.6em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 1em;
  margin-bottom: 25px;
  color: var(--text-secondary, #A7D9B8);
}

.page-register__step-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min size requirement */
  min-height: 200px; /* Min size requirement */
}

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

.page-register__notes-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__note-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 20px 25px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.8;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-register__note-item strong {
  color: var(--text-main, #F2FFF6);
  font-weight: bold;
}

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

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

.page-register__faq-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  color: var(--text-secondary, #A7D9B8);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  background-color: rgba(17, 168, 78, 0.1); /* Slightly lighter background for question */
  border-bottom: 1px solid var(--divider, #1E3A2A);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

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

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--glow, #57E38D); /* Use glow color for toggle */
  margin-left: 15px;
  transition: transform 0.3s ease;
}

/* Styling for open/active state of FAQ */
.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
  color: var(--gold, #F2C14E); /* Gold color when open */
}

.page-register__faq-item[open] .page-register__faq-question {
  border-bottom: 1px solid transparent; /* No border when open */
}

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
}

/* --- Final CTA Section --- */
.page-register__cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--card-bg, #11271B);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__features-grid,
  .page-register__steps-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 10px 15px 40px;
  }

  .page-register__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust for smaller screens */
  }

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

  .page-register__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-large {
    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;
  }

  .page-register__section-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
    margin-bottom: 15px;
  }

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

  .page-register__features-grid,
  .page-register__steps-list {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 25px;
  }

  .page-register__feature-card,
  .page-register__step-item,
  .page-register__note-item,
  .page-register__faq-item {
    padding: 20px;
  }
  
  .page-register__feature-image,
  .page-register__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }

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

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

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

  /* Ensure all containers with images/videos/buttons are responsive */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__notes-section,
  .page-register__faq-section,
  .page-register__cta-section,
  .page-register__hero-image-wrapper,
  .page-register__cta-buttons,
  .page-register__feature-card,
  .page-register__step-item,
  .page-register__notes-list,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure images always respect min-width/height */
.page-register img {
  min-width: 200px;
  min-height: 200px;
}