/* ============================================================
 * MarkupFox — Order Wizard v2
 * Linear/Stripe minimal aesthetic, teal-on-white.
 * Design source: Order Wizard.html (Variant A · Safe)
 * ============================================================ */

@import "/css/_tokens.generated.css";
@import "/css/_bottom-sheet.generated.css";
/* Tokens sourced from @markupfox/ui-tokens via scripts/copy-tokens.cjs */

.ow {
  font-family: var(--ow-sans);
  color: var(--ow-ink);
  background: #f0eee9;
  /* Top padding clears the fixed site navbar (~84px) plus a comfortable
     gap. Bottom padding keeps the success view from butting against the
     footer on short screens. */
  padding: 112px 0 64px;
}

.ow *,
.ow *::before,
.ow *::after { box-sizing: border-box; }

.ow button { font-family: inherit; }

/* ── Layout shell ─────────────────────────────────────────── */
.ow__container {
  max-width: 1280px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--ow-line);
  box-shadow: 0 1px 2px rgba(15, 28, 29, 0.04);
  overflow: hidden;
}

.ow__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid var(--ow-line-2);
  background: #fff;
}

.ow__topbar-trust {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
  color: var(--ow-muted);
}

.ow__topbar-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ow__topbar-brand {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--ow-ink);
}

.ow__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  min-height: 760px;
  border-top: 1px solid var(--ow-line);
}

.ow__grid--single {
  grid-template-columns: 1fr;
}

.ow__main {
  padding: 36px 48px 56px;
  min-width: 0;
}

@media (max-width: 1024px) {
  .ow__grid,
  .ow__grid--single {
    grid-template-columns: 1fr;
  }
  .ow__main { padding: 28px 24px 40px; }
}

/* ── Stepper ──────────────────────────────────────────────── */
.ow-stepper {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
}

.ow-stepper__item {
  all: unset;
  cursor: default;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--ow-muted-2);
  font-weight: 500;
}

.ow-stepper__item.is-clickable { cursor: pointer; }
.ow-stepper__item.is-active { color: var(--ow-ink); font-weight: 600; }
.ow-stepper__item.is-done { color: var(--ow-ink-2); }

.ow-stepper__circle {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: #fff;
  border: 1.5px solid var(--ow-line);
  color: var(--ow-muted-2);
}

.ow-stepper__item.is-active .ow-stepper__circle {
  border: 2px solid var(--ow-teal);
  color: var(--ow-teal);
}

.ow-stepper__item.is-done .ow-stepper__circle {
  background: var(--ow-teal);
  border-color: var(--ow-teal);
  color: #fff;
}

.ow-stepper__divider {
  flex: 0 0 56px;
  height: 1.5px;
  margin: 0 16px;
  background: var(--ow-line);
}

.ow-stepper__divider.is-filled { background: var(--ow-teal); }

/* ── Step heading ─────────────────────────────────────────── */
.ow-step__title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1.15;
}

.ow-step__subtitle {
  font-size: 15px;
  color: var(--ow-muted);
  margin: 0 0 28px;
  line-height: 1.5;
}

/* ── Step 1: Service picker ──────────────────────────────── */
.ow-cat {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--ow-bg-soft);
  border-radius: 10px;
  margin-bottom: 24px;
}

.ow-cat__btn {
  all: unset;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ow-muted);
  transition: background 0.15s, color 0.15s;
}

.ow-cat__btn:not(.is-active):hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ow-ink-2);
}

.ow-cat__btn.is-active {
  background: #fff;
  color: var(--ow-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--ow-line);
}

.ow-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 900px) {
  .ow-services { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ow-services { grid-template-columns: 1fr; }
}

.ow-service {
  all: unset;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  min-height: 210px;
  border-radius: 12px;
  border: 1px solid var(--ow-line);
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease,
              box-shadow 0.15s ease;
}

.ow-service:hover {
  border-color: var(--ow-teal-100);
  box-shadow: 0 4px 14px rgba(15, 28, 29, 0.06);
}

.ow-service.is-active {
  border: 1.5px solid var(--ow-teal);
  background: var(--ow-teal-50);
}

.ow-service__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 44×44 rounded square in the top-left of the card. Holds either an
   API-provided thumbnail (cropped to fit) or a fallback SVG glyph
   layered behind it. The class `.is-fallback` (set on <img> error)
   hides the broken thumbnail and reveals the fallback. */
.ow-service__icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ow-line-2);
  color: var(--ow-muted);
  box-shadow: 0 1px 2px rgba(15, 28, 29, 0.04);
  overflow: hidden;
  flex-shrink: 0;
}

.ow-service__icon-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ow-muted);
}

.ow-service__icon-img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.ow-service__icon.is-fallback .ow-service__icon-img { display: none; }

.ow-service__check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--ow-teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ow-service__name {
  font-weight: 600;
  font-size: 15px;
  margin: 0 0 4px;
}

.ow-service__blurb {
  font-size: 13px;
  color: var(--ow-muted);
  line-height: 1.45;
  margin: 0 0 10px;
}

.ow-service__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}

