/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F3F8FF; /* Text Main */
  background-color: #08162B; /* Deep Navy - Body background */
}

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

.page-register__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

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

.page-register__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  color: #F3F8FF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 800px;
  width: 90%;
  padding: 20px;
  background: rgba(17, 59, 122, 0.7); /* #113B7A with transparency */
  border-radius: 10px;
}

.page-register__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F3F8FF;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 25px;
  color: #AFC4E8;
}

.page-register__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

.page-register__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-register__section-title {
  font-size: 2.2em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #F3F8FF;
  position: relative;
  padding-bottom: 10px;
}

.page-register__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #F2C14E; /* Gold */
  border-radius: 2px;
}

.page-register__benefits-section,
.page-register__form-section,
.page-register__how-to-section,
.page-register__faq-section,
.page-register__cta-section {
  padding: 60px 0;
  margin-bottom: 20px;
  background-color: #08162B; /* Deep Navy */
}

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

.page-register__benefit-card,
.page-register__step-card {
  background-color: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-register__benefit-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__benefit-title,
.page-register__step-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #F3F8FF;
}

.page-register__benefit-description,
.page-register__step-description {
  font-size: 1em;
  color: #AFC4E8;
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #F3F8FF;
  font-size: 1.1em;
}

.page-register__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #244D84; /* Border */
  border-radius: 8px;
  background-color: #08162B; /* Deep Navy */
  color: #F3F8FF;
  font-size: 1em;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: #AFC4E8; /* Text Secondary */
  opacity: 0.7;
}

.page-register__form-input:focus {
  border-color: #1D5FD1; /* Auxiliary color */
  outline: none;
  box-shadow: 0 0 0 3px rgba(29, 95, 209, 0.3);
}

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

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

.page-register__captcha-button {
  padding: 14px 20px;
  background: #1D5FD1; /* Auxiliary color */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  flex-shrink: 0;
}

.page-register__captcha-button:hover {
  background-color: #2b73f6;
}

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

.page-register__terms-checkbox input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  accent-color: #1D5FD1; /* Auxiliary color */
}

.page-register__terms-label {
  font-size: 0.95em;
  color: #AFC4E8; /* Text Secondary */
}

.page-register__terms-label a {
  color: #4FA8FF; /* Glow */
  text-decoration: none;
  font-weight: 600;
}

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

.page-register__submit-button {
  width: 100%;
  padding: 18px;
  font-size: 1.2em;
}

.page-register__login-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 1em;
  color: #AFC4E8;
}

.page-register__login-prompt a {
  color: #4FA8FF; /* Glow */
  text-decoration: none;
  font-weight: 600;
}

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

.page-register__step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #F2C14E; /* Gold */
  color: #08162B; /* Deep Navy */
  font-size: 2em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F3F8FF;
  font-weight: 600;
}

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(29, 95, 209, 0.1); /* Lighter #1D5FD1 */
}

.page-register__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
  color: #F3F8FF;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #08162B; /* Deep Navy - slightly darker for contrast */
  border-radius: 0 0 10px 10px;
  color: #AFC4E8;
}

.page-register__cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, #113B7A 0%, #08162B 100%);
  border-radius: 15px;
  margin-top: 40px;
}

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

.page-register__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #AFC4E8;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__hero-section {
    margin-bottom: 20px;
  }
  .page-register__hero-content {
    padding: 15px;
    width: 95%;
  }
  .page-register__main-title {
    font-size: 1.8em !important;
    margin-bottom: 10px;
  }
  .page-register__hero-description {
    font-size: 0.9em;
    margin-bottom: 15px;
  }
  .page-register__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__benefits-section,
  .page-register__form-section,
  .page-register__how-to-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 40px 0;
  }
  .page-register__section-title {
    font-size: 1.6em !important;
    margin-bottom: 30px;
  }
  .page-register__benefits-grid,
  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__form-group {
    margin-bottom: 20px;
  }
  .page-register__captcha-group {
    flex-direction: column;
    align-items: stretch;
  }
  .page-register__captcha-button {
    width: 100%;
    padding: 12px 15px;
  }
  .page-register__form-label {
    font-size: 1em;
  }
  .page-register__form-input {
    padding: 12px 15px;
  }
  .page-register__terms-checkbox {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-register__terms-checkbox input[type="checkbox"] {
    margin-bottom: 10px;
  }
  .page-register__submit-button {
    padding: 15px;
    font-size: 1.1em;
  }
  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px;
  }
  .page-register__faq-qtext {
    font-size: 1em;
  }
  .page-register__faq-toggle {
    font-size: 1.5em;
    width: 24px;
  }
  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 15px 15px;
  }
  /* Mobile image adaptation */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__container,
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__form-section,
  .page-register__how-to-section,
  .page-register__faq-section,
  .page-register__cta-section,
  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__registration-form,
  .page-register__form-group,
  .page-register__captcha-group,
  .page-register__terms-checkbox {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-register__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}