/* ==============================
   QUIZ PAGE
============================== */

.quiz-page-main {
  background: #f3f3f6;
  min-height: 100vh;
}

.quiz-progress-wrap {
  position: sticky;
  top: var(--header-height, 82px);
  z-index: 50;
  padding: 10px 0;
  background: #ffffff;
  border-bottom: 1px solid rgba(23, 32, 51, 0.08);
}

.quiz-progress {
  position: relative;
  height: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #ededf0;
}

.quiz-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8b1a, #ff5a2e);
  transition: width 0.35s ease;
}

.quiz-progress span {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #030035;
  font-size: 13px;
  font-weight: 700;
}

.quiz-section {
  padding: 34px 0 70px;
}

.quiz-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}

.quiz-summary-sticky,
.quiz-help-sticky {
  position: sticky;
  top: calc(var(--header-height, 82px) + 56px);
}

.quiz-offers-box,
.quiz-summary-card,
.quiz-help-card,
.quiz-card {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.08);
  border: 1px solid rgba(23, 32, 51, 0.08);
}

.quiz-offers-box {
  padding: 18px;
  margin-bottom: 16px;
}

.quiz-offers-label {
  display: block;
  color: #66708a;
  font-size: 13px;
  line-height: 1.35;
}

.quiz-offers-box strong {
  display: block;
  margin: 6px 0;
  color: #030035;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.quiz-offers-box small {
  display: block;
  color: #7a8193;
  font-size: 12px;
  line-height: 1.45;
}

.quiz-summary-card {
  padding: 20px;
}

.quiz-summary-card h2,
.quiz-help-card h2 {
  margin: 0 0 14px;
  color: #030035;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.quiz-summary-empty {
  margin: 0;
  color: #7a8193;
  font-size: 14px;
  line-height: 1.6;
}

.quiz-summary-list {
  display: grid;
  gap: 14px;
}

.quiz-summary-group {
  padding: 14px;
  border-radius: 14px;
  background: #f6f7fb;
  border: 1px solid rgba(83, 92, 130, 0.12);
}

.quiz-summary-group h3 {
  margin: 0 0 10px;
  color: #030035;
  font-size: 15px;
  line-height: 1.2;
}

.quiz-summary-row {
  display: grid;
  gap: 3px;
  margin-top: 8px;
}

.quiz-summary-row span {
  color: #7a8193;
  font-size: 12px;
}

.quiz-summary-row strong {
  color: #030035;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  word-break: break-word;
}

.quiz-card {
  min-height: 540px;
  padding: clamp(24px, 4vw, 42px);
}

.quiz-step {
  display: none;
}

.quiz-step.is-active {
  display: block;
}

.quiz-step h1 {
  margin: 0 0 22px;
  color: #030035;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.quiz-question {
  margin: 0 0 12px;
  color: #030035;
  font-size: 18px;
  font-weight: 700;
}

.quiz-subtitle {
  max-width: 720px;
  margin: -8px 0 24px;
  color: #66708a;
  font-size: 16px;
  line-height: 1.6;
}

.quiz-field-group {
  margin-bottom: 24px;
}

.quiz-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px 16px;
  border: 1px solid #b9becb;
  background: #ffffff;
  cursor: pointer;
}

.quiz-choice:first-of-type {
  border-radius: 8px 8px 0 0;
}

.quiz-choice:last-of-type {
  border-top: 0;
  border-radius: 0 0 8px 8px;
}

.quiz-choice::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -1px;
  bottom: -1px;
  width: 5px;
  background: transparent;
}

.quiz-choice:has(input:checked)::after {
  background: #139a2f;
}

.quiz-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.quiz-choice-radio {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #aeb5c5;
  background: #ffffff;
}

.quiz-choice input:checked + .quiz-choice-radio {
  border-color: #ff7b2c;
}

.quiz-choice input:checked + .quiz-choice-radio::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff7b2c;
}

.quiz-choice strong {
  display: block;
  color: #030035;
  font-size: 16px;
  line-height: 1.2;
}

.quiz-choice small {
  display: block;
  color: #8a8f9e;
  font-size: 15px;
  line-height: 1.25;
}

.quiz-input-line,
.quiz-input {
  display: block;
}

.quiz-input-line label,
.quiz-input {
  position: relative;
  display: block;
  width: 100%;
}

.quiz-input-line span,
.quiz-input span {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 2;
  color: #66708a;
  font-size: 12px;
  line-height: 1;
}

