/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
  padding-bottom: 50px; /* Ensure space above footer */
}

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

.page-register__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-register__section-title--white {
  color: #FFFFFF;
}

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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  background: #26A9E0; /* Primary brand color */
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

.page-register__main-title {
  font-size: clamp(36px, 6vw, 56px); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 900px;
}

.page-register__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.5;
  max-width: 800px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background: #EA7C07; /* Login/Register button color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-register__btn-primary:hover {
  background: #d46c06;
  border-color: #d46c06;
}

.page-register__btn-secondary {
  background: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-register__btn-secondary:hover {
  background: #f0f0f0;
  color: #1e87b7;
  border-color: #1e87b7;
}

.page-register__btn-large {
  min-width: 200px;
}

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

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

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

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

.page-register__benefit-card-image {
  width: 100%; /* Ensure image takes full width of card slot */
  height: auto;
  max-width: 250px; /* Smaller max-width for benefit icons */
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
}

.page-register__benefit-title {
  font-size: 22px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

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

.page-register__guide-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 60px;
  text-align: center;
}

.page-register__guide-step-title {
  font-size: 26px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-register__guide-step-description {
  font-size: 17px;
  line-height: 1.7;
  max-width: 800px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__guide-step-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.page-register__cta-container--center {
  text-align: center;
  margin-top: 50px;
}

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

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

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

.page-register__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  font-size: 18px;
  outline: none;
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #26A9E0;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  content: '−';
}

.page-register__faq-answer {
  padding: 0 20px 15px;
  color: #555555;
  line-height: 1.6;
  font-size: 16px;
}

/* Closing CTA Section */
.page-register__closing-cta {
  padding: 80px 0;
  background: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

/* Image and Video Responsive Adaptations */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register video,
.page-register__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-register__video-section,
.page-register__video-container,
.page-register__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-register__container {
    padding: 0 15px;
  }

  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Body handles --header-offset, this is for visual spacing */
  }

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

  .page-register__hero-description,
  .page-register__section-description,
  .page-register__guide-step-description,
  .page-register__closing-description {
    font-size: 16px;
  }

  .page-register__cta-buttons {
    flex-direction: column !important;
    gap: 10px;
  }

  .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__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__faq-list,
  .page-register__cta-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register img {
    max-width: 100% !important;
    height: auto !important;
  }

  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-register__video-section {
    padding-top: 10px !important; /* Small top padding for video section on mobile */
  }

  .page-register__faq-item summary {
    font-size: 16px;
  }
}