/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background #f0f2f5 */
  background-color: #f0f2f5; /* Consistent with shared body background */
}

/* Header offset for main content */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #34568B); /* Brand color gradient */
  color: #ffffff;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

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

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

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.page-register__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-register__hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Ensure responsiveness for buttons */
}

/* 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: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  text-align: center;
}

.page-register__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color for secondary action */
  border: 2px solid #ffffff;
}

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

.page-register__btn-lg {
  padding: 18px 35px;
  font-size: 1.2em;
}

/* Section Common Styles */
.page-register__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-register__light-bg {
  background-color: #ffffff; /* Explicitly white for light sections */
  color: #333333;
  padding: 80px 0;
}

.page-register__dark-bg {
  background-color: #26A9E0; /* Brand color for dark sections */
  color: #ffffff;
  padding: 80px 0;
}

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

.page-register__dark-bg .page-register__section-description {
  color: #f0f0f0;
}

/* Process Section */
.page-register__process-section {
  padding-top: 60px; /* Adjust for header offset already in hero */
}

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

.page-register__step-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

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

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

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

.page-register__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* Benefits Section */
.page-register__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-register__benefit-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-register__benefit-image {
  margin-top: 25px;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

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

.page-register__notes-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

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

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.2);
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.page-register__faq-title {
  font-size: 1.25em;
  color: #ffffff;
  margin: 0;
  font-weight: bold;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  color: #ffffff;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Plus sign rotates to a cross/minus */
}

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

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px 25px 25px; /* Adjust padding for expanded state */
}

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

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

.page-register__cta-content {
  max-width: 900px;
}

.page-register__cta-title {
  font-size: 2.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__cta-description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 40px;
  line-height: 1.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__cta-title {
    font-size: 2.4em;
  }
  .page-register__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-register__hero-image-wrapper,
  .page-register__step-image,
  .page-register__benefit-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* General section/container padding for mobile */
  .page-register__hero-section,
  .page-register__process-section,
  .page-register__benefits-section,
  .page-register__important-notes-section,
  .page-register__faq-section,
  .page-register__cta-section,
  .page-register__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  
  /* Hero section specific padding-top for mobile */
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-register__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Buttons responsive */
  .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;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-register__hero-buttons,
  .page-register__cta-content {
    display: flex; /* Ensures flex properties are applied */
    flex-direction: column; /* Stacks buttons vertically */
    gap: 15px; /* Spacing between stacked buttons */
  }

  .page-register__section-title {
    font-size: 1.8em;
  }

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

  .page-register__step-title,
  .page-register__benefit-title,
  .page-register__notes-title,
  .page-register__faq-title {
    font-size: 1.3em;
  }

  .page-register__cta-title {
    font-size: 2em;
  }
  
  .page-register__faq-question {
    padding: 15px 20px;
  }
  
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 10px 20px 20px 20px;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__cta-title {
    font-size: 1.6em;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-register__btn-lg {
    font-size: 1.1em;
    padding: 15px 25px;
  }
}