/* style/register.css */
/* Base styles for the register page content */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--body-bg-color, #121212); /* Inherit from shared, fallback to dark grey */
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

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

/* Section titles */
.page-register__section-title {
  font-size: 38px;
  font-weight: bold;
  color: #FFD700; /* Gold color for main titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Section descriptions */
.page-register__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.5;
}

/* Primary buttons */
.page-register__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #FFD700; /* Auxiliary color for primary action */
  color: #0A192F; /* Dark text for gold background */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-register__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

/* Secondary buttons */
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background-color: transparent;
  color: #FFD700;
  text-decoration: none;
  border: 2px solid #FFD700;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-register__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A192F;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

/* Hero Registration Section */
.page-register__hero-registration-section {
  position: relative;
  background: linear-gradient(135deg, #0A192F, #1e3a5f); /* Dark blue gradient */
  padding: 80px 0;
  text-align: center;
  /* Fixed header offset */
  padding-top: var(--header-offset, 120px);
}

.page-register__hero-registration-container {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-register__hero-registration-content {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  text-align: left;
}

.page-register__hero-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-register__registration-form-wrapper {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for form background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  margin-top: 30px;
}

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

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

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 215, 0, 0.5);
  border-radius: 6px;
  font-size: 16px;
  color: #ffffff;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

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

.page-register__form-agreement {
  display: flex;
  align-items: flex-start;
}

.page-register__form-agreement input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 4px; /* Align checkbox with text */
  accent-color: #FFD700; /* Style checkbox with accent color */
}

.page-register__terms-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__terms-link:hover {
  text-decoration: underline;
  color: #e6c200;
}

.page-register__submit-button {
  width: 100%;
  margin-top: 20px;
}

.page-register__hero-registration-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #0A192F; /* Brand primary dark blue */
  color: #ffffff;
}

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

.page-register__benefit-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
  padding: 30px;
  border-radius: 12px;
  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-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-register__benefit-icon {
  width: 100%; /* Ensure images fill card width */
  height: auto;
  max-width: 300px; /* Max width for benefit icons */
  margin: 0 auto 20px;
  display: block;
  border-radius: 8px;
}

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

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

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: var(--body-bg-color, #121212);
  color: #ffffff;
}

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

.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background-color: #FFD700;
  color: #0A192F;
  border-radius: 50%;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
}

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

.page-register__step-text {
  font-size: 16px;
  color: #e0e0e0;
}

.page-register__steps-image-wrapper {
  margin-top: 50px;
  margin-bottom: 50px;
  text-align: center;
}

.page-register__steps-image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Limit max width for step image */
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Call to action button in steps section */
.page-register__steps-section .page-register__cta-button {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Important Notes Section */
.page-register__important-notes-section {
  padding: 80px 0;
  background-color: #0A192F;
  color: #ffffff;
}

.page-register__notes-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-register__notes-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__notes-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-register__notes-text {
  font-size: 16px;
  color: #e0e0e0;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: var(--body-bg-color, #121212);
  color: #ffffff;
}

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

/* FAQ container styles */
.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.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 15px;
  opacity: 0;
}

/* FAQ expanded state - 🚨 Use !important and sufficiently large max-height to ensure expansion */
.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #e0e0e0; /* Light text for answer */
}

/* Question styles */
.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter background for question */
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-register__faq-question:active {
  background-color: rgba(255, 255, 255, 0.2);
}

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

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

.page-register__faq-item.active .page-register__faq-toggle {
  color: #ffffff; /* White icon when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

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

.page-register__cta-final-section .page-register__section-title {
  color: #FFD700;
}

.page-register__cta-final-section .page-register__section-description {
  margin-bottom: 40px;
}

.page-register__cta-final-section .page-register__cta-button {
  margin: 0 15px 20px; /* Space between buttons and bottom margin for wrap */
  max-width: 300px; /* Limit button width */
  width: 100%;
}

/* Global image styles */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 42px;
  }
  .page-register__hero-description {
    font-size: 18px;
  }
  .page-register__hero-registration-content,
  .page-register__hero-registration-image-wrapper {
    max-width: 100%;
  }
  .page-register__registration-form-wrapper {
    margin: 30px auto 0;
  }
}

@media (max-width: 768px) {
  .page-register__hero-registration-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-register__hero-registration-container {
    flex-direction: column;
    gap: 30px;
    padding: 0 15px;
  }

  .page-register__hero-registration-content {
    text-align: center;
    max-width: 100%;
  }

  .page-register__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

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

  .page-register__registration-form-wrapper {
    width: 100%;
    padding: 20px;
    margin-top: 20px;
  }
  
  .page-register__submit-button {
    padding: 12px 20px;
    font-size: 16px;
  }

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

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

  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__important-notes-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 50px 0;
  }

  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__notes-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-register__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-register__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  
  .page-register__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-register__faq-answer {
    padding: 0 15px;
  }
  
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }

  /* Ensure images are fully responsive on mobile */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__container,
  .page-register__hero-registration-section,
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__important-notes-section,
  .page-register__faq-section,
  .page-register__cta-final-section,
  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__notes-list,
  .page-register__faq-list,
  .page-register__registration-form-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons mobile specific */
  .page-register__cta-button,
  .page-register__btn-primary,
  .page-register__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .page-register__cta-final-section .page-register__cta-button {
    margin-bottom: 15px;
  }
  .page-register__cta-final-section .page-register__cta-button:last-child {
    margin-bottom: 0;
  }

  .page-register__cta-final-section .page-register__cta-button:first-of-type {
    margin-top: 20px;
  }

  .page-register__cta-final-section .page-register__container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}