.ow-service__price-from { font-size: 11px; color: var(--ow-muted); }
.ow-service__price-amt { font-weight: 600; font-size: 18px; }
.ow-service__price-quote { font-size: 12.5px; color: var(--ow-muted); font-weight: 500; }

/* Tech stack chips */
.ow-stack {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.ow-stack__chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px 3px 4px;
  background: var(--ow-bg-soft);
  border: 1px solid var(--ow-line);
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ow-ink-2);
  font-family: var(--ow-mono);
  letter-spacing: 0.02em;
}

/* ── Timeline cards (Step 1) ───────────────────────────── */
.ow-timeline { margin-top: 36px; }

/* When inlined at the top of Step 2 (above the homepages/inner-pages
   number cards), drop the legacy top-margin and add breathing room
   between the timeline and the scope grid below. */
.ow-timeline--inline {
  margin-top: 0;
  margin-bottom: 28px;
}

.ow-timeline__h {
  font-size: 13px;
  font-weight: 600;
  color: var(--ow-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.ow-timeline__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 600px) {
  .ow-timeline__grid { grid-template-columns: 1fr; }
}

.ow-timeline__card {
  all: unset;
  cursor: pointer;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--ow-line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.15s, background 0.15s;
}

.ow-timeline__card:hover { border-color: var(--ow-teal-100); }

.ow-timeline__card.is-active {
  border: 1.5px solid var(--ow-teal);
  background: var(--ow-teal-50);
}

.ow-timeline__name { font-weight: 600; font-size: 14px; }
.ow-timeline__days { font-size: 12.5px; color: var(--ow-muted); margin-top: 2px; }

.ow-timeline__sub {
  font-size: 12px;
  color: var(--ow-muted);
  font-weight: 500;
}

.ow-timeline__sub.is-active { color: var(--ow-teal); }

/* ── Step 2: Scope ─────────────────────────────────────── */
.ow-scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

@media (max-width: 720px) {
  .ow-scope-grid { grid-template-columns: 1fr; }
}

.ow-scope-card {
  padding: 18px;
  border: 1px solid var(--ow-line);
  border-radius: 12px;
}

.ow-scope-card__label {
  font-size: 13px;
  color: var(--ow-muted);
  margin-bottom: 10px;
}

.ow-scope-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ow-scope-card__hint {
  font-size: 12.5px;
  color: var(--ow-muted);
  text-align: right;
}

.ow-numinp {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ow-line);
  border-radius: 9px;
  overflow: hidden;
  width: fit-content;
}

.ow-numinp__btn {
  all: unset;
  cursor: pointer;
  padding: 10px 14px;
  color: var(--ow-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ow-numinp__btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ow-numinp__btn:hover:not(:disabled) { color: var(--ow-ink); background: var(--ow-bg-soft); }

.ow-numinp__val {
  padding: 8px 22px;
  font-weight: 600;
  font-size: 15px;
  min-width: 46px;
  text-align: center;
  border-left: 1px solid var(--ow-line);
  border-right: 1px solid var(--ow-line);
  font-variant-numeric: tabular-nums;
}

/* Add-ons */
.ow-addons-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ow-addons-head h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 2px;
}

.ow-addons-head p {
  font-size: 13px;
  color: var(--ow-muted);
  margin: 0;
}

.ow-addons-count {
  font-size: 12.5px;
  color: var(--ow-muted);
}

.ow-addons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 720px) {
  .ow-addons { grid-template-columns: 1fr; }
}

/* The whole card is the click target — stable size, no inner hover swap.
   This eliminates the flicker the previous "Added ↔ Remove" swap caused
   when the button text/SVG changed widths on hover. */
.ow-addon {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--ow-line);
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease,
              box-shadow 0.15s ease, transform 0.05s ease;
}

.ow-addon:hover {
  border-color: var(--ow-teal-100);
  box-shadow: 0 1px 3px rgba(15, 28, 29, 0.04);
}

.ow-addon:focus-visible {
  outline: none;
  border-color: var(--ow-teal);
  box-shadow: 0 0 0 3px var(--ow-teal-50);
}

.ow-addon:active { transform: translateY(0.5px); }

.ow-addon.is-active {
  border: 1.5px solid var(--ow-teal);
  background: var(--ow-teal-50);
}

.ow-addon.is-active:hover {
  background: #ddebeb;
  border-color: var(--ow-teal);
}

.ow-addon__body { flex: 1; min-width: 0; }

.ow-addon__name {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 2px;
}

.ow-addon__desc {
  font-size: 12.5px;
  color: var(--ow-muted);
  line-height: 1.45;
  margin: 0;
}

.ow-addon__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.ow-addon__price {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

/* Visual state pill — not a separate click target, just reflects state. */
.ow-addon__btn {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #fff;
  color: var(--ow-ink-2);
  border: 1px solid var(--ow-line);
  text-align: center;
  min-width: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  pointer-events: none; /* the card receives clicks */
}

.ow-addon__btn--active {
  background: var(--ow-teal);
  color: #fff;
  border-color: var(--ow-teal);
}

/* ── Step 3: Submit ──────────────────────────────────── */
.ow-banner {
  padding: 14px;
  background: var(--ow-bg-soft);
  border-radius: 10px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ow-muted);
}

