/* style/register.css */

/* --- Global styles for page-register scope --- */
.page-register {
  background-color: var(--bg-color, #08160F); /* Fallback to default if var not set */
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

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

.page-register__section-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 rules applied to H2 as well for consistency, with clamp */
  color: var(--text-main, #F2FFF6);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

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

.page-register__link {
  color: var(--glow, #57E38D);
  text-decoration: none;
}

.page-register__link:hover {
  text-decoration: underline;
}

/* --- Buttons --- */
.page-register__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for contrast */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  font-size: 18px;
  transition: background 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
}

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

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden; /* Ensure no overflow from images */
}

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

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

.page-register__main-title {
  font-size: clamp(32px, 5vw, 60px); /* H1 font size with clamp */
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

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

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

.page-register__form-wrapper {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 40px;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-register__registration-form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.page-register__form-group {
  margin-bottom: 20px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  font-size: 16px;
}

.page-register__form-input,
.page-register__form-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 8px;
  background-color: var(--deep-green, #0A4B2C); /* Deep Green for input background */
  color: var(--text-main, #F2FFF6);
  font-size: 16px;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: var(--text-secondary, #A7D9B8);
  opacity: 0.7;
}

.page-register__form-checkbox {
  display: flex;
  align-items: center;
  margin-top: 25px;
}

.page-register__checkbox-input {
  margin-right: 10px;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.page-register__checkbox-label {
  font-size: 15px;
  color: var(--text-secondary, #A7D9B8);
}

.page-register__checkbox-label .page-register__link {
  color: var(--glow, #57E38D);
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  margin-top: 30px;
}

.page-register__form-image-container {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

.page-register__form-illustration {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
}

/* --- Benefits Section --- */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: var(--deep-green, #0A4B2C); /* Use Deep Green for this section background */
  color: var(--text-main, #F2FFF6);
}

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

.page-register__benefit-card {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-register__benefit-title {
  font-size: 24px;
  color: var(--glow, #57E38D);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__benefit-text {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

.page-register__benefits-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-top: 40px;
  object-fit: cover;
}

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

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

.page-register__security-item {
  background-color: var(--card-bg, #11271B);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__security-icon {
  width: 100%; /* Ensure images are large enough */
  max-width: 250px; /* Max width for icons */
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-register__security-title {
  font-size: 22px;
  color: var(--glow, #57E38D);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__security-text {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

.page-register__content-text {
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

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

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

.page-register__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--divider, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-register__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: var(--text-main, #F2FFF6);
  transition: background-color 0.3s ease;
}

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

.page-register__faq-item summary:hover {
  background-color: rgba(var(--primary-color-rgb, 17, 168, 78), 0.1); /* Slight hover effect */
}

.page-register__faq-qtext {
  flex-grow: 1;
  color: var(--text-main, #F2FFF6);
}

.page-register__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

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

.page-register__faq-answer p {
  margin-bottom: 0;
}


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

.page-register__cta-button {
  margin-top: 30px;
  min-width: 250px;
}

.page-register__cta-subtext {
  margin-top: 20px;
  font-size: 16px;
  color: var(--text-secondary, #A7D9B8);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__form-wrapper {
    flex-direction: column;
    padding: 30px;
  }

  .page-register__registration-form,
  .page-register__form-image-container {
    max-width: 100%;
  }

  .page-register__hero-image {
    max-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-register__hero-section {
    padding-top: 10px !important; /* body handles header offset, small top padding for content */
  }

  .page-register__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }

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

  .page-register__section-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-register__section-description {
    font-size: 15px;
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__security-section,
  .page-register__cta-section,
  .page-register__container,
  .page-register__form-wrapper,
  .page-register__benefit-card,
  .page-register__security-item,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Buttons responsive */
  .page-register__btn-primary,
  .page-register__submit-button,
  .page-register__cta-button,
  .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; /* Allow text wrapping */
    word-wrap: break-word !important; /* Allow long words to break */
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Button groups responsive */
  .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; /* Allow multiple buttons to wrap */
    gap: 10px; /* Space between wrapped buttons */
    overflow: hidden !important;
  }
  
  .page-register__cta-section .page-register__btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .page-register__hero-content {
    padding: 0 15px;
  }
  
  .page-register__form-group {
    padding: 0; /* Remove horizontal padding from form groups */
  }
  
  .page-register__faq-item summary {
    font-size: 16px;
    padding: 15px;
  }
  .page-register__faq-answer {
    padding: 0 15px 15px 15px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: clamp(24px, 9vw, 36px);
  }
  .page-register__section-title {
    font-size: clamp(22px, 8vw, 32px);
  }
  .page-register__hero-description,
  .page-register__section-description,
  .page-register__benefit-text,
  .page-register__security-text,
  .page-register__content-text,
  .page-register__checkbox-label {
    font-size: 14px;
  }
  .page-register__benefit-title {
    font-size: 20px;
  }
  .page-register__security-title {
    font-size: 18px;
  }
}