.vq {
  --vq-red: #9c1b0e;
  --vq-red-dark: #701209;
  --vq-ink: #16191d;
  --vq-slate: #505860;
  --vq-line: #dcd8d1;
  --vq-warm: #f7f5f1;
  color: var(--vq-ink);
  font-family: Inter, "Segoe UI", sans-serif;
}

.vq *, .vq *::before, .vq *::after { box-sizing: border-box; }
.vq [hidden] { display: none !important; }
.vq-form { margin: 0; }
.vq-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 34px; }
.vq-progress span { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 14px; color: #697078; border-bottom: 3px solid #d9d7d2; font-size: 14px; font-weight: 700; }
.vq-progress b { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #eceae6; }
.vq-progress .is-active { color: var(--vq-red); border-color: var(--vq-red); }
.vq-progress .is-active b { color: #fff; background: var(--vq-red); }
.vq-progress .is-complete { color: var(--vq-ink); border-color: #829482; }
.vq-progress .is-complete b { color: #fff; background: #657a66; }

.vq-step, .vq-success { animation: vq-enter .25s ease both; }
.vq-heading { max-width: 760px; margin-bottom: 28px; }
.vq-heading h3, .vq-success h3 { margin: 4px 0 8px; color: var(--vq-ink); font-family: Manrope, Inter, sans-serif; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.vq-heading p { margin: 0; color: var(--vq-slate); font-size: 17px; line-height: 1.6; }
.vq-kicker { color: var(--vq-red) !important; font-size: 13px !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.vq-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.vq-fields--nested { padding: 20px; border-radius: 16px; background: var(--vq-warm); }
.vq-field { display: flex; flex-direction: column; gap: 8px; color: var(--vq-ink); font-size: 16px; font-weight: 700; }
.vq-field__label { display: inline-flex; align-items: baseline; gap: 4px; line-height: 1.3; }
.vq-required { color: var(--vq-red); font-weight: 900; }
.vq-field--wide { grid-column: 1 / -1; }
.vq-field input, .vq-field select, .vq-field textarea { width: 100%; min-height: 50px; padding: 11px 13px; color: var(--vq-ink); background: #fff; border: 1px solid #aeb1b3; border-radius: 10px; font: 500 16px/1.35 Inter, sans-serif; }
.vq-field input:focus, .vq-field select:focus, .vq-button:focus-visible, .vq-icon-button:focus-visible, .vq-check input:focus-visible { outline: 3px solid rgba(156, 27, 14, .22); outline-offset: 2px; border-color: var(--vq-red); }
.vq-field input:invalid:not(:placeholder-shown) { border-color: #a1241a; }
.vq-optional { margin-left: 4px; color: #73787e; font-size: 12px; font-weight: 600; }
.vq-note { margin: 0; color: #4d555c; font-size: 14px; line-height: 1.5; }
.vq-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.vq-alert { margin-bottom: 22px; padding: 14px 16px; color: #7e160e; background: #fff0ee; border-left: 4px solid var(--vq-red); border-radius: 8px; font-weight: 700; }
.vq-guidance { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: -6px 0 24px; padding: 16px 18px; color: #3d454c; background: #f3efe8; border-left: 4px solid var(--vq-red); border-radius: 10px; }
.vq-guidance strong { color: var(--vq-red); }
.vq-guidance p { margin: 0; line-height: 1.55; }

.vq-items { display: grid; gap: 16px; margin-bottom: 18px; }
.vq-item { padding: 20px; background: #fff; border: 1px solid var(--vq-line); border-radius: 16px; box-shadow: 0 10px 30px rgba(22, 25, 29, .05); }
.vq-item__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.vq-item__head > strong { font-size: 17px; }
.vq-item__tools { display: flex; gap: 8px; }
.vq-icon-button { min-height: 44px; padding: 8px 12px; color: #4d555c; background: #fff; border: 1px solid #bfc1c1; border-radius: 9px; font: 700 14px Inter, sans-serif; cursor: pointer; }
.vq-icon-button:hover { border-color: var(--vq-ink); color: var(--vq-ink); }
.vq-icon-button--danger { color: #8b1c13; }
.vq-item__grid { display: grid; grid-template-columns: minmax(220px, 2fr) minmax(100px, .7fr) minmax(130px, .8fr) minmax(130px, .8fr) minmax(130px, .8fr); gap: 14px; align-items: end; }
.vq-item__price { display: flex; min-height: 50px; flex-direction: column; justify-content: center; padding: 7px 12px; border-radius: 10px; background: var(--vq-warm); }
.vq-item__price span { color: var(--vq-slate); font-size: 12px; font-weight: 600; }
.vq-item__price strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.vq-product-meta { min-height: 20px; color: var(--vq-slate); font-size: 13px; font-weight: 600; line-height: 1.45; }
.vq-totalbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 22px; padding: 20px 22px; overflow: hidden; color: var(--vq-ink); background: linear-gradient(135deg, #faf8f4, #f1ece5); border: 1px solid var(--vq-line); border-radius: 16px; }
.vq-totalbar::before { position: absolute; inset: 0 auto 0 0; width: 5px; content: ""; background: var(--vq-red); }
.vq-totalbar span, .vq-review__total span { display: flex; flex-direction: column; font-weight: 700; }
.vq-totalbar small, .vq-review__total small { margin-top: 3px; color: var(--vq-slate); font-size: 12px; font-weight: 500; }
.vq-totalbar strong, .vq-review__total strong { color: var(--vq-red); font-size: clamp(24px, 4vw, 32px); font-variant-numeric: tabular-nums; }

.vq-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.vq-actions--end { justify-content: flex-end; }
.vq-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 11px 20px; border: 1px solid transparent; border-radius: 10px; font: 800 15px/1.2 Inter, sans-serif; text-decoration: none !important; cursor: pointer; }
.vq-button--primary { color: #fff !important; background: var(--vq-red); }
.vq-button--primary:hover { background: var(--vq-red-dark); }
.vq-button--secondary { color: var(--vq-ink) !important; background: #fff; border-color: #aeb1b3; }
.vq-button--text { color: var(--vq-ink); background: transparent; }
.vq-button:disabled { cursor: wait; opacity: .65; }

.vq-review { overflow: hidden; border: 1px solid var(--vq-line); border-radius: 16px; }
.vq-review__customer { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding: 18px 20px; background: var(--vq-warm); }
.vq-review__customer div { display: flex; flex-direction: column; gap: 3px; }
.vq-review__customer span { color: var(--vq-slate); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.vq-review__items > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-top: 1px solid var(--vq-line); }
.vq-review__items div > div { display: flex; flex-direction: column; gap: 4px; }
.vq-review__items span { color: var(--vq-slate); font-size: 14px; }
.vq-review__items b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.vq-review__total { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; color: var(--vq-ink); background: linear-gradient(135deg, #faf8f4, #f1ece5); border-top: 3px solid var(--vq-red); }
.vq-check { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; font-size: 15px; line-height: 1.45; }
.vq-check input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: 0; accent-color: var(--vq-red); }
.vq-success { padding: 46px 24px; text-align: center; }
.vq-success__icon { display: grid; width: 58px; height: 58px; place-items: center; margin: 0 auto 18px; color: #fff; background: #547058; border-radius: 50%; font-size: 28px; }
.vq-success p { max-width: 620px; margin: 0 auto 24px; color: var(--vq-slate); font-size: 17px; line-height: 1.55; }
.vq-success .vq-success__mail { margin-top: -10px; padding: 12px 14px; color: #315035; background: #edf5ee; border-radius: 10px; font-size: 14px; font-weight: 700; }
.vq-success .vq-success__mail.is-warning { color: #7b3c0b; background: #fff4e7; }
.vq-success .vq-button { margin: 5px; }

@media (max-width: 940px) {
  .vq-item__grid { grid-template-columns: 1.5fr .7fr 1fr 1fr; }
  .vq-item__price { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (max-width: 680px) {
  .vq-progress { gap: 4px; }
  .vq-progress span { flex-direction: column; align-items: flex-start; gap: 5px; padding-inline: 6px; font-size: 12px; }
  .vq-progress b { width: 26px; height: 26px; }
  .vq-fields, .vq-fields--nested, .vq-review__customer { grid-template-columns: 1fr; }
  .vq-field--wide { grid-column: auto; }
  .vq-item { padding: 16px; }
  .vq-item__head { align-items: flex-start; flex-direction: column; }
  .vq-item__tools { width: 100%; }
  .vq-icon-button { min-height: 48px; flex: 1; }
  .vq-item__grid { grid-template-columns: 1fr 1fr; }
  .vq-field--product, .vq-item__price { grid-column: 1 / -1; }
  .vq-field { font-size: 16px; }
  .vq-field input, .vq-field select { min-height: 52px; }
  .vq-actions { align-items: stretch; flex-direction: column-reverse; }
  .vq-actions .vq-button { width: 100%; min-height: 52px; }
  .vq-actions--end { flex-direction: column; }
  .vq-review__items > div { align-items: flex-start; flex-direction: column; gap: 8px; }
  .vq-review__items b { align-self: flex-end; }
  .vq-review__total { align-items: flex-end; flex-direction: column; }
  .vq-guidance { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .vq-item__grid { grid-template-columns: 1fr; }
  .vq-field--product, .vq-item__price { grid-column: auto; }
  .vq-totalbar { align-items: flex-start; flex-direction: column; }
  .vq-totalbar strong { align-self: flex-end; }
}

@keyframes vq-enter { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .vq-step, .vq-success { animation: none; } }
