/* =========================================================================
   ROYS DIECAST — Sipariş Akışı (wizard)
   ========================================================================= */

.order-shell { padding: 40px 0 80px; }
.order-head { max-width: 780px; margin: 0 auto 30px; text-align: center; }
.order-head h1 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); }
.order-head p { color: var(--ink-2); margin-top: 12px; }

/* Progress */
.steps-bar { max-width: 720px; margin: 0 auto 34px; display: flex; align-items: center; gap: 0; }
.steps-bar .node { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; width: 92px; }
.steps-bar .dot {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--line); color: var(--muted); font-weight: 700; font-size: 15px;
  transition: all .3s var(--ease);
}
.steps-bar .dot svg { width: 20px; height: 20px; }
.steps-bar .label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-align: center; }
.steps-bar .bar { flex: 1; height: 2px; background: var(--line); margin-top: -26px; transition: background .3s; }
.steps-bar .node.active .dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.steps-bar .node.done .dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps-bar .node.active .label, .steps-bar .node.done .label { color: var(--ink); }
.steps-bar .bar.done { background: var(--ink); }

/* Card */
.order-card {
  max-width: 720px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 34px;
}
.step-panel { display: none; animation: fade .4s var(--ease); }
.step-panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step-panel h2 { font-size: 1.4rem; margin-bottom: 6px; }
.step-panel .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }

