/* style/register.css */
.page-register {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-register__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjusted padding for hero section */
  text-align: center;
  background-color: #017439; /* Using brand color for hero background */
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
}

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFF00; /* Register and Login font color */
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-register__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for Register button */
  color: #FFFF00; /* Custom font color for Register button */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-register__btn-primary:hover {
  background-color: #9c0606;
}

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
}

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

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-register__section-intro {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

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

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

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

.page-register__why-register-section .page-register__section-title {
  color: #017439;
}

.page-register__why-register-section .page-register__section-intro {
  color: #555555;
}

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

.page-register__feature-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  border: 1px solid #e0e0e0;
}

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

.page-register__feature-icon {
  width: 100%;
  height: auto;
  max-height: 200px; /* Limit height for uniform appearance */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

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

.page-register__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

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

.page-register__steps-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  flex: 1 1 300px;
  max-width: 380px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register font color */
  border-radius: 50%;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFFF00;
}

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

.page-register__cta-buttons {
  margin-top: 50px;
  text-align: center;
}

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

.page-register__faq-section .page-register__section-title {
  color: #017439;
}

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

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

.page-register__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  color: #017439;
  background-color: #eaf7ed; /* Lighter shade of primary for summary */
}

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

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

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

.page-register__faq-answer {
  padding: 15px 25px 20px;
  line-height: 1.6;
  background-color: #ffffff;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

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

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

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.25em;
}

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

@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__hero-section {
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-register__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-large,
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__features-grid,
  .page-register__steps-list {
    grid-template-columns: 1fr;
  }
  .page-register__feature-card,
  .page-register__step-item {
    max-width: 100%;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-register img {
    max-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__hero-image {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.6em;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-register__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }
  .page-register__step-title {
    font-size: 1.4em;
  }
  .page-register__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 10px 20px 15px;
  }
}