.quote-hero-action {
  margin-top: 22px;
}

.quote-section {
  --quote-accent: #4059de;
  --quote-border: #dce4f5;
  --quote-navy: #151e37;
  padding-block: clamp(34px, 4vw, 58px) clamp(48px, 6vw, 80px);
  scroll-margin-top: 80px;
  border-block: 1px solid #e6ebf7;
  background:
    radial-gradient(ellipse at 78% 4%, #e7edff, transparent 55%),
    #f5f7fd;
}

.quote-section [hidden] {
  display: none;
}

.quote-heading {
  margin-bottom: clamp(20px, 3vw, 34px);
}

.quote-heading .lead {
  margin: 10px 0 0;
  font-size: clamp(15px, 2vw, 18px);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.17fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.3vw, 28px);
}

.quote-form,
.quote-result {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--quote-border);
  border-radius: 24px;
}

.quote-form {
  container-type: inline-size;
  background: #fff;
  box-shadow: 0 18px 50px #2538750e;
}

.quote-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--quote-navy);
  font-size: 15px;
  font-weight: 700;
}

.quote-progress-head .bi,
.quote-progress-head > span:last-child {
  color: var(--quote-accent);
}

.quote-progress-head > span:last-child {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.quote-progress {
  display: block;
  width: 100%;
  height: 6px;
  margin: 10px 0 23px;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: #ebeffa;
  accent-color: var(--quote-accent);
}

.quote-progress::-webkit-progress-bar {
  background: #ebeffa;
}

.quote-progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, #506bfa, #7b68f4);
  transition: width .3s ease;
}

.quote-progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #506bfa, #7b68f4);
}

.quote-group {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.quote-group legend {
  margin: 0 0 8px;
  padding: 0;
  color: var(--quote-navy);
  font-size: 16px;
  font-weight: 700;
}

.quote-step {
  display: inline-grid;
  width: 27px;
  height: 24px;
  margin-right: 5px;
  place-items: center;
  border-radius: 7px;
  color: var(--quote-accent);
  background: #eef2ff;
  font-size: 11px;
  letter-spacing: .03em;
}

.quote-choices {
  --choice-ink: #4559bd;
  --choice-tint: #edf1ff;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.quote-choices--people {
  --choice-ink: #267163;
  --choice-tint: #e7f4ef;
}

.quote-choices--capacity {
  --choice-ink: #695198;
  --choice-tint: #f1ecfa;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quote-choice,
.quote-review {
  position: relative;
  display: block;
}

.quote-choice input,
.quote-review input,
.quote-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.quote-choice > span {
  display: flex;
  min-width: 0;
  min-height: 48px;
  height: 100%;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 6px;
  border: 1px solid var(--quote-border);
  border-radius: 11px;
  color: #35415d;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-size: clamp(13px, 1.35vw, 15px);
  font-weight: 700;
  line-height: 1.35;
  transition: border-color .16s, background .16s, box-shadow .16s, transform .16s;
}

.quote-choice-icon {
  display: inline-grid;
  width: 27px;
  height: 27px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  background: var(--choice-tint);
  color: var(--choice-ink);
  font-size: 15px;
  line-height: 1;
}

.quote-choice input:not(:disabled) + span:hover {
  border-color: #a4b2f1;
  background: #f5f7ff;
}

.quote-choice input:checked + span,
.quote-choice input:checked + span:hover {
  border-color: var(--quote-accent);
  color: #2c43c2;
  background: #edf1ff;
  box-shadow: inset 0 0 0 1px var(--quote-accent);
}

.quote-choice input:checked + span .quote-choice-icon {
  color: #fff;
  background: var(--quote-accent);
}

.quote-choice input:checked + span .quote-choice-icon::before {
  width: 12px;
  height: 7px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
  content: "";
}

.quote-choice input:not(:disabled) + span:active {
  transform: scale(.98);
}

.quote-choice input:disabled + span {
  border-color: #e8edf5;
  color: #67748d;
  background: #f5f7fb;
  cursor: not-allowed;
}

.quote-choice input:disabled + span .quote-choice-icon {
  color: #727e94;
  background: #e4e9f1;
}

.quote-choice input:focus-visible + span,
.quote-review:focus-within,
.quote-preview:focus-visible,
.quote-consult:focus-visible,
.quote-method summary:focus-visible {
  outline: 2px solid #6d83ff;
  outline-offset: 3px;
}

.quote-hint {
  margin: 6px 0 0;
  color: #5d6880;
  font-size: 13px;
  line-height: 1.45;
}

.quote-plans {
  margin: 20px 0 14px;
  padding-top: 2px;
}

.quote-plans legend .bi {
  margin-right: 5px;
  color: var(--quote-accent);
}

.quote-plans .quote-hint {
  margin: 0 0 8px;
}

.quote-plan > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "icon badge" "name name" "price price";
  min-height: 78px;
  align-content: start;
  justify-items: start;
  gap: 3px 4px;
  padding: 9px clamp(6px, 1vw, 12px);
  text-align: left;
}

.quote-plan .quote-choice-icon {
  grid-area: icon;
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
  font-size: 14px;
}

.quote-plan strong {
  grid-area: name;
  letter-spacing: -.025em;
}

.quote-plan small {
  grid-area: price;
  color: inherit;
  font-size: 11px;
  font-weight: 400;
}

.quote-plan-tag {
  grid-area: badge;
  align-self: start;
  padding: 2px 5px;
  border-radius: 5px;
  color: #fff;
  background: var(--quote-accent);
  font-size: 10px;
  line-height: 1.15;
}

.quote-review {
  display: flex;
  min-height: 60px;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  border: 1px solid var(--quote-border);
  border-radius: 12px;
  background: #f8faff;
  cursor: pointer;
}

.quote-review-icon,
.quote-result-plan-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  color: var(--quote-accent);
  background: #e9eeff;
}

