/* style/register.css */

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

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

.page-register__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  box-sizing: border-box;
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-register__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-register__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom Register/Login font color */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Form Card */
.page-register__form-card {
  background: #FFFFFF; /* Custom background for form card */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 40px auto 0;
  text-align: left;
  color: #333333; /* Dark text for light background */
}

.page-register__form-title {
  font-size: 2em;
  color: #017439; /* Brand primary color for form title */
  text-align: center;
  margin-bottom: 30px;
}

.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 #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.page-register__form-checkbox input[type="checkbox"] {
  margin-right: 10px;
  transform: scale(1.2);
}

.page-register__text-link {
  color: #017439; /* Brand primary color for links */
  text-decoration: none;
  font-weight: bold;
}

.page-register__text-link:hover {
  text-decoration: underline;
  color: #005f2c;
}

/* Buttons */
.page-register__btn-register,
.page-register__btn-login {
  display: block;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  margin-top: 20px;
}

.page-register__btn-register {
  background-color: #C30808; /* Custom Register color */
  color: #FFFF00; /* Custom Register/Login font color */
}

.page-register__btn-register:hover {
  background-color: #a30606;
}

.page-register__btn-login {
  background-color: #C30808; /* Custom Login color */
  color: #FFFF00; /* Custom Register/Login font color */
}

.page-register__btn-login:hover {
  background-color: #a30606;
}

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background for this section, consistent with body */
  color: #ffffff;
}

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

.page-register__benefit-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-register__benefit-icon {
  width: 250px; /* Display width, greater than 200px */
  height: auto; /* Maintain aspect ratio */
  display: block; /* For centering */
  margin: 0 auto 20px; /* Center the image */
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Explicitly ensure minimum width */
  min-height: 150px; /* Explicitly ensure minimum height (based on 4:3 aspect ratio for 800x600 source) */
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #FFFF00; /* Custom font color for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

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

.page-register__step-item {
  background: rgba(0, 0, 0, 0.2); /* Dark overlay on green background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #C30808; /* Custom Register color for step number */
  color: #FFFF00; /* Custom font color */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  border: 4px solid #017439; /* Border with brand primary color */
}

.page-register__step-title {
  font-size: 1.6em;
  color: #FFFF00; /* Custom font color */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 15px;
  min-width: 200px; /* Explicitly ensure minimum width */
  min-height: 150px; /* Explicitly ensure minimum height */
}

.page-register__guide-cta-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Custom background for security section */
  color: #333333; /* Dark text for light background */
}

.page-register__security-section .page-register__section-title {
  color: #017439; /* Brand primary color for title */
}

.page-register__security-section .page-register__section-description {
  color: #555555;
}

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

.page-register__feature-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border-left: 5px solid #017439; /* Accent with brand primary color */
}

.page-register__feature-title {
  font-size: 1.4em;
  color: #017439; /* Brand primary color for feature title */
  margin-bottom: 10px;
  font-weight: bold;
}

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

.page-register__security-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1em;
  color: #555555;
}

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

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

.page-register__faq-item {
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00; /* Custom font color for questions */
  list-style: none; /* Remove default summary marker */
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #C30808; /* Custom Register color for toggle */
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

/* CTA Section */
.page-register__cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color background */
  text-align: center;
  color: #ffffff;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.8em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__security-features {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    height: auto;
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
  }

  .page-register__hero-title {
    font-size: 2.2em;
  }

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

  .page-register__form-card {
    padding: 30px 20px;
    margin: 20px auto 0;
  }

  .page-register__section-title {
    font-size: 1.8em;
  }

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

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

  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__step-item {
    padding-top: 40px;
  }
  .page-register__step-number {
    top: -15px;
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }

  .page-register__btn-register,
  .page-register__btn-login {
    font-size: 1.1em;
    padding: 12px 15px;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

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

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

  /* Mobile video responsiveness (if any, though none currently) */
  .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;
  }

  /* Mobile button responsiveness */
  .page-register__cta-button,
  .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__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__cta-buttons {
    flex-direction: column !important;
  }
}

/* Color Contrast Enforcement */
.page-register__dark-section {
  background: #1a1a2e; /* Ensure dark background */
  color: #ffffff; /* Ensure light text */
}

.page-register__dark-section .page-register__text-link {
  color: #FFFF00; /* Use contrasting color for links on dark background */
}
.page-register__dark-section .page-register__text-link:hover {
  color: #a30606;
}

.page-register__light-bg {
  background: #FFFFFF; /* Ensure light background */
  color: #333333; /* Ensure dark text */
}

/* Ensure text links on light background are visible */
.page-register__light-bg .page-register__text-link {
  color: #017439; /* Use contrasting color for links on light background */
}