.quiz-input-line input,
.quiz-input input,
.quiz-input select {
  width: 100%;
  height: 58px;
  padding: 22px 16px 8px;
  border-radius: 12px;
  border: 1px solid #c7cde0;
  color: #030035;
  background: #ffffff;
  font-size: 16px;
  font-family: inherit;
  outline: none;
}

.quiz-input select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #9ba3bd 50%),
    linear-gradient(135deg, #9ba3bd 50%, transparent 50%);
  background-position:
    calc(100% - 22px) 50%,
    calc(100% - 16px) 50%;
  background-size: 7px 7px;
  background-repeat: no-repeat;
}

.quiz-input-line input:focus,
.quiz-input input:focus,
.quiz-input select:focus {
  border-color: #ff7b2c;
  box-shadow: 0 0 0 4px rgba(255, 123, 44, 0.12);
}

.quiz-grid-2,
.quiz-grid-3 {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.quiz-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quiz-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quiz-note {
  position: relative;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid #8e929b;
  background: #ffffff;
}

.quiz-note::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 54px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-left: 1px solid #8e929b;
  border-top: 1px solid #8e929b;
  transform: rotate(45deg);
}

.quiz-note strong {
  display: block;
  margin-bottom: 8px;
  color: #030035;
  font-size: 14px;
}

.quiz-note p {
  margin: 0;
  color: #030035;
  font-size: 14px;
  line-height: 1.55;
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 38px;
}

.quiz-btn {
  min-width: 180px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quiz-btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ff8b1a, #ff6d2d);
}

.quiz-btn-secondary {
  color: #030035;
  background: #eceef6;
}

.quiz-btn:hover {
  transform: translateY(-2px);
}

.quiz-driver-list {
  display: grid;
  gap: 16px;
}

.quiz-driver-card {
  padding: 18px;
  border-radius: 18px;
  background: #f8f9fc;
  border: 1px solid rgba(83, 92, 130, 0.14);
}

.quiz-driver-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.quiz-driver-head strong {
  color: #030035;
  font-size: 17px;
}

.quiz-remove-driver {
  border: 0;
  color: #b42318;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.quiz-add-driver {
  margin-top: 16px;
  border: 0;
  color: #32006d;
  background: transparent;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.quiz-switch-line,
.quiz-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  color: #030035;
  font-size: 15px;
  line-height: 1.5;
}

.quiz-switch-line input,
.quiz-consent input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: #4b0082;
}

.quiz-final-box {
  padding: 22px;
  border-radius: 18px;
  background: #f8f9fc;
  border: 1px solid rgba(83, 92, 130, 0.14);
}

.quiz-final-box strong {
  display: block;
  margin-bottom: 8px;
  color: #030035;
  font-size: 24px;
}

.quiz-final-box p {
  margin: 0;
  color: #66708a;
  line-height: 1.6;
}

.quiz-help-card {
  padding: 20px;
}

.quiz-help-card p {
  margin: 0;
  color: #030035;
  font-size: 14px;
  line-height: 1.55;
}

.quiz-help-card p + p {
  margin-top: 12px;
}

.quiz-processing,
.quiz-result-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 0, 53, 0.62);
  backdrop-filter: blur(8px);
}

.quiz-processing[hidden],
.quiz-result-modal[hidden] {
  display: none !important;
}

.quiz-processing-box,
.quiz-result-card {
  width: min(100%, 480px);
  padding: 34px;
  border-radius: 24px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.24);
}

.quiz-loader {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 5px solid #eceef6;
  border-top-color: #ff7b2c;
  animation: quizSpin 0.85s linear infinite;
}

@keyframes quizSpin {
  to {
    transform: rotate(360deg);
  }
}

.quiz-processing-box strong,
.quiz-result-card h2 {
  display: block;
  margin: 0 0 10px;
  color: #030035;
  font-size: 25px;
  line-height: 1.2;
}

.quiz-processing-box p,
.quiz-result-card p {
  margin: 0;
  color: #66708a;
  line-height: 1.6;
}

.quiz-result-card p + p {
  margin-top: 14px;
}

.quiz-result-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #ffffff;
  background: #139a2f;
  font-size: 30px;
  font-weight: 900;
}

.quiz-result-card small {
  display: block;
  margin-top: 18px;
  color: #8a8f9e;
}

@media (max-width: 1180px) {
  .quiz-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .quiz-help-panel {
    grid-column: 1 / -1;
  }

  .quiz-help-sticky {
    position: static;
  }
}