.ow-banner a {
  color: var(--ow-teal);
  font-weight: 500;
  text-decoration: none;
}
.ow-banner a:hover { text-decoration: underline; }

.ow-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 720px) {
  .ow-row-2 { grid-template-columns: 1fr; }
}

.ow-field { margin-bottom: 14px; }

.ow-field__label {
  font-size: 12.5px;
  color: var(--ow-muted);
  margin-bottom: 6px;
  font-weight: 500;
  display: block;
}

.ow-field__label .ow-req { color: var(--ow-danger); }

.ow-field__wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ow-field__icon {
  position: absolute;
  left: 12px;
  color: var(--ow-muted-2);
  display: inline-flex;
  pointer-events: none;
}

.ow-input,
.ow-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ow-line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: #fff;
  color: var(--ow-ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ow-input:focus,
.ow-textarea:focus {
  border-color: var(--ow-teal);
  box-shadow: 0 0 0 3px var(--ow-teal-50);
}

.ow-input--with-icon { padding-left: 36px; }

.ow-field.has-error .ow-input,
.ow-field.has-error .ow-textarea {
  border-color: var(--ow-danger);
  background: #fdf6f6;
}

.ow-field__err {
  font-size: 12px;
  color: var(--ow-danger);
  margin-top: 4px;
  display: none;
}

.ow-field.has-error .ow-field__err { display: block; }

/* Chip-style reference URL input. Single field — pressing Enter (or
 * pasting whitespace-separated URLs) commits values as removable chips. */
.ow-chip-input {
  position: relative;
  padding: 10px 12px;
  border: 1px solid var(--ow-line);
  border-radius: 11px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ow-chip-input:focus-within {
  border-color: var(--ow-teal);
  box-shadow: 0 0 0 3px var(--ow-teal-50);
}

.ow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.ow-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 8px;
  border: 1px solid var(--ow-teal-100);
  border-radius: 999px;
  background: var(--ow-teal-50);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ow-ink-2);
  max-width: 100%;
  animation: ow-chip-in 0.16s ease-out;
}

@keyframes ow-chip-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.ow-chip__icon {
  color: var(--ow-teal-deep);
  display: inline-flex;
  flex-shrink: 0;
}

.ow-chip__label {
  color: var(--ow-ink-2);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
  font-family: var(--ow-mono);
  font-size: 11.5px;
}

.ow-chip__label:hover { text-decoration: underline; color: var(--ow-teal-deep); }

.ow-chip__x {
  all: unset;
  cursor: pointer;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--ow-muted);
  margin-left: 2px;
  flex-shrink: 0;
  transition: background 0.12s ease, color 0.12s ease;
}

.ow-chip__x:hover { background: var(--ow-danger); color: #fff; }

.ow-chip-input__field {
  position: relative;
  display: flex;
  align-items: center;
}

.ow-chip-input__icon {
  position: absolute;
  left: 6px;
  color: var(--ow-muted-2);
  display: inline-flex;
  pointer-events: none;
}

.ow-chip-input__input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 4px 4px 4px 30px !important;
  background: transparent !important;
  width: 100%;
  font-size: 14px;
}

.ow-chip-input__hint {
  font-size: 12px;
  color: var(--ow-danger);
  margin-top: 6px;
  min-height: 16px;
}

.ow-chip-input__hint:empty { display: none; }

.ow-chip-input__counter {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 11px;
  color: var(--ow-muted-2);
  font-family: var(--ow-mono);
}

.ow-chip-input.is-full {
  border-style: dashed;
  background: var(--ow-bg-soft);
}

.ow-chip-input.has-error {
  border-color: var(--ow-danger);
  background: #fdf6f6;
}

.ow-chip-input.has-error:focus-within {
  border-color: var(--ow-danger);
  box-shadow: 0 0 0 3px rgba(193, 79, 79, 0.12);
}

.ow-field__opt {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ow-muted-2);
  margin-left: 4px;
}

/* Cloudflare Turnstile widget host */
.ow-turnstile {
  margin-top: 14px;
  min-height: 0;
}
.ow-turnstile:empty { margin: 0; }

/* Success-screen account-created note */
.ow-success__note {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  margin: 18px 0 24px;
  background: var(--ow-teal-50);
  border: 1px solid var(--ow-teal-100);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ow-ink-2);
  line-height: 1.5;
}

.ow-success__note svg {
  color: var(--ow-teal);
  flex-shrink: 0;
  margin-top: 2px;
}

.ow-success__note a {
  color: var(--ow-teal-deep);
  font-weight: 600;
  text-decoration: underline;
}

/* Coupon-card variants */
.ow-coupon--invalid {
  background: #fdf6f6;
  border-color: var(--ow-danger);
}

.ow-coupon--invalid .ow-coupon__chip {
  background: var(--ow-danger);
}

/* File uploader */
.ow-uploader__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 18px 0 8px;
}

