/* style/register.css */

/* Base styles for the page-register scope */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

/* Shared section styling */
.page-register__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-register__section-title--white {
  color: #FFFFFF;
}

.page-register__section-description {
  font-size: clamp(16px, 2vw, 18px);
  color: #1F2D3D;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

.page-register__section-description--white {
  color: #f0f0f0;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button custom gradient */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.3);
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.4);
}

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

.page-register__btn-secondary {
  background: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF; /* Main color */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__btn-secondary:hover {
  background: #F4F7FB; /* Background */
  color: #2F6BFF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  min-height: 500px; /* Minimum height for hero */
}

.page-register__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken image for text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #FFFFFF;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text */
  border-radius: 10px;
}

.page-register__hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-register__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  line-height: 1.4;
}

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

/* Registration Form Section */
.page-register__registration-form-section {
  padding: 80px 20px;
  background-color: #F4F7FB; /* Background */
}

.page-register__form-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto 60px;
}

.page-register__step-item {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

.page-register__step-item:hover {
  transform: translateY(-5px);
}

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

.page-register__step-title {
  font-size: 24px;
  font-weight: 700;
  color: #2F6BFF; /* Main color */
  margin-bottom: 15px;
}

.page-register__step-text {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
}

.page-register__form-container {
  max-width: 600px;
  margin: 0 auto;
  background: #FFFFFF; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 1px solid #D6E2FF; /* Border */
}

.page-register__form-title {
  font-size: 28px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
}

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

.page-register__form-label {
  display: block;
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 8px;
  font-weight: 600;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-register__form-input:focus {
  border-color: #2F6BFF; /* Main color */
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.2);
  outline: none;
}

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

.page-register__form-checkbox input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #2F6BFF; /* Main color */
}

.page-register__checkbox-label {
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
}

.page-register__checkbox-label a {
  color: #2F6BFF; /* Main color */
  text-decoration: none;
}

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

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 20px;
  background: #2F6BFF; /* Main color for dark background */
  color: #FFFFFF;
}

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

.page-register__benefit-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

.page-register__benefit-card--white-bg {
  background: #FFFFFF;
  color: #1F2D3D; /* Text Main */
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
}

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

.page-register__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF; /* Main color */
  margin-bottom: 15px;
}

.page-register__benefit-card--white-bg .page-register__benefit-title {
  color: #2F6BFF; /* Main color */
}

.page-register__benefit-text {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 20px;
  background-color: #F4F7FB; /* Background */
}

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

.page-register__faq-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-register__faq-item summary {
  list-style: none; /* Remove default marker */
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  background-color: #FFFFFF; /* Card BG */
  transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
  background-color: #F4F7FB; /* Background */
}

.page-register__faq-toggle {
  font-size: 24px;
  font-weight: 700;
  color: #2F6BFF; /* Main color */
  margin-left: 15px;
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  line-height: 1.6;
}

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

.page-register__faq-answer a {
  color: #2F6BFF; /* Main color */
  text-decoration: none;
}

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

/* CTA Section */
.page-register__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: #2F6BFF; /* Main color for dark background */
  color: #FFFFFF;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 15px;
  }

  .page-register__hero-title {
    font-size: clamp(30px, 4.5vw, 48px);
  }

  .page-register__hero-description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
}

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

  .page-register__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
    min-height: 400px;
  }

  .page-register__hero-content {
    padding: 10px;
  }

  .page-register__hero-title {
    font-size: clamp(28px, 6vw, 40px);
    margin-bottom: 10px;
  }

  .page-register__hero-description {
    font-size: clamp(15px, 2.5vw, 18px);
    margin-bottom: 20px;
  }

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__btn-primary--large {
    font-size: 1.1em;
    padding: 16px 28px;
  }

  .page-register__registration-form-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 50px 15px;
  }

  .page-register__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 15px;
  }

  .page-register__section-description {
    font-size: clamp(15px, 2.5vw, 17px);
    margin-bottom: 30px;
  }

  .page-register__form-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__step-item {
    padding: 25px;
  }

  .page-register__step-icon {
    width: 100px;
    height: 100px;
  }

  .page-register__step-title {
    font-size: 20px;
  }

  .page-register__form-container {
    padding: 30px;
  }

  .page-register__form-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

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

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

  /* Image and video responsive rules */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__form-container,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper,
  .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;
    overflow: hidden !important;
  }
  .page-register__video-section {
    padding-top: 10px !important;
  }
}