/* style/register.css */

/* Base styles for the register page */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #05050f; /* Inherited from body, explicit for clarity */
}

/* Fixed header offset */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px; /* Minimum height for hero */
  overflow: hidden;
  padding: 60px 0;
  background-color: #0A2463; /* Main brand color */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-register__hero-section .page-register__container {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-register__btn-primary {
  background-color: #E3B505;
  color: #0A2463;
  border: 2px solid #E3B505;
}

.page-register__btn-primary:hover {
  background-color: #f0c94b;
  border-color: #f0c94b;
}

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

.page-register__btn-secondary:hover {
  background-color: #E3B505;
  color: #0A2463;
}

.page-register__btn-tertiary {
  background-color: #0A2463;
  color: #E3B505;
  border: 2px solid #0A2463;
}

.page-register__btn-tertiary:hover {
  background-color: #0A2463;
  color: #ffffff;
  border-color: #ffffff;
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Sections */
.page-register__benefits-section,
.page-register__form-section,
.page-register__promotions-section,
.page-register__final-cta-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly lighter dark for contrast */
  color: #ffffff;
}

.page-register__dark-bg {
  background-color: #0A2463;
  color: #ffffff;
}

.page-register__light-bg {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark body */
  color: #ffffff;
}

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

.page-register__benefit-card {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__card-title {
  font-size: 1.5em;
  color: #E3B505;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__card-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Steps Section */
.page-register__steps-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin: 0 auto;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-register__step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: #E3B505;
  color: #0A2463;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: bold;
}

.page-register__step-title {
  font-size: 1.6em;
  color: #E3B505;
  margin-bottom: 10px;
}

.page-register__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Form Section */
.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-register__form-input,
.page-register__form-select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-register__form-select {
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-6.5%200-12.3%203.2-16.1%208.1-3.8%204.9-4.7%2011.2-2.7%2017.3l139%20168.3c4.7%205.7%2011.6%208.7%2018.7%208.7s14-3%2018.7-8.7l139-168.3c2-6.1%201.1-12.4-2.7-17.3z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
}

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

.page-register__checkbox-input {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #E3B505;
}

.page-register__checkbox-label {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-register__checkbox-label a {
  color: #E3B505;
  text-decoration: none;
}

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

.page-register__form-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.1em;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* Security Section */
.page-register__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__feature-item {
  text-align: center;
  padding: 25px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-register__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-register__feature-title {
  font-size: 1.4em;
  color: #E3B505;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__feature-text {
  font-size: 0.95em;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-register__feature-text a {
  color: #E3B505;
  text-decoration: none;
}

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

.page-register__policy-links {
  text-align: center;
  margin-top: 50px;
}

.page-register__policy-link {
  color: #E3B505;
  text-decoration: none;
  margin: 0 15px;
  font-size: 0.95em;
}

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

/* Promotions Section */
.page-register__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__promo-card {
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-register__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

/* FAQ Section */
.page-register__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-register__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__faq-item:last-child {
  border-bottom: none;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #E3B505;
}

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px 25px 20px 25px;
}

.page-register__faq-answer p {
  margin-bottom: 0;
}

/* Final CTA Section */
.page-register__final-cta-section {
  text-align: center;
  background-color: #0A2463;
  padding: 80px 0;
}

.page-register__final-cta-section .page-register__btn-large {
  margin: 0 10px;
}

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

  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__hero-section {
    min-height: 450px;
    padding: 40px 0;
  }

  .page-register__hero-title {
    font-size: 2.2em;
  }

  .page-register__hero-description {
    font-size: 1em;
  }

  .page-register__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-tertiary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__benefits-section,
  .page-register__form-section,
  .page-register__promotions-section,
  .page-register__final-cta-section,
  .page-register__dark-bg {
    padding: 50px 0;
  }

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

  .page-register__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .page-register__step-number {
    margin-bottom: 15px;
  }

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

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

  .page-register__policy-link {
    display: block;
    margin: 10px 0;
  }

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

  .page-register__faq-question,
  .page-register__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-register__final-cta-section .page-register__btn-large {
    margin: 10px 0;
  }

  /* Image responsive rules for mobile */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__registration-form,
  .page-register__faq-list,
  .page-register__hero-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-register__hero-section { /* Adjust hero padding for mobile */
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__video-section { /* Video padding for mobile */
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}