/* style/register.css */

/* Base styles for the register page, inheriting from shared.css */
.page-register {
  background-color: var(--background-color, #08160F); /* Fallback to a dark green if not defined in shared */
  color: #F2FFF6; /* Text Main for dark background */
  font-family: 'Arial', sans-serif; /* Example font */
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

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

/* Section styling */
.page-register__hero-section,
.page-register__why-join-section,
.page-register__steps-section,
.page-register__bonuses-section,
.page-register__security-section,
.page-register__faq-section,
.page-register__cta-final-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.page-register__dark-bg {
  background-color: #08160F; /* Background color */
  color: #F2FFF6; /* Text Main */
}

.page-register__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: #F2C14E; /* Gold color for main titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-intro {
  font-size: clamp(16px, 2vw, 20px);
  color: #A7D9B8; /* Text Secondary */
  max-width: 800px;
  margin: 0 auto 50px;
}

/* Hero Section */
.page-register__hero-section {
  padding: 10px 0 80px 0; /* Small top padding, larger bottom padding */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-register__hero-title {
  font-size: clamp(32px, 5vw, 60px); /* Using clamp for responsive H1 */
  color: #F2C14E; /* Gold color */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.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: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #F2FFF6; /* Text Main for buttons */
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #57E38D; /* Glow color for secondary text */
  border: 2px solid #2E7A4E; /* Border color */
}

.page-register__btn-secondary:hover {
  background-color: rgba(46, 122, 78, 0.2); /* Deep Green with transparency */
  color: #F2FFF6;
}

.page-register__cta-container {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
  width: 100%; /* For mobile responsiveness */
  max-width: 100%; /* For mobile responsiveness */
  overflow: hidden; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
}

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

/* Card styling */
.page-register__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
  color: #F2FFF6; /* Text Main */
  box-sizing: border-box; /* Ensure padding/border included in width */
  min-height: 250px; /* Minimum height for consistency */
}

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

.page-register__feature-icon,
.page-register__step-image,
.page-register__bonus-image {
  width: 100%;
  height: auto;
  max-width: 150px; /* Example size, adjust as needed */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block; /* Ensure no extra space below image */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-register__feature-title {
  font-size: 24px;
  color: #F2C14E; /* Gold color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__feature-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-register__step-card {
  padding-top: 50px; /* Adjust padding for number */
  position: relative;
}

.page-register__step-number {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #57E38D; /* Glow color */
  color: #08160F; /* Background color for contrast */
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
  border: 2px solid #F2C14E; /* Gold border */
}

.page-register__step-title {
  font-size: 22px;
  color: #F2C14E; /* Gold color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

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

.page-register__bonus-title {
  font-size: 24px;
  color: #F2C14E; /* Gold color */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__bonus-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
}

/* Security Section */
.page-register__security-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.page-register__security-item {
  flex: 0 0 calc(33% - 40px); /* 3 items per row on desktop */
  max-width: 300px;
  text-align: center;
  color: #F2FFF6; /* Text Main */
}

.page-register__security-icon {
  width: 80px; /* Displayed size */
  height: 80px; /* Displayed size */
  max-width: 80px; /* Ensure it doesn't grow too large */
  max-height: 80px; /* Ensure it doesn't grow too large */
  margin-bottom: 15px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
  /* The actual generated image will be >= 200x200 as per imageRequirements */
}

.page-register__security-subtitle {
  font-size: 20px;
  color: #F2C14E; /* Gold color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__security-text {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* FAQ Section */
.page-register__faq-list {
  max-width: 900px;
  margin: 50px auto 0;
  text-align: left;
}

.page-register__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #F2C14E; /* Gold color */
  cursor: pointer;
  user-select: none;
  background-color: #1E3A2A; /* Divider color for question background */
}

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

.page-register__faq-question .page-register__faq-toggle {
  font-size: 24px;
  line-height: 1;
  width: 24px;
  text-align: center;
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  line-height: 1.6;
}

/* Override default details behavior for smooth animation if JS is active */
.page-register__faq-item[open] .page-register__faq-question {
  background-color: #0A4B2C; /* Deep Green for open question */
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__bonuses-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 60px 0;
  }

  .page-register__section-intro {
    margin-bottom: 40px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__bonuses-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 40px 0;
  }

  .page-register__hero-title {
    font-size: 32px;
  }

  .page-register__hero-description {
    font-size: 18px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-register__cta-container {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .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;
  }

  .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;
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__bonus-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-register__security-item {
    flex: 0 0 100%; /* Single item per row on mobile */
    max-width: 100%;
  }

  .page-register__card {
    padding: 20px;
  }

  /* Image responsiveness for all images within .page-register */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-register__hero-image {
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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