/* style/register.css */

/* General page styling */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff); /* Fallback to white if var not set */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #f5f5f5; /* Light background for the section */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Max width for the image */
  margin-bottom: 30px; /* Space between image and content */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-register__hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: #26A9E0; /* Brand color for H1 */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-register__tagline {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #555555;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register a[class*="button"],
.page-register a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow long words to break */
  font-size: 1.1rem;
}

.page-register__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-register__btn-primary:hover {
  background-color: #1e87b7; /* Slightly darker on hover */
  border-color: #1e87b7;
}

.page-register__hero-cta {
  margin-top: 20px;
}

/* Sections */
.page-register__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); /* Responsive font size for H2 */
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0; /* Brand color for H2 */
}

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

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

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

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

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

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

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

.page-register__step-description {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
}

.page-register__step-image {
  width: 100%;
  max-width: 400px; /* Example size, min 200x200 */
  height: auto;
  border-radius: 8px;
  margin-top: auto; /* Push image to bottom if content above is shorter */
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-register__highlight {
  color: #EA7C07; /* Login color for highlight */
  font-weight: bold;
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff; /* White text on dark background */
  min-height: 350px; /* Ensure cards have similar height */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 200px; /* Example size, min 200x200 */
  height: auto;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
}

.page-register__benefit-title {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-register__benefit-description {
  font-size: 1rem;
  line-height: 1.5;
}

/* FAQ Section */
.page-register__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf7fc; /* Lighter brand color for summary background */
  list-style: none; /* Hide default marker */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg); /* Rotate + to become X or - */
}

.page-register__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

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

.page-register__cta-section .page-register__section-title {
  margin-bottom: 20px;
}

.page-register__cta-description {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #ffffff;
}

.page-register__cta-button {
  background-color: #EA7C07; /* Login color for CTA button */
  border-color: #EA7C07;
}

.page-register__cta-button:hover {
  background-color: #d16b07; /* Darker orange on hover */
  border-color: #d16b07;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }
  .page-register__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-register__section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  }
  .page-register__steps-grid,
  .page-register__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

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

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

  /* Containers for images, videos, buttons */
  .page-register__hero-section,
  .page-register__steps-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-section,
  .page-register__container,
  .page-register__step-card,
  .page-register__benefit-card,
  .page-register__faq-item,
  .page-register__cta-buttons, /* if any button groups */
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Specific section padding adjustment */
  .page-register__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 30px !important;
  }

  .page-register__light-bg,
  .page-register__dark-bg {
    padding: 40px 0 !important;
  }

  /* Buttons responsiveness */
  .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;
    padding: 12px 20px !important;
    font-size: 1rem !important;
    margin-bottom: 10px; /* Space between stacked buttons */
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__hero-content {
    padding: 0;
  }

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

  .page-register__steps-grid,
  .page-register__benefits-grid {
    grid-template-columns: 1fr; /* Stack cards on mobile */
    gap: 20px;
  }

  .page-register__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-register__faq-answer {
    padding: 10px 20px 15px;
  }
  
  .page-register__step-image,
  .page-register__benefit-icon {
    min-width: 200px !important; /* Enforce min-width */
    min-height: 200px !important; /* Enforce min-height */
    max-width: 100% !important;
    height: auto !important;
  }
}