.ow-uploader__head-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ow-ink-2);
}

.ow-uploader__head-meta {
  font-size: 12px;
  color: var(--ow-muted);
}

.ow-dropzone {
  display: block;
  width: 100%;
  border: 1.5px dashed var(--ow-teal-100);
  border-radius: 12px;
  padding: 28px 20px;
  background: var(--ow-teal-50);
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}

.ow-dropzone:hover,
.ow-dropzone.is-dragover {
  background: var(--ow-teal-100);
  border-color: var(--ow-teal);
}

.ow-dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.ow-dropzone__icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--ow-teal-100);
  align-items: center;
  justify-content: center;
  color: var(--ow-teal);
  margin-bottom: 10px;
}

.ow-dropzone__cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ow-ink);
}

.ow-dropzone__cta-link {
  color: var(--ow-teal);
  text-decoration: underline;
}

.ow-dropzone__hint {
  font-size: 12px;
  color: var(--ow-muted);
  margin-top: 6px;
}

.ow-files {
  margin-top: 10px;
  border: 1px solid var(--ow-line);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}

.ow-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--ow-line-2);
}

.ow-file:first-child { border-top: none; }

.ow-file__ext {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--ow-mono);
  flex-shrink: 0;
  text-transform: uppercase;
}

.ow-file__body {
  flex: 1;
  min-width: 0;
}

.ow-file__name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ow-file__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}

.ow-file__size {
  font-size: 11.5px;
  color: var(--ow-muted);
  font-family: var(--ow-mono);
}

.ow-file__bar {
  flex: 1;
  max-width: 200px;
  height: 4px;
  background: var(--ow-line-2);
  border-radius: 2px;
  overflow: hidden;
}

.ow-file__bar-fill {
  height: 100%;
  background: var(--ow-teal);
  transition: width 0.2s;
}

.ow-file__pct {
  font-size: 11.5px;
  color: var(--ow-teal);
  font-weight: 600;
  font-family: var(--ow-mono);
}

.ow-file__done {
  font-size: 11.5px;
  color: var(--ow-good);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.ow-file__err {
  font-size: 11.5px;
  color: var(--ow-danger);
  font-weight: 500;
}

.ow-file__remove {
  all: unset;
  cursor: pointer;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ow-muted-2);
}

.ow-file__remove:hover { color: var(--ow-ink); background: var(--ow-line-2); }

/* Rich Text Editor */
.ow-rte {
  border: 1px solid var(--ow-line);
  border-radius: 11px;
  background: #fff;
  overflow: hidden;
}

.ow-rte__toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--ow-line-2);
  background: var(--ow-bg-soft);
  flex-wrap: wrap;
}

.ow-rte__sel {
  all: unset;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--ow-ink-2);
}

.ow-rte__sep {
  width: 1px;
  height: 18px;
  background: var(--ow-line);
  margin: 0 6px;
}

.ow-rte__btn {
  all: unset;
  cursor: pointer;
  width: 30px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ow-ink-2);
  font-size: 13px;
  font-weight: 600;
}

.ow-rte__btn:hover { background: var(--ow-line-2); }
.ow-rte__btn.is-active { background: var(--ow-teal-50); color: var(--ow-teal); }

.ow-rte__count {
  margin-left: auto;
  font-size: 11px;
  color: var(--ow-muted-2);
  padding: 0 8px;
  font-family: var(--ow-mono);
}

.ow-rte__editor {
  padding: 14px 16px;
  min-height: 120px;
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  color: var(--ow-ink-2);
}

.ow-rte__editor:empty::before {
  content: attr(data-placeholder);
  color: var(--ow-muted-2);
  pointer-events: none;
}

.ow-rte__editor p { margin: 0 0 8px; }
.ow-rte__editor ul,
.ow-rte__editor ol { margin: 0 0 8px; padding-left: 20px; }

/* Coupon */
.ow-coupon {
  display: flex;
  gap: 8px;
}

.ow-coupon__inp-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.ow-coupon__inp-wrap .ow-coupon__icon {
  position: absolute;
  left: 12px;
  color: var(--ow-muted-2);
  pointer-events: none;
}

.ow-coupon__input {
  width: 100%;
  padding: 12px 14px 12px 36px;
  border: 1px solid var(--ow-line);
  border-radius: 10px;
  font-family: var(--ow-mono);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  outline: none;
  text-transform: uppercase;
  background: #fff;
  color: var(--ow-ink);
}

.ow-coupon__input:focus {
  border-color: var(--ow-teal);
  box-shadow: 0 0 0 3px var(--ow-teal-50);
}

.ow-coupon__btn {
  all: unset;
  cursor: pointer;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  background: var(--ow-ink);
  color: #fff;
  text-align: center;
  transition: background 0.15s ease;
}

.ow-coupon__btn:hover:not(:disabled) { background: var(--ow-ink-2); }

.ow-coupon__btn:disabled { opacity: 0.5; cursor: not-allowed; }

.ow-coupon--applied {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--ow-teal-50);
  border: 1px solid var(--ow-teal-100);
  border-radius: 10px;
}