.quote-review-copy {
  flex: 1;
  line-height: 1.3;
}

.quote-review-copy strong,
.quote-review-copy small {
  display: block;
}

.quote-review-copy small {
  margin-top: 3px;
  color: #5d6880;
  font-size: 12px;
}

.quote-switch {
  display: flex;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  align-items: center;
  padding: 3px;
  border-radius: 99px;
  background: #738099;
  transition: background .18s;
}

.quote-switch::before {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transition: transform .18s;
}

.quote-review input:checked ~ .quote-switch {
  background: var(--quote-accent);
}

.quote-review input:checked ~ .quote-switch::before {
  transform: translateX(16px);
}

.quote-options-note {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 10px 0 0;
  color: #5d6880;
  font-size: 13px;
}

.quote-options-note .bi {
  color: var(--quote-accent);
}

.quote-preview {
  display: none;
}

.quote-result {
  position: sticky;
  top: 94px;
  scroll-margin-top: 94px;
  color: #fff;
  border-color: #263754;
  background:
    radial-gradient(ellipse at 88% -18%, #3b4da0, transparent 55%),
    linear-gradient(155deg, #131a2c, #232e50);
  box-shadow: 0 22px 46px #17223c26;
}

.quote-result-head,
.quote-result-plan,
.quote-breakdown > div,
.quote-method summary,
.quote-preview {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quote-result-head {
  display: flex;
  color: #d9e1f4;
  font-size: 14px;
  font-weight: 700;
}

.quote-result-head .bi {
  margin-right: 4px;
  color: #b3c2ff;
}

.quote-vat {
  padding: 3px 8px;
  border: 1px solid #7782b87a;
  border-radius: 20px;
  color: #e7ecff;
  background: #ffffff0d;
  font-size: 11px;
  white-space: nowrap;
}

.quote-result-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin-top: 12px;
  letter-spacing: -.045em;
}

.quote-result-price strong {
  font-size: clamp(26px, 3.15vw, 45px);
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.quote-result-price > span {
  color: #d1dcff;
  font-size: 16px;
  font-weight: 700;
}

.quote-result-message,
.quote-result-detail {
  margin: 8px 0 14px;
  color: #d0daf1;
  font-size: 13px;
  line-height: 1.5;
}

.quote-result-plan {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid #a7b5ff45;
  border-radius: 12px;
  background: #a8b5ff15;
  animation: quote-arrive .26s ease-out both;
}

.quote-result-plan-icon {
  color: #eef1ff;
  background: #8fa4ff33;
}

.quote-result-plan div {
  flex: 1;
}

.quote-result-plan small,
.quote-result-plan strong {
  display: block;
  line-height: 1.35;
}

.quote-result-plan small,
.quote-result-plan > span:last-child {
  color: #dce5ff;
  font-size: 12px;
}

.quote-breakdown {
  margin: 0;
  padding: 1px 12px;
  border: 1px solid #ffffff24;
  border-radius: 12px;
  background: #ffffff09;
}

.quote-breakdown > div {
  display: flex;
  min-height: 37px;
  padding-block: 5px;
  font-size: 14px;
}

.quote-breakdown > div + div {
  border-top: 1px solid #ffffff16;
}

.quote-breakdown dt {
  color: #d4dff4;
}

.quote-breakdown dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.quote-result-detail {
  margin: 10px 0 0;
}

.quote-method {
  margin-top: 10px;
  color: #d9e3fa;
  font-size: 13px;
}

.quote-method summary {
  display: flex;
  min-height: 44px;
  padding-inline: 2px;
  border-bottom: 1px solid #ffffff24;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.quote-method summary::-webkit-details-marker {
  display: none;
}

.quote-method[open] summary i {
  transform: rotate(180deg);
}

.quote-method p {
  margin: 8px 0;
}

.quote-method a {
  display: inline-block;
  padding-block: 4px;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.quote-consult {
  width: 100%;
  min-height: 46px;
  justify-content: flex-start;
  margin-top: 14px;
  border-radius: 11px;
}

.quote-consult > span {
  flex: 1;
}

@keyframes quote-arrive {
  from { opacity: .65; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .quote-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-result {
    position: static;
    scroll-margin-top: 82px;
  }

  .quote-preview:not([hidden]) {
    display: flex;
    min-height: 56px;
    padding: 8px 12px;
    border-radius: 12px;
    color: #fff;
    background: #253761;
    font-size: 13px;
    animation: quote-arrive .26s ease-out both;
  }

  .quote-preview small,
  .quote-preview strong {
    display: block;
    line-height: 1.35;
  }

  .quote-preview small {
    color: #d9e3ff;
    font-size: 11px;
  }

  .quote-preview strong {
    font-size: 19px;
  }
}

@media (max-width: 460px) {
  .quote-section .container {
    width: calc(100% - 24px);
  }

  .quote-form,
  .quote-result {
    padding: 16px;
    border-radius: 18px;
  }

  .quote-choices {
    gap: 5px;
  }

  .quote-hint,
  .quote-options-note {
    font-size: 12px;
  }
}

@container (max-width: 410px) {
  .quote-choice:not(.quote-plan) > span {
    flex-direction: column;
    gap: 4px;
    padding: 6px 3px;
  }

  .quote-choice-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-progress::-webkit-progress-value,
  .quote-choice > span,
  .quote-switch,
  .quote-switch::before {
    transition: none;
  }

  .quote-choice input:not(:disabled) + span:active {
    transform: none;
  }

  .quote-result-plan,
  .quote-preview:not([hidden]) {
    animation: none;
  }
}
