.page-register {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-register__section-title {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

.page-register__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, #017439, #005f2f); /* Brand color gradient */
  display: flex;
  align-items: center;
  min-height: 600px;
  overflow: hidden;
}

.page-register__hero-content {
  flex: 1;
  padding-right: 40px;
  z-index: 1;
}

.page-register__hero-title {
  font-size: 3.5em;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 600px;
}

.page-register__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for register */
  color: #FFFF00; /* Custom font color for register/login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-right: 20px;
  border: none;
  cursor: pointer;
}

.page-register__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

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

.page-register__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
  transform: translateY(-2px);
}

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

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

.page-register__advantages-section {
  padding: 80px 0;
  background-color: #ffffff; /* Specific section background */
  color: #333333; /* Dark text for light background */
}

.page-register__advantages-section .page-register__section-title {
  color: #017439;
  text-shadow: none;
}

.page-register__advantages-section .page-register__section-description {
  color: #555555;
}

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

.page-register__advantage-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-register__advantage-card:hover {
  transform: translateY(-10px);
}

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

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

.page-register__advantage-text {
  font-size: 1em;
  color: #555555;
}

.page-register__guide-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-register__guide-section .page-register__section-title {
  color: #ffffff;
}

.page-register__guide-section .page-register__section-description {
  color: #f0f0f0;
}

.page-register__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 50px;
}

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

.page-register__guide-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-register__guide-number {
  font-size: 3em;
  font-weight: 900;
  color: #C30808; /* Custom color for registration */
  min-width: 80px;
  text-align: center;
}

.page-register__guide-heading {
  font-size: 2em;
  font-weight: 700;
  color: #FFFF00; /* Custom font color for register/login */
  flex: 1;
}

.page-register__guide-text {
  flex: 2;
  font-size: 1.1em;
  color: #e0e0e0;
}

.page-register__guide-image {
  flex: 1.5;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-register__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__cta-text {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__security-section {
  padding: 80px 0;
  background-color: #f5f5f5; /* Light background */
  color: #333333; /* Dark text */
}

.page-register__security-section .page-register__section-title {
  color: #017439;
  text-shadow: none;
}

.page-register__security-section .page-register__section-description {
  color: #555555;
}

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

.page-register__security-item {
  background-color: #ffffff;
  border-left: 5px solid #017439;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-register__security-subtitle {
  font-size: 1.4em;
  font-weight: 700;
  color: #017439;
  margin-bottom: 10px;
}

.page-register__security-text {
  font-size: 1em;
  color: #555555;
}

.page-register__promotions-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-register__promotions-section .page-register__section-title {
  color: #ffffff;
}

.page-register__promotions-section .page-register__section-description {
  color: #f0f0f0;
}

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

.page-register__promotion-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-register__promotion-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-register__promotion-card h3 {
  font-size: 1.6em;
  font-weight: 700;
  margin: 20px 15px 10px 15px;
  color: #FFFF00; /* Custom font color */
}

.page-register__promotion-card p {
  font-size: 1em;
  color: #e0e0e0;
  padding: 0 15px 20px 15px;
  flex-grow: 1;
}

.page-register__promotion-card .page-register__btn-primary {
  margin: 0 15px 20px 15px;
  width: calc(100% - 30px);
  box-sizing: border-box;
}

.page-register__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

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

.page-register__faq-section .page-register__section-description {
  color: #555555;
}

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

.page-register__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-heading {
  font-size: 1.2em;
  font-weight: 600;
  color: #333333;
  margin: 0;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: 700;
  color: #017439;
  transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
}

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

.page-register__faq-text {
  font-size: 1em;
  color: #555555;
  margin: 0;
}

.page-register__final-cta-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #017439, #005f2f); /* Brand color gradient */
  text-align: center;
}

.page-register__final-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__final-cta-section .page-register__section-title {
  color: #ffffff;
}

.page-register__final-cta-section .page-register__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
  min-width: 250px;
  margin: 10px;
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
  .page-register__hero-section .page-register__container {
    flex-direction: column;
    text-align: center;
  }

  .page-register__hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .page-register__hero-image-wrapper {
    width: 100%;
  }

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

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

  .page-register__guide-item {
    flex-direction: column;
    text-align: center;
  }

  .page-register__guide-item:nth-child(even) {
    flex-direction: column;
  }

  .page-register__guide-heading {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

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

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

  .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;
    margin: 10px 0 !important;
    padding: 12px 20px;
  }

  .page-register__hero-content .page-register__btn-secondary {
    border-color: #ffffff !important;
  }

  .page-register__advantages-grid,
  .page-register__promotions-grid,
  .page-register__security-list {
    grid-template-columns: 1fr;
  }

  .page-register__guide-item {
    gap: 20px;
  }

  .page-register__guide-heading {
    font-size: 1.5em;
  }

  .page-register__guide-number {
    font-size: 2.5em;
  }

  /* Image responsive adaptation */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Container responsive adaptation */
  .page-register__container,
  .page-register__hero-section,
  .page-register__advantages-section,
  .page-register__guide-section,
  .page-register__security-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__final-cta-section,
  .page-register__advantage-card,
  .page-register__promotion-card,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-register__hero-section .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__faq-question {
    padding: 15px 20px;
  }

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

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

  .page-register__final-cta-content {
    padding: 0 15px;
  }

  .page-register__final-cta-section .page-register__btn-primary,
  .page-register__final-cta-section .page-register__btn-secondary {
    margin-left: 0;
    margin-right: 0;
  }
}