/* style/register.css */
.page-register {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Desktop padding for header offset */
  background-color: #0a0a0a; /* Dark background from body */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-register__hero-content {
  text-align: center;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

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

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

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* Buttons */
.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, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

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

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

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

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

/* Why Section */
.page-register__why-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-register__why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-register__why-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-register__why-item-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__why-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Guide Section */
.page-register__guide-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-register__guide-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-register__guide-steps {
  flex: 1;
}

.page-register__guide-step {
  margin-bottom: 30px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-number {
  font-size: 2.5em;
  color: #017439;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-register__step-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__step-list {
  list-style-type: disc;
  margin-left: 20px;
  color: #f0f0f0;
}

.page-register__step-list li {
  margin-bottom: 5px;
  line-height: 1.5;
}

.page-register__guide-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__guide-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Issues Section */
.page-register__issues-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-register__issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-register__issue-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__issue-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__issue-card p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-register__issue-card a {
  color: #C30808;
  text-decoration: underline;
}

.page-register__issue-card a:hover {
  color: #e02020;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-register__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-register__promo-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__promo-card p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Experience Section */
.page-register__experience-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-register__experience-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__experience-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__experience-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-register__cta-wrapper {
  text-align: center;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

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

.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;
  cursor: pointer;
  background-color: #017439;
  border-radius: 10px;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.03);
}

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

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

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

  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__guide-wrapper {
    flex-direction: column;
  }

  .page-register__guide-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-register__hero-title {
    font-size: 2.2em;
  }

  .page-register__hero-description {
    font-size: 1em;
  }

  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 25px;
    font-size: 0.95em;
  }
  
  .page-register__why-grid,
  .page-register__issues-grid,
  .page-register__promo-grid,
  .page-register__experience-content {
    grid-template-columns: 1fr;
  }

  .page-register__why-item,
  .page-register__issue-card,
  .page-register__promo-card,
  .page-register__experience-item {
    padding: 20px;
  }

  .page-register__why-item-title,
  .page-register__step-title,
  .page-register__issue-title,
  .page-register__promo-title,
  .page-register__experience-title {
    font-size: 1.5em;
  }

  .page-register__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-register__faq-answer {
    padding: 0 20px;
  }

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .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-image-wrapper,
  .page-register__guide-image-wrapper,
  .page-register__promo-card,
  .page-register__why-item,
  .page-register__issue-card,
  .page-register__experience-item,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsiveness */
  .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-bottom: 10px; /* Add some space between stacked buttons */
  }
  
  .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;
    display: flex;
    flex-direction: column;
  }

  .page-register__cta-wrapper {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }

  .page-register__section-title {
    font-size: 1.5em;
  }

  .page-register__why-item-title,
  .page-register__step-title,
  .page-register__issue-title,
  .page-register__promo-title,
  .page-register__experience-title {
    font-size: 1.3em;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 10px 20px;
    font-size: 0.9em;
  }
}