.ow-coupon__badge {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--ow-teal-100);
  color: var(--ow-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ow-coupon__info { flex: 1; min-width: 0; }
.ow-coupon__code {
  font-family: var(--ow-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ow-ink-2);
}

.ow-coupon__chip {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--ow-teal);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-left: 8px;
}

.ow-coupon__msg {
  font-size: 12px;
  margin-top: 2px;
  font-weight: 500;
}

.ow-coupon__msg--ok { color: var(--ow-good); }
.ow-coupon__msg--err { color: var(--ow-danger); }

.ow-coupon__remove {
  all: unset;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--ow-muted);
  font-weight: 500;
  text-decoration: underline;
}

/* Checkbox card */
.ow-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--ow-line);
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--ow-ink-2);
  cursor: pointer;
}

.ow-check input[type='checkbox'] {
  margin-top: 2px;
  accent-color: var(--ow-teal);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ow-check a { color: var(--ow-teal); }

.ow-check.has-error {
  border-color: var(--ow-danger);
  background: #fdf6f6;
}

/* ── Navigation buttons ──────────────────────────────── */
.ow-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--ow-line-2);
  gap: 12px;
}

/* Step 1 has no bottom nav (service cards auto-advance on click). Collapse
   the row so the orphan top-border doesn't leave a stray line above the
   footer when there are no buttons to anchor it. */
.ow-nav--empty {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ow-btn {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: opacity 0.15s, background 0.15s;
}

/* Full-width variant. Pairs with .ow-btn__inner so the icon + label group
 * stays content-sized and is centered, rather than the (svg + whitespace
 * text node + span) flex children spreading across the full button width. */
.ow-btn--block {
  display: flex;
  width: 100%;
  justify-content: center;
}
.ow-btn__inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ow-btn--ghost {
  padding: 10px 16px;
  font-weight: 500;
  color: var(--ow-ink-2);
  border: 1px solid var(--ow-line);
  background: #fff;
}

.ow-btn--ghost:hover:not(:disabled) {
  background: var(--ow-bg-soft);
  border-color: var(--ow-line);
  color: var(--ow-ink);
}

.ow-btn--ghost:disabled {
  color: var(--ow-muted-2);
  opacity: 0.55;
  cursor: not-allowed;
}

/* Brand-primary action button — used for in-flow next/continue actions
   (e.g. Step 2 "Continue", Step 3 "Submit request"). Matches the existing
   teal CTA color so the primary action is unmistakable. */
.ow-btn--primary {
  background: var(--ow-teal);
  color: #fff;
  border: 1px solid var(--ow-teal);
  box-shadow: 0 1px 2px rgba(15, 28, 29, 0.06);
  transition: background 0.16s ease, box-shadow 0.16s ease,
              transform 0.06s ease, border-color 0.16s ease;
}

.ow-btn--primary:hover:not(:disabled) {
  /* No transform / glow — kept the elevation effect off the success-page
   * primary CTA so the button text stays sharp. The hover is a clean
   * darken-only state. */
  background: var(--ow-teal-deep);
  border-color: var(--ow-teal-deep);
  box-shadow: 0 1px 3px rgba(15, 28, 29, 0.10);
}

.ow-btn--primary:active:not(:disabled) {
  background: var(--ow-teal-deep);
  box-shadow: 0 1px 2px rgba(15, 28, 29, 0.06);
}

.ow-btn--primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ow-teal-50), 0 4px 12px rgba(30, 138, 138, 0.22);
}

.ow-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* High-emphasis CTA — same brand color as --primary but bigger padding for
   final-step / final-action buttons (Step 3 "Submit request", custom
   proposal flow). Hover/focus mirrors --primary for consistency. */
.ow-btn--cta {
  padding: 14px 24px;
  font-size: 15px;
  background: var(--ow-teal);
  color: #fff;
  border: 1px solid var(--ow-teal);
  box-shadow: 0 1px 2px rgba(15, 28, 29, 0.06);
  transition: background 0.16s ease, box-shadow 0.16s ease,
              transform 0.06s ease, border-color 0.16s ease;
}

.ow-btn--cta:hover:not(:disabled) {
  background: var(--ow-teal-deep);
  border-color: var(--ow-teal-deep);
  box-shadow: 0 6px 18px rgba(30, 138, 138, 0.26);
  transform: translateY(-1px);
}

.ow-btn--cta:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(15, 28, 29, 0.06);
}

.ow-btn--cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ow-teal-50), 0 6px 18px rgba(30, 138, 138, 0.26);
}

.ow-btn--cta:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ── Summary drawer (right column) ────────────────── */
.ow-summary {
  border-left: 1px solid var(--ow-line);
  background: var(--ow-bg-soft);
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ow-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ow-summary__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ow-muted);
}

.ow-summary__service {
  padding: 14px;
  background: #fff;
  border: 1px solid var(--ow-line);
  border-radius: 11px;
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0 20px 0;
}

.ow-summary__service-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--ow-teal-50);
  color: var(--ow-teal);
  flex-shrink: 0;
  overflow: hidden;
}

