.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#1a1a2e), so text is light */
  background-color: transparent; /* inherited from body */
}

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

.page-register__dark-bg {
  background-color: #1a1a2e; /* Inherited from body, but explicitly set for sections */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #0d0d1e; /* Slightly lighter dark background for contrast */
  color: #ffffff;
}

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

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

.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Adjusted for better visual balance */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  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;
}

.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;
  padding: 20px;
}

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

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for register */
  color: #ffffff; /* Ensuring WCAG AA contrast for button text */
  border: 2px solid #C30808;
  font-size: 1.2em;
}

.page-register__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand color */
  border: 2px solid #017439;
  font-size: 1.1em;
}

.page-register__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-register__form-section {
  padding: 80px 0;
}

.page-register__form-wrapper {
  position: relative;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark body background */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.page-register__form-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3); /* Darken background image for form readability */
  z-index: 0;
}

.page-register__registration-form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.page-register__form-label {
  font-size: 1em;
  margin-bottom: 8px;
  color: #ffffff;
}

.page-register__form-input {
  padding: 12px 15px;
  border: 1px solid #017439;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

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

.page-register__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.3);
}

.page-register__checkbox-group {
  flex-direction: row;
  align-items: center;
}

.page-register__form-checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #017439; /* Brand color for checkbox */
}

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

.page-register__link {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__link:hover {
  text-decoration: underline;
  color: #00a040;
}

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

.page-register__benefits-section {
  padding: 80px 0;
}

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

.page-register__benefit-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 350px; /* Ensure cards have consistent height */
}

.page-register__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-register__benefit-icon {
  width: 150px; /* Increased size */
  height: 150px; /* Increased size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px; /* Slightly rounded corners */
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #017439; /* Brand color for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-register__guide-section {
  padding: 80px 0;
}

.page-register__guide-list {
  list-style: none;
  padding: 0;
  counter-reset: guide-step;
  max-width: 800px;
  margin: 0 auto;
}

.page-register__guide-item {
  position: relative;
  padding: 30px 0 30px 70px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__guide-item:last-child {
  border-bottom: none;
}

.page-register__guide-item::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-register__guide-step-title {
  font-size: 1.6em;
  color: #017439; /* Brand color */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__guide-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__faq-section {
  padding: 80px 0;
}

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

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

.page-register__faq-item summary {
  list-style: none; /* Hide default marker for details tag */
}

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

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

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-register__faq-answer {
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  color: #f0f0f0;
  font-size: 1em;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

/* Details tag specific styles */
.page-register__faq-item[open] .page-register__faq-question {
  background-color: #00a040;
}

.page-register__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-register__cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0; /* Remove padding from button itself */
  overflow: hidden;
  position: relative;
}

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

.page-register__cta-button span {
  position: relative;
  z-index: 2;
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  padding: 30px 40px; /* Padding for text within the button */
  background-color: rgba(195, 8, 8, 0.7); /* Custom color with transparency */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: background-color 0.3s ease;
}

.page-register__cta-button:hover span {
  background-color: rgba(163, 6, 6, 0.8);
}

/* 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;
  }
  .page-register__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    height: 500px;
    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 {
    font-size: 1em;
    padding: 12px 25px;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 0.9em;
  }
  .page-register__form-wrapper {
    padding: 30px;
  }
  .page-register__form-input,
  .page-register__form-label {
    font-size: 0.9em;
  }
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-register__benefit-item {
    min-height: auto;
  }
  .page-register__guide-item {
    padding: 20px 0 20px 60px;
  }
  .page-register__guide-item::before {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }
  .page-register__guide-step-title {
    font-size: 1.4em;
  }
  .page-register__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-register__cta-button span {
    font-size: 1.4em;
    padding: 20px 30px;
  }
  
  /* Mobile responsive for all images */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile responsive for all containers */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__form-wrapper,
  .page-register__registration-form,
  .page-register__benefits-grid,
  .page-register__faq-list,
  .page-register__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Mobile responsive for buttons */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .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;
    margin-left: auto;
    margin-right: auto;
  }
  
  .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__hero-content {
      padding: 0 15px;
  }
}