/* style/register.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-on-dark: #FFFFFF;
  --text-on-light: #333333;
  --register-button-bg: #C30808;
  --register-button-text: #FFFF00;
  --login-button-bg: #C30808; /* Not explicitly used on this page, but defined */
  --login-button-text: #FFFF00; /* Not explicitly used on this page, but defined */
  --section-background-light: #FFFFFF;
  --body-background: #1a1a2e;
}

.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark); /* Default text color for dark body background */
  background-color: var(--body-background);
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: var(--text-on-dark);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-title--dark {
  color: var(--text-on-light);
}

.page-register__section-description {
  font-size: 1.1em;
  color: var(--text-on-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__section-description--dark {
  color: var(--text-on-light);
}

.page-register__link {
  color: var(--register-button-text); /* Using the yellow for links on dark bg */
  text-decoration: underline;
}

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

/* Buttons */
.page-register__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-register__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
}

.page-register__btn-register {
  background-color: var(--register-button-bg);
  color: var(--register-button-text);
  border: 2px solid var(--register-button-bg);
}

.page-register__btn-register:hover {
  background-color: #a80707; /* Darkened #C30808 */
  border-color: #a80707;
}

.page-register__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-register__btn-primary:hover {
  background-color: #015f2e; /* Darkened #017439 */
  border-color: #015f2e;
}

.page-register__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-register__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 100px 0 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for readability */
  z-index: 0;
}

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

.page-register__hero-section .page-register__container {
  position: relative;
  z-index: 1;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-on-dark);
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-on-dark);
}

.page-register__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Registration Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: var(--section-background-light); /* White background for form */
  color: var(--text-on-light); /* Dark text on white background */
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__registration-form {
  max-width: 600px;
  width: 100%;
  margin-top: 40px;
  padding: 30px;
  background-color: #f8f8f8; /* Slightly off-white for the form itself */
  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: var(--text-on-light);
}

.page-register__form-label--dark {
  color: var(--text-on-light);
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: var(--text-on-light);
  background-color: var(--secondary-color);
}

.page-register__verification-input-group {
  display: flex;
  gap: 10px;
}

.page-register__verification-input-group .page-register__form-input {
  flex-grow: 1;
}

.page-register__btn-send-code {
  background-color: #6c757d;
  color: var(--secondary-color);
  border: none;
  padding: 12px 18px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-register__btn-send-code:hover {
  background-color: #5a6268;
}

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

.page-register__checkbox {
  margin-right: 10px;
  margin-top: 4px; /* Align checkbox with text baseline */
}

.page-register__checkbox-label {
  font-size: 0.95em;
  color: var(--text-on-light);
}

.page-register__form-submit-btn {
  width: 100%;
  margin-top: 30px;
  padding: 15px;
  font-size: 1.1em;
}

.page-register__form-image {
  margin-top: 40px;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: var(--primary-color); /* Dark green background */
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-description {
  color: var(--text-on-dark);
}

.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.15); /* Slightly transparent white */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: var(--text-on-dark);
}

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

.page-register__benefit-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--text-on-dark);
}

.page-register__link--card-title {
  color: var(--text-on-dark);
  text-decoration: none;
}

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

.page-register__benefit-card-description {
  font-size: 1em;
  line-height: 1.5;
  color: var(--text-on-dark);
}

.page-register__benefits-image {
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0.1;
  z-index: 0;
  max-width: 500px;
  height: auto;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: var(--section-background-light); /* White background for FAQ */
  color: var(--text-on-light);
}

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

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

.page-register__faq-question {
  background-color: #f0f0f0;
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-on-light);
  font-weight: bold;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
}

.page-register__faq-answer {
  background-color: var(--secondary-color);
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-on-light);
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important;
  padding: 15px 20px;
}

/* CTA Download Section */
.page-register__cta-download-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__cta-download-content {
  position: relative;
  z-index: 1;
}

.page-register__btn-download {
  background-color: var(--register-button-bg);
  color: var(--register-button-text);
  border: 2px solid var(--register-button-bg);
  margin-top: 30px;
}

.page-register__btn-download:hover {
  background-color: #a80707; /* Darkened #C30808 */
  border-color: #a80707;
}

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

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-register__hero-section {
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary, .page-register__btn-secondary, .page-register__btn-register, .page-register__btn-send-code, .page-register__btn-download {
    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__form-section, .page-register__benefits-section, .page-register__faq-section, .page-register__cta-download-section {
    padding: 50px 0;
  }
  .page-register__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__section-description {
    font-size: 0.95em;
  }
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-register__form-image, .page-register__benefits-image, .page-register__cta-download-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    position: static;
    opacity: 0.3;
    margin-top: 30px;
  }
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__verification-input-group {
    flex-direction: column;
    gap: 10px;
  }
  .page-register__faq-item {
    padding: 0;
  }
  .page-register__faq-question, .page-register__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 15px !important;
  }
}

/* Ensure content images are not small icons */
.page-register img:not(.page-register__hero-image):not(.page-register__form-image):not(.page-register__benefits-image):not(.page-register__cta-download-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Darken color for text on dark backgrounds if needed (e.g., if a section has a very light transparent background) */
.page-register__dark-bg .page-register__link {
  color: var(--register-button-text);
}

/* Ensure contrast for links on light background */
.page-register__light-bg .page-register__link {
  color: var(--primary-color);
}