.ow-summary__service-icon-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ow-summary__service-icon img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

.ow-summary__service-icon.is-fallback img { display: none; }

.ow-summary__service-name {
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.ow-summary__service-meta {
  font-size: 12.5px;
  color: var(--ow-muted);
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ow-summary__lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.ow-summary__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.ow-summary__line span:first-child { color: var(--ow-ink-2); }
.ow-summary__line.is-muted span { color: var(--ow-muted); }
.ow-summary__line.is-discount span { color: var(--ow-good); }

.ow-summary__line-val {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.ow-summary__sep {
  height: 1px;
  background: var(--ow-line);
  margin: 6px 0;
}

.ow-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.ow-summary__total-label { font-size: 14px; color: var(--ow-ink-2); }

.ow-summary__total-val {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.ow-summary__empty {
  padding: 24px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--ow-muted);
  background: #fff;
  border: 1px dashed var(--ow-line);
  border-radius: 11px;
}

.ow-summary__pay {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.ow-paypal {
  border-radius: 9px;
  overflow: hidden;
}

/* Wraps the PayPal SDK target div + a sub-line hint. When the Step 3 form
   isn't complete, the wrapper goes "is-disabled" — rendered buttons stay
   visible but become non-interactive (createOrder also re-validates as a
   safety net so JS state drift can't bypass this). */
.ow-paypal-wrap {
  position: relative;
  transition: opacity 0.18s ease;
}

.ow-paypal-wrap.is-disabled .ow-paypal {
  opacity: 0.45;
  pointer-events: none;
  filter: saturate(0.6);
}
/* The escape-hatch link stays clickable even when fields are missing — a
 * non-Indian buyer who got auto-routed to Razorpay should be able to
 * switch to PayPal before filling the form. */
.ow-paypal-wrap.is-disabled .ow-paypal__fallback {
  opacity: 1;
  pointer-events: auto;
  filter: none;
}

.ow-paypal__hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 10px;
  background: var(--ow-bg-soft);
  border: 1px solid var(--ow-line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--ow-muted);
  line-height: 1.4;
}

.ow-paypal__hint svg { flex-shrink: 0; color: var(--ow-muted-2); }

/* Escape-hatch link beneath the Razorpay CTA: "Outside India? Pay in USD via
 * PayPal instead". Deliberately NOT styled like .ow-paypal__hint (which is
 * the bordered disabled-state card) — this is a low-emphasis text link. */
.ow-paypal__fallback {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  font: inherit;
  text-align: center;
  color: var(--ow-muted);
  font-size: 12.5px;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.ow-paypal__fallback:hover { color: var(--ow-ink); }
.ow-paypal__fallback:focus-visible {
  outline: none;
  color: var(--ow-ink);
  box-shadow: 0 0 0 2px var(--ow-teal-50);
  border-radius: 4px;
}

/* In-button loading state on the Razorpay/PayPal CTA after the user clicks
 * "Pay" but before the gateway modal opens. Buttons SDKs handle their own
 * spinners internally; this is for our pre-gateway window (createOrder API
 * call + SDK lazy-load). */
.ow-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}
.ow-btn.is-loading .ow-spinner {
  width: 14px;
  height: 14px;
  border-width: 2px;
}

.ow-paypal__error {
  padding: 14px;
  border: 1px solid var(--ow-danger);
  border-radius: 9px;
  background: #fdf6f6;
  color: var(--ow-danger);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.45;
}

.ow-paypal__error strong { font-size: 13px; }

.ow-paypal__retry {
  align-self: flex-start;
  margin-top: 4px;
  padding: 6px 12px;
  background: #fff;
  color: var(--ow-danger);
  border: 1px solid var(--ow-danger);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.ow-paypal__retry:hover { background: var(--ow-danger); color: #fff; }

.ow-paypal__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  color: var(--ow-muted);
  font-size: 13px;
}

.ow-paypal__loading .ow-spinner {
  width: 14px;
  height: 14px;
}

.ow-summary__trust {
  border-top: 1px solid var(--ow-line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ow-trust-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.ow-trust-item__ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--ow-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ow-teal);
  flex-shrink: 0;
}

.ow-trust-item__title {
  font-size: 12.5px;
  font-weight: 600;
  margin: 0;
}

.ow-trust-item__body {
  font-size: 11.5px;
  color: var(--ow-muted);
  line-height: 1.4;
  margin: 0;
}

/* ── Success ──────────────────────────────────────── */
.ow-success {
  position: relative; /* anchors .ow-confetti-host */
  padding: 64px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .ow-success { grid-template-columns: 1fr; padding: 40px 28px; }
}

.ow-success__chip {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--ow-teal-50);
  color: var(--ow-teal-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.ow-success__title {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 16px;
}

.ow-success__body {
  font-size: 16px;
  color: var(--ow-muted);
  line-height: 1.5;
  margin: 0 0 28px;
}

.ow-success__body b { color: var(--ow-ink); }

.ow-success__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ow-success__panel {
  padding: 28px;
  background: var(--ow-bg-soft);
  border-radius: 16px;
  border: 1px solid var(--ow-line);
}

.ow-success__panel-h {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ow-muted);
  margin: 0 0 14px;
}

.ow-success__step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--ow-line);
}

.ow-success__step:first-of-type { border-top: none; }

.ow-success__step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ow-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ow-teal);
  flex-shrink: 0;
}