@media (max-width: 860px) {
  .quiz-shell {
    grid-template-columns: 1fr;
  }

  .quiz-card {
    order: 1;
  }

  .quiz-summary-panel {
    order: 2;
  }

  .quiz-help-panel {
    order: 3;
  }

  .quiz-summary-sticky {
    position: static;
  }

  .quiz-grid-2,
  .quiz-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .quiz-section {
    padding: 22px 0 54px;
  }

  .quiz-card {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .quiz-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .quiz-btn {
    width: 100%;
  }

  .quiz-progress-wrap {
    top: var(--header-height, 72px);
  }
}
/* ==============================
   KFZ QUIZ — Rendered UI
============================== */

.kfz-quiz-page {
  min-height: 100vh;
  background: #ffffff;
  color: #05002e;
}

.kfzq-progress-wrap {
  position: sticky;
  top: var(--header-height, 82px);
  z-index: 60;
  padding: 12px 0;
  background: #ffffff;
  border-bottom: 1px solid #e6e9f2;
}

.kfzq-container {
  width: min(100% - 32px, 1360px);
  margin-inline: auto;
}

.kfzq-progress {
  position: relative;
  height: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0f1f5;
  border: 1px solid #e1e5ef;
}

.kfzq-progress__bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a1f, #ff5d2d);
  transition: width 0.3s ease;
}

.kfzq-progress__text {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  place-items: center;
  color: #05002e;
  font-size: 13px;
  font-weight: 800;
}

.kfzq-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
  padding: 34px 0 74px;
}

.kfzq-left,
.kfzq-right {
  position: sticky;
  top: calc(var(--header-height, 82px) + 58px);
}

.kfzq-panel,
.kfzq-form-card,
.kfzq-help,
.kfzq-offers {
  background: #ffffff;
  border: 1px solid #dfe4ef;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(5, 0, 46, 0.06);
}

.kfzq-offers {
  margin-bottom: 14px;
  padding: 16px;
}

.kfzq-offers span {
  display: block;
  color: #66708a;
  font-size: 12px;
  line-height: 1.35;
}

.kfzq-offers strong {
  display: block;
  margin: 5px 0;
  color: #05002e;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.05em;
}

.kfzq-offers small {
  display: block;
  color: #7d8597;
  font-size: 12px;
  line-height: 1.4;
}

.kfzq-panel {
  padding: 16px;
}

.kfzq-panel h2,
.kfzq-help h2 {
  margin: 0 0 12px;
  color: #05002e;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.kfzq-empty {
  margin: 0;
  color: #7d8597;
  font-size: 13px;
  line-height: 1.55;
}

.kfzq-summary {
  display: grid;
  gap: 10px;
}

.kfzq-summary-group {
  padding: 12px;
  border-radius: 14px;
  background: #fbfcff;
  border: 1px solid #e4e8f2;
}

.kfzq-summary-group h3 {
  margin: 0 0 8px;
  color: #05002e;
  font-size: 14px;
  line-height: 1.2;
}

.kfzq-summary-row {
  display: grid;
  gap: 2px;
  padding: 6px 0;
  border-top: 1px solid #edf0f6;
}

.kfzq-summary-row:first-of-type {
  border-top: 0;
}

.kfzq-summary-row span {
  color: #788199;
  font-size: 11px;
  line-height: 1.25;
}

.kfzq-summary-row strong {
  color: #05002e;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  word-break: break-word;
}

.kfzq-form-card {
  padding: clamp(24px, 4vw, 42px);
}

.kfzq-step-title {
  margin: 0 0 8px;
  color: #05002e;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.kfzq-step-subtitle {
  max-width: 760px;
  margin: 0 0 26px;
  color: #66708a;
  font-size: 15px;
  line-height: 1.55;
}

.kfzq-section-title {
  margin: 28px 0 14px;
  color: #05002e;
  font-size: 19px;
  line-height: 1.2;
}

.kfzq-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.kfzq-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kfzq-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.kfzq-field {
  position: relative;
  display: block;
}

