/* style/register.css */

.page-register {
  color: #ffffff; /* Text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  padding-left: 20px;
  padding-right: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: 50px;
  color: #ffffff;
}

.page-register__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for H1 as per brand, contrast with dark background */
}

.page-register__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.page-register__cta-button--primary {
  background-color: #C30808; /* Custom Register button color */
  color: #FFFFFF; /* Ensuring contrast with button background */
}

.page-register__cta-button--primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-register__form-section {
  padding: 60px 20px;
  background-color: #1a1a2e;
  color: #ffffff;
  text-align: center;
}

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

.page-register__form-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for H2 as per brand, contrast with dark background */
}

.page-register__form-intro {
  font-size: 1.1em;
  margin-bottom: 40px;
}

.page-register__form {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: #cccccc;
}

.page-register__form-checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95em;
}

.page-register__form-checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
}

.page-register__form-checkbox-label {
  color: #ffffff;
}

.page-register__form-link {
  color: #017439;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__form-link:hover {
  color: #00b347;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  background-color: #C30808; /* Custom Register button color */
  color: #FFFFFF; /* Ensuring contrast with button background */
}

.page-register__submit-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-register__login-prompt {
  margin-top: 30px;
  font-size: 1em;
  color: #ffffff;
}

.page-register__benefits-section {
  padding: 80px 20px;
  background-color: #0a0a1e;
  color: #ffffff;
}

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-register__benefits-title {
  font-size: 2.2em;
  margin-bottom: 25px;
  color: #FFFF00; /* Custom color for H2 as per brand, contrast with dark background */
}

.page-register__benefits-description {
  font-size: 1.05em;
  margin-bottom: 30px;
}

.page-register__benefits-list {
  list-style: none;
  padding: 0;
}

.page-register__benefits-item {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
}

.page-register__benefits-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 0;
}

.page-register__benefits-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-register__security-section {
  padding: 80px 20px;
  background-color: #1a1a2e;
  color: #ffffff;
  text-align: center;
}

.page-register__security-content {
  max-width: 900px;
}

.page-register__security-title {
  font-size: 2.2em;
  margin-bottom: 25px;
  color: #FFFF00; /* Custom color for H2 as per brand, contrast with dark background */
}

.page-register__security-description,
.page-register__security-text {
  font-size: 1.05em;
  margin-bottom: 20px;
}

.page-register__security-link {
  color: #017439;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__security-link:hover {
  color: #00b347;
}

.page-register__security-image {
  margin-top: 40px;
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-register__faq-section {
  padding: 80px 20px;
  background-color: #0a0a1e;
  color: #ffffff;
}

.page-register__faq-title {
  font-size: 2.2em;
  margin-bottom: 25px;
  text-align: center;
  color: #FFFF00; /* Custom color for H2 as per brand, contrast with dark background */
}

.page-register__faq-intro {
  font-size: 1.05em;
  margin-bottom: 40px;
  text-align: center;
}

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

.page-register__faq-image {
  margin-top: 40px;
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-bottom-section {
  padding: 60px 20px;
  background-color: #1a1a2e;
  color: #ffffff;
  text-align: center;
}

.page-register__cta-bottom-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for H2 as per brand, contrast with dark background */
}

.page-register__cta-bottom-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-register__benefits-image {
    order: -1; /* Image appears above text on smaller screens */
    margin-bottom: 30px;
  }
}

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

  .page-register__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-content {
    margin-top: 30px;
  }

  .page-register__hero-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    line-height: 1.3;
  }

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

  /* Universal Image Adaption */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .page-register__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Ensure hero image covers its container */
  }

  /* General content containers */
  .page-register__container,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-register__form-title,
  .page-register__benefits-title,
  .page-register__security-title,
  .page-register__faq-title,
  .page-register__cta-bottom-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-register__form {
    padding: 25px;
  }

  /* Button responsiveness */
  .page-register__cta-button,
  .page-register__submit-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;
  }

  /* Button containers */
  .page-register__hero-content,
  .page-register__form-section .page-register__container,
  .page-register__cta-bottom-section .page-register__container {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Space between elements */
  }
  
  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-register__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  .page-register__form-checkbox-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-register__form-checkbox {
    margin-bottom: 10px;
  }
}