.ow-success__step-title { font-weight: 600; font-size: 14px; margin: 0 0 2px; }
.ow-success__step-body { font-size: 13px; color: var(--ow-muted); line-height: 1.45; margin: 0; }

/* ── Toast ────────────────────────────────────────── */
.ow-toast-host {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 360px;
}

.ow-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--ow-line);
  border-left: 3px solid var(--ow-danger);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(15, 28, 29, 0.12);
  font-size: 13.5px;
  color: var(--ow-ink-2);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.2s, transform 0.2s;
}

.ow-toast.is-visible { opacity: 1; transform: translateX(0); }
.ow-toast--error { border-left-color: var(--ow-danger); }
.ow-toast--info { border-left-color: var(--ow-teal); }
.ow-toast--success { border-left-color: var(--ow-good); }

.ow-toast__close {
  all: unset;
  cursor: pointer;
  color: var(--ow-muted-2);
  margin-left: auto;
  padding: 2px;
}

/* ── Loading + overlay ───────────────────────────── */
.ow-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ow-line);
  border-top-color: var(--ow-teal);
  border-radius: 50%;
  animation: ow-spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes ow-spin { to { transform: rotate(360deg); } }

.ow-empty {
  padding: 48px 16px;
  text-align: center;
  color: var(--ow-muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ow-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 29, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: ow-overlay-in 0.18s ease-out;
}
@keyframes ow-overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ow-overlay__card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 32px 36px;
  min-width: 280px;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(15, 28, 29, 0.25);
  animation: ow-overlay-card-in 0.22s ease-out;
}
@keyframes ow-overlay-card-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ow-overlay__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ow-teal-50, rgba(30, 138, 138, 0.12));
  display: flex;
  align-items: center;
  justify-content: center;
}
.ow-overlay__icon .ow-spinner {
  width: 22px;
  height: 22px;
  border-width: 2.5px;
  border-color: var(--ow-teal);
  border-top-color: transparent;
}

.ow-overlay__title {
  font-family: var(--ow-font-heading, inherit);
  font-size: 16px;
  font-weight: 600;
  color: var(--ow-ink);
  margin: 0;
  line-height: 1.35;
}
.ow-overlay__sub {
  font-size: 13px;
  color: var(--ow-muted);
  margin: 0;
  line-height: 1.45;
}

/* ── Confetti on success ───────────────────────────────────────
 * One-shot CSS animation, ~2.5s. JS injects N <span class="ow-confetti">
 * elements with inline left/delay/color/rotation, then removes the host
 * after the animation completes. Pointer-events:none so it never blocks
 * clicks on the underlying success card. */
.ow-confetti-host {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}
.ow-confetti {
  position: absolute;
  top: -16px;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: 0;
  animation-name: ow-confetti-fall;
  animation-timing-function: cubic-bezier(0.4, 0.05, 0.5, 1);
  animation-fill-mode: forwards;
}
@keyframes ow-confetti-fall {
  0%   { opacity: 0; top: -16px;  transform: rotate(0deg)   scale(1); }
  10%  { opacity: 1; }
  100% { opacity: 0; top: 200px; transform: rotate(720deg) scale(0.6); }
}
@media (prefers-reduced-motion: reduce) {
  .ow-confetti-host { display: none; }
}

/* ── Success-view payment-failed banner ─────────────────────────
 * Shown only when the order saved but the payment attempt failed. The
 * order is in a payable-pending state on the server; this nudges the user
 * to retry from the dashboard. */
