/* style/register.css */

/* --- Base Styles --- */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-register__dark-section {
  background-color: #0D1B2A; /* Main brand color */
  color: #ffffff;
  padding: 80px 0;
}

.page-register__light-section {
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333;
  padding: 80px 0;
}

.page-register__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #E0B941; /* Auxiliary brand color for titles */
}

.page-register__dark-section .page-register__section-title {
  color: #E0B941;
}

.page-register__light-section .page-register__section-title {
  color: #0D1B2A;
}

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

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

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-register__main-title {
  font-size: 56px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #E0B941;
}

.page-register__intro-text {
  font-size: 22px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 18px 40px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-register__btn-primary {
  background-color: #E0B941; /* Auxiliary brand color */
  color: #0D1B2A; /* Main brand color for text */
  border-color: #E0B941;
}

.page-register__btn-primary:hover {
  background-color: #ffc95a;
  border-color: #ffc95a;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #E0B941;
  border-color: #E0B941;
}

.page-register__btn-secondary:hover {
  background-color: #E0B941;
  color: #0D1B2A;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

/* --- Benefits Section --- */
.page-register__benefits-section {
  background-color: #1a2b3c; /* Body background color */
  padding: 80px 0;
  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-item {
  text-align: center;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark bg */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-register__benefit-item img {
  width: 100%;
  height: auto;
  max-width: 400px; /* Max width for images in cards */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

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

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

/* --- How-To-Register Section --- */
.page-register__how-to-register {
  background-color: #0D1B2A;
  padding: 80px 0;
  color: #ffffff;
}

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

.page-register__step-item {
  text-align: center;
  padding: 30px;
  border: 1px solid rgba(224, 185, 65, 0.3);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.03);
}

.page-register__step-number {
  font-size: 48px;
  font-weight: 900;
  color: #E0B941;
  margin-bottom: 20px;
  line-height: 1;
}

.page-register__step-title {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E0B941;
}

.page-register__step-text {
  font-size: 17px;
  color: #cccccc;
}

.page-register__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* --- Registration Form Section --- */
.page-register__form-section {
  background-color: #1a2b3c;
  padding: 80px 0;
  color: #ffffff;
}

.page-register__registration-form {
  max-width: 600px;
  margin: 50px auto 0 auto;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

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

.page-register__form-group label {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
  color: #E0B941;
  font-weight: bold;
}

.page-register__registration-form input[type="text"],
.page-register__registration-form input[type="password"],
.page-register__registration-form input[type="tel"] {
  width: calc(100% - 20px);
  padding: 14px 10px;
  font-size: 16px;
  border: 1px solid #444;
  border-radius: 6px;
  background-color: #2a3b4c;
  color: #ffffff;
  box-sizing: border-box;
}

.page-register__registration-form input::placeholder {
  color: #888;
}

.page-register__captcha-input {
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-register__captcha-input input {
  flex-grow: 1;
}

.page-register__captcha-image {
  border-radius: 6px;
  min-width: 200px;
  min-height: 80px;
  width: 200px;
  height: 80px;
  object-fit: cover;
}

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

.page-register__form-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  accent-color: #E0B941;
}

.page-register__form-checkbox label {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 0;
}

.page-register__form-checkbox label a {
  color: #E0B941;
  text-decoration: underline;
}

.page-register__submit-btn {
  display: block;
  width: 100%;
  padding: 18px 20px;
  font-size: 20px;
  font-weight: bold;
  background-color: #E0B941;
  color: #0D1B2A;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-register__submit-btn:hover {
  background-color: #ffc95a;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark bg */
}

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

.page-register__faq-item.active .page-register__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background-color: rgba(224, 185, 65, 0.15); /* Lighter gold tint when active */
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(224, 185, 65, 0.4);
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #E0B941;
  pointer-events: none;
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E0B941;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

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

.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-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(224, 185, 65, 0.2);
  border-top: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

.page-register__faq-answer p {
  margin: 0;
  color: #cccccc;
  font-size: 16px;
}

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

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

.page-register__cta-section .page-register__section-description {
  color: #cccccc;
  margin-bottom: 40px;
}

.page-register__btn-large {
  padding: 22px 50px;
  font-size: 24px;
  border-radius: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 48px;
  }
  .page-register__section-title {
    font-size: 32px;
  }
  .page-register__intro-text,
  .page-register__section-description {
    font-size: 17px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 15px 30px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px;
  }

  /* Fixed header offset for mobile */
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }

  .page-register__dark-section,
  .page-register__light-section,
  .page-register__benefits-section,
  .page-register__how-to-register,
  .page-register__form-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 60px 0;
  }

  .page-register__main-title {
    font-size: 38px;
  }
  .page-register__section-title {
    font-size: 28px;
  }
  .page-register__intro-text,
  .page-register__section-description,
  .page-register__benefit-text,
  .page-register__step-text,
  .page-register__form-group label,
  .page-register__registration-form input,
  .page-register__form-checkbox label,
  .page-register__faq-question h3,
  .page-register__faq-answer p {
    font-size: 16px;
  }

  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__submit-btn,
  .page-register__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-register__benefit-item img,
  .page-register__captcha-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__captcha-input {
    flex-direction: column;
    align-items: stretch;
  }

  .page-register__captcha-input input {
    width: 100%;
  }

  .page-register__captcha-image {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin: 0 auto;
  }

  .page-register__form-section .page-register__registration-form {
    padding: 30px 20px;
  }

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

  .page-register__faq-question h3 {
    font-size: 17px;
  }

  .page-register__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 20px !important;
  }

  /* Ensure all content containers are responsive */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__registration-form,
  .page-register__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-register__registration-form input[type="text"],
  .page-register__registration-form input[type="password"],
  .page-register__registration-form input[type="tel"] {
    width: 100%;
  }
}