/* Booking wizard */
.book-wrap { max-width: 820px; }
.book-title { margin-bottom: .4rem; }
.book-lead { max-width: 40rem; margin-bottom: 1.5rem; }
.wizard { padding: 0; overflow: visible; }

/* live estimate */
.estimate { position: sticky; top: 65px; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; padding: 1rem 1.4rem .8rem; }
.est-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.est-label { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--brand); }
.est-total strong { font-size: 2rem; line-height: 1.1; color: var(--ink); }
.est-sub { text-align: right; }
.est-note { margin: .35rem 0 0; }
.est-min { margin: .5rem 0 0; background: #fff6e6; color: #7a4a00; border-radius: 8px; padding: .45rem .7rem; }

/* step indicator */
.wsteps { list-style: none; margin: 0; padding: .9rem 1.4rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.ws { width: 100%; display: flex; flex-direction: column; align-items: center; gap: .3rem; background: none; border: 0; cursor: pointer; font: inherit; color: var(--muted); padding: .2rem; }
.ws:disabled { cursor: default; opacity: .55; }
.ws-dot { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem; background: #fff; border: 1.5px solid var(--line); }
.ws.current .ws-dot { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--brand-tint); }
.ws.done .ws-dot { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }
.ws.current, .ws.done { color: var(--ink); }
.ws-name { font-size: .78rem; font-weight: 600; }

/* steps */
#book-form { padding: 1.4rem; }
.wstep h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.wstep > p.muted { margin-bottom: 1rem; }
.chips-label { text-transform: uppercase; letter-spacing: .07em; font-size: .75rem; font-weight: 700; color: var(--muted); margin: 1.2rem 0 .6rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: .92rem; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--brand); background: var(--brand-tint); }
.chip-plus { color: var(--brand); font-weight: 800; font-size: 1.05rem; line-height: 1; }
.chip-name { font-weight: 500; }
.chip-price { color: var(--muted); font-size: .85rem; }
.chip.flash { animation: chipflash 1.8s ease; }
@keyframes chipflash { 0%, 50% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: none; } }
.was { color: #b42318; opacity: .75; }
.items-note { margin-top: .9rem; }

.order-list { display: grid; gap: .75rem; }
.order-item { border: 1.5px solid var(--brand); background: #fbfefd; border-radius: 12px; padding: .9rem 1rem; }
.order-item.just-added { animation: added .5s ease; }
@keyframes added { from { transform: scale(.98); opacity: .4; } to { transform: none; opacity: 1; } }
.oi-head { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.oi-name { font-weight: 700; }
.oi-remove { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; }
.oi-remove:hover { color: #b42318; border-color: #b42318; }
.oi-help { font-size: .86rem; color: var(--muted); background: var(--bg-alt); border-radius: 8px; padding: .55rem .7rem; margin: .6rem 0 0; }
.oi-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .7rem; }
.oi-total { font-weight: 700; color: var(--brand-dark); margin-left: auto; }

.stepper { display: flex; align-items: center; gap: .2rem; }
.stepper button { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--brand); font-size: 1.2rem; font-weight: 600; cursor: pointer; line-height: 1; }
.stepper button:hover { border-color: var(--brand); }
.stepper output { min-width: 1.8rem; text-align: center; font-weight: 700; }

.sqft { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.sqft-input { display: flex; align-items: center; gap: .4rem; }
.sqft-input input { width: 7rem; }
.sqft-input span { color: var(--muted); font-size: .9rem; }
.preset { font: inherit; font-size: .82rem; padding: .4rem .7rem; border-radius: 999px; border: 1px dashed var(--brand); background: #fff; color: var(--brand-dark); cursor: pointer; }
.preset:hover { background: var(--brand-tint); }

.order-sum { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--line); font-weight: 600; }
.order-sum strong { font-size: 1.4rem; color: var(--brand); }

.reward { margin-top: .9rem; background: linear-gradient(135deg, #fff8ec, #fff); border: 1px solid #f3d9a6; border-radius: 12px; padding: .85rem 1rem; }
.reward-row { display: flex; gap: .7rem; align-items: flex-start; }
.reward-gift { font-size: 1.4rem; line-height: 1; }
.reward-bar { height: 6px; border-radius: 6px; background: #f3e6cc; margin-top: .7rem; overflow: hidden; }
.reward-bar span { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .3s; }
.reward-got { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.reward-got span { background: var(--brand-tint); color: var(--brand-dark); font-size: .82rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }

.addons { display: grid; gap: .6rem; }
.addon { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; text-align: left; width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; cursor: pointer; }
.addon-qty { cursor: default; }
.addon:hover { border-color: var(--brand); }
.addon.on { border-color: var(--brand); background: #fbfefd; }
.addon-check { width: 1.4rem; height: 1.4rem; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .85rem; font-weight: 800; color: #fff; }
.addon.on .addon-check { background: var(--brand); border-color: var(--brand); }
.addon-text { display: flex; flex-direction: column; gap: .1rem; }
.addon-price { font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.addon-foot { grid-column: 2 / -1; margin-top: 0; }

.wfield { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .92rem; margin-top: 1.2rem; }
.wfields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.wfields .span-2 { grid-column: 1 / -1; }
.tried :invalid { border-color: #c2410c; }

/* when */
.dates { display: grid; grid-template-columns: repeat(7, 1fr); gap: .4rem; }
.date { display: flex; flex-direction: column; align-items: center; padding: .5rem .2rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); cursor: pointer; line-height: 1.15; }
.date:hover:not(:disabled) { border-color: var(--brand); }
.date:disabled { opacity: .35; cursor: not-allowed; background: var(--bg-alt); }
.date.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.d-dow, .d-mon { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.d-num { font-size: 1.15rem; font-weight: 700; margin: .1rem 0; }
.windows, .choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { font: inherit; font-size: .95rem; padding: .7rem 1rem; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.choice:hover { border-color: var(--brand); }
.choice.on { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-dark); font-weight: 600; }

/* review */
.review { display: grid; gap: .9rem; }
.rv-block { border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; }
.rv-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.rv-head h3 { margin: 0; font-size: 1rem; }
.rv-edit { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--brand); cursor: pointer; text-decoration: underline; }
.rv-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; font-size: .93rem; border-bottom: 1px dashed var(--line); }
.rv-row:last-child { border-bottom: 0; }
.rv-row > span:first-child { color: var(--muted); }
.rv-row > span:last-child { text-align: right; font-weight: 500; }
.rv-total { font-weight: 700; font-size: 1.05rem; border-bottom: 0; padding-top: .6rem; }
.rv-total > span:first-child { color: var(--ink); }
.rv-total > span:last-child { color: var(--brand); font-size: 1.2rem; }
.rv-perks { margin-top: .4rem; font-size: .88rem; color: var(--brand-dark); font-weight: 600; }
.rv-notes { margin: .5rem 0 0; }

/* nav */
.wnav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.wnav .btn:not(.btn-ghost) { margin-left: auto; min-width: 10rem; }
.form-msg:empty { display: none; }

@media (max-width: 640px) {
  .estimate { padding: .8rem 1rem .7rem; top: 64px; }
  .est-total strong { font-size: 1.6rem; }
  .est-sub { text-align: left; width: 100%; }
  .est-top { gap: .2rem; }
  .wsteps { padding: .7rem .6rem; }
  .ws-name { font-size: .68rem; }
  .ws-dot { width: 1.75rem; height: 1.75rem; font-size: .8rem; }
  #book-form { padding: 1.1rem 1rem; }
  .wfields { grid-template-columns: 1fr; }
  .dates { grid-template-columns: repeat(4, 1fr); }
  .addon { grid-template-columns: auto 1fr; }
  .addon-price { grid-column: 2; }
  .wnav .btn:not(.btn-ghost) { min-width: 0; flex: 1; }
}

.price-note { margin: .3rem 0 0; text-align: right; }
