/* Base styles for the page */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Explicitly set for light background */
}

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

/* Hero Section */
.page-register__hero-section {
  padding-top: 10px; /* Small top padding as per instruction */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 30px; /* Space between image and content */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-register__main-title {
  font-size: 38px;
  font-weight: 700;
  color: #017439; /* Brand primary color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Steps Section */
.page-register__steps-section {
  padding: 60px 0;
  background-color: #f9f9f9;
}

.page-register__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-register__step-item {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

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

.page-register__step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #017439;
  color: #FFFF00; /* Register/Login font color for icon */
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 22px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 15px;
}

.page-register__step-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
}

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

.page-register__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.page-register__benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-register__benefit-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.page-register__benefit-text {
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.page-register__benefits-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.page-register__cta-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-register__cta-title {
  font-size: 36px;
  font-weight: 700;
  color: #017439;
  margin-bottom: 20px;
}

.page-register__cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 700px;
}

.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  justify-content: center;
  width: 100%; /* Ensure container fills width for flex-wrap */
  max-width: 600px; /* Limit width on desktop */
  box-sizing: border-box;
  overflow: hidden;
}

/* Button styles */
.page-register__btn-register,
.page-register__btn-login,
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons adapt to container */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
}

.page-register__btn-register,
.page-register__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

.page-register__btn-register:hover,
.page-register__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
  transform: translateY(-2px);
}

.page-register__btn-login,
.page-register__btn-secondary {
  background-color: #FFFFFF;
  color: #C30808; /* Login color */
  border: 2px solid #C30808;
}

.page-register__btn-login:hover,
.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-register__cta-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* --- Tablet Responsiveness (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 34px;
  }
  .page-register__description {
    font-size: 17px;
  }
  .page-register__section-title {
    font-size: 28px;
  }
  .page-register__steps-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    gap: 25px;
  }
  .page-register__benefits-list {
    grid-template-columns: 1fr; /* Single column on tablet for benefits */
  }
  .page-register__cta-title {
    font-size: 32px;
  }
  .page-register__cta-description {
    font-size: 17px;
  }
  .page-register__cta-buttons {
    flex-direction: row; /* Keep row for tablet if space allows */
    flex-wrap: wrap; /* Allow wrapping */
    gap: 15px;
    max-width: 500px;
  }
  .page-register__btn-register,
  .page-register__btn-login,
  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 14px 25px;
    font-size: 17px;
  }
}

/* --- Mobile Responsiveness (max-width: 768px) --- */
@media (max-width: 768px) {
  /* 1. Hero Section */
  .page-register__hero-section {
    padding-top: 10px !important; /* Small top padding as per instruction */
    padding-bottom: 30px;
  }

  .page-register__hero-image {
    margin-bottom: 20px;
  }

  .page-register__main-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-register__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* 2. Steps Section */
  .page-register__steps-section {
    padding: 40px 0;
  }

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

  .page-register__steps-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
    margin-bottom: 30px;
  }

  .page-register__step-item {
    padding: 25px;
  }

  .page-register__step-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-register__step-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-register__step-text {
    font-size: 15px;
  }

  /* 3. Benefits Section */
  .page-register__benefits-section {
    padding: 40px 0;
  }

  .page-register__benefits-list {
    grid-template-columns: 1fr; /* Single column */
    gap: 15px;
    margin-bottom: 30px;
  }

  .page-register__benefit-item {
    padding: 15px;
    gap: 10px;
  }

  .page-register__benefit-icon {
    font-size: 24px;
  }

  .page-register__benefit-text {
    font-size: 15px;
  }

  /* 4. CTA Section */
  .page-register__cta-section {
    padding: 40px 0;
  }

  .page-register__cta-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-register__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-register__cta-buttons {
    flex-direction: column; /* Vertical stack for buttons */
    gap: 15px;
    margin-bottom: 30px;
    padding-left: 15px !important; /* Add padding to container */
    padding-right: 15px !important;
  }

  /* 5. General Images and Containers */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 6. Buttons and Button Containers */
  .page-register__btn-register,
  .page-register__btn-login,
  .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: 12px 20px;
    font-size: 16px;
  }
}