:root {
  --bg: #071226;
  --bg2: #0b1a33;
  --panel: #0f2140;
  --panel2: #132a50;
  --line: rgba(148, 178, 230, 0.14);
  --line2: rgba(148, 178, 230, 0.26);
  --text: #eef3ff;
  --muted: #9fb0cf;
  --dim: #6f82a6;
  --gold: #ffc727;
  --gold2: #f5a400;
  --gold-soft: rgba(255, 199, 39, 0.12);
  --blue: #3d8bff;
  --green: #2fd17a;
  --red: #ff6470;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(61, 139, 255, 0.18), transparent 60%),
    radial-gradient(700px 420px at -10% 10%, rgba(255, 199, 39, 0.10), transparent 60%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); }

.app { max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-direction: column; gap: 18px; margin-bottom: 26px; }
.brand { display: flex; gap: 18px; align-items: center; }
.logo { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; background: var(--panel); border: 1px solid var(--line); }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--green);
  background: rgba(47, 209, 122, 0.1); border: 1px solid rgba(47, 209, 122, 0.25); padding: 4px 11px; border-radius: 99px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(47, 209, 122, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(47, 209, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 209, 122, 0); } }
h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.1; margin: 8px 0 4px; font-weight: 800; letter-spacing: -0.02em; }
.sub { margin: 0; color: var(--muted); }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--gold); width: 16px; height: 16px; }

/* ---------- Stepper ---------- */
.stepper { margin-bottom: 24px; }
.stepper ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; margin: 0 0 10px; }
.stepper li { display: flex; align-items: center; gap: 10px; color: var(--dim); font-weight: 600; font-size: 14px; min-width: 0; }
.stepper li:nth-child(2) { justify-content: center; }
.stepper li:nth-child(3) { justify-content: flex-end; }
.stepper .n { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line2); font-size: 13px; transition: .25s; }
.stepper li.active { color: var(--text); }
.stepper li.active .n { background: var(--gold); border-color: var(--gold); color: #1a1300; box-shadow: 0 0 0 5px var(--gold-soft); }
.stepper li.done { color: var(--muted); }
.stepper li.done .n { background: rgba(255, 199, 39, .15); border-color: var(--gold); color: var(--gold); }
.bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold2), var(--gold)); transition: width .4s ease; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.layout.with-summary { grid-template-columns: minmax(0, 1fr) 340px; }
.step { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.step-head h2 { margin: 0 0 4px; font-size: 24px; letter-spacing: -0.01em; }
.step-head p { margin: 0 0 18px; color: var(--muted); }

.card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
fieldset.card { margin: 0 0 16px; min-width: 0; }
legend { float: left; width: 100%; padding: 0; margin-bottom: 16px; font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 10px; }
legend + * { clear: both; }
.ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font-size: 13px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc { position: relative; text-align: left; cursor: pointer; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1.5px solid var(--line); box-shadow: var(--shadow);
  transition: transform .18s, border-color .18s, box-shadow .18s; display: flex; flex-direction: column; gap: 12px; }
.svc:hover { transform: translateY(-3px); border-color: var(--line2); }
.svc:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.svc.selected { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft), var(--shadow); }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.svc-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #1a1300; background: linear-gradient(135deg, var(--gold), var(--gold2)); }
.svc-ic svg { width: 24px; height: 24px; stroke-width: 2; }
.svc-price { text-align: right; }
.svc-price b { font-size: 26px; color: var(--gold); letter-spacing: -0.02em; }
.svc-price small { display: block; color: var(--dim); font-size: 12px; }
.svc h3 { margin: 4px 0 0; font-size: 19px; }
.svc p { margin: 0; color: var(--muted); font-size: 14.5px; }
.svc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { font-size: 12.5px; padding: 4px 10px; border-radius: 99px; background: rgba(148, 178, 230, .08); color: var(--muted); }
.svc .pick { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 12px; font-weight: 700;
  background: rgba(255, 199, 39, .1); color: var(--gold); border: 1px solid rgba(255, 199, 39, .25); transition: .2s; }