/* Paket seçim */
.pick-grid { display: grid; gap: 14px; }
.pick {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center;
  border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.pick:hover { border-color: #d3d5db; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: all .2s; }
.pick .check svg { width: 15px; height: 15px; color: #fff; opacity: 0; transform: scale(.5); transition: all .2s; }
.pick .info .s { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.pick .info .d { font-size: 13.5px; color: var(--muted); }
.pick .info .b { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .03em; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; margin-top: 6px; }
.pick .cost { text-align: right; }
.pick .cost .amt { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.pick .cost .sz { font-size: 12px; color: var(--muted); }
.pick.selected { border-color: var(--accent); background: linear-gradient(0deg, var(--accent-soft), #fff 60%); box-shadow: var(--shadow-sm); }
.pick.selected .check { background: var(--accent); border-color: var(--accent); }
.pick.selected .check svg { opacity: 1; transform: scale(1); }

/* Dropzone */
.dropzone {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 34px 22px; text-align: center;
  background: var(--bg-soft); cursor: pointer; transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-ic { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.dropzone .dz-ic svg { width: 28px; height: 28px; color: var(--accent); }
.dropzone b { font-size: 1.05rem; }
.dropzone .hint { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.dz-count { margin-top: 16px; font-size: 14px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 8px; }
.dz-count .ok { color: #16a34a; }
.dz-count .warn { color: var(--accent); }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 18px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-soft); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rm { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; background: rgba(12,14,20,.72); color: #fff; border: none; display: grid; place-items: center; }
.thumb .rm svg { width: 14px; height: 14px; }
.thumb.file-doc { display: grid; place-items: center; color: var(--muted); font-size: 11px; text-align: center; padding: 6px; }

/* Form fields */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 7px; }
.field label .req { color: var(--accent); }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
  min-height: 48px;   /* comfortable touch target */
  -webkit-appearance: none; appearance: none;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.field textarea { resize: vertical; min-height: 92px; padding: 12px 16px; }
.field .err { color: var(--accent); font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea { border-color: var(--accent); background: #fff5f6; }
.field.invalid .err { display: block; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---- Icon-wrapped input (Step 3 contact) ---- */
.input-wrap { position: relative; }
.input-wrap .input-ic {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px; color: var(--muted); pointer-events: none;
  display: grid; place-items: center;
}
.input-wrap .input-ic svg { width: 20px; height: 20px; }
.input-wrap input { padding-left: 46px !important; }
.input-wrap .input-check {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: #16a34a; color: #fff;
  display: grid; place-items: center; opacity: 0; transition: opacity .2s var(--ease);
  pointer-events: none;
}
.input-wrap .input-check svg { width: 14px; height: 14px; }
.field:focus-within .input-ic { color: var(--accent); }

/* ---- Phone with country-code select ---- */
.phone-wrap {
  display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: stretch;
}
.phone-wrap .phone-cc {
  padding: 14px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 15px; background: #fff; min-height: 48px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 14px;
  padding-right: 26px; -webkit-appearance: none; appearance: none;
}
.phone-wrap .phone-cc:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.phone-wrap input { min-width: 0; }

/* ---- Delivery-info hint banner ---- */
.ship-hint {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(135deg, #f6f8ff, #eef1ff);
  border: 1px solid #dde3ff; border-radius: var(--radius-sm);
  padding: 14px 16px; font-size: 13.5px; color: #2c3550; margin-top: 4px;
  line-height: 1.5;
}
.ship-hint svg { width: 22px; height: 22px; flex: none; color: #4756a0; margin-top: 1px; }

/* ===================================================================== */
/*   Corporate "Secure Payment" block (Step 3 CTA)                        */
/* ===================================================================== */
.secure-payment {
  border-radius: 18px; overflow: hidden;
  border: 1px solid #1c2333;
  background: linear-gradient(180deg, #101624 0%, #0a0e18 100%);
  color: #e8ebf5;
  margin-top: 22px;
  box-shadow:
    0 30px 50px -20px rgba(10, 14, 24, .45),
    0 6px 16px rgba(10, 14, 24, .28),
    inset 0 1px 0 rgba(255,255,255,.06);
}

/* Summary bar at the top (dark gold-accented pill) */
.sp-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sp-summary-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sp-summary-lbl {
  font-size: 10.5px; font-weight: 700; letter-spacing: .12em;
  color: rgba(232,235,245,.55); text-transform: uppercase;
}
.sp-summary-val {
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  color: #f5f7fb; letter-spacing: -.01em; line-height: 1.2;
}
.sp-summary-amt {
  font-family: var(--font-display); font-weight: 800; font-size: 1.8rem;
  color: #ffffff; letter-spacing: -.02em;
  padding: 4px 14px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(228,0,43,.16), rgba(228,0,43,.06));
  border: 1px solid rgba(228,0,43,.32);
}

/* Main body */
.sp-body {
  padding: 30px 26px 24px;
  text-align: center;
  position: relative;
}
.sp-lock {
  width: 62px; height: 62px; margin: 0 auto 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #1c2437, #131a29);
  border: 1px solid rgba(255,255,255,.08);
  display: grid; place-items: center; color: #6ce8b3;
  box-shadow:
    0 8px 24px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}
.sp-lock::after {
  content: ''; position: absolute; inset: -6px; border-radius: 26px;
  background: radial-gradient(circle at center, rgba(108,232,179,.18), transparent 70%);
  z-index: -1; pointer-events: none;
}
.sp-lock svg { width: 30px; height: 30px; }

.sp-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.28rem; color: #ffffff; margin-bottom: 8px;
  letter-spacing: -.01em;
}
.sp-sub {
  color: rgba(232,235,245,.72); font-size: 14px; line-height: 1.55;
  max-width: 440px; margin: 0 auto 22px;
}

/* Security seals row (SSL · PCI DSS · 3DS) */
.sp-seals {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 22px 0;
  padding: 14px 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
}
.sp-seal {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 4px;
}
.sp-seal-k {
  font-family: var(--font-display); font-weight: 800; font-size: 12.5px;
  color: #ffd45c; letter-spacing: .05em; text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(255,212,92,.15);
}
.sp-seal-l {
  font-size: 10.5px; font-weight: 650; color: rgba(232,235,245,.65);
  letter-spacing: .04em; text-transform: uppercase;
}

/* Card & wallet brand row */
.sp-brands {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  margin: 14px 0 4px;
}
.sp-brand {
  font-family: var(--font-display); font-weight: 800;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 8px;
  background: rgba(255,255,255,.06); color: #eef1f8;
  border: 1px solid rgba(255,255,255,.08);
  line-height: 1;
}
.sp-brand-visa { color: #1a1f71; background: linear-gradient(180deg, #f6f8ff, #e7edff); border-color: transparent; }
.sp-brand-mc   { color: #ff5f00; background: linear-gradient(180deg, #ffffff, #fff3e6); border-color: transparent; }
.sp-brand-amex { color: #2e77bc; background: linear-gradient(180deg, #ffffff, #e6f0fa); border-color: transparent; }
.sp-brand-troy { color: #00a3a1; background: linear-gradient(180deg, #ffffff, #e6faf9); border-color: transparent; }
.sp-brand-ap::before { content: ''; }
.sp-brand-ap, .sp-brand-gp {
  background: rgba(0,0,0,.4); color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}

/* Small foot line */
.sp-foot {
  display: flex; align-items: flex-start; gap: 8px;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  font-size: 12px; color: rgba(232,235,245,.6); line-height: 1.5;
  text-align: left;
}
.sp-foot svg { width: 14px; height: 14px; flex: none; margin-top: 1px; color: rgba(108,232,179,.75); }

/* Consent looks tidier on the dark card */
.step-panel[data-step="3"] .consent { color: var(--ink-2); }

/* Legacy card-pay styles kept for back-compat if anything still references them */
.card-pay { display: none; }

/* Payment method tabs */
.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--bg-soft); border-radius: 14px; padding: 6px; margin-bottom: 22px; }
.pay-tab { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 14px; border: none; background: transparent; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); transition: all .2s var(--ease); }
.pay-tab svg { width: 18px; height: 18px; }
.pay-tab.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.pay-tab:not(.active):hover { color: var(--ink); }
.pay-pane { display: none; animation: fade .35s var(--ease); }
.pay-pane.active { display: block; }

/* Ref code note */
.ref-note { display: flex; gap: 9px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; color: var(--ink-2); margin-bottom: 20px; }
.ref-note svg { width: 19px; height: 19px; flex: none; margin-top: 1px; color: var(--accent); }
.ref-field input { letter-spacing: .02em; }
#refNo { font-family: ui-monospace, "SF Mono", Menlo, monospace; text-transform: uppercase; }

/* Ödeme özeti */
.pay-summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px;
}
.pay-summary .l .t { font-size: 13px; color: var(--muted); }
.pay-summary .l .v { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.pay-summary .amt { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; }

.iban-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; }
.iban-card .ic-head { background: linear-gradient(135deg, var(--ink), #1c1f2a); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 10px; font-weight: 650; }
.iban-card .ic-head svg { width: 20px; height: 20px; color: #fff; }
.iban-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line-2); }
.iban-row:last-child { border-bottom: none; }
.iban-row .k { font-size: 13px; color: var(--muted); }
.iban-row .val { font-weight: 650; font-size: 15px; letter-spacing: .01em; word-break: break-all; }
.iban-row.iban .val { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; }
.copy-btn {
  flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 650;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); transition: all .2s;
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.copy-btn.copied { background: #16a34a; border-color: #16a34a; color: #fff; }
.copy-btn svg { width: 14px; height: 14px; }
.pay-note { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 13.5px; color: var(--accent-ink); margin-bottom: 22px; display: flex; gap: 9px; }
.pay-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }

/* Onay */
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 4px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); margin-top: 1px; }

/* Nav */
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.step-nav .btn-back { visibility: hidden; }
.step-nav .btn-back.show { visibility: visible; }

/* Yükleniyor & başarı */
.submitting { pointer-events: none; opacity: .7; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.success-screen { max-width: 620px; margin: 0 auto; text-align: center; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 48px 34px; display: none; }
.success-screen.show { display: block; animation: fade .5s var(--ease); }
.success-screen .tick { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; background: #16a34a; display: grid; place-items: center; box-shadow: 0 16px 34px rgba(22,163,74,.28); }
.success-screen .tick svg { width: 44px; height: 44px; color: #fff; }
.success-screen h2 { font-size: 1.7rem; }
.success-screen p { color: var(--ink-2); margin-top: 12px; }
.success-screen .ref { display: inline-block; margin: 22px 0 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: .04em; background: var(--bg-soft); border: 1px dashed var(--line); padding: 12px 24px; border-radius: var(--radius); }
.success-screen .actions { display: flex; gap: 12px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }

.form-error-box { display: none; background: var(--accent-soft); color: var(--accent-ink); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14px; margin-bottom: 18px; }
.form-error-box.show { display: block; }

/* ============ Step 2 — Interactive schema ============ */
.car-ident { margin-bottom: 8px; }

.schema-wrap { position: relative; margin-top: 22px; }
.schema-lock {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: 30px 22px; text-align: center; color: var(--muted);
  background: var(--bg-soft); font-size: 14px; font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: opacity .3s var(--ease);
}
.schema-lock svg { width: 28px; height: 28px; color: var(--muted); }
.schema-lock.hidden { display: none; }

.schema {
  display: none; border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(228,0,43,.04) 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
  overflow: hidden; box-shadow: var(--shadow-sm);
  animation: fade .4s var(--ease);
  position: relative;
}
.schema::before {
  /* faint dot grid — technical drawing feel */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(12,14,20,.05) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .6;
}
.schema.active { display: block; }

.schema-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line-2); background: #fff;
}
.schema-head .sh-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.schema-head .sh-progress {
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  padding: 6px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--muted);
  transition: background .4s var(--ease), color .4s var(--ease), transform .3s var(--ease);
  position: relative; overflow: hidden;
}
.schema-head .sh-progress.done {
  background: #16a34a; color: #fff;
  animation: progressDone .6s var(--ease);
}
@keyframes progressDone {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.2); box-shadow: 0 6px 18px rgba(22, 163, 74, .45); }
  100% { transform: scale(1); }
}
/* subtle shimmer on progress chip while filling */
.schema-head .sh-progress::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
  transform: translateX(-100%); opacity: 0;
  transition: opacity .2s;
}
.schema-head .sh-progress:not(.done):hover::before { opacity: 1; animation: shimmer 1.4s ease infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

.schema-stage {
  position: relative; aspect-ratio: 400 / 220;
  padding: 18px; margin: 8px auto; max-width: 560px;
}
.schema-stage .car-shape { width: 100%; height: 100%; display: block; }

.hs {
  position: absolute; transform: translate(-50%, -50%);
  background: transparent; border: none; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 2;
}
.hs-marker {
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--accent);
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 6px 16px rgba(228, 0, 43, .25);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
  position: relative;
}
.hs:hover .hs-marker { transform: scale(1.08); box-shadow: 0 8px 20px rgba(228, 0, 43, .38); }
.hs:active .hs-marker { transform: scale(.94); transition: transform .08s ease; }
.hs-marker .hs-num {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--accent);
  transition: opacity .2s;
}
.hs-marker img {
  width: 100%; height: 100%; object-fit: cover;
  animation: thumbIn .5s var(--ease);
}
@keyframes thumbIn {
  0%   { opacity: 0; transform: scale(1.4); filter: blur(6px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
.hs.filled .hs-marker {
  border-color: #16a34a; box-shadow: 0 6px 16px rgba(22, 163, 74, .32);
  animation: hs-pop .5s var(--ease);
}
@keyframes hs-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); box-shadow: 0 10px 26px rgba(22, 163, 74, .55); }
  100% { transform: scale(1); }
}
.hs-tick {
  position: absolute; right: -4px; bottom: -4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #16a34a; color: #fff; display: grid; place-items: center;
  border: 2px solid #fff;
  animation: tickPop .35s var(--ease) .1s both;
}
.hs-tick svg { width: 11px; height: 11px; }
@keyframes tickPop {
  0%   { transform: scale(0) rotate(-90deg); opacity: 0; }
  60%  { transform: scale(1.25) rotate(0); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}
.hs-label {
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
  color: var(--ink); background: #fff; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line); text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
/* Inner (on-roof) hotspots — smaller markers, label hidden (shown in legend below) */
.hs.hs-inner .hs-marker { width: 30px; height: 30px; border-width: 2px; }
.hs.hs-inner .hs-marker .hs-num { font-size: .82rem; }
.hs.hs-inner .hs-label { display: none; }
.hs.hs-inner .hs-tick { width: 16px; height: 16px; right: -3px; bottom: -3px; }
.hs.hs-inner .hs-tick svg { width: 9px; height: 9px; }
@keyframes hs-pulse {
  0%, 100% { box-shadow: 0 6px 16px rgba(228, 0, 43, .25), 0 0 0 0 rgba(228, 0, 43, .35); }
  50%      { box-shadow: 0 6px 16px rgba(228, 0, 43, .25), 0 0 0 10px rgba(228, 0, 43, 0); }
}
.hs:not(.filled) .hs-marker { animation: hs-pulse 2.2s ease-in-out infinite; }

/* Slot legend (mobile-friendly list of the same 6 slots) */
.slot-legend {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 14px 18px 18px;
}
.slot-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; font-size: 13px; font-weight: 600;
  text-align: left;
  transition: border-color .25s, background .25s, transform .2s var(--ease), box-shadow .2s;
}
.slot-chip:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(228, 0, 43, .08); }
.slot-chip:active { transform: translateY(0) scale(.98); }
.slot-chip.filled { animation: chipFill .5s var(--ease); }
@keyframes chipFill {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.04); box-shadow: 0 6px 18px rgba(22, 163, 74, .28); }
  100% { transform: scale(1); }
}
.slot-chip .sc-num {
  width: 22px; height: 22px; border-radius: 50%; background: var(--bg-soft);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 12px; color: var(--muted);
  flex: none;
  transition: background .3s ease, color .3s ease;
}
.slot-chip .sc-label { flex: 1; text-transform: capitalize; }
.slot-chip .sc-plus { color: var(--accent); font-size: 18px; font-weight: 800; }
.slot-chip .sc-tick {
  width: 20px; height: 20px; border-radius: 50%; background: #16a34a; color: #fff;
  display: grid; place-items: center;
}
.slot-chip .sc-tick svg { width: 11px; height: 11px; }
.slot-chip.filled { border-color: #16a34a; background: #f2fbf5; }
.slot-chip.filled .sc-num { background: #16a34a; color: #fff; }

/* Reveal panel — appears when all six slots are filled */
.reveal-panel {
  position: relative; margin: 4px 18px 18px;
  border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 30% 0%, rgba(228,0,43,.3), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(255,212,92,.18), transparent 55%),
    linear-gradient(135deg, #0c0e14 0%, #1c1f2a 100%);
  color: #fff; padding: 32px 24px; text-align: center;
  opacity: 0; transform: translateY(20px) scale(.96);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  pointer-events: none;
}
.reveal-panel.show {
  opacity: 1; transform: none; pointer-events: auto;
  animation: rpGlow 2.4s var(--ease) 1;
}
@keyframes rpGlow {
  0%   { box-shadow: 0 0 0 0 rgba(228,0,43,.5); }
  40%  { box-shadow: 0 0 0 20px rgba(228,0,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(228,0,43,0); }
}
.reveal-panel .rp-badge {
  display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: var(--accent); background: rgba(228, 0, 43, .18);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
}
.reveal-panel .rp-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; margin-bottom: 16px; }
.reveal-panel .rp-mini {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 22px; background: rgba(255,255,255,.06); border-radius: 14px; margin: 6px 0 12px;
  border: 1px solid rgba(255,255,255,.08);
}
.reveal-panel .rp-mini svg { width: 130px; height: auto; color: var(--accent); animation: rp-float 3.4s ease-in-out infinite; }
.reveal-panel .rp-scale-tag {
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  background: var(--accent); color: #fff; padding: 6px 12px; border-radius: 999px;
}
.reveal-panel .rp-sub { font-size: 13.5px; color: rgba(255,255,255,.7); margin-top: 4px; }
@keyframes rp-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}

/* Confetti burst — 12 pieces (using ::before/::after and inline JS-inserted spans not required; use box-shadow trick + multiple children in DOM instead is heavier — here CSS only via 12 span children generated as backdrops) */
.rp-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rp-confetti span {
  position: absolute; top: -14px; width: 8px; height: 12px; border-radius: 2px;
  opacity: 0; animation: cf-fall 3s ease-in forwards;
}
.reveal-panel.show .rp-confetti span { opacity: 1; }
.rp-confetti span:nth-child(1)  { left: 6%;  background: #ffd45c; animation-delay: .05s;  transform: rotate(15deg); }
.rp-confetti span:nth-child(2)  { left: 14%; background: #22d3a1; animation-delay: .35s;  transform: rotate(-20deg); }
.rp-confetti span:nth-child(3)  { left: 22%; background: #e4002b; animation-delay: .15s;  transform: rotate(45deg); }
.rp-confetti span:nth-child(4)  { left: 30%; background: #6ab7ff; animation-delay: .55s;  transform: rotate(-10deg); }
.rp-confetti span:nth-child(5)  { left: 38%; background: #ffd45c; animation-delay: .28s;  transform: rotate(30deg); }
.rp-confetti span:nth-child(6)  { left: 46%; background: #ff8c9c; animation-delay: .48s;  transform: rotate(-25deg); }
.rp-confetti span:nth-child(7)  { left: 54%; background: #a06bff; animation-delay: .18s;  transform: rotate(60deg); }
.rp-confetti span:nth-child(8)  { left: 62%; background: #ffd45c; animation-delay: .38s;  transform: rotate(-15deg); }
.rp-confetti span:nth-child(9)  { left: 70%; background: #22d3a1; animation-delay: .65s;  transform: rotate(20deg); }
.rp-confetti span:nth-child(10) { left: 78%; background: #e4002b; animation-delay: .25s;  transform: rotate(-40deg); }
.rp-confetti span:nth-child(11) { left: 86%; background: #6ab7ff; animation-delay: .45s;  transform: rotate(35deg); }
.rp-confetti span:nth-child(12) { left: 94%; background: #ffd45c; animation-delay: .58s;  transform: rotate(-5deg); }
@keyframes cf-fall {
  0%   { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(320px) rotate(720deg); opacity: 0; }
}

@media (max-width: 620px) {
  .order-card { padding: 24px 20px; border-radius: var(--radius); }
  .steps-bar .label { font-size: 0; }
  .steps-bar .node { width: 64px; }
  .grid-2 { grid-template-columns: 1fr; }
  .pick { grid-template-columns: auto 1fr; }
  .pick .cost { grid-column: 2; text-align: left; margin-top: 4px; }
  .pay-summary { flex-direction: column; align-items: flex-start; }
  .slot-legend { grid-template-columns: repeat(2, 1fr); }
  .hs-marker { width: 38px; height: 38px; }
  .hs-label { font-size: 10px; padding: 2px 6px; }
  .reveal-panel .rp-mini { flex-direction: column; gap: 8px; padding: 14px 18px; }
  .reveal-panel .rp-mini svg { width: 100px; }
  .reveal-panel .rp-title { font-size: 1.1rem; }
  /* Contact form — stack phone country code above input on very small screens */
  .phone-wrap { grid-template-columns: 100px 1fr; gap: 6px; }
  .phone-wrap .phone-cc { padding: 12px 8px; font-size: 14px; padding-right: 22px; }
}

@media (max-width: 500px) {
  .sp-summary { padding: 14px 16px; }
  .sp-summary-amt { font-size: 1.55rem; padding: 3px 12px; }
  .sp-body { padding: 24px 18px 20px; }
  .sp-lock { width: 54px; height: 54px; }
  .sp-lock svg { width: 26px; height: 26px; }
  .sp-title { font-size: 1.14rem; }
  .sp-sub { font-size: 13px; margin-bottom: 18px; }
  .sp-seals { grid-template-columns: repeat(3, 1fr); padding: 12px 8px; gap: 6px; }
  .sp-seal-k { font-size: 11px; }
  .sp-seal-l { font-size: 9.5px; }
  .sp-brand { font-size: 10px; padding: 6px 10px; }
}

@media (max-width: 400px) {
  .order-shell { padding: 26px 0 60px; }
  .order-card { padding: 20px 16px; }
  .order-head { margin-bottom: 22px; }
  .order-head h1 { font-size: 1.5rem; }
  .step-panel h2 { font-size: 1.2rem; }
  .step-panel .sub { font-size: 13.5px; margin-bottom: 20px; }
  .steps-bar { margin-bottom: 24px; }
  .steps-bar .dot { width: 34px; height: 34px; font-size: 13px; }
  .steps-bar .node { width: 48px; }
  .steps-bar .bar { margin-top: -22px; }
  .schema-stage { padding: 10px; }
  .hs-marker { width: 34px; height: 34px; border-width: 2px; }
  .hs-marker .hs-num { font-size: .92rem; }
  .hs-label { font-size: 9.5px; padding: 2px 5px; }
  .hs.hs-inner .hs-marker { width: 26px; height: 26px; }
  .hs.hs-inner .hs-marker .hs-num { font-size: .72rem; }
  .slot-legend { padding: 10px 12px 14px; gap: 6px; }
  .slot-chip { padding: 9px 10px; font-size: 12px; }
  /* Ensure IBAN row copy-btn wraps nicely */
  .iban-row { flex-wrap: wrap; padding: 12px 16px; }
  .iban-row .val { font-size: 13.5px; }
  .copy-btn { flex: 0 0 auto; }
  .field input, .field textarea, .field select { font-size: 15px; }
}

/* Prevent iOS Safari zoom on focus (font-size < 16px triggers zoom) */
@media (max-width: 720px) {
  input, textarea, select { font-size: 16px !important; }
}
