/* style/register.css */

/* Custom Colors */
:root {
  --page-register-primary: #11A84E;
  --page-register-secondary: #22C768;
  --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-register-card-bg: #11271B;
  --page-register-background: #08160F;
  --page-register-text-main: #F2FFF6;
  --page-register-text-secondary: #A7D9B8;
  --page-register-border: #2E7A4E;
  --page-register-glow: #57E38D;
  --page-register-gold: #F2C14E;
  --page-register-divider: #1E3A2A;
  --page-register-deep-green: #0A4B2C;
}

/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-register-text-main); /* Default text color for dark background */
  background-color: var(--page-register-background); /* Default background */
}

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

.page-register__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--page-register-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__text-block {
  font-size: 18px;
  color: var(--page-register-text-secondary);
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__link {
  color: var(--page-register-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__link:hover {
  color: var(--page-register-glow);
  text-decoration: underline;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: var(--page-register-deep-green);
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

.page-register__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  z-index: 1; /* Ensure content is above image if any overlap */
}

.page-register__main-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  color: var(--page-register-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -1px;
}

.page-register__description {
  font-size: 20px;
  color: var(--page-register-text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 180px;
}

.page-register__btn-primary {
  background: var(--page-register-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-register__btn-secondary {
  background: transparent;
  color: var(--page-register-secondary);
  border: 2px solid var(--page-register-secondary);
}

.page-register__btn-secondary:hover {
  background: var(--page-register-secondary);
  color: var(--page-register-text-main);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Form Section */
.page-register__form-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background for form */
  color: #333333; /* Dark text for light background */
}

.page-register__form-section .page-register__section-title {
  color: #333333;
}

.page-register__form-section .page-register__text-block {
  color: #555555;
}

.page-register__form-wrapper {
  max-width: 600px;
  margin: 40px auto;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-register__registration-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-register__form-group {
  text-align: left;
}

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.page-register__form-input:focus {
  border-color: var(--page-register-primary);
  outline: none;
}

.page-register__captcha-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.page-register__captcha-image {
  border: 1px solid #cccccc;
  border-radius: 6px;
  width: 150px; 
  height: 50px; 
  display: block;
  object-fit: cover;
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-register__checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.page-register__checkbox-label {
  font-size: 15px;
  color: #555555;
}

.page-register__checkbox-label .page-register__link {
  color: var(--page-register-primary);
}

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

.page-register__already-member {
  margin-top: 30px;
  font-size: 16px;
  color: #555555;
}

.page-register__already-member .page-register__link {
  color: var(--page-register-primary);
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: var(--page-register-card-bg); /* Dark background */
  color: var(--page-register-text-main);
}

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

.page-register__benefit-card {
  background-color: var(--page-register-deep-green);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-register__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-register__benefit-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--page-register-text-main);
  margin-bottom: 15px;
}

.page-register__benefit-description {
  font-size: 16px;
  color: var(--page-register-text-secondary);
  line-height: 1.5;
}

.page-register__view-promotions {
  margin-top: 50px;
}

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

.page-register__guide-section .page-register__section-title {
  color: #333333;
}

.page-register__guide-section .page-register__text-block {
  color: #555555;
}

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

.page-register__guide-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-register__guide-heading {
  font-size: 22px;
  font-weight: 700;
  color: var(--page-register-primary);
  margin-bottom: 15px;
}

.page-register__guide-text {
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
  text-align: left;
}

.page-register__read-more-guide {
  margin-top: 50px;
}

/* Video Section */
.page-register__video-section {
  padding: 80px 0;
  background-color: var(--page-register-background);
  color: var(--page-register-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px; /* Desktop max width */
  margin: 40px auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.page-register__video-link {
  display: block;
  width: 100%;
  height: auto;
}

.page-register__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-register__video-cta {
  margin-top: 20px;
  font-size: 18px;
  color: var(--page-register-text-secondary);
}

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

.page-register__faq-section .page-register__section-title {
  color: #333333;
}

.page-register__faq-list {
  max-width: 900px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-register__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-register__faq-item[open] {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Remove default marker for details summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* Remove default marker for Webkit browsers */
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  margin-left: 15px;
  color: var(--page-register-primary);
}

.page-register__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #555555;
  line-height: 1.6;
  border-top: 1px solid #e0e0e0;
}

.page-register__faq-item:not([open]) .page-register__faq-answer {
  border-top: none;
}

/* CTA Bottom Section */
.page-register__cta-bottom-section {
  padding: 60px 0;
  background-color: var(--page-register-deep-green);
  text-align: center;
  color: var(--page-register-text-main);
}

.page-register__cta-bottom-section .page-register__section-title {
  margin-bottom: 20px;
}

.page-register__cta-bottom-section .page-register__text-block {
  margin-bottom: 40px;
  font-size: 18px;
  color: var(--page-register-text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 15px;
  }
  .page-register__main-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }
  .page-register__description {
    font-size: 18px;
  }
  .page-register__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-register__main-title {
    font-size: clamp(28px, 6vw, 40px) !important;
  }
  .page-register__description {
    font-size: 16px;
    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;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__form-section, .page-register__benefits-section, .page-register__guide-section, .page-register__video-section, .page-register__faq-section, .page-register__cta-bottom-section {
    padding: 50px 0;
  }
  .page-register__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-register__captcha-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .page-register__captcha-image {
    width: 100% !important;
    max-width: 150px !important; /* Keep captcha image readable */
    height: auto !important;
  }

  .page-register__benefits-grid, .page-register__guide-list {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  /* Image responsive rules */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video responsive rules */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-register__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-register__faq-answer {
    padding: 15px 20px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__section-title {
    font-size: clamp(24px, 7vw, 36px);
  }
  .page-register__text-block {
    font-size: 15px;
  }
  .page-register__hero-content {
    padding: 10px;
  }
  .page-register__main-title {
    font-size: clamp(24px, 8vw, 36px) !important;
  }
  .page-register__description {
    font-size: 14px;
  }
  .page-register__form-wrapper {
    padding: 20px;
  }
  .page-register__form-input {
    padding: 10px 12px;
    font-size: 15px;
  }
  .page-register__submit-button {
    font-size: 18px;
  }
  .page-register__benefit-title {
    font-size: 20px;
  }
  .page-register__benefit-description {
    font-size: 14px;
  }
  .page-register__guide-heading {
    font-size: 20px;
  }
  .page-register__guide-text {
    font-size: 14px;
  }
  .page-register__faq-question {
    font-size: 15px;
  }
  .page-register__faq-answer {
    font-size: 14px;
  }
}