.svc:hover .pick, .svc.selected .pick { background: var(--gold); color: #1a1300; }
.popular { position: absolute; top: -10px; left: 22px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  background: var(--blue); color: #fff; padding: 3px 10px; border-radius: 99px; }

/* ---------- Fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
label { font-weight: 600; font-size: 14px; color: #d6e0f5; display: flex; justify-content: space-between; align-items: baseline; }
label em { color: var(--dim); font-style: normal; font-weight: 400; }
input:not([type=checkbox]):not([type=range]), select, textarea {
  width: 100%; background: rgba(4, 12, 28, .6); border: 1.5px solid var(--line2); border-radius: 12px; padding: 13px 14px; outline: none;
  transition: border-color .15s, box-shadow .15s; font-size: 16px; }
textarea { resize: vertical; min-height: 84px; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fb0cf' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
select option { background: var(--bg2); }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.invalid input, .invalid select, .invalid textarea { border-color: var(--red) !important; }
.err { color: var(--red); font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.hint { color: var(--dim); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid2 .field { margin-bottom: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.addr { display: flex; gap: 8px; }
.gps { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 0 16px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid rgba(255, 199, 39, .35); background: var(--gold-soft); color: var(--gold); font-weight: 600; transition: .2s; }
.gps:hover { background: var(--gold); color: #1a1300; }
.gps.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 4px; }
.chip { cursor: pointer; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line2); background: rgba(4, 12, 28, .45); text-align: left; transition: .18s; }
.chip b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.chip small { color: var(--dim); font-size: 13px; }
.chip:hover { border-color: var(--line2); background: rgba(148, 178, 230, .06); }
.chip.selected { border-color: var(--gold); background: var(--gold-soft); }
.chip.selected b { color: var(--gold); }
.chip[data-id=emergency] svg { color: var(--red); }
#schedWrap { margin-top: 14px; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; margin: 14px 0 4px;
  background: linear-gradient(90deg, var(--red), var(--gold) 40%, var(--green)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); cursor: pointer; }
output { color: var(--gold); font-weight: 700; }
.range-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }

/* ---------- Buttons ---------- */
.actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.actions.center { justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 14px; font-weight: 700; font-size: 16px;
  cursor: pointer; border: 1.5px solid transparent; text-decoration: none; transition: .18s; }
.btn.primary { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #1a1300; box-shadow: 0 10px 30px -10px rgba(255, 180, 0, .6); }
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.05); }
.btn.primary:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn.ghost { background: transparent; border-color: var(--line2); color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.sm { padding: 11px 18px; font-size: 15px; }
.btn.pay { flex: 1; max-width: 380px; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(26,19,0,.3); border-top-color: #1a1300; animation: spin .8s linear infinite; }
.link { background: none; border: 0; color: var(--gold); cursor: pointer; font-weight: 600; padding: 0; font-size: 14px; }

/* ---------- Review ---------- */
.review { display: grid; gap: 0; padding: 6px 22px; margin-bottom: 16px; }
.rv { display: grid; grid-template-columns: 140px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.rv:last-child { border-bottom: 0; }
.rv dt { color: var(--dim); font-size: 14px; }
.rv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.agree { display: flex; justify-content: flex-start; text-align: left; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: 14px; margin: 4px 0 16px; cursor: pointer; }
.agree input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 1px; flex: none; }
.fine { text-align: center; color: var(--dim); font-size: 13px; margin: 14px 0 0; }
.form-error { background: rgba(255, 100, 112, .1); border: 1px solid rgba(255, 100, 112, .35); color: #ffc2c7; padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 14px; }

/* ---------- Summary ---------- */
.summary { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.sum-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.sum-head > div:nth-child(2) { flex: 1; min-width: 0; }
.sum-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #1a1300; background: linear-gradient(135deg, var(--gold), var(--gold2)); }
.sum-label { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.sum-name { font-weight: 700; }
.sum-lines { margin: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.sum-lines div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); }
.sum-lines dd { margin: 0; }
.sum-lines .total { color: var(--text); font-weight: 800; font-size: 20px; border-top: 1px dashed var(--line2); margin-top: 8px; padding-top: 12px; }
.sum-lines .total dd { color: var(--gold); }
.sum-points { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.sum-points li { padding-left: 24px; position: relative; }
.sum-points li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.callout { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg2); color: var(--muted); text-decoration: none; }
.callout svg { color: var(--gold); width: 22px; height: 22px; }
.callout b { color: var(--text); }

/* ---------- Done ---------- */
.done { text-align: center; padding: 40px 26px; max-width: 640px; margin: 0 auto; }
.done-ic { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; }
.done-ic svg { width: 36px; height: 36px; stroke-width: 2.4; }
.done-ic.ok { background: rgba(47, 209, 122, .14); color: var(--green); box-shadow: 0 0 0 10px rgba(47, 209, 122, .06); }
.done-ic.wait { background: var(--gold-soft); color: var(--gold); box-shadow: 0 0 0 10px rgba(255, 199, 39, .05); }
.done h2 { margin: 0 0 8px; font-size: 28px; }
.done p { color: var(--muted); margin: 0 auto 18px; max-width: 460px; }
.ref { display: inline-block; padding: 10px 16px; border-radius: 12px; background: rgba(4, 12, 28, .6); border: 1px dashed var(--line2); color: var(--muted); margin-bottom: 22px; }
.ref b { color: var(--gold); letter-spacing: .06em; margin-left: 6px; }
.next { text-align: left; max-width: 440px; margin: 0 auto 24px; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.next b { color: var(--text); }

/* ---------- Mobile bar / toast ---------- */
.mobile-bar { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: #fff; color: #0b1a33;
  padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); transition: .3s; z-index: 50; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout.with-summary { grid-template-columns: 1fr; }
  .summary { display: none !important; }
  .mobile-bar:not([hidden]) { display: flex; position: sticky; bottom: 0; margin: 20px -20px -40px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    align-items: center; justify-content: space-between; gap: 12px; background: rgba(7, 18, 38, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line2); z-index: 20; }
  .mobile-bar small { display: block; color: var(--dim); font-size: 12px; }
  .mobile-bar b { color: var(--gold); font-size: 20px; }
}
@media (max-width: 640px) {
  .app { padding: 18px 16px 32px; }
  .mobile-bar:not([hidden]) { margin: 20px -16px -32px; }
  .brand { align-items: flex-start; }
  .logo { width: 58px; height: 58px; border-radius: 14px; }
  .services, .grid2 { grid-template-columns: 1fr; }
  .chips { grid-template-columns: 1fr; }
  .chip { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; }
  .stepper .t { display: none; }
  .stepper li.active .t { display: inline; }
  .card { padding: 18px; }
  .addr { flex-direction: column; }
  .gps { justify-content: center; padding: 12px; }
  .rv { grid-template-columns: 1fr auto; }
  .rv dt { grid-column: 1 / -1; margin-bottom: -8px; }
  .actions { flex-direction: column-reverse; }
  .btn.pay { max-width: none; }
  .trust { font-size: 13px; gap: 6px 14px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Call button (BeeCharged house style) ---------- */
.bcev-btn-call-wrapper {
  --bcev-gold: #F5C215; --bcev-gold-dark: #D9A90D; --bcev-navy: #0A0E14;
  display: flex; width: 100%; padding: 10px 0; margin-top: 28px;
}
.bcev-call-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; box-sizing: border-box;
  padding: clamp(12px, 1.2vw + 6px, 18px) clamp(20px, 3vw + 12px, 40px);
  min-height: clamp(52px, 2vw + 40px, 62px);
  font-family: inherit; font-size: clamp(15px, 0.35vw + 13px, 18px); font-weight: 700; line-height: 1.1;
  letter-spacing: 0.02em; text-transform: uppercase; text-decoration: none !important; white-space: nowrap;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent;
  background: linear-gradient(135deg, var(--bcev-gold) 0%, var(--bcev-gold-dark) 100%);
  color: var(--bcev-navy) !important;
  box-shadow: 0 8px 24px rgba(245, 194, 21, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.25s ease, background 0.25s ease;
}
.bcev-call-btn .bcev-btn__icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: clamp(28px, 2vw + 18px, 36px); height: clamp(28px, 2vw + 18px, 36px);
  background-color: var(--bcev-navy); color: var(--bcev-gold); border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(10, 14, 20, 0.2);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.3s ease, color 0.3s ease;
}
.bcev-call-btn .bcev-btn__icon-badge svg { width: 58%; height: 58%; fill: currentColor; stroke: currentColor; stroke-width: 0; }
.bcev-call-btn .bcev-btn__icon-badge svg path[fill="none"] { stroke-width: 2; }
.bcev-call-btn .bcev-phone-num { font-weight: 800; letter-spacing: 0.04em; }
@media (hover: hover) {
  .bcev-call-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(245, 194, 21, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
  .bcev-call-btn:hover .bcev-btn__icon-badge { background-color: #000; color: #fff; transform: scale(1.08); animation: bcevRing 0.6s ease-in-out; }
}
.bcev-call-btn:active { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(245, 194, 21, 0.25); }
.bcev-call-btn::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.45) 50%, transparent 100%);
  transform: skewX(-20deg); transition: left 0.6s cubic-bezier(0.3, 1, 0.5, 1); pointer-events: none;
}
.bcev-call-btn:hover::before { left: 140%; }
@keyframes bcevRing {
  0%, 100% { transform: scale(1.08) rotate(0deg); } 15% { transform: scale(1.12) rotate(-14deg); }
  30% { transform: scale(1.12) rotate(12deg); } 45% { transform: scale(1.12) rotate(-10deg); }
  60% { transform: scale(1.08) rotate(6deg); } 75% { transform: scale(1.08) rotate(-3deg); }
}
.bcev-call-btn:focus-visible { outline: 3px solid rgba(245, 194, 21, 0.8); outline-offset: 4px; }
@media (max-width: 420px) { .bcev-call-btn { white-space: normal; padding-left: 12px; padding-right: 12px; text-align: center; } }

/* ---------- Embedded mode (inside the WordPress page iframe) ---------- */
.embedded .logo, .embedded h1, .embedded .sub { display: none; }
.embedded .app { padding-top: 34px; }
.embedded .hero { align-items: center; text-align: center; gap: 14px; margin-bottom: 26px; }
.embedded .brand { justify-content: center; }
.embedded .trust { justify-content: center; }
.embedded .step-head { text-align: center; }
.embedded .step-head p { margin-bottom: 22px; }
@media (max-width: 640px) {
  .embedded .app { padding-top: 24px; }
  .embedded .trust { gap: 6px 14px; }
}