.kfzq-field label {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 2;
  color: #68728d;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

.kfzq-input,
.kfzq-select {
  width: 100%;
  height: 58px;
  padding: 22px 16px 8px;
  border: 1px solid #c7cfe2;
  border-radius: 14px;
  color: #05002e;
  background: #ffffff;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.kfzq-select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #a2aac0 50%),
    linear-gradient(135deg, #a2aac0 50%, transparent 50%);
  background-position:
    calc(100% - 24px) 52%,
    calc(100% - 17px) 52%;
  background-size: 8px 8px;
  background-repeat: no-repeat;
}

.kfzq-input:focus,
.kfzq-select:focus {
  border-color: #ff7b2c;
  box-shadow: 0 0 0 4px rgba(255, 123, 44, 0.12);
}

.kfzq-field.is-error .kfzq-input,
.kfzq-field.is-error .kfzq-select {
  border-color: #ff2f3d;
  background: #fff3f4;
}

.kfzq-error {
  display: none;
  margin: 6px 0 0;
  color: #ff2f3d;
  font-size: 12px;
  line-height: 1.3;
}

.kfzq-field.is-error .kfzq-error {
  display: block;
}

.kfzq-choice-list {
  display: grid;
  margin-bottom: 22px;
  border: 1px solid #c7cfe2;
  border-radius: 14px;
  overflow: hidden;
}

.kfzq-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 13px 18px;
  background: #ffffff;
  cursor: pointer;
  border-bottom: 1px solid #e4e8f2;
}

.kfzq-choice:last-child {
  border-bottom: 0;
}

.kfzq-choice::after {
  content: "";
  position: absolute;
  inset: -1px -1px -1px auto;
  width: 5px;
  background: transparent;
}

.kfzq-choice:has(input:checked)::after {
  background: #159447;
}

.kfzq-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kfzq-choice__radio {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1.5px solid #aab3c7;
  border-radius: 50%;
  background: #ffffff;
}

.kfzq-choice input:checked + .kfzq-choice__radio {
  border-color: #ff7b2c;
}

.kfzq-choice input:checked + .kfzq-choice__radio::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff7b2c;
}

.kfzq-choice strong {
  display: block;
  color: #05002e;
  font-size: 16px;
  line-height: 1.2;
}

.kfzq-choice small {
  display: block;
  margin-top: 2px;
  color: #7d8597;
  font-size: 13px;
  line-height: 1.25;
}

.kfzq-box {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #dfe4ef;
  border-radius: 16px;
  background: #fbfcff;
}

.kfzq-box strong {
  display: block;
  margin-bottom: 6px;
  color: #05002e;
}

.kfzq-box p {
  margin: 0;
  color: #66708a;
  font-size: 14px;
  line-height: 1.55;
}

.kfzq-driver-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #dfe4ef;
  border-radius: 18px;
  background: #ffffff;
}

.kfzq-driver-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.kfzq-driver-head h3 {
  margin: 0;
  color: #05002e;
  font-size: 18px;
}

.kfzq-remove {
  border: 0;
  color: #b42318;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.kfzq-add {
  min-height: 44px;
  padding: 0 18px;
  border: 1px dashed #4b0082;
  border-radius: 999px;
  color: #4b0082;
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.kfzq-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #05002e;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}

.kfzq-toggle input {
  position: absolute;
  opacity: 0;
}

.kfzq-toggle__ui {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #c9cfdd;
}

.kfzq-toggle__ui::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.18s ease;
}

.kfzq-toggle input:checked + .kfzq-toggle__ui {
  background: #4b0082;
}

.kfzq-toggle input:checked + .kfzq-toggle__ui::before {
  transform: translateX(16px);
}

.kfzq-consent {
  display: flex;
  gap: 10px;
  margin: 22px 0 0;
  color: #05002e;
  font-size: 13px;
  line-height: 1.55;
}

.kfzq-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: #4b0082;
}

.kfzq-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 34px;
}

.kfzq-btn {
  min-width: 170px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.kfzq-btn:hover {
  transform: translateY(-2px);
}

.kfzq-btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ff8a1f, #ff692e);
  box-shadow: 0 12px 26px rgba(255, 105, 46, 0.2);
}

.kfzq-btn--secondary {
  color: #05002e;
  background: #eef1f7;
}

.kfzq-help {
  padding: 16px;
}

.kfzq-help p {
  margin: 0;
  color: #05002e;
  font-size: 13px;
  line-height: 1.55;
}

.kfzq-help ul {
  margin: 0;
  padding-left: 18px;
}

.kfzq-help li {
  margin: 6px 0;
  color: #05002e;
  font-size: 13px;
  line-height: 1.45;
}

.kfzq-review {
  display: grid;
  gap: 12px;
}

.kfzq-review-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #dfe4ef;
  background: #fbfcff;
}

.kfzq-review-card h3 {
  margin: 0 0 10px;
  color: #05002e;
  font-size: 17px;
}

