/* style/register.css */

/* Variables */
:root {
  --page-register-primary-color: #017439;
  --page-register-secondary-color: #FFFFFF;
  --page-register-register-btn-bg: #C30808;
  --page-register-register-btn-text: #FFFFFF; /* Adjusted for WCAG AA contrast */
  --page-register-login-btn-bg: #C30808;
  --page-register-login-btn-text: #FFFFFF; /* Adjusted for WCAG AA contrast */
  --page-register-body-text-color: #ffffff; /* Body background #1a1a2e is dark */
  --page-register-dark-section-bg: #017439;
  --page-register-light-section-text: #ffffff;
  --page-register-padding-y: 60px;
  --page-register-gap: 30px;
}

.page-register {
  color: var(--page-register-body-text-color);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #1a1a2e; /* Inherited from shared, explicitly set for clarity */
}

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

.page-register__content-section {
  padding: var(--page-register-padding-y) 0;
  text-align: center;
}

.page-register__dark-section {
  background-color: var(--page-register-dark-section-bg);
  color: var(--page-register-light-section-text);
}

.page-register__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--page-register-primary-color);
}

.page-register__section-title--light {
  color: var(--page-register-light-section-text);
}

.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__section-description--light {
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-register__hero-content {
  position: relative;
  z-index: 3;
  color: var(--page-register-secondary-color);
  max-width: 900px;
  padding: 20px;
}

.page-register__hero-title {
  font-size: 3.8em;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  color: var(--page-register-secondary-color);
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-register__cta-buttons--center {
  margin-top: 40px;
}

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

.page-register__btn-primary {
  background-color: var(--page-register-register-btn-bg);
  color: var(--page-register-register-btn-text);
  border-color: var(--page-register-register-btn-bg);
}

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

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

.page-register__btn-secondary {
  background-color: transparent;
  color: var(--page-register-primary-color);
  border-color: var(--page-register-primary-color);
}

.page-register__btn-secondary:hover {
  background-color: var(--page-register-primary-color);
  color: var(--page-register-secondary-color);
  transform: translateY(-2px);
}

/* Why Join Section */
.page-register__why-join-section {
  background-color: #1a1a2e; /* Ensure dark background for light text */
  color: var(--page-register-body-text-color);
}

.page-register__why-join-section .page-register__section-title {
  color: var(--page-register-primary-color);
}

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--page-register-gap);
  margin-top: 50px;
}

.page-register__benefit-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: var(--page-register-light-section-text);
}

.page-register__benefit-item:hover {
  transform: translateY(-5px);
}

.page-register__benefit-icon {
  width: 250px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-register__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-register-primary-color);
}

.page-register__benefit-item .page-register__benefit-text {
  font-size: 1em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* Steps Section */
.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--page-register-gap);
  margin-top: 50px;
}

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1); /* Lighter card on dark green */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  padding-top: 80px; /* Space for step number */
}

.page-register__step-number {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--page-register-register-btn-bg);
  color: var(--page-register-register-btn-text);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 4px solid var(--page-register-dark-section-bg);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

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

.page-register__step-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: var(--page-register-secondary-color);
}

.page-register__step-description {
  font-size: 1em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* Security Section */
.page-register__security-section {
  background-color: #1a1a2e;
  color: var(--page-register-body-text-color);
}

.page-register__security-section .page-register__section-title {
  color: var(--page-register-primary-color);
}

.page-register__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--page-register-gap);
  margin-top: 50px;
}

.page-register__security-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--page-register-light-section-text);
}

.page-register__security-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-register__security-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-register-primary-color);
}

.page-register__security-text {
  font-size: 1em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
}

/* Promotions Section */
.page-register__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--page-register-gap);
  margin-top: 50px;
}

.page-register__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--page-register-light-section-text);
}

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

.page-register__promotion-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-register__promotion-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--page-register-secondary-color);
}

.page-register__promotion-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
  color: rgba(255, 255, 255, 0.8);
}

/* Video Section */
.page-register__video-section {
  background-color: #1a1a2e;
  color: var(--page-register-body-text-color);
}

.page-register__video-section .page-register__section-title {
  color: var(--page-register-primary-color);
}