/* style/register.css */

/* --- General Page Styles (scoped to .page-register) --- */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Recommended light text color for dark body background */
}

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

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

/* --- 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: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #8B0000, #FFD700); /* Blend of primary and secondary colors */
  overflow: hidden;
}

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

.page-register__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
  line-height: 1.5;
}

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

.page-register__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__cta-button--primary {
  background: #FFD700;
  color: #8B0000; /* Dark text for gold background */
  border: 2px solid #FFD700;
}

.page-register__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-register__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background image */
}

/* --- Registration Form Section --- */
.page-register__form-section {
  background: var(--dark-bg-1, #0d0d0d); /* Dark background */
  padding: 80px 0;
}

.page-register__dark-bg {
  background: var(--dark-bg-1, #0d0d0d);
  color: #f0f0f0;
}

.page-register__form-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 40px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for form container */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-register__registration-form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #FFD700;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__form-input:focus {
  border-color: #FFD700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
  outline: none;
}

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

.page-register__form-checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #FFD700; /* Highlight checkbox with brand color */
}

.page-register__form-label-checkbox {
  font-size: 15px;
  color: #f0f0f0;
}

.page-register__form-label-checkbox a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-register__form-label-checkbox a:hover {
  text-decoration: underline;
}

.page-register__submit-button {
  width: 100%;
  padding: 15px;
  background: #FFD700;
  color: #8B0000;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__submit-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__form-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-register__login-prompt {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #f0f0f0;
}

.page-register__login-prompt a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-register__login-prompt a:hover {
  text-decoration: underline;
}

/* --- Benefits Section --- */
.page-register__benefits-section {
  background: #1a1a1a; /* Slightly lighter dark background */
  padding: 80px 0;
  color: #f0f0f0;
}

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

.page-register__benefit-item {
  background: rgba(255, 255, 255, 0.08); /* Dark card 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, box-shadow 0.3s ease;
}

.page-register__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__benefit-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-height: 200px; /* Enforce minimum image size */
  min-width: 200px;
}

.page-register__benefit-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-register__benefit-text {
  font-size: 16px;
  color: #cccccc;
}

/* --- Mobile Section --- */
.page-register__mobile-section {
  padding: 80px 0;
  background: var(--dark-bg-2, #111111); /* Another dark background variant */
  color: #f0f0f0;
}

.page-register__mobile-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
}

.page-register__mobile-text {
  flex: 1;
  min-width: 300px;
}

.page-register__mobile-text .page-register__section-title {
  text-align: left;
  margin-bottom: 15px;
}

.page-register__mobile-text .page-register__section-description {
  text-align: left;
  margin: 0 0 25px 0;
}

.page-register__mobile-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-register__mobile-features li {
  font-size: 17px;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #cccccc;
}

.page-register__mobile-features li::before {
  content: '✓';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-register__mobile-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.08); /* Dark card background */
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-register__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #FFD700;
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Plus sign rotates to X, or just use - */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.03); /* Slightly darker for answer background */
  border-radius: 0 0 8px 8px;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
  color: #cccccc;
}

.page-register__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.page-register__faq-answer a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-register__faq-answer a:hover {
  text-decoration: underline;
}

/* --- Final CTA Section --- */
.page-register__final-cta-section {
  background: linear-gradient(135deg, #8B0000, #FFD700);
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-register__final-cta-section .page-register__section-title {
  color: #ffffff;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.5);
}

.page-register__final-cta-section .page-register__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-register__cta-button--large {
  padding: 18px 45px;
  font-size: 22px;
  border-radius: 10px;
  background: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--large:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 42px;
  }

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

  .page-register__section-title {
    font-size: 32px;
  }

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

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

@media (max-width: 768px) {
  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__mobile-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  .page-register__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-register__main-title {
    font-size: 32px;
  }

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

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px; /* Limit button group width */
    margin: 30px auto 0 auto;
  }

  .page-register__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }

  .page-register__section-title {
    font-size: 28px;
  }

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

  .page-register__form-wrapper {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .page-register__registration-form {
    max-width: 100%;
  }

  .page-register__form-image-wrapper {
    order: -1; /* Image above form on mobile */
  }
  
  .page-register__form-image,
  .page-register__hero-image,
  .page-register__benefit-image,
  .page-register__mobile-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    min-height: 200px !important; /* Ensure images are not too small */
  }

  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }

  .page-register__mobile-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-register__mobile-text .page-register__section-title,
  .page-register__mobile-text .page-register__section-description {
    text-align: center;
  }

  .page-register__mobile-features {
    padding-left: 20px;
  }

  .page-register__mobile-features li {
    font-size: 15px;
  }
  
  .page-register__faq-question {
    padding: 15px 20px;
  }
  
  .page-register__faq-question h3 {
    font-size: 16px;
  }
  
  .page-register__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  
  .page-register__faq-answer {
    padding: 0 20px;
  }
  
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px !important;
  }

  .page-register__cta-button--large {
    font-size: 18px;
    padding: 15px 30px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: 28px;
  }

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

  .page-register__section-title {
    font-size: 24px;
  }

  .page-register__cta-button--primary,
  .page-register__cta-button--secondary {
    padding: 10px 20px;
    font-size: 15px;
  }
  
  .page-register__form-input {
    font-size: 15px;
    padding: 10px 12px;
  }
  
  .page-register__form-label-checkbox {
    font-size: 14px;
  }
  
  .page-register__submit-button {
    font-size: 18px;
    padding: 12px;
  }
  
  .page-register__benefit-title {
    font-size: 20px;
  }
  
  .page-register__benefit-text {
    font-size: 15px;
  }
  
  .page-register__mobile-features li {
    font-size: 14px;
  }
  
  .page-register__faq-question h3 {
    font-size: 15px;
  }
  
  .page-register__faq-toggle {
    font-size: 22px;
  }
  
  .page-register__faq-answer p {
    font-size: 15px;
  }
  
  .page-register__cta-button--large {
    font-size: 16px;
    padding: 12px 25px;
  }
}

/* Global image styles to prevent small icons and ensure responsiveness */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile image and container specific overrides */
@media (max-width: 768px) {
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__mobile-section,
  .page-register__faq-section,
  .page-register__final-cta-section,
  .page-register__form-wrapper,
  .page-register__hero-image-wrapper,
  .page-register__mobile-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Important for preventing horizontal scroll */
  }

  .page-register__hero-section,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__mobile-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* No CSS filter allowed for images */
.page-register img {
  filter: none;
}