/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text on light background for readability */
  background-color: #FFFFFF; /* Default body background */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-subtitle,
.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  color: #FFFFFF;
  background-color: #017439; /* Brand primary color for dark background */
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-register__hero-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

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

.page-register__form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.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 #cccccc;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-register__form-checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.page-register__form-checkbox {
  margin-right: 10px;
  margin-top: 5px;
  flex-shrink: 0;
}

.page-register__form-checkbox-label {
  font-size: 0.95em;
  color: #555555;
}

.page-register__form-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-register__form-link:hover {
  text-decoration: underline;
}

.page-register__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 1em;
  color: #555555;
}

.page-register__login-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-register__login-link:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color for dark background */
  color: #FFFFFF;
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

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

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-register__security-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__security-item-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__security-item-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-register__security-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-register__security-link:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color for dark background */
  color: #FFFFFF;
}

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-register__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #FFFFFF;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg); /* No rotation, just change text to '-' */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 20px !important;
}

.page-register__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
  color: #f0f0f0;
}

/* Call to Action Section */
.page-register__cta-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
  text-align: center;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.3em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  margin-top: 30px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Button Colors */
.page-register__btn-register {
  background-color: #C30808; /* Custom color for Register buttons */
  color: #FFFF00; /* Custom font color for Register buttons */
}

.page-register__btn-register:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

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

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

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

@media (max-width: 768px) {
  .page-register__hero-section {
    min-height: 450px;
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header on mobile */
  }

  .page-register__hero-title {
    font-size: 2.5em;
  }

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

  .page-register__hero-button {
    padding: 12px 25px;
    font-size: 1.1em;
  }

  .page-register__form {
    padding: 25px;
  }

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

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

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

  .page-register__faq-title {
    font-size: 1.1em;
  }

  /* Mobile image adaptation */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* Mobile button adaptation */
  .page-register__hero-button,
  .page-register__form-submit-btn,
  .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__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;
    gap: 10px;
  }
  
  .page-register__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

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

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

  .page-register__hero-button {
    padding: 10px 20px;
    font-size: 1em;
  }

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

  .page-register__form {
    padding: 20px;
  }
}