/* style/register.css */

/* General styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Container for consistent content width */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-register__hero-section,
.page-register__why-register-section,
.page-register__how-to-register-section,
.page-register__security-section,
.page-register__faq-section,
.page-register__final-cta-section {
  padding: 60px 0;
  text-align: center;
  box-sizing: border-box;
}

.page-register__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px; /* Ensure hero section has a decent height */
}

/* Background colors based on contrast requirements */
.page-register__dark-bg {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff; /* White text for dark background */
}

.page-register__light-bg {
  background-color: #FFFFFF; /* Auxiliary brand color / white */
  color: #333333; /* Dark text for light background */
}

/* Headings */
.page-register__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: inherit; /* Inherit from section for contrast */
}

.page-register__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem); /* Responsive font size for H2 */
  font-weight: 600;
  margin-bottom: 20px;
  color: inherit;
}

.page-register__step-title,
.page-register__benefit-title,
.page-register__security-title,
.page-register__form-title {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem); /* Responsive font size for H3 */
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit;
}

.page-register__hero-description,
.page-register__section-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

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

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__submit-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-register__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #ffffff; /* White text for dark sections */
  border: 2px solid #ffffff; /* White border for dark sections */
}
.page-register__dark-bg .page-register__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}
.page-register__light-bg .page-register__btn-secondary {
  color: #26A9E0; /* Brand color for light sections */
  border-color: #26A9E0;
}

.page-register__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.page-register__light-bg .page-register__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-register__submit-button {
  background-color: #26A9E0; /* Main brand color for submit */
  color: #ffffff;
  border: none;
  width: 100%; /* Full width for form button */
  margin-top: 20px;
}

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

/* Hero section specific */
.page-register__hero-section .page-register__container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.page-register__hero-content {
  flex: 1;
  max-width: 700px;
  order: 2; /* Content below image on desktop */
}

.page-register__hero-image-wrapper {
  flex: 1;
  order: 1; /* Image above content on desktop */
  width: 100%;
  max-width: 800px;
}

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

/* Benefits Grid */
.page-register__benefits-grid,
.page-register__security-features-grid,
.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__benefit-card,
.page-register__security-card,
.page-register__step-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for light card */
}

.page-register__dark-bg .page-register__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}
.page-register__dark-bg .page-register__step-card a {
  color: #ffffff;
  text-decoration: underline;
}

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

.page-register__benefit-icon,
.page-register__security-icon {
  width: 200px; /* Minimum size */
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__benefit-text a,
.page-register__step-text a,
.page-register__security-text a,
.page-register__faq-answer a,
.page-register__checkbox-label a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: none;
  font-weight: 600;
}

.page-register__dark-bg .page-register__benefit-text a,
.page-register__dark-bg .page-register__step-text a,
.page-register__dark-bg .page-register__security-text a,
.page-register__dark-bg .page-register__faq-answer a,
.page-register__dark-bg .page-register__checkbox-label a {
  color: #ffffff;
}

.page-register__benefit-text a:hover,
.page-register__step-text a:hover,
.page-register__security-text a:hover,
.page-register__faq-answer a:hover,
.page-register__checkbox-label a:hover {
  text-decoration: underline;
}

/* Registration Form */
.page-register__form-wrapper {
  max-width: 600px;
  margin: 50px auto 0;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: left;
}

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: #999999;
}

.page-register__checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.page-register__checkbox-group input[type="checkbox"] {
  margin-top: 5px;
}

.page-register__checkbox-label {
  font-size: 0.95rem;
  color: #555555;
}

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark background */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff; /* White text for dark background */
}

.page-register__faq-item[open] {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  user-select: none;
  color: inherit;
  list-style: none; /* Hide default marker for details summary */
}

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

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

.page-register__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  width: 20px;
  text-align: center;
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: inherit;
}

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


/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-section .page-register__container {
    flex-direction: column;
    gap: 30px;
  }
  .page-register__hero-content {
    order: 1; /* Content above image on tablet */
  }
  .page-register__hero-image-wrapper {
    order: 2; /* Image below content on tablet */
  }
}

@media (max-width: 768px) {
  /* Global mobile content padding */
  .page-register__container {
    padding: 0 15px;
  }

  .page-register__hero-section,
  .page-register__why-register-section,
  .page-register__how-to-register-section,
  .page-register__security-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding: 40px 0 !important; /* Adjust padding for mobile */
  }

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

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

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

  /* Buttons responsive */
  .page-register__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .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;
  }

  /* Specific elements for mobile */
  .page-register__main-title {
    font-size: 2rem;
  }

  .page-register__section-title {
    font-size: 1.6rem;
  }

  .page-register__step-title,
  .page-register__benefit-title,
  .page-register__security-title,
  .page-register__form-title {
    font-size: 1.3rem;
  }

  .page-register__hero-description,
  .page-register__section-description {
    font-size: 1rem;
  }

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

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

  .page-register__form-wrapper {
    padding: 30px 20px;
  }
}

/* Ensure images don't have CSS filters */
.page-register img {
  filter: none !important;
}