﻿.funnel [hidden] {
  display: none !important;
}
.funnel {
  background: #f7f4f5;
}
.funnel-header {
  border-bottom: 1px solid #ededed;
}
.funnel-header .header__container {
  height: 92px;
  justify-content: center;
}
.funnel h1,
.funnel h2,
.funnel p {
  margin: 0;
}
.funnel button,
.funnel input {
  font: inherit;
}
.funnel button {
  border: 0;
  cursor: pointer;
}
.funnel button:focus-visible {
  outline: 3px solid #007e80;
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.quiz-hero {
  display: flex;
  justify-content: center;
  padding: 76px 24px 24px;
}
.quiz-card {
  width: min(754px, 100%);
  padding: 24px;
  border-radius: 16px;
  background: #fff;
}
.funnel .quiz-card__title {
  margin-bottom: 16px;
  color: #02A2A2;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
}
.quiz-progress {
  margin-bottom: 36px;
}
.quiz-progress__track {
  position: relative;
  height: 20px;
  overflow: hidden;
  border-radius: 10px;
  background: #efefef;
}
.quiz-progress__value {
  height: 100%;
  border-radius: inherit;
  background: #009b21;
  transition: width 200ms ease;
}
.quiz-progress__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.quiz-step {
  display: none;
}
.quiz-step.is-active {
  display: block;
}
.funnel .quiz-step__question {
  margin-bottom: 24px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}
.quiz-step__question:focus {
  outline: none;
}
.quiz-step__answers {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}
.quiz-option {
  min-height: 50px;
  padding: 14px 16px;
  border-radius: 4px;
  color: #171717;
  text-align: left;
  background: #f5f5f5;
  line-height: 1.4;
  transition:
    background-color 150ms ease,
    box-shadow 150ms ease;
}
.quiz-option:hover {
  background: #e8f8f9;
}
.quiz-option.is-selected {
  background: #e8f8f9;
  box-shadow: inset 0 0 0 2px #00a3a5;
}
.quiz-contact-fields {
  display: grid;
  gap: 24px;
  margin-bottom: 40px;
}
.quiz-field {
  display: block;
  min-width: 0;
}
.quiz-field input {
  width: 100%;
  height: 53px;
  padding: 0 15px;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  color: #171717;
  background: #fff;
  outline: none;
}
.quiz-field input::placeholder {
  color: #aaa;
  opacity: 1;
}
.quiz-field input:focus {
  border-color: #00a3a5;
  box-shadow: 0 0 0 2px rgb(0 163 165 / 14%);
}
.quiz-field input.is-invalid {
  border-color: #d93025;
  box-shadow: 0 0 0 2px rgb(217 48 37 / 12%);
}
.quiz-field-error {
  display: block;
  margin-top: 7px;
  color: #b42318;
  font-size: 14px;
  line-height: 1.4;
}
.funnel .quiz-next {
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border-radius: 16px;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  background: #02A2A2;
  transition: background-color 150ms ease;
}
.quiz-next:hover:not(:disabled) {
  background: #008b8d;
}
.quiz-next:disabled {
  cursor: not-allowed;
}
.quiz-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding-top: 16px;
}
.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: #666;
  background: transparent;
}
.quiz-form__security {
  display: block;
  width: 100px;
  height: 40px;
  margin-left: auto;
  object-fit: contain;
}
.funnel .quiz-error {
  margin-top: 16px;
  color: #b42318;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}
.quiz-info {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.quiz-info__benefits {
  display: grid;
  gap: 18px;
}
.quiz-benefit {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  align-items: center;
}
.quiz-benefit img {
  width: 24px;
  height: 24px;
}
.quiz-benefit p {
  font-size: 16px;
  line-height: 21px;
}
.quiz-review {
  padding: 16px 23px;
  border: 1px solid #00ffff;
  border-radius: 8px;
}
.funnel .quiz-review__name {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.3;
}
.quiz-review__stars {
  display: flex;
  margin-bottom: 10px;
}
.quiz-review__stars img {
  width: 24px;
  height: 24px;
}
.quiz-review__text {
  font-size: 14px;
  line-height: 1.3;
}
.funnel-footer {
  padding: 30px 20px 40px;
}
.funnel-footer .footer__links {
  color: #eee;
}
.funnel-footer .footer__copyright {
  font-size: 12px;
}
.thank-you-page {
  min-height: calc(100vh - 308px);
  display: grid;
  place-items: center;
  padding: 76px 24px;
}
.thank-you-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 32px;
  width: min(900px, 100%);
  padding: 32px;
  background: #fff;
  border-radius: 16px;
}
.funnel .thank-you-card h1 {
  margin-bottom: 20px;
  color: #00a3a5;
  font-size: 32px;
  line-height: 1.2;
}
.thank-you-card p {
  font-size: 18px;
  line-height: 1.5;
}
.thank-you-card img {
  height: auto;
}
@media (max-width: 767px) {
  .funnel-header .header__container {
    height: 80px;
  }
  .quiz-hero {
    padding: 24px 12px;
  }
  .quiz-card {
    padding: 24px 16px;
    border-radius: 12px;
  }
  .funnel .quiz-card__title {
    font-size: 20px;
  }
  .quiz-progress {
    margin-bottom: 24px;
  }
  .funnel .quiz-step__question {
    margin-bottom: 20px;
    font-size: 21px;
  }
  .quiz-step__answers {
    gap: 12px;
    margin-bottom: 28px;
  }
  .quiz-contact-fields {
    gap: 20px;
    margin-bottom: 28px;
  }
  .quiz-info {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px 40px;
  }
  .quiz-review {
    padding: 16px 20px;
  }
  .funnel-footer .footer__links {
    gap: 16px;
  }
  .thank-you-page {
    padding: 24px 12px;
  }
  .thank-you-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .funnel .thank-you-card h1 {
    font-size: 28px;
  }
  .thank-you-card img {
    justify-self: center;
  }
}