.ow-success__alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  padding: 14px 16px;
  background: #fff8e1;
  border: 1px solid #f4c542;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #6a4a05;
}
.ow-success__alert-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f4c542;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.ow-success__alert-body { flex: 1; min-width: 0; }
.ow-success__alert-title {
  font-weight: 600;
  color: #4a3403;
  margin: 0 0 2px;
}
.ow-success__alert a {
  color: #4a3403;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ow-success__alert a:hover { color: #2c1f02; }

/* ── Hidden ──────────────────────────────────────── */
.ow-hidden { display: none !important; }

/* ── Transitions ────────────────────────────────────
 * Step content slides + fades in on every step change. The class is added
 * by the wizard controller right after innerHTML swap; CSS animation
 * auto-plays once. Forced reflow in JS makes consecutive transitions retrigger.
 * ─────────────────────────────────────────────────── */
@keyframes ow-step-in {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ow-step--enter {
  animation: ow-step-in 0.26s ease-out both;
  will-change: transform, opacity;
}

/* Order summary slides in from the right the first time it appears
 * (when the user picks a service on Step 1). */
@keyframes ow-summary-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ow-summary--enter {
  animation: ow-summary-in 0.32s ease-out both;
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  .ow-step--enter,
  .ow-summary--enter { animation: none; }
}

/* ───────────────────────────────────────────────────
 * Responsive — desktop ▸ tablet ▸ mobile
 * Breakpoints:
 *   1024px  → collapse 2-col grid, summary moves below main
 *   768px   → tighter padding, single-col service / add-on grids
 *   600px   → full mobile: hide topbar trust strip, scrollable
 *             category tabs, condensed stepper, larger tap targets
 * ─────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .ow {
    padding: 96px 0 40px;
  }

  .ow__container {
    border-radius: 12px;
    margin: 0 12px;
  }

  .ow__topbar {
    padding: 14px 20px;
  }

  .ow__topbar-trust {
    gap: 14px;
    font-size: 12px;
  }

  .ow__main {
    padding: 24px 20px 36px;
  }

  /* Summary becomes a stacked panel below the main column. */
  .ow-summary {
    border-left: none;
    border-top: 1px solid var(--ow-line);
    padding: 24px 20px 28px;
  }
}

@media (max-width: 768px) {
  .ow-step__title { font-size: 26px; }
  .ow-step__subtitle { font-size: 14px; margin-bottom: 22px; }

  .ow-services { grid-template-columns: 1fr 1fr; }
  .ow-addons { grid-template-columns: 1fr; }
  .ow-scope-grid { grid-template-columns: 1fr; }
  .ow-row-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .ow {
    padding: 80px 0 0;
  }

  .ow__container {
    border-radius: 0;
    margin: 0;
    border-left: 0;
    border-right: 0;
    box-shadow: none;
  }

  .ow__topbar {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 6px;
  }

  /* The trust strip eats the brand on phones — drop it. */
  .ow__topbar-trust { display: none; }
  .ow__topbar-brand { font-size: 13px; }

  .ow__main {
    padding: 20px 16px 32px;
  }

  /* Stepper: shrink labels and dividers on phones. */
  .ow-stepper {
    margin-bottom: 22px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ow-stepper::-webkit-scrollbar { display: none; }

  .ow-stepper__divider {
    flex: 0 0 24px;
    margin: 0 6px;
  }
  .ow-stepper__item span:last-child { font-size: 12.5px; white-space: nowrap; }

  .ow-step__title { font-size: 22px; }

  /* Category tabs scroll horizontally instead of wrapping awkwardly. */
  .ow-cat {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
  }
  .ow-cat::-webkit-scrollbar { display: none; }
  .ow-cat__btn { white-space: nowrap; flex-shrink: 0; }

  .ow-services { grid-template-columns: 1fr; gap: 10px; }
  .ow-service { padding: 16px; min-height: 0; }

  .ow-stack__chip { font-size: 10px; padding: 2px 6px 2px 4px; }

  .ow-scope-card { padding: 14px; }
  .ow-scope-card__row { flex-wrap: wrap; gap: 8px; }
  .ow-scope-card__hint { font-size: 12px; }

  .ow-numinp__btn { padding: 12px 14px; }
  .ow-numinp__val { padding: 10px 18px; min-width: 42px; }

  .ow-addon { padding: 12px 14px; gap: 12px; }
  .ow-addon__btn { min-width: 70px; padding: 8px 12px; }
  .ow-addon__price { font-size: 13px; }

  .ow-uploader__head { flex-wrap: wrap; gap: 4px; }
  .ow-uploader__head-meta { font-size: 11.5px; }

  .ow-dropzone { padding: 22px 16px; }
  .ow-dropzone__cta { font-size: 13.5px; }
  .ow-dropzone__hint { font-size: 11.5px; }

  .ow-rte__toolbar { padding: 4px 6px; }
  .ow-rte__sel { font-size: 12px; padding: 3px 6px; }
  .ow-rte__btn { width: 28px; height: 26px; font-size: 12px; }
  .ow-rte__count { display: none; }

  .ow-coupon { flex-wrap: wrap; gap: 6px; }
  .ow-coupon__inp-wrap { flex: 1 1 100%; }
  .ow-coupon__btn { flex: 1 1 100%; padding: 12px 16px; }
  .ow-coupon__input { font-size: 13px; }

  .ow-check { padding: 12px; font-size: 13px; }

  /* Buttons: stack with full width on the navigation row. */
  .ow-nav {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
  }
  .ow-nav .ow-btn {
    justify-content: center;
    padding: 14px 18px;
  }

  /* Summary on mobile: condensed, but stays visible (it stacks below main
     thanks to the 1024px rule). */
  .ow-summary { padding: 20px 16px 24px; gap: 14px; }
  .ow-summary__service { padding: 12px; }
  .ow-summary__total-val { font-size: 20px; }
  .ow-summary__trust { gap: 10px; padding-top: 14px; }

  /* Toast host slides up from the bottom on small viewports. */
  .ow-toast-host {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .ow-success { padding: 32px 16px; gap: 28px; }
  .ow-success__title { font-size: 28px; }
  .ow-success__body { font-size: 14.5px; margin-bottom: 20px; }
  .ow-success__panel { padding: 20px; }
}