.kfzq-review-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid #edf0f6;
  font-size: 14px;
}

.kfzq-review-row:first-of-type {
  border-top: 0;
}

.kfzq-review-row span {
  color: #7d8597;
}

.kfzq-review-row strong {
  color: #05002e;
}

.kfzq-modal,
.kfzq-processing {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(5, 0, 46, 0.58);
  backdrop-filter: blur(8px);
}

.kfzq-modal[hidden],
.kfzq-processing[hidden] {
  display: none !important;
}

.kfzq-modal-card,
.kfzq-processing-card {
  width: min(100%, 520px);
  padding: 34px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #dfe4ef;
  text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

.kfzq-loader {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 5px solid #eef1f7;
  border-top-color: #ff7b2c;
  animation: kfzqSpin 0.85s linear infinite;
}

@keyframes kfzqSpin {
  to {
    transform: rotate(360deg);
  }
}

.kfzq-modal-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #ffffff;
  background: #159447;
  font-size: 30px;
  font-weight: 900;
}

.kfzq-modal-card h2,
.kfzq-processing-card h2 {
  margin: 0 0 12px;
  color: #05002e;
  font-size: 26px;
  line-height: 1.2;
}

.kfzq-modal-card p,
.kfzq-processing-card p {
  margin: 0;
  color: #66708a;
  line-height: 1.6;
}

.kfzq-modal-card p + p {
  margin-top: 12px;
}

.kfzq-modal-card small {
  display: block;
  margin-top: 18px;
  color: #7d8597;
}

