/* style/register.css */

/* Custom Colors */
:root {
  --page-register-primary-color: #11A84E; /* Main */
  --page-register-secondary-color: #22C768; /* Auxiliary */
  --page-register-background-dark: #08160F; /* Background */
  --page-register-card-bg: #11271B; /* Card BG */
  --page-register-text-main: #F2FFF6; /* Text Main */
  --page-register-text-secondary: #A7D9B8; /* Text Secondary */
  --page-register-border-color: #2E7A4E; /* Border */
  --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  --page-register-glow-color: #57E38D; /* Glow */
  --page-register-gold-color: #F2C14E; /* Gold */
  --page-register-divider-color: #1E3A2A; /* Divider */
  --page-register-deep-green: #0A4B2C; /* Deep Green */
}

/* Base styles for the page */
.page-register {
  background-color: var(--page-register-background-dark); /* Dark background from custom colors */
  color: var(--page-register-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Sections */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--page-register-background-dark);
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  /* Ensure image is above content for "image on top, content below" */
  order: 1; 
  margin-bottom: 20px; /* Space between image and content */
}

.page-register__hero-content {
  position: relative; /* Not absolute, for normal flow */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px 40px; /* Adjust padding as needed */
  order: 2; /* Content below image */
}

.page-register__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  color: var(--page-register-gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-register__hero-description {
  font-size: 1.1em;
  color: var(--page-register-text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__cta-buttons--center {
  margin-top: 30px;
  text-align: center;
}

.page-register__cta-buttons--top-margin {
    margin-top: 40px;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-register__btn-primary {
  background: var(--page-register-button-gradient);
  color: var(--page-register-text-main); /* Light text on dark button */
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-register__btn-secondary {
  background: transparent;
  color: var(--page-register-primary-color);
  border: 2px solid var(--page-register-primary-color);
}

.page-register__btn-secondary:hover {
  background: var(--page-register-primary-color);
  color: var(--page-register-text-main);
}

.page-register__btn-link {
    background: transparent;
    color: var(--page-register-primary-color);
    border: 1px solid var(--page-register-primary-color);
    padding: 10px 20px;
    font-size: 0.9em;
}

.page-register__btn-link:hover {
    background: var(--page-register-primary-color);
    color: var(--page-register-text-main);
}

/* General Section 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(--page-register-gold-color);
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
  font-weight: bold;
}

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

/* Why Join Section */
.page-register__why-join-section {
  background-color: var(--page-register-background-dark);
  padding: 60px 0;
}

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

.page-register__feature-card {
  background-color: var(--page-register-card-bg); /* Darker card background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-register-text-main); /* Light text on dark card */
}

.page-register__feature-icon {
  width: 100%;
  max-width: 250px; /* Constrain icon size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__feature-title {
  font-size: 1.4em;
  color: var(--page-register-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__feature-text {
  font-size: 0.95em;
  color: var(--page-register-text-secondary);
}

/* Steps Section */
.page-register__steps-section {
  background-color: var(--page-register-deep-green); /* Use a slightly different dark green */
  padding: 60px 0;
}

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

.page-register__step-item {
  background-color: var(--page-register-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--page-register-text-main);
}

.page-register__step-number {
  background: var(--page-register-button-gradient);
  color: var(--page-register-text-main);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(42, 209, 111, 0.6);
}

.page-register__step-title {
  font-size: 1.3em;
  color: var(--page-register-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 0.95em;
  color: var(--page-register-text-secondary);
  margin-bottom: 20px;
}

.page-register__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Security Section */
.page-register__security-section {
  background-color: var(--page-register-background-dark);
  padding: 60px 0;
}

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

.page-register__security-text {
  flex: 1;
  min-width: 300px;
  color: var(--page-register-text-main);
}

.page-register__sub-title {
  font-size: 1.5em;
  color: var(--page-register-gold-color);
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__security-text p {
  margin-bottom: 15px;
  color: var(--page-register-text-secondary);
}

.page-register__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-register__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Promotions Section */
.page-register__promotions-section {
  background-color: var(--page-register-deep-green);
  padding: 60px 0;
}

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

.page-register__promo-card {
  background-color: var(--page-register-card-bg);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: var(--page-register-text-main);
  text-align: center;
}

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

.page-register__promo-title {
  font-size: 1.4em;
  color: var(--page-register-gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__promo-text {
  font-size: 0.95em;
  color: var(--page-register-text-secondary);
  flex-grow: 1; /* Push button to bottom */
  margin-bottom: 20px;
}

/* FAQ Section */
.page-register__faq-section {
  background-color: var(--page-register-background-dark);
  padding: 60px 0;
}

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

.page-register__faq-item {
  background-color: var(--page-register-card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  color: var(--page-register-text-main);
}

.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(--page-register-gold-color);
  background-color: var(--page-register-divider-color); /* Slightly lighter dark green for question background */
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: var(--page-register-primary-color);
}

.page-register__faq-item[open] .page-register__faq-question {
  background-color: var(--page-register-primary-color);
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  line-height: 1;
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95em;
  color: var(--page-register-text-secondary);
}

.page-register__faq-item:not([open]) .page-register__faq-answer {
  display: none; /* Hide answer when not open for details tag */
}

details > summary { /* Reset default details arrow */
  list-style: none;
}
details > summary::-webkit-details-marker { /* Webkit browsers */
  display: none;
}

/* Final CTA Section */
.page-register__final-cta-section {
  background-color: var(--page-register-deep-green);
  padding: 60px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-register__hero-content {
    padding: 0 15px 30px;
  }

  .page-register__main-title {
    font-size: 2.2em; /* Adjusted for smaller screens */
  }

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

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

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-link {
    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__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;
    flex-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

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

  .page-register__section-title {
    font-size: 2em;
    padding-top: 30px;
  }

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

  .page-register__features-grid,
  .page-register__steps-wrapper,
  .page-register__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

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

  .page-register__security-image {
    max-width: 100%;
  }

  .page-register__sub-title {
    font-size: 1.3em;
  }

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

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

  /* Image responsive rules */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Ensure all containers with images also adapt */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__feature-card,
  .page-register__step-item,
  .page-register__promo-card,
  .page-register__security-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }
  
  /* Specific padding for sections that are full width but have content contained */
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .page-register__video-section {
    padding-top: 10px !important;
  }

  /* Video responsive rules (if any video is added) */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}