/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Explicitly setting for clarity, though shared.css might handle body */
}

/* Container for consistent padding and max-width */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-register__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

/* Section Descriptions */
.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Primary Button Style */
.page-register__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFFFF; /* Ensures WCAG AA contrast on #C30808, overrides #FFFF00 for text */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-register__btn-primary:hover {
  background-color: #a30707; /* Slightly darker red on hover */
  transform: translateY(-2px);
}

/* Text Links within content */
.page-register__text-link {
  color: #017439; /* Brand green for text links */
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-register__text-link:hover {
  color: #005f2f; /* Darker green on hover */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 0; /* Assumes shared.css handles body padding for header offset */
  padding-bottom: 80px;
  background-color: #f0f8f0; /* Light green tint for hero background */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px;
  max-width: 800px;
}

.page-register__hero-title {
  font-size: 3.5em;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-register__hero-description {
  font-size: 1.3em;
  color: #555555;
  margin-bottom: 40px;
}

.page-register__hero-cta {
  display: flex;
  justify-content: center;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2; /* Subtle background image */
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dark background section for contrast */
.page-register__dark-section {
  background-color: #017439;
  color: #ffffff; /* White text for dark background */
  padding: 60px 0;
}

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

.page-register__dark-section .page-register__section-description {
  color: #f0f0f0; /* Light grey text on dark background */
}

.page-register__dark-section .page-register__text-link {
  color: #FFFF00; /* Yellow for links on dark background, ensuring visibility */
}

.page-register__dark-section .page-register__text-link:hover {
  color: #ffe000;
}

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

.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.page-register__benefit-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark section */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-register__benefit-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff; /* White title on dark background */
}

.page-register__benefit-text {
  font-size: 1em;
  line-height: 1.7;
  color: #f0f0f0; /* Light grey text */
}

.page-register__benefit-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-height: 200px; /* Min size for images */
}

/* Guide Section */
.page-register__guide-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-register__guide-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.page-register__step-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-icon {
  width: 60px;
  height: 60px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-register__step-text {
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
  min-height: 200px; /* Min size for images */
}

/* Registration Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: #f0f8f0;
}

.page-register__registration-form {
  max-width: 600px;
  margin: 40px auto 0 auto;
  padding: 40px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
  font-size: 1.1em;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-register__form-input:focus {
  border-color: #017439;
  outline: none;
}

.page-register__form-checkbox {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.page-register__form-checkbox input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
}

.page-register__form-submit-btn {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  margin-top: 20px;
}

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

/* Important Notes Section */
.page-register__notes-section {
  padding: 80px 0;
}

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

.page-register__note-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__note-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__note-text {
  font-size: 0.95em;
  line-height: 1.7;
  color: #f0f0f0;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

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

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

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

.page-register__faq-title {
  font-size: 1.2em;
  color: #333333;
  margin: 0;
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  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 reveal content */
  padding: 20px;
  padding-top: 0; /* Adjust padding for smooth transition */
}

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

/* Call to Action Section */
.page-register__cta-section {
  padding: 80px 0;
  background-color: #f0f8f0;
  text-align: center;
}

.page-register__cta-button {
  margin-top: 30px;
}

/* Global image responsiveness */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles for Tablets --- */
@media (max-width: 1024px) {
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__notes-grid {
    grid-template-columns: 1fr;
  }
  .page-register__hero-section {
    padding-bottom: 60px;
    min-height: 500px;
  }
  .page-register__hero-content {
    padding: 30px;
  }
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__form-section,
  .page-register__notes-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 60px 0;
  }
}

/* --- Responsive Styles for Mobile --- */
@media (max-width: 768px) {
  /* HERO Section */
  .page-register__hero-section {
    padding-top: 0 !important; /* Ensure no double padding if shared.css handles body */
    padding-bottom: 40px !important;
    min-height: 400px !important;
  }
  .page-register__hero-content {
    padding: 20px !important;
  }
  .page-register__hero-title {
    font-size: 2.2em !important;
    margin-bottom: 15px !important;
  }
  .page-register__hero-description {
    font-size: 1.1em !important;
    margin-bottom: 30px !important;
  }

  /* General Images and Containers */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__container,
  .page-register__section,
  .page-register__card,
  .page-register__box,
  .page-register__registration-form,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Buttons and Button Containers */
  .page-register__btn-primary,
  .page-register__cta-button,
  .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;
    padding-left: 15px !important;
    padding-right: 15px !important;
    font-size: 1em !important;
  }

  .page-register__hero-cta,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    display: flex !important;
    flex-direction: column !important; /* Ensure vertical stacking for buttons */
  }

  /* Other content modules (Benefits, Guide, Notes, FAQ) */
  .page-register__section-title {
    font-size: 1.8em !important;
  }
  .page-register__section-description {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__form-section,
  .page-register__notes-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 40px 0 !important;
  }
  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__notes-grid {
    gap: 20px !important;
    margin-top: 20px !important;
  }
  .page-register__benefit-item,
  .page-register__step-item,
  .page-register__note-item {
    padding: 20px !important;
  }
  .page-register__benefit-title,
  .page-register__step-title,
  .page-register__note-title {
    font-size: 1.4em !important;
    margin-bottom: 10px !important;
  }
  .page-register__benefit-text,
  .page-register__step-text,
  .page-register__note-text,
  .page-register__faq-answer p {
    font-size: 0.9em !important;
  }
  .page-register__registration-form {
    padding: 20px !important;
    margin-top: 20px !important;
  }
}