/* =============================================
   ОНЛАЙН-ТЕСТ 14+ — стартовый экран, степпер вопросов, форма лида, результат
   Использует переменные/классы из css/style.css (--primary, .container,
   .footer, .form-group, header/nav) для единого визуального языка.
   ============================================= */

/* Эта страница не подключает css/components/modal.css, поэтому базовые
   .form-group/.form-label/.form-control стили дублируем здесь же (тот же
   вид, что и в остальных формах на сайте). */
.form-group {
  padding-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e293b;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--ot-blue, #1189bf);
}

:root {
  --ot-blue: #1189bf;
  --ot-dark-blue: #0f3077;
  --ot-yellow: #fdbd24;
}

.ot-hero,
.ot-test,
.ot-lead,
.ot-result {
  padding: 140px 0 60px;
  background: #f7fbff;
}

.ot-hero {
  text-align: center;
}

.ot-hero__badge {
  display: inline-block;
  background: var(--ot-yellow);
  color: #1f2937;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5em 1.2em;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}

.ot-hero__title {
  font-family: 'KabelC', system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  color: var(--ot-dark-blue);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 1rem;
}

.ot-hero__subtitle {
  max-width: 640px;
  margin: 0 auto 1.8rem;
  color: #333;
  font-size: 1.1rem;
  line-height: 1.5;
}

.ot-hero__notes {
  list-style: none;
  padding: 0;
  margin: 0 auto 2.2rem;
  max-width: 460px;
  text-align: left;
}

.ot-hero__notes li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 0.6rem;
  color: #333;
}

.ot-hero__notes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--ot-blue);
  font-weight: 700;
}

.ot-start-btn,
.ot-nav__btn--next,
.ot-lead__submit {
  appearance: none;
  cursor: pointer;
  border: none;
  background: linear-gradient(135deg, var(--ot-yellow), #fdbd24);
  color: #1f2937;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9em 2.2em;
  border-radius: 50px;
  box-shadow: 0 6px 18px rgba(253, 189, 36, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.ot-start-btn:hover,
.ot-nav__btn--next:not(:disabled):hover,
.ot-lead__submit:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(253, 189, 36, 0.5);
}

.ot-nav__btn--next:disabled,
.ot-lead__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Степпер вопросов ---------- */
.ot-test__container {
  max-width: 720px;
}

.ot-progress {
  margin-bottom: 1.5rem;
}

.ot-progress__bar {
  block-size: 8px;
  border-radius: 4px;
  background: #e2edf6;
  overflow: hidden;
  margin-bottom: 0.6rem;
}

.ot-progress__fill {
  block-size: 100%;
  background: linear-gradient(90deg, var(--ot-blue), var(--ot-dark-blue));
  border-radius: 4px;
  transition: inline-size 0.3s ease;
  inline-size: 0%;
}

.ot-progress__label {
  font-weight: 700;
  color: var(--ot-dark-blue);
  font-size: 0.95rem;
}

.ot-card {
  background: #fff;
  border: 2px solid #d4eaff;
  border-radius: 20px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 8px 24px rgba(15, 48, 119, 0.08);
  margin-bottom: 1.5rem;
}

.ot-card__question {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  color: #1f2937;
  margin: 0 0 1.5rem;
  line-height: 1.4;
}

.ot-card__options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ot-option {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
  appearance: none;
  cursor: pointer;
  background: #f7fbff;
  border: 2px solid #d4eaff;
  border-radius: 14px;
  padding: 0.9em 1.2em;
  font-size: 1.05rem;
  color: #1f2937;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.ot-option:hover {
  border-color: var(--ot-blue);
}

.ot-option__letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 28px;
  block-size: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #d4eaff;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ot-blue);
}

.ot-option.is-selected {
  border-color: var(--ot-blue);
  background: #e6f4fb;
}

.ot-option.is-selected .ot-option__letter {
  background: var(--ot-blue);
  border-color: var(--ot-blue);
  color: #fff;
}

.ot-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.ot-nav__btn--prev {
  appearance: none;
  cursor: pointer;
  background: #fff;
  border: 2px solid var(--ot-blue);
  color: var(--ot-blue);
  font-weight: 700;
  padding: 0.9em 1.8em;
  border-radius: 50px;
  transition: background 0.15s ease, color 0.15s ease;
}

.ot-nav__btn--prev:hover {
  background: var(--ot-blue);
  color: #fff;
}

.ot-nav__btn--prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ---------- Форма лида ---------- */
.ot-lead__container {
  max-width: 480px;
  text-align: center;
}

.ot-lead__title {
  font-family: 'KabelC', system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  color: var(--ot-dark-blue);
  font-size: 1.8rem;
  margin: 0 0 0.6rem;
}

.ot-lead__subtitle {
  color: #333;
  margin-bottom: 1.8rem;
  line-height: 1.5;
}

.ot-lead__form {
  text-align: left;
  background: #fff;
  border: 2px solid #d4eaff;
  border-radius: 20px;
  padding: clamp(20px, 4vw, 32px);
  box-shadow: 0 8px 24px rgba(15, 48, 119, 0.08);
}

.ot-lead__submit {
  inline-size: 100%;
  margin-top: 0.5rem;
}

.ot-lead__error {
  color: #dc3545;
  font-size: 0.9rem;
  margin-top: 0.8rem;
  text-align: center;
}

/* ---------- Результат ---------- */
.ot-result__container {
  max-width: 520px;
  text-align: center;
}

.ot-result__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 96px;
  block-size: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ot-blue), var(--ot-dark-blue));
  color: #fff;
  font-family: 'KabelC', system-ui, -apple-system, sans-serif;
  font-size: 2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 10px 26px rgba(15, 48, 119, 0.3);
}

.ot-result__title {
  font-family: 'KabelC', system-ui, -apple-system, sans-serif;
  text-transform: uppercase;
  color: var(--ot-dark-blue);
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
}

.ot-result__score {
  font-weight: 700;
  color: #1f2937;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.ot-result__note {
  color: #333;
  line-height: 1.5;
  margin-bottom: 1.8rem;
}

.ot-result__cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--ot-yellow), #fdbd24);
  color: #1f2937;
  font-weight: 700;
  padding: 0.9em 2.2em;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(253, 189, 36, 0.35);
}

/* ---------- Адаптив ---------- */
@media (max-width: 600px) {
  .ot-hero,
  .ot-test,
  .ot-lead,
  .ot-result {
    padding: 110px 0 40px;
  }

  .ot-card__question {
    font-size: 1.15rem;
  }

  .ot-option {
    font-size: 0.98rem;
  }

  .ot-nav {
    gap: 0.6rem;
  }

  .ot-nav__btn--prev,
  .ot-nav__btn--next {
    padding: 0.85em 1.2em;
    font-size: 0.95rem;
  }
}
