/* style/register.css */
/* 
  Body background color: #f0f2f5 (light) -> text color: #333333 by default.
  However, custom colors are provided, which are dark green backgrounds and light text.
  So, for sections with custom dark backgrounds, text should be #F2FFF6.
*/

.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f0f2f5; /* Inherited from body, but explicitly set for clarity */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #08160F; /* Custom background color */
  color: #F2FFF6; /* Text Main for dark background */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Adjust as needed for hero image */
  margin-bottom: 30px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

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

.page-register__main-title {
  font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive H1 font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-register__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

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

/* General Section Styling */
.page-register__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #11A84E; /* Main color for titles on light backgrounds */
}

.page-register__section-description {
  font-size: 1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__section-description {
  color: #F2FFF6; /* Text Main for dark sections */
}

.page-register__dark-section .page-register__section-description {
  color: #A7D9B8; /* Text Secondary for dark sections */
}

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

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

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

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

.page-register__step-card .page-register__card-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #57E38D; /* Glow color */
}

.page-register__step-card p {
  font-size: 0.95rem;
  color: #A7D9B8; /* Text Secondary */
}

.page-register__process-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 50px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__note {
  font-style: italic;
  font-size: 0.9rem;
  color: #A7D9B8; /* Text Secondary */
  margin-top: 20px;
}

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

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

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

.page-register__benefit-card {
  background-color: #ffffff; /* White background for cards on light section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-register__benefit-card .page-register__card-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
  color: #11A84E; /* Main color */
}

.page-register__benefit-card p {
  font-size: 0.95rem;
  color: #555555;
}

.page-register__benefits-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 50px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-register__security-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 50px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #ffffff;
  color: #11A84E; /* Main color */
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
  border: 2px solid #11A84E;
  cursor: pointer;
  margin-top: 30px;
}

.page-register__btn-secondary:hover {
  background-color: #11A84E;
  color: #ffffff;
  transform: translateY(-3px);
}

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

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

.page-register__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
  color: #11A84E; /* Main color */
}

.page-register__faq-item[open] .page-register__faq-question {
  border-bottom: 1px solid #e0e0e0;
  background-color: #f0f2f5;
}

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

.page-register__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #11A84E;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  content: '−'; /* Change to minus when open */
}

/* Hide default details marker */
.page-register__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-register__faq-item summary {
  list-style: none;
}


.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #555555;
  background-color: #ffffff;
}

/* CTA Bottom Section */
.page-register__cta-bottom {
  padding: 80px 0;
  text-align: center;
  background-color: #08160F; /* Background color */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-section {
    padding: 40px 15px;
  }
  .page-register__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-register__main-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
  }
  .page-register__hero-description {
    font-size: 1rem;
  }
  .page-register__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  }
  .page-register__registration-steps,
  .page-register__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  .page-register__step-card,
  .page-register__benefit-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-register__hero-section {
    padding: 30px 15px;
  }
  .page-register__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  .page-register__hero-description {
    font-size: 0.95rem;
  }
  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  .page-register__section-title {
    font-size: clamp(1.4rem, 5vw, 2rem);
  }
  .page-register__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }
  
  /* Mobile image responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-bottom,
  .page-register__container,
  .page-register__registration-steps,
  .page-register__benefits-grid,
  .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; /* Prevent horizontal scroll */
  }

  /* Specific padding adjustment for hero section to avoid double padding */
  .page-register__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px !important;
  }

  /* Button responsive */
  .page-register__cta-button,
  .page-register__btn-secondary {
    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;
    margin-top: 20px !important;
  }
  
  .page-register__registration-steps,
  .page-register__benefits-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
  }

  .page-register__step-card,
  .page-register__benefit-card {
    padding: 20px;
  }
  
  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-register__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }
  .page-register__section-title {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }
  .page-register__cta-button,
  .page-register__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}