/* style/register.css */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark background, so light text */
  background-color: #121212; /* Inherited from body, explicit for clarity */
}

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

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #FFD700;
  color: #000000;
  border: 2px solid #FFD700;
}

.page-register__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-register__btn-secondary:hover {
  background-color: #FFD700;
  color: #000000;
  transform: translateY(-2px);
}

/* Main Registration Section */
.page-register__main-registration-section {
  padding: var(--header-offset, 120px) 0 60px 0; /* Fallback for header offset */
  background: linear-gradient(to right, #0047AB, #121212);
}

.page-register__main-registration-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 40px;
}

.page-register__main-registration-content {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: left;
}

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

.page-register__main-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-register__form {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

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

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

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

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

.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-checkbox {
  margin-right: 10px;
  margin-top: 4px;
  flex-shrink: 0;
}

.page-register__form-checkbox-label {
  font-size: 14px;
  color: #cccccc;
  line-height: 1.5;
}

.page-register__form-link {
  color: #FFD700;
  text-decoration: none;
}

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

.page-register__submit-button {
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}

.page-register__submit-link {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #FFD700;
  color: #000000;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

.page-register__submit-link:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

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

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

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

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

.page-register__main-registration-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

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

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

.page-register__benefit-card {
  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);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(0, 71, 171, 0.5);
}

.page-register__benefit-card:hover {
  transform: translateY(-10px);
  background-color: rgba(0, 71, 171, 0.3);
}

.page-register__benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

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

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

/* CTA Section */
.page-register__cta-section {
  padding: 80px 0;
  background-color: #0047AB;
  text-align: center;
}

.page-register__cta-container {
  max-width: 900px;
}

.page-register__cta-title {
  font-size: 40px;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-register__cta-description {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 40px;
}

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

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

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

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 71, 171, 0.5);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  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: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.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;
  color: #cccccc;
  font-size: 16px;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* Ensure it expands sufficiently */
  padding: 20px 25px !important;
  opacity: 1;
  background-color: rgba(0, 71, 171, 0.2);
  border-top: 1px solid rgba(0, 71, 171, 0.5);
}

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

.page-register__support-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.page-register__support-content {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  text-align: left;
}

.page-register__support-title {
  font-size: 36px;
  color: #FFD700;
  margin-bottom: 20px;
}

.page-register__support-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-register__support-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 36px;
  }
  .page-register__section-title {
    font-size: 32px;
  }
  .page-register__cta-title {
    font-size: 36px;
  }
  .page-register__support-title {
    font-size: 32px;
  }
  .page-register__main-registration-container,
  .page-register__support-container {
    flex-direction: column;
    text-align: center;
  }
  .page-register__main-registration-content,
  .page-register__support-content {
    max-width: 100%;
    text-align: center;
  }
  .page-register__form {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__container,
  .page-register__main-registration-container,
  .page-register__cta-container,
  .page-register__support-container {
    padding: 0 15px;
  }
  .page-register__main-registration-section,
  .page-register__benefits-section,
  .page-register__cta-section,
  .page-register__faq-section,
  .page-register__support-section {
    padding: 60px 0;
  }
  .page-register__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }
  .page-register__main-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-register__form {
    padding: 20px;
  }
  .page-register__form-input {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-register__form-label {
    font-size: 14px;
  }
  .page-register__form-checkbox-label {
    font-size: 13px;
  }
  .page-register__submit-link {
    padding: 12px 15px;
    font-size: 16px;
  }
  .page-register__login-prompt {
    font-size: 14px;
    margin-top: 20px;
  }
  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-register__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-register__benefits-grid {
    gap: 20px;
  }
  .page-register__benefit-card {
    padding: 25px;
  }
  .page-register__benefit-title {
    font-size: 20px;
  }
  .page-register__benefit-text {
    font-size: 15px;
  }
  .page-register__cta-title {
    font-size: 30px;
  }
  .page-register__cta-description {
    font-size: 18px;
    margin-bottom: 30px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }
  .page-register__faq-question {
    padding: 15px 18px;
  }
  .page-register__faq-question h3 {
    font-size: 16px;
  }
  .page-register__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 18px !important;
  }
  .page-register__support-title {
    font-size: 28px;
  }
  .page-register__support-description {
    font-size: 16px;
  }

  /* Image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__main-registration-image,
  .page-register__support-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__benefit-icon {
    width: 60px !important;
    height: 60px !important;
  }
  .page-register__main-registration-image-wrapper,
  .page-register__support-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}