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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 600px;
  background: linear-gradient(135deg, #017439, #005a2e);
}

.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-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for register/login font */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  color: #ffffff;
}

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

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

/* General Section Styling */
.page-register__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

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

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

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

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-register__form-group {
  display: flex;
  flex-direction: column;
}

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

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

.page-register__form-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.page-register__checkbox-label {
  font-size: 0.95em;
  color: #333333;
}

.page-register__checkbox-label a {
  color: #017439;
  text-decoration: none;
}

.page-register__checkbox-label a:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom color for register font */
}

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

.page-register__login-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.95em;
  color: #333333;
}

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

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

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

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

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

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

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

.page-register__benefit-description {
  font-size: 0.95em;
  color: #555555;
}

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

.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-intro {
  color: #ffffff;
}

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 50px;
}

.page-register__security-text {
  flex: 1;
}

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

.page-register__security-text p {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #e0e0e0;
}

.page-register__security-text a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-register__security-text a:hover {
  color: #fff;
}

.page-register__security-image {
  flex: 1;
  max-width: 500px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

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

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

.page-register__faq-item {
  background-color: #f8f8f8;
  border: 1px solid #eee;
  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: #ffffff;
  color: #017439;
  transition: background-color 0.3s ease;
}

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

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

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

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

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
}

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

/* Call to Action Section */
.page-register__cta-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #005a2e, #017439);
  color: #ffffff;
}

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

.page-register__cta-section .page-register__section-title,
.page-register__cta-section .page-register__section-intro {
  color: #ffffff;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  background-color: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom color for register font */
  border: none;
  cursor: pointer;
  margin-top: 30px;
}

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

/* Common Elements */
.page-register__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-register__dark-section .page-register__section-title {
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

.page-register__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-register__btn-primary {
  background: #C30808; /* Custom color for register button */
  color: #FFFF00; /* Custom color for register font */
  border: 2px solid transparent;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__security-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-register__security-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    min-height: 500px;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__hero-cta,
  .page-register__submit-button,
  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-register__form-wrapper {
    padding: 25px;
  }
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-register__security-text h3 {
    font-size: 1.5em;
  }
  .page-register__security-text p {
    font-size: 0.95em;
  }
  .page-register__faq-question {
    font-size: 1.05em;
    padding: 15px;
  }
  .page-register__faq-answer {
    padding: 0 15px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px;
  }

  /* Images responsiveness */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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 !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-register__container {
    padding: 0;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__registration-form {
    gap: 15px;
  }
  .page-register__form-checkbox {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-register__checkbox-input {
    margin-top: 5px;
  }
  .page-register__faq-question {
    font-size: 1em;
  }
}