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

.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); /* Clamp for responsive H2 */
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color);
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-secondary-color);
}

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

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

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

.page-register__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-register__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 30px;
  border-radius: 12px;
  background: rgba(16, 35, 63, 0.85); /* Card BG with transparency */
  backdrop-filter: blur(5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-register__main-title {
  font-size: clamp(32px, 5vw, 50px); /* Clamp for responsive H1 */
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--gold-color);
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-register__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-main-color);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__cta-button {
  display: inline-block;
  padding: 16px 45px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-register__cta-button:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-register__registration-form {
  background: #ffffff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  margin: 40px auto;
  border: 1px solid #e0e0e0;
}

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

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

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

.page-register__form-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.2);
  outline: none;
}

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

.page-register__checkbox-input {
  margin-right: 10px;
  transform: scale(1.2);
}

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

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

.page-register__submit-button {
  width: 100%;
  padding: 18px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__submit-button:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-register__login-text {
  text-align: center;
  margin-top: 30px;
  font-size: 16px;
  color: #555555;
}

.page-register__login-text .page-register__link {
  color: var(--primary-color);
  font-weight: bold;
}

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

.page-register__benefits-section .page-register__section-title {
  color: var(--gold-color);
}

.page-register__benefits-section .page-register__section-description {
  color: var(--text-secondary-color);
}

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

.page-register__benefit-item {
  background: var(--card-bg-color);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-register__benefit-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold-color);
}

.page-register__benefit-text {
  font-size: 16px;
  color: var(--text-secondary-color);
}

/* Why Choose Section */
.page-register__why-choose-section {
  padding: 80px 0;
  background-color: #f0f2f5; /* Lighter background */
  color: #333333;
}

.page-register__why-choose-section .page-register__section-title,
.page-register__why-choose-section .page-register__section-description {
  color: #333333;
}

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

.page-register__reason-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__reason-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-register__reason-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-register__reason-text {
  font-size: 16px;
  color: #555555;
}

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

.page-register__cta-button--large {
  padding: 18px 50px;
  font-size: 22px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: var(--deep-navy-color);
  color: var(--text-main-color);
}

.page-register__faq-section .page-register__section-title {
  color: var(--gold-color);
}

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
}

details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}

details.page-register__faq-item summary.page-register__faq-question:hover {
  background: rgba(var(--primary-color-rgb), 0.1);
}

.page-register__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-register__faq-item .page-register__faq-answer {
  padding: 0 25px 20px;
  background: rgba(var(--card-bg-color-rgb), 0.5);
  border-top: 1px solid var(--divider-color);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary-color);
}

.page-register__faq-answer p {
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333;
}

.page-register__final-cta-section .page-register__section-title,
.page-register__final-cta-section .page-register__section-description {
  color: #333333;
}

.page-register__cta-button--final {
  background: linear-gradient(180deg, #F2C14E 0%, #B78D38 100%); /* Gold button */
}

.page-register__cta-button--final:hover {
  background: linear-gradient(180deg, #B78D38 0%, #F2C14E 100%);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-content {
    padding: 25px;
  }
  .page-register__main-title {
    font-size: clamp(28px, 4.5vw, 45px);
  }
  .page-register__hero-description {
    font-size: 18px;
  }
  .page-register__cta-button {
    padding: 14px 40px;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__hero-image img,
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__container,
  .page-register__section,
  .page-register__card,
  .page-register__form-section,
  .page-register__benefits-section,
  .page-register__why-choose-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__form-section, .page-register__benefits-section, .page-register__why-choose-section, .page-register__faq-section, .page-register__final-cta-section {
    padding: 60px 0;
  }
  .page-register__registration-form {
    padding: 25px;
    margin: 30px auto;
  }
  .page-register__form-group {
    margin-bottom: 20px;
  }
  .page-register__form-input,
  .page-register__submit-button {
    padding: 14px;
    font-size: 18px;
  }
  .page-register__cta-button,
  .page-register__cta-button--large,
  .page-register__cta-button--final,
  .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-grid, .page-register__reason-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__benefit-item img {
    
  }
  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px;
  }
  .page-register__faq-qtext {
    font-size: 16px;
  }
  .page-register__faq-toggle {
    font-size: 24px;
  }
  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 15px 15px;
  }
  .page-register__faq-answer p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-register__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-register__hero-description {
    font-size: 16px;
  }
  .page-register__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }
}

/* Custom colors as CSS variables */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --primary-color-rgb: 17, 59, 122;
  --secondary-color-rgb: 29, 95, 209;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg-color: #10233F;
  --card-bg-color-rgb: 16, 35, 63;
  --text-main-color: #F3F8FF;
  --text-secondary-color: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy-color: #08162B;
}