:root {
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --color-card-bg: #11271B;
  --color-background: #08160F;
  --color-text-main: #F2FFF6;
  --color-text-secondary: #A7D9B8;
  --color-border: #2E7A4E;
  --color-glow: #57E38D;
  --color-gold: #F2C14E;
  --color-divider: #1E3A2A;
  --color-deep-green: #0A4B2C;
}

.page-register {
  background-color: var(--color-background); /* Overall dark background */
  color: var(--color-text-main); /* Light text for readability */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-register a {
  color: var(--color-glow); /* Links use a bright green */
  text-decoration: none;
}

.page-register a:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Small top padding, more bottom padding */
  text-align: center;
  background-color: var(--color-deep-green); /* Dark green background for hero */
  overflow: hidden;
}

.page-register__hero-image {
  width: 100%;
  max-width: 1200px; /* Max width for image */
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and text */
  border-radius: 8px;
}

.page-register__hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 1; /* Ensure content is above image if any overlap */
}

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.2em;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

.page-register__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure buttons adapt to mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: var(--color-button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-register__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
  background: none;
  color: var(--color-glow);
  border: 2px solid var(--color-glow);
}

.page-register__btn-secondary:hover {
  background: var(--color-glow);
  color: var(--color-background);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-register__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--color-text-main);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-register__section-intro {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
}

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

/* Why Register Section */
.page-register__why-register-section {
  padding: 60px 0;
  background-color: var(--color-card-bg); /* Dark background for this section */
}

.page-register__dark-section {
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}

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

.page-register__feature-card {
  background-color: var(--color-background); /* Slightly darker card background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-border);
}

.page-register__feature-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__feature-title {
  font-size: 1.5em;
  color: var(--color-text-main);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-register__feature-description {
  color: var(--color-text-secondary);
  font-size: 0.95em;
}

/* Registration Steps Section */
.page-register__registration-steps-section {
  padding: 60px 0;
  background-color: var(--color-background);
}

.page-register__step-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-register__step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-divider);
}

.page-register__step-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.page-register__step-title {
  font-size: 1.8em;
  color: var(--color-text-main);
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}

.page-register__step-description {
  font-size: 1.1em;
  color: var(--color-text-secondary);
  text-align: center;
  max-width: 800px;
  margin-bottom: 25px;
}

.page-register__step-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-register__cta-block {
  text-align: center;
  margin-top: 60px;
  padding: 40px 20px;
  background-color: var(--color-card-bg);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.page-register__cta-text {
  font-size: 1.3em;
  color: var(--color-text-main);
  margin-bottom: 30px;
  font-weight: 500;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
  background-color: var(--color-card-bg);
}

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

.page-register__faq-item {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-register__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--color-text-main);
  transition: background-color 0.3s ease;
}

.page-register__faq-item summary:hover {
  background-color: var(--color-deep-green);
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

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

.page-register__faq-item[open] .page-register__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  color: var(--color-text-secondary);
  font-size: 1em;
}

.page-register__faq-answer p {
  margin-bottom: 10px;
}
.page-register__faq-answer p:last-child {
  margin-bottom: 0;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-image {
    max-width: 900px;
  }
}

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

  /* Fixed header spacing - body padding-top is handled by shared.css */
  .page-register__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-register__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }

  .page-register__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    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;
  }
  
  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal overflow */
  }

  .page-register__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 15px;
  }

  .page-register__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-register__feature-grid {
    grid-template-columns: 1fr;
  }

  .page-register__feature-card {
    padding: 25px;
  }

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

  .page-register__step-description {
    font-size: 1em;
    padding: 0 15px;
  }

  .page-register__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__cta-block {
    padding: 30px 15px;
  }

  .page-register__cta-text {
    font-size: 1.1em;
    margin-bottom: 20px;
  }

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

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

/* Ensure content area is constrained */
.page-register__content-area,
.page-register__text-block {
  color: var(--color-text-main); /* Light text on dark background */
  background: var(--color-background); /* Default dark background */
}

/* Page content area paragraphs and list items */
.page-register p,
.page-register li {
  color: var(--color-text-secondary); /* Secondary light text */
}

/* Card and containers - intelligent background selection */
.page-register__card {
  background: var(--color-background); /* Dark background */
  color: var(--color-text-main); /* Light text */
  border: 1px solid var(--color-border); /* Add border */
}

/* Dark section handling (already defined) */
.page-register__dark-section {
  background: var(--color-card-bg);
  color: var(--color-text-main);
}

/* Button text contrast (already defined) */
.page-register__btn-primary {
  background: var(--color-button-gradient);
  color: #ffffff; /* White text */
  border: 2px solid transparent;
}

.page-register__btn-secondary {
  background: none;
  color: var(--color-glow); /* Bright green text */
  border: 2px solid var(--color-glow);
}