/* ============================================================
   Golden Landscaping: quote wizard + "from $X" price estimator.
   Loaded on index.html. Hand-authored, NOT generated by build-site.mjs.
   ============================================================ */

/* ---- Quote wizard: 4-step form (type → details → services → book) ------ */
/* Every step's direct children get the same vertical rhythm automatically —
   this is what "evenly spaced" actually means here: one gap value, applied
   once, instead of each field/note/label carrying its own ad-hoc margin. */
.qt-step {
  display: grid;
  gap: 18px;
  align-content: start;
}
/* An author "display" declaration always beats the browser's built-in
   [hidden]{display:none} default, regardless of the hidden attribute — so
   .qt-step{display:grid} above was silently un-hiding every step at once,
   stacking all four on top of each other instead of showing one at a time.
   This re-asserts display:none whenever hidden is actually set. */
.qt-step[hidden] {
  display: none;
}
/* Toggling `.hidden` directly (not a class) is what makes this restart on
   every step change — going through display:none resets a running CSS
   animation, so un-hiding a step always replays it from the start. */
@keyframes qt-step-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.qt-step:not([hidden]) {
  animation: qt-step-in .4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
@media (prefers-reduced-motion: reduce) {
  .qt-step:not([hidden]) { animation: none; }
}
.qt-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}
.qt-progress-step {
  flex: 1;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-soft);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--line);
}
.qt-progress-step i {
  display: block;
  font-style: normal;
  font-size: 15px;
  margin-bottom: 2px;
}
.qt-progress-step.active,
.qt-progress-step.done {
  color: var(--teal-deep);
  border-color: var(--teal);
}
.qt-type-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.qt-type-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.qt-type-opt:hover {
  border-color: rgba(222,174,68,.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(35,32,27,.18);
}
.qt-type-opt:active {
  transform: translateY(-2px) scale(.96);
}
.qt-type-opt.selected {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--teal-deep);
  animation: qt-type-pop .3s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.qt-type-opt.selected .qt-type-emoji {
  animation: qt-type-emoji-pop .4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
/* Pops in staggered every time step 1 is (re)shown — same "replay on
   unhide" trick as .qt-step's own animation, since these two buttons are
   static markup rather than freshly rendered nodes like the plan picker. */
@keyframes qt-type-in {
  from { opacity: 0; transform: translateY(10px) scale(.94); }
  to   { opacity: 1; transform: none; }
}
@keyframes qt-type-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}
@keyframes qt-type-emoji-pop {
  0%   { transform: scale(1) rotate(0); }
  50%  { transform: scale(1.35) rotate(-8deg); }
  100% { transform: scale(1) rotate(0); }
}
.qt-step:not([hidden]) .qt-type-opt {
  animation: qt-type-in .4s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
}
.qt-step:not([hidden]) .qt-type-opt:nth-child(1) { animation-delay: 60ms; }
.qt-step:not([hidden]) .qt-type-opt:nth-child(2) { animation-delay: 140ms; }
@media (prefers-reduced-motion: reduce) {
  .qt-type-opt, .qt-step:not([hidden]) .qt-type-opt, .qt-type-opt.selected .qt-type-emoji { animation: none; }
  .qt-type-opt:hover .qt-type-emoji { transform: none; }
}
.qt-type-emoji {
  font-size: 26px;
  display: inline-block;
  transition: transform .2s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.qt-type-opt:hover .qt-type-emoji {
  transform: scale(1.15) rotate(-4deg);
}
.qt-type-error {
  color: #b3261e;
  font-size: 13px;
  margin: 6px 0 0;
}
.qt-step-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Back is compact (just needs to fit its label); Next/Submit takes the rest
   of the row so the pair always fills the width evenly, however narrow the
   form is — this replaces a fixed-width layout that could overflow. */
.qt-step-nav .btn-ghost {
  flex: none;
  padding-left: 18px;
  padding-right: 18px;
}
.qt-step-nav .btn-solid {
  flex: 1;
  min-width: 0;
}
/* Step 1 has no Back button, just an empty spacer + Next — let Next take
   the full row itself instead of being squeezed by the spacer. */
.qt-step-nav > span:empty {
  display: none;
}
@media (max-width: 640px) {
  .qt-type-row { grid-template-columns: 1fr; }
}
/* The "How did you hear about us?" select was inheriting the site-wide
   input/select size (15px text, 48px min-height, full label spacing) which
   reads oversized sitting among step 4's much more compact plan cards and
   benefit lists — shrink it to match. */
.qt-step select[name="lead-source"] {
  font-size: 13.5px;
  padding: 10px 36px 10px 12px;
  min-height: 40px;
  max-width: 320px;
}

/* ---- Price estimator (home quote form only) ---------------------------- */
.estimate-block {
  margin-top: 4px;
}
.estimate-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-2);
}
.estimate-shade-label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.estimate-shade-label select {
  font-weight: 400;
}
.estimate-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
/* "Pressure washing from $149" headline + per-service anchor list — replaced
   the live slider calculator (felt like too much friction up front); this is
   just a reassuring starting price, the real number is confirmed in person. */
.estimate-anchor {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal-deep);
  margin: 0;
}
.estimate-anchor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.estimate-anchor-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink);
  padding: 8px 12px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
}
.estimate-anchor-list li b {
  color: var(--teal-deep);
}
