/* style/register.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --border-color: #e0e0e0;
  --section-padding-y: 60px;
  --container-max-width: 1200px;
}

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

.page-register__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-register__section-title {
  font-size: clamp(28px, 4vw, 42px); /* H1 font size rule */
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section */
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__keyword {
  color: var(--login-color);
  font-weight: bold;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section-padding-y) 20px;
  padding-top: 10px; /* Small top padding */
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: var(--container-max-width);
  margin-bottom: 30px;
}

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

.page-register__hero-content {
  max-width: 900px;
  margin: 0 auto;
  z-index: 1;
  color: var(--light-text-color);
}

.page-register__main-title {
  font-size: clamp(32px, 5vw, 56px); /* H1 font size rule */
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--light-text-color);
}

.page-register__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--light-text-color);
}

.page-register__hero-cta {
  display: inline-block;
  padding: 15px 30px;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Buttons */
.page-register__btn-primary {
  background: var(--login-color); /* Use custom color for login/register */
  color: var(--light-text-color);
  border: 2px solid var(--login-color);
}

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

.page-register__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

/* Benefits Section */
.page-register__benefits-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--secondary-color); /* Light background */
  color: var(--dark-text-color);
}

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

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

.page-register__benefit-card:hover {
  transform: translateY(-5px);
}

.page-register__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-register__benefit-card p {
  font-size: 16px;
  color: var(--dark-text-color);
}

/* Steps Section */
.page-register__steps-section {
  padding: var(--section-padding-y) 0;
  background: linear-gradient(135deg, #1a7bbd, #26A9E0);
  color: var(--light-text-color);
}

.page-register__steps-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-register__steps-content {
  flex: 1;
}

.page-register__steps-image {
  flex: 1;
  min-width: 200px; /* Ensure minimum size */
}

.page-register__image-responsive {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  text-align: left;
}

.page-register__step-number {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background-color: var(--login-color);
  color: var(--light-text-color);
  font-weight: 700;
  font-size: 20px;
  margin-right: 20px;
}

.page-register__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--light-text-color);
}

.page-register__step-item p {
  font-size: 16px;
  color: var(--light-text-color);
}

.page-register__text-link {
  color: var(--login-color);
  text-decoration: underline;
}

.page-register__text-link:hover {
  color: #e06c00;
}

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

/* FAQ Section */
.page-register__faq-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--secondary-color); /* Light background */
  color: var(--dark-text-color);
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--dark-text-color);
  cursor: pointer;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-register__faq-item[open] .page-register__faq-question {
  background-color: #f0f0f0;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  margin-left: 15px;
}

.page-register__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: var(--dark-text-color);
  line-height: 1.6;
}

/* Security Section */
.page-register__security-section {
  padding: var(--section-padding-y) 0;
  background: linear-gradient(135deg, #26A9E0, #1a7bbd);
  color: var(--light-text-color);
}

.page-register__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-register__security-text {
  flex: 1;
  text-align: left;
}

.page-register__security-text p {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--light-text-color);
}

.page-register__security-image {
  flex: 1;
  min-width: 200px; /* Ensure minimum size */
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding: var(--section-padding-y) 0;
  background-color: var(--secondary-color); /* Light background */
  color: var(--dark-text-color);
}

.page-register__final-cta {
  display: inline-block;
  padding: 15px 35px;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Dark/Light Background Specifics (for contrast enforcement) */
.page-register__dark-section {
  color: var(--light-text-color);
}

.page-register__light-bg {
  color: var(--dark-text-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__steps-wrapper,
  .page-register__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-register__steps-image,
  .page-register__security-image {
    order: -1; /* Image first on smaller screens */
    margin-bottom: 30px;
  }

  .page-register__step-item {
    flex-direction: column;
    align-items: center;
  }

  .page-register__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .page-register__step-title,
  .page-register__step-item p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__faq-section,
  .page-register__security-section,
  .page-register__cta-final-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-section {
    padding-top: 10px !important;
  }

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

  .page-register__hero-description {
    font-size: 18px;
  }

  .page-register__section-title {
    font-size: clamp(24px, 7vw, 36px);
  }

  .page-register__hero-image,
  .page-register__image-responsive {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__hero-image-wrapper,
  .page-register__steps-image,
  .page-register__security-image,
  .page-register__container,
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__faq-section,
  .page-register__security-section,
  .page-register__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__hero-cta,
  .page-register__final-cta,
  .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__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

  .page-register__main-title {
    font-size: clamp(26px, 9vw, 38px);
  }

  .page-register__hero-description {
    font-size: 16px;
  }

  .page-register__hero-cta {
    font-size: 18px;
    padding: 12px 25px;
  }

  .page-register__section-title {
    font-size: clamp(22px, 8vw, 32px);
  }

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

  .page-register__card-title {
    font-size: 20px;
  }

  .page-register__step-title {
    font-size: 18px;
  }

  .page-register__final-cta {
    font-size: 20px;
    padding: 12px 30px;
  }
}