/* style/register.css */

/* Base styles for the register page */
.page-register {
  background-color: #08160F; /* Custom Background */
  color: #F2FFF6; /* Custom Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-register__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 1.1em;
  color: #A7D9B8; /* Custom Text Secondary */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles header offset, this is decorative top padding */
  position: relative;
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height for aesthetic */
  overflow: hidden;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-register__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -80px; /* Overlap slightly for visual flow, not covering the image content */
  background: rgba(8, 22, 15, 0.85); /* Slightly transparent background for text readability */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 20px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  /* clamp for responsive font size without fixed values */
  font-size: clamp(2em, 4vw, 3.5em);
}

.page-register__intro-text {
  font-size: 1.15em;
  color: #A7D9B8; /* Custom Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button */
  color: #F2FFF6; /* Custom Text Main */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-register__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-register__benefit-card {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2E7A4E; /* Custom Border */
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__benefit-icon {
  width: 100%; /* Ensure large image */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-register__benefit-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 15px;
}

.page-register__benefit-text {
  font-size: 1em;
  color: #A7D9B8; /* Custom Text Secondary */
}

.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 50px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.page-register__cta-buttons--center {
  text-align: center;
}

.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: #2AD16F; /* Green from button gradient for contrast */
  border: 2px solid #2AD16F;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.page-register__btn-secondary:hover {
  background-color: #2AD16F;
  color: #F2FFF6;
  transform: translateY(-3px);
}

/* Guide Section */
.page-register__guide-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Custom Deep Green for contrast */
}

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

.page-register__step-card {
  background-color: #11271B; /* Custom Card BG */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Custom Border */
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button gradient */
  color: #F2FFF6;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-register__step-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  margin-bottom: 10px;
}

.page-register__step-text {
  font-size: 1em;
  color: #A7D9B8; /* Custom Text Secondary */
}

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

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

.page-register__faq-item {
  background-color: #11271B; /* Custom Card BG */
  border: 1px solid #2E7A4E; /* Custom Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Custom Text Main */
  cursor: pointer;
  background-color: #11271B;
  list-style: none; /* For details/summary */
}

.page-register__faq-question::-webkit-details-marker, /* For details/summary */
.page-register__faq-question::marker {
  display: none;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #2AD16F; /* Green from button gradient */
  margin-left: 15px;
}

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

.page-register__faq-item[open] .page-register__faq-question {
  background-color: #0A4B2C; /* Deep Green for open state */
}

/* Fallback for div based FAQ */
.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Ensure content is visible */
  transition: max-height 0.5s ease-in-out;
}

.page-register__faq-item:not(.active) .page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
}

/* Conclusion Section */
.page-register__conclusion-section {
  padding: 80px 0;
  background-color: #0A4B2C; /* Custom Deep Green */
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

  .page-register__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }

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

  .page-register__benefits-grid, .page-register__guide-steps {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-register__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
  }

  .page-register__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-register__intro-text {
    font-size: 1em;
  }

  .page-register__btn-primary, .page-register__btn-secondary {
    width: 100% !important;
    max-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 {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-register__section-description {
    font-size: 0.95em;
  }

  .page-register__benefits-section, .page-register__guide-section, .page-register__faq-section, .page-register__conclusion-section {
    padding: 50px 0;
  }

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

  .page-register__hero-image-wrapper,
  .page-register__benefit-icon,
  .page-register__container,
  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-register__benefit-card, .page-register__step-card {
    padding: 20px;
  }

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

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

@media (max-width: 480px) {
  .page-register__hero-content {
    margin-top: -30px;
    padding: 20px 10px;
  }

  .page-register__main-title {
    font-size: clamp(1.2em, 7vw, 2em);
  }

  .page-register__btn-primary--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
}