/* 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; /* Assuming body background is light */
}

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

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
  box-sizing: border-box;
}

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

.page-register__hero-content {
  max-width: 900px;
  z-index: 1;
}

.page-register__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  max-width: 90%; /* Prevent excessively long titles on desktop */
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Section Titles and Intros */
.page-register__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

/* Buttons */
.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-register__cta-buttons--center {
  margin-top: 40px;
}

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

.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: #d16e06;
  transform: translateY(-2px);
}

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

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

.page-register__btn-tertiary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
  font-size: 1em;
  padding: 10px 20px;
}

.page-register__btn-tertiary:hover {
  background-color: #1f8ec4;
  transform: translateY(-2px);
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
  background-color: #f8f8f8;
  color: #333333;
}

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

.page-register__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-register__feature-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-register__feature-description {
  font-size: 1em;
  color: #666666;
}

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #f0f7fa;
  color: #333333;
}

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

.page-register__step-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-register__step-number {
  position: absolute;
  top: -15px;
  left: -15px;
  background-color: #26A9E0;
  color: #ffffff;
  font-size: 2.5em;
  font-weight: bold;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-20deg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

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

.page-register__step-description {
  font-size: 1em;
  color: #666666;
}

.page-register__image-center {
  text-align: center;
  margin-top: 40px;
}

.page-register__steps-illustration {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: block;
  margin: 0 auto;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-intro {
  color: #ffffff;
}

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

.page-register__security-item {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
}

.page-register__security-icon {
  width: 200px; /* Min size 200px */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__security-subtitle {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-register__security-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__read-more-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

.page-register__link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: bold;
}

.page-register__link:hover {
  color: #f0f0f0;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-register__promotions-section .page-register__section-title {
  color: #26A9E0;
}

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

.page-register__promo-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-register__promo-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-register__promo-description {
  font-size: 1em;
  color: #666666;
  margin-bottom: 20px;
}

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

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf6fc;
  border-bottom: 1px solid #d0e8f5;
  list-style: none; /* For details tag */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  margin-left: 15px;
  color: #26A9E0;
}

.page-register__faq-item[open] .page-register__faq-toggle { /* For details tag */
  content: '−';
}

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

.page-register__faq-answer p {
  margin-bottom: 0;
}

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

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

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-register__main-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .page-register__section-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

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

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-tertiary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__container,
  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__final-cta-section,
  .page-register__feature-card,
  .page-register__step-card,
  .page-register__security-item,
  .page-register__promo-card,
  .page-register__faq-item {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-register__feature-image,
  .page-register__steps-illustration,
  .page-register__security-icon,
  .page-register__promo-image {
    width: 100% !important;
    height: auto !important;
  }

  .page-register__step-number {
    font-size: 2em;
    width: 60px;
    height: 60px;
    top: -10px;
    left: -10px;
  }

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

  .page-register__faq-answer {
    padding: 15px 20px;
  }

  .page-register__main-title {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-register__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-register__hero-description,
  .page-register__section-intro {
    font-size: 0.95em;
  }
}