@media (max-width: 1240px) {
  .kfzq-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .kfzq-right {
    position: static;
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .kfzq-layout {
    grid-template-columns: 1fr;
  }

  .kfzq-left {
    position: static;
    order: 2;
  }

  .kfzq-center {
    order: 1;
  }

  .kfzq-right {
    order: 3;
  }

  .kfzq-grid--2,
  .kfzq-grid--3 {
    grid-template-columns: 1fr;
  }

  .kfzq-review-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 640px) {
  .kfzq-container {
    width: min(100% - 22px, 1360px);
  }

  .kfzq-layout {
    padding: 22px 0 54px;
  }

  .kfzq-form-card {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .kfzq-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kfzq-btn {
    width: 100%;
  }
}
/* ==============================
   QUIZ FIX / FINAL OVERRIDES
   Вставить в самый низ quiz.css
============================== */

.kfz-quiz-page {
  background: #ffffff;
  color: #111827;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

.kfz-quiz-page * {
  box-sizing: border-box;
}

/* Общая сетка */
.kfzq-container {
  width: min(100% - 32px, 1420px);
}

.kfzq-layout {
  grid-template-columns: 300px minmax(0, 1fr) 280px;
  gap: 22px;
}

/* Исправление отсутствующего класса */
.kfzq-grid--1 {
  grid-template-columns: 1fr;
}

/* Карточки: белый фон + рамки */
.kfzq-panel,
.kfzq-form-card,
.kfzq-help,
.kfzq-offers {
  background: #ffffff;
  border: 1px solid #d9dfec;
  border-radius: 18px;
  box-shadow: none;
}

/* Центр */
.kfzq-form-card {
  padding: clamp(28px, 4vw, 44px);
}

/* Более аккуратная типографика */
.kfzq-step-title {
  margin: 0 0 10px;
  color: #07002f;
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 850;
}

.kfzq-step-subtitle {
  max-width: 720px;
  margin: 0 0 28px;
  color: #5f6b85;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

.kfzq-section-title {
  margin: 0 0 14px;
  color: #07002f;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.015em;
}

/* Главный фикс: подписи полей только прямые */
.kfzq-field > label {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 2;
  color: #6b748c;
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

/* Важно: возвращаем нормальное поведение label внутри выбора */
.kfzq-field .kfzq-choice {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  z-index: auto !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 68px;
  padding: 14px 18px;
  color: #07002f;
  font-size: inherit;
  line-height: normal;
  pointer-events: auto !important;
  cursor: pointer;
}

/* Блок выбора */
.kfzq-choice-list {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 0 0 22px;
  border: 1px solid #cbd3e4;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.kfzq-choice {
  border-bottom: 1px solid #e5e9f2;
}

.kfzq-choice:last-child {
  border-bottom: 0;
}

.kfzq-choice::after {
  content: "";
  position: absolute;
  inset: -1px -1px -1px auto;
  width: 5px;
  background: transparent;
}

.kfzq-choice:has(input:checked)::after {
  background: #168a3a;
}

.kfzq-choice__radio {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1.5px solid #aeb7c9;
  border-radius: 50%;
  background: #ffffff;
}

.kfzq-choice input:checked + .kfzq-choice__radio {
  border-color: #ff7b2c;
}

.kfzq-choice input:checked + .kfzq-choice__radio::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff7b2c;
}

.kfzq-choice strong {
  display: block;
  color: #07002f;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 850;
}

.kfzq-choice small {
  display: block;
  margin-top: 3px;
  color: #7d8699;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
}

/* Поля */
.kfzq-input,
.kfzq-select {
  height: 58px;
  padding: 22px 16px 8px;
  border: 1px solid #cbd3e4;
  border-radius: 14px;
  color: #07002f;
  background-color: #ffffff;
  font-size: 15px;
  font-weight: 600;
}

.kfzq-input::placeholder {
  color: #9aa4b8;
  font-weight: 500;
}

.kfzq-input:focus,
.kfzq-select:focus {
  border-color: #ff7b2c;
  box-shadow: 0 0 0 4px rgba(255, 123, 44, 0.12);
}

/* Ошибки */
.kfzq-field.is-error .kfzq-input,
.kfzq-field.is-error .kfzq-select {
  border-color: #ff3347;
  background: #fff6f7;
}

.kfzq-error {
  margin-top: 6px;
  color: #ff3347;
  font-size: 12px;
  font-weight: 600;
}

/* Левая колонка — меньше текста */
.kfzq-offers {
  padding: 16px 18px;
}

.kfzq-offers span {
  font-size: 12px;
  color: #66708a;
}

.kfzq-offers strong {
  margin: 4px 0;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #07002f;
}

.kfzq-offers small {
  font-size: 12px;
  color: #7d8699;
}

.kfzq-panel {
  padding: 16px;
}

.kfzq-panel h2,
.kfzq-help h2 {
  margin: 0 0 14px;
  color: #07002f;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 850;
}

.kfzq-summary {
  gap: 10px;
}

.kfzq-summary-group {
  padding: 12px;
  border-radius: 14px;
  background: #fbfcff;
  border: 1px solid #e2e7f1;
}

.kfzq-summary-group h3 {
  font-size: 14px;
  font-weight: 850;
}

.kfzq-summary-row span {
  font-size: 11px;
  color: #7b8498;
}

.kfzq-summary-row strong {
  font-size: 13px;
  font-weight: 800;
}

/* Правая колонка — компактнее */
.kfzq-help {
  padding: 16px;
}

.kfzq-help ul {
  margin: 0;
  padding-left: 17px;
}

.kfzq-help li {
  margin: 7px 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

/* Кнопки */
.kfzq-actions {
  margin-top: 36px;
}

.kfzq-btn {
  min-width: 170px;
  min-height: 50px;
  font-size: 15px;
  font-weight: 850;
}

.kfzq-btn--primary {
  background: linear-gradient(135deg, #ff8a1f, #ff6b2b);
  box-shadow: 0 16px 34px rgba(255, 112, 41, 0.22);
}

/* Карточки водителей */
.kfzq-driver-card {
  background: #ffffff;
  border: 1px solid #d9dfec;
  box-shadow: none;
}

.kfzq-driver-head h3 {
  color: #07002f;
  font-weight: 850;
}

/* Review */
.kfzq-review-card {
  background: #ffffff;
  border: 1px solid #d9dfec;
}

.kfzq-review-row {
  grid-template-columns: 170px 1fr;
}

/* Mobile / tablet */
@media (max-width: 1240px) {
  .kfzq-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }

  .kfzq-right {
    position: static;
    grid-column: 1 / -1;
  }
}

@media (max-width: 920px) {
  .kfzq-layout {
    grid-template-columns: 1fr;
  }

  .kfzq-left,
  .kfzq-right {
    position: static;
  }

  .kfzq-center {
    order: 1;
  }

  .kfzq-left {
    order: 2;
  }

  .kfzq-right {
    order: 3;
  }

  .kfzq-grid--2,
  .kfzq-grid--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .kfzq-container {
    width: min(100% - 24px, 1420px);
  }

  .kfzq-layout {
    padding: 22px 0 56px;
  }

  .kfzq-form-card {
    padding: 22px 16px;
    border-radius: 16px;
  }

  .kfzq-step-title {
    font-size: 32px;
  }

  .kfzq-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .kfzq-btn {
    width: 100%;
  }
}