/* 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: var(--dark-bg-1); /* Inherit from shared.css, assuming dark */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  box-sizing: border-box;
}

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

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

.page-register__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  color: #ffffff;
  padding: 20px;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-register__btn-secondary {
  background-color: #017439; /* Main brand color for secondary */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-register__btn-primary--large,
.page-register__btn-secondary--large {
  padding: 18px 40px;
  font-size: 1.3em;
}

/* General Section Styling */
.page-register__intro-section,
.page-register__promo-section,
.page-register__faq-section {
  padding: 60px 0;
  color: #333333; /* Dark text for light background */
  background-color: #ffffff; /* White background */
}

.page-register__guide-section,
.page-register__security-section,
.page-register__cta-section {
  padding: 60px 0;
  color: #ffffff; /* Light text for dark background */
  background-color: #017439; /* Main brand color for dark sections */
}

.page-register__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: inherit; /* Inherit from section, then adjust if needed */
}

.page-register__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
}

.page-register__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: inherit;
}

.page-register__text-contrast-fix {
  color: #ffffff !important; /* Ensure white text on dark backgrounds */
}

.page-register__content-block {
  max-width: 900px;
  margin: 0 auto;
}

.page-register__list,
.page-register__ordered-list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  font-size: 1.1em;
  color: inherit;
}

.page-register__ordered-list {
  list-style-type: decimal;
}

.page-register__list-item {
  margin-bottom: 10px;
  color: inherit;
}

.page-register__nested-list {
  list-style-type: circle;
  margin-left: 20px;
  margin-top: 10px;
  color: inherit;
}

.page-register__list--dark,
.page-register__ordered-list--dark,
.page-register__nested-list--dark {
  color: #ffffff;
}

.page-register__link {
  color: #C30808; /* Link color for light backgrounds */
  text-decoration: underline;
}

.page-register__dark-bg .page-register__link {
  color: #FFFF00; /* Link color for dark backgrounds */
}

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

/* Image Styling */
.page-register__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__image--center {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  width: 40%; /* Adjust as needed */
  min-width: 200px; /* Min size */
}

.page-register__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  width: 40%; /* Adjust as needed */
  min-width: 200px; /* Min size */
}

/* Clearfix for floated images */
.page-register__content-block::after {
  content: "";
  display: table;
  clear: both;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 30px;
}

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

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

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

.page-register__faq-question h4 {
  margin: 0;
  color: #333333;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  color: #017439;
}

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

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

.page-register__faq-item.active .page-register__faq-question {
  background-color: #e5e5e5;
}

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__sub-title {
    font-size: 1.5em;
  }
  .page-register__image--left,
  .page-register__image--right {
    float: none;
    margin: 30px auto;
    width: 80%;
    display: block;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    height: auto;
    min-height: 60vh;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    display: block;
    margin: 10px auto;
    width: calc(100% - 30px); /* Account for padding */
    max-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__btn-primary--large,
  .page-register__btn-secondary--large {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-register__sub-title {
    font-size: 1.3em;
    margin-top: 25px;
  }
  .page-register__paragraph,
  .page-register__list-item {
    font-size: 1em;
  }
  .page-register__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-register__faq-answer {
    padding: 0 20px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px;
  }
  .page-register__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .page-register__cta-buttons .page-register__btn-primary,
  .page-register__cta-buttons .page-register__btn-secondary {
    margin: 0 auto;
  }
}