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

.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

.page-register__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 40px 0;
  background-color: var(--deep-green);
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit hero image height */
}

.page-register__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  color: var(--text-main);
}

.page-register__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--gold);
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.6);
}

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

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  color: var(--text-main);
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-register__form-section {
  background-color: #ffffff; /* Light background for form */
  padding: 60px 20px;
  color: #333333; /* Dark text for light background */
}

.page-register__dark-section {
  background-color: var(--background);
  padding: 60px 20px;
  color: var(--text-main);
}

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

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

.page-register__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: inherit; /* Inherit from parent section */
}

.page-register__form-section .page-register__section-title,
.page-register__how-to-section .page-register__section-title,
.page-register__faq-section.page-register__light-bg .page-register__section-title,
.page-register__final-cta-section.page-register__light-bg .page-register__section-title {
  color: var(--deep-green); /* Darker green for titles on light background */
}

.page-register__text-block {
  font-size: 1.05em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-register__registration-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background-color: var(--card-bg); /* Dark card background */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  color: var(--text-main);
}

.page-register__form-group {
  margin-bottom: 20px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-main);
}

.page-register__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1em;
  background-color: var(--deep-green);
  color: var(--text-main);
  transition: border-color 0.3s ease;
}

.page-register__form-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.page-register__form-input:focus {
  border-color: var(--glow);
  outline: none;
}

.page-register__checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
}

.page-register__form-checkbox {
  margin-right: 10px;
  margin-top: 4px;
  min-width: 18px;
  min-height: 18px;
}

.page-register__form-checkbox + label a {
  color: var(--glow);
  text-decoration: none;
}

.page-register__form-checkbox + label a:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-register__submit-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.page-register__login-prompt a {
  color: var(--deep-green);
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-register__feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-register__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-register__feature-icon {
  width: 100%; /* Ensure images take full width of card */
  height: auto;
  max-width: 200px; /* Smaller visual size for icons */
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(87, 227, 141, 0.5));
  display: block; /* Ensure no extra space below image */
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-register__how-to-section {
  padding: 60px 20px;
  background-color: #ffffff;
  color: #333333;
}

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

.page-register__step-item {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid var(--border);
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  line-height: 60px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main);
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin: 0 auto 20px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--deep-green);
}

.page-register__step-description {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
}

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

.page-register__cta-button--large {
  padding: 18px 40px;
  font-size: 1.25em;
  border-radius: 10px;
}

.page-register__about-section {
  padding: 60px 20px;
  background-color: var(--deep-green);
  color: var(--text-main);
  text-align: center;
}

.page-register__about-section .page-register__text-block {
  text-align: left;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-register__about-section .page-register__text-block a {
  color: var(--gold);
  text-decoration: none;
  font-weight: bold;
}

.page-register__about-section .page-register__text-block a:hover {
  text-decoration: underline;
}

.page-register__faq-section {
  padding: 60px 20px;
  background-color: var(--background);
  color: var(--text-main);
}

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

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

.page-register__faq-item {
  margin-bottom: 15px;
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
}

.page-register__faq-section.page-register__light-bg .page-register__faq-item {
  background-color: #f0f0f0;
  color: #333333;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--gold);
  background-color: var(--deep-green);
  border-bottom: 1px solid var(--divider);
}

.page-register__faq-section.page-register__light-bg .page-register__faq-question {
  color: var(--deep-green);
  background-color: #e0e0e0;
  border-bottom-color: #cccccc;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  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: 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-secondary);
}

.page-register__faq-section.page-register__light-bg .page-register__faq-answer {
  color: #555555;
}

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

.page-register__faq-answer a {
  color: var(--glow);
  text-decoration: none;
  font-weight: bold;
}

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

.page-register__final-cta-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--background);
  color: var(--text-main);
}

.page-register__final-cta-section .page-register__section-title {
  color: var(--gold);
}

.page-register__cta-button--huge {
  padding: 20px 45px;
  font-size: 1.4em;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-register__cta-button--huge:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-content {
    margin-top: 20px;
  }
  .page-register__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__feature-grid, .page-register__step-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 10px 0 20px 0;
  }
  .page-register__hero-content {
    margin-top: 20px;
    padding: 0 15px;
  }
  .page-register__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-register__description {
    font-size: 1em;
  }
  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-register__form-section, .page-register__dark-section, .page-register__how-to-section, .page-register__about-section, .page-register__faq-section, .page-register__final-cta-section {
    padding: 40px 15px;
  }
  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-register__text-block {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-register__registration-form {
    padding: 30px 20px;
  }
  .page-register__form-input {
    width: calc(100% - 20px);
  }
  .page-register__submit-button {
    font-size: 1.1em;
  }
  .page-register__feature-grid, .page-register__step-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__feature-icon {
    max-width: 150px;
  }
  .page-register__feature-title {
    font-size: 1.3em;
  }
  .page-register__step-number {
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5em;
  }
  .page-register__step-title {
    font-size: 1.2em;
  }
  .page-register__cta-button--large {
    padding: 15px 30px;
    font-size: 1.15em;
  }
  .page-register__cta-button--huge {
    padding: 18px 35px;
    font-size: 1.2em;
  }
  .page-register__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  /* 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-section,
  .page-register__form-section,
  .page-register__why-choose-section,
  .page-register__how-to-section,
  .page-register__about-section,
  .page-register__faq-section,
  .page-register__final-cta-section,
  .page-register__registration-form,
  .page-register__feature-card,
  .page-register__step-item,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-register__hero-section {
    padding-top: 10px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-register__cta-button,
  .page-register__submit-button,
  .page-register__cta-button--large,
  .page-register__cta-button--huge {
    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__cta-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .page-register__form-group {
    padding-left: 0;
    padding-right: 0;
  }
  .page-register__form-checkbox + label {
    padding-right: 0;
  }
  .page-register__registration-form {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure images are not filtered */
.page-register img {
  filter: none !important;
}

/* Ensure contrast for links on light background */
.page-register__form-checkbox + label a,
.page-register__login-prompt a {
  color: var(--deep-green); /* Use a darker green for contrast on light background */
}

.page-register__faq-section.page-register__light-bg .page-register__faq-answer a {
  color: var(--deep-green);
}

/* Overwrite specific text colors for light sections */
.page-register__form-section .page-register__text-block,
.page-register__how-to-section .page-register__text-block,
.page-register__faq-section.page-register__light-bg .page-register__text-block {
  color: #333333; /* Ensure dark text on light background */
}
.page-register__faq-section.page-register__light-bg .page-register__faq-answer {
  color: #555555;
}