/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-register__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #017439, #0a0a0a);
  color: #ffffff;
  gap: 40px;
}

.page-register__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Custom color for important titles */
}

.page-register__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-register__hero-button {
  display: inline-block;
  background-color: #C30808; /* Custom Register button color */
  color: #FFFF00; /* Custom Register button font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__hero-button:hover {
  background-color: #a00606;
}

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 600px;
}

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

.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for section titles */
  line-height: 1.2;
}

.page-register__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #f0f0f0;
}

.page-register__benefits-section {
  padding: 80px 0;
}

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

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

.page-register__benefit-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 250px; /* Ensure images are not too small, but responsive */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__benefit-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-register__benefit-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__form-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* White background for form section */
  color: #333333; /* Dark text for white background */
}

.page-register__form-section .page-register__section-title,
.page-register__form-section .page-register__section-intro {
  color: #017439; /* Brand color for titles/intros on white background */
}

.page-register__form-wrapper {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
  margin-top: 40px;
}

.page-register__registration-form {
  flex: 1;
  background: #f9f9f9;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__captcha-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-register__captcha-input {
  flex: 1;
}

.page-register__captcha-image {
  height: 40px; /* Adjusted height for captcha */
  width: auto;
  border-radius: 4px;
  border: 1px solid #ccc;
  object-fit: contain;
}

.page-register__terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-register__terms-checkbox input[type="checkbox"] {
  margin-top: 5px;
  flex-shrink: 0;
}

.page-register__terms-link {
  color: #017439;
  text-decoration: underline;
}

.page-register__terms-link:hover {
  color: #005a2d;
}

.page-register__submit-button {
  width: 100%;
  background-color: #C30808; /* Custom Register button color */
  color: #FFFF00; /* Custom Register button font color */
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-register__submit-button:hover {
  background-color: #a00606;
}

.page-register__form-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
}

.page-register__illustration-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-register__security-section {
  padding: 80px 0;
}

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

.page-register__security-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-register__security-heading {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-register__security-description {
  font-size: 1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-register__read-more-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
}

.page-register__read-more-link:hover {
  color: #005a2d;
}

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

.page-register__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* White background for FAQ section */
  color: #333333; /* Dark text for white background */
}

.page-register__faq-section .page-register__section-title,
.page-register__faq-section .page-register__section-intro {
  color: #017439; /* Brand color for titles/intros on white background */
}

.page-register__faq-list {
  margin-top: 40px;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: #e6e6e6;
}

.page-register__faq-item[open] .page-register__faq-question {
  background-color: #e6e6e6;
}

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

.page-register__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #555555;
}

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

.page-register__faq-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 60px auto 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-register__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-register__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for CTA title */
}

.page-register__cta-description {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-register__cta-button {
  display: inline-block;
  background-color: #C30808; /* Custom Register button color */
  color: #FFFF00; /* Custom Register button font color */
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__cta-button:hover {
  background-color: #a00606;
}

/* Common styles for dark background sections */
.page-register__dark-section {
  background-color: #0a0a0a; /* Body background color */
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }

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

  .page-register__cta-title {
    font-size: 2.2em;
  }

  .page-register__form-wrapper {
    flex-direction: column;
    align-items: center;
  }

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

  .page-register__hero-section {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .page-register__hero-content {
    max-width: 100%;
    text-align: center;
  }

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

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
  }

  .page-register__hero-title {
    font-size: 2.2em;
    text-align: center;
  }

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

  .page-register__hero-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

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

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

  .page-register__benefits-section,
  .page-register__form-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 40px 0;
  }

  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Ensure image containers do not overflow */
  .page-register__hero-image-wrapper,
  .page-register__form-illustration,
  .page-register__security-image,
  .page-register__faq-image,
  .page-register__benefit-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-register__hero-button,
  .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;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__captcha-container {
    flex-direction: column;
    align-items: stretch;
  }

  .page-register__captcha-image {
    width: 100%;
    max-width: 150px; /* Adjust max-width for captcha image on mobile */
    margin: 0 auto;
  }

  .page-register__terms-checkbox {
    flex-direction: row;
    align-items: flex-start;
  }

  .page-register__registration-form {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }

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

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

  .page-register__hero-button,
  .page-register__submit-button,
  .page-register__cta-button {
    padding: 12px 20px;
    font-size: 1em;
  }

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

  .page-register__benefit-title,
  .page-register__security-heading {
    font-size: 1.4em;
  }

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

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

/* Color Contrast Specifics */
.page-register__dark-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-register__form-section,
.page-register__faq-section {
  background-color: #FFFFFF;
  color: #333333;
}

.page-register__form-section .page-register__section-title,
.page-register__form-section .page-register__section-intro,
.page-register__faq-section .page-register__section-title,
.page-register__faq-section .page-register__section-intro {
  color: #017439;
}

.page-register__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
}

.page-register__btn-primary:hover {
  background-color: #a00606;
}

.page-register__terms-link,
.page-register__read-more-link {
  color: #017439;
}

.page-register__hero-title,
.page-register__benefit-title,
.page-register__security-heading,
.page-register__cta-title {
  color: #FFFF00;
}

.page-register__faq-question {
  background-color: #f0f0f0;
  color: #333333;
}

.page-register__faq-item[open] .page-register__faq-question {
  background-color: #e6e6e6;
}