/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body handles background-color */
}

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

.page-register__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* H1 font-size clamp */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-align: center;
  color: #ffffff;
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles --header-offset, this is decorative */
  overflow: hidden;
  min-height: 600px;
  justify-content: center;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-register__hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px; /* Space below image */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
}

.page-register__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* H1 font-size clamp */
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__description-text {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-register__cta-button {
  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;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-register__btn-primary:hover {
  background-color: #1e87b7;
}

/* Form Section */
.page-register__form-section {
  padding: 60px 0;
  background-color: #ffffff; /* Light background for form */
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__form-section .page-register__section-title,
.page-register__form-section .page-register__section-description {
  color: #333333;
}

.page-register__registration-form {
  background-color: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  width: 100%;
  margin: 40px auto;
  box-sizing: border-box;
}

.page-register__form-group {
  margin-bottom: 20px;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #333333;
}

.page-register__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__form-hint {
  font-size: 0.9em;
  color: #666666;
  margin-top: 5px;
  display: block;
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

.page-register__form-checkbox {
  margin-right: 10px;
}

.page-register__text-link {
  color: #26A9E0;
  text-decoration: none;
}

.page-register__text-link:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
  background-color: #EA7C07; /* Custom color for login/register */
  color: #ffffff;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-register__submit-button:hover {
  background-color: #d16e06;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 20px;
  font-size: 1em;
  color: #333333;
}

.page-register__form-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  object-fit: cover;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Dark background */
  color: #ffffff;
}

.page-register__benefits-section .page-register__section-title,
.page-register__benefits-section .page-register__section-description {
  color: #ffffff;
}

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

.page-register__benefit-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-register__benefits-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 60px;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-register__guide-section .page-register__section-title,
.page-register__guide-section .page-register__section-description {
  color: #333333;
}

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

.page-register__step-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

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

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

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

.page-register__guide-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 60px;
  border-radius: 10px;
  object-fit: cover;
}

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

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

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

.page-register__security-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-register__security-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 60px;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-register__faq-section .page-register__section-title,
.page-register__faq-section .page-register__section-description {
  color: #333333;
}

.page-register__faq-list {
  margin-top: 40px;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.page-register__faq-item.active .page-register__faq-question {
  background-color: #e0e0e0;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 20px;
  color: #555555;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px; /* Sufficiently large to show all content */
  padding: 20px;
}

.page-register__faq-answer p {
  margin: 0;
  color: #555555;
}

.page-register__faq-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 60px;
  border-radius: 10px;
  object-fit: cover;
}

/* CTA Bottom Section */
.page-register__cta-bottom-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #ffffff;
  text-align: center;
}

.page-register__cta-bottom-section .page-register__section-title,
.page-register__cta-bottom-section .page-register__section-description {
  color: #ffffff;
}

.page-register__cta-bottom-section .page-register__cta-button {
  background-color: #EA7C07; /* Custom color for login/register */
  margin-top: 30px;
}

.page-register__cta-bottom-section .page-register__cta-button:hover {
  background-color: #d16e06;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 30px 15px;
  }

  .page-register__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-register__description-text {
    font-size: 1.1em;
  }

  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__security-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  /* Ensure image containers also adapt */
  .page-register__hero-image-wrapper,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section,
  .page-register__registration-form,
  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__security-grid,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-register__hero-content {
    padding: 20px 10px;
    margin-top: 10px;
  }

  .page-register__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-register__description-text {
    font-size: 1em;
  }

  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    padding: 40px 0;
  }

  .page-register__section-title {
    font-size: clamp(1.6em, 6vw, 2.2em);
    margin-bottom: 15px;
  }

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

  .page-register__cta-button,
  .page-register__submit-button,
  .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;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .page-register__cta-buttons,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

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

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