/* style/register.css */

/* --- Base Styles --- */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Assuming body background is white/light */
}

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

.page-register__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  color: #017439; /* Brand green for titles */
}

/* Ensure H1 in hero section respects font size rules */
.page-register__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #017439; /* Brand green for H1 */
  max-width: 800px;
  margin: 0 auto 20px auto;
  text-align: center;
  font-size: clamp(32px, 4.5vw, 56px);
}

.page-register__description,
.page-register p {
  font-size: 17px;
  margin-bottom: 20px;
}

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding for first section */
  background-color: #f5f5f5;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-register__hero-content {
  max-width: 800px;
  padding: 0 20px;
  z-index: 1;
  color: #333333;
}

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

/* --- Buttons --- */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box;
  max-width: 100%;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for Register button */
  color: #FFFF00; /* Custom font color for Register button */
  border: 2px solid #C30808;
  margin: 10px;
}

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

.page-register__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Brand green for secondary text */
  border: 2px solid #017439;
  margin: 10px;
}

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

.page-register__btn-large {
  padding: 18px 35px;
  font-size: 20px;
}

.page-register__cta-container {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  margin-top: 40px;
  gap: 20px; /* Space between buttons */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-register__benefits-section .page-register__section-title {
  color: #ffffff; /* White title on dark background */
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark bg */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-icon {
  width: 200px; /* Explicitly setting width to meet min size */
  height: 200px; /* Explicitly setting height to meet min size */
  margin-bottom: 20px;
  max-width: 200px; /* Ensure images are not too big here */
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
  object-fit: contain;
}

.page-register__benefit-card .page-register__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for card titles */
}

.page-register__benefit-card .page-register__card-description {
  font-size: 16px;
  color: #f0f0f0;
}

/* --- How to Register Section --- */
.page-register__how-to-register-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-register__how-to-register-section .page-register__section-title {
  color: #017439;
}

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

.page-register__step-item {
  text-align: center;
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-register__step-image {
  width: 400px; /* Explicitly setting width to meet display size */
  height: 300px; /* Explicitly setting height to meet display size */
  max-width: 400px;
  margin: 0 auto 20px auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-register__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

.page-register__step-description {
  font-size: 16px;
  color: #555555;
}

/* --- Why Choose Us Section --- */
.page-register__why-choose-us-section {
  padding: 80px 0;
  background-color: #f0f8f0; /* Light green background */
  color: #333333;
}

.page-register__why-choose-us-section .page-register__section-title {
  color: #017439;
}

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

.page-register__feature-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #017439;
}

.page-register__feature-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #017439;
}

.page-register__feature-description {
  font-size: 15px;
  color: #555555;
}

/* --- Final CTA Section --- */
.page-register__final-cta-section {
  padding: 80px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
  text-align: center;
}

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

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

.page-register__final-cta-section .page-register__description {
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-register__cta-image {
  width: 400px; /* Explicitly setting width to meet display size */
  height: 267px; /* Explicitly setting height to meet display size */
  max-width: 400px;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}


/* --- Responsive Adjustments (Mobile First) --- */
@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-register__hero-section {
    padding: 40px 0;
    padding-top: 10px !important;
  }

  .page-register__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

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

  .page-register__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 30px;
  }

  /* Images Mobile Responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers with images/content must be 100% width on mobile */
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__how-to-register-section,
  .page-register__why-choose-us-section,
  .page-register__final-cta-section,
  .page-register__benefit-card,
  .page-register__step-item,
  .page-register__feature-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-image-wrapper {
    padding: 0;
  }

  .page-register__benefit-icon,
  .page-register__step-image,
  .page-register__cta-image {
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure min size is maintained */
    min-height: 200px !important;
    max-width: 100% !important;
  }

  /* Buttons Mobile Responsive */
  .page-register__cta-button,
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    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-left: 15px;
    padding-right: 15px;
  }

  .page-register__cta-container {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__benefits-grid,
  .page-register__steps-wrapper,
  .page-register__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__benefit-card,
  .page-register__step-item,
  .page-register__feature-item {
    padding: 20px;
  }
}