/* style/register.css */
.page-register {
  color: #ffffff; /* Body background is dark, so default text color is light */
}

.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* body already handles --header-offset */
  text-align: center;
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px; /* Space between image and text */
  box-sizing: border-box;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
}

.page-register__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
}

.page-register__description {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

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

.page-register__benefits-section,
.page-register__process-section,
.page-register__security-section,
.page-register__faq-section,
.page-register__cta-final-section {
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
}

.page-register__light-bg {
  background: #ffffff; /* Custom background color for light sections */
  color: #333333;
}

.page-register__dark-bg {
  background: #017439; /* Main brand color for dark sections */
  color: #ffffff;
}

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

.page-register__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.3;
}

.page-register__light-bg .page-register__section-title {
  color: #333333;
}

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

.page-register__section-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 50px;
}

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

.page-register__card {
  background: #ffffff; /* Default card background */
  color: #333333; /* Default card text color */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

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

.page-register__card-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-register__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #017439;
}

.page-register__card-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
}

.page-register__step-card {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFFF00; /* Custom color for step numbers */
  margin-bottom: 15px;
  background: #C30808; /* Custom background for step numbers */
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-register__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-register__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-register__process-cta {
  margin-top: 50px;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

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

.page-register__faq-item details {
  width: 100%;
}

.page-register__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-register__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #f0f0f0;
}

.page-register__cta-final-section .page-register__cta-button {
  margin: 0 10px;
}

.page-register__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
  background: #f0f0f0;
  color: #017439;
  border-color: #017439;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-register__section-title {
    font-size: 2rem;
  }
  .page-register__description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .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__hero-image-wrapper,
  .page-register__hero-content,
  .page-register__benefits-section,
  .page-register__process-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-final-section,
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__security-grid,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important;
  }

  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-register__section-intro {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-register__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 10px 0 !important;
  }

  .page-register__cta-final-section .page-register__cta-button {
    margin: 10px 0 !important;
  }

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

  .page-register__card,
  .page-register__step-card {
    padding: 20px;
  }

  .page-register__card-title {
    font-size: 1.3rem;
  }

  .page-register__card-text {
    font-size: 0.9rem;
  }

  .page-register__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-register__faq-answer {
    font-size: 0.9rem;
    padding: 0 20px 15px;
  }
}