/* ===========================================================
   Quote wizard (quote.php) — loaded only on that page
   =========================================================== */

[hidden] { display: none !important; }

.qw {
  /* white-on-blue selected states (checkmarks, step dots, Standard/Deep toggle) use the accessible blue */
  --blue: var(--blue-dark);
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 32px;
  align-items: start;
}

/* ---------- Sidebar ---------- */
.qw-side {
  position: sticky;
  top: 124px;
  background: var(--navy);
  color: var(--text-on-navy);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.qw-side-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 10px;
}
.qw-side-title em { font-style: italic; color: var(--blue-light); }
.qw-side-sub { font-size: .82rem; line-height: 1.7; margin-bottom: 24px; }

.qw-step-mobile { display: none; }
.qw-steps { list-style: none; margin: 0; padding: 0; }
.qw-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.qw-step-item:last-child { border-bottom: 0; }
.qw-step-item.is-done { cursor: pointer; }

.qw-dot {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.qw-step-item.is-active .qw-dot,
.qw-step-mobile .qw-dot { background: var(--blue); border-color: var(--blue); color: var(--white); }
.qw-step-item.is-done .qw-dot { background: #2f9e6e; border-color: #2f9e6e; color: var(--white); }
.qw-step-item.is-done .qw-dot span { display: none; }
.qw-step-item.is-done .qw-dot::after { content: "\2713"; font-size: .85rem; }

.qw-step-info, .qw-step-mobile-text { display: flex; flex-direction: column; }
.qw-step-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.qw-step-name { font-family: var(--serif); font-size: 1.02rem; color: rgba(255,255,255,.55); }
.qw-step-item.is-active .qw-step-label,
.qw-step-mobile .qw-step-label { color: var(--blue-light); }
.qw-step-item.is-active .qw-step-name,
.qw-step-mobile .qw-step-name { color: var(--white); }
.qw-step-item.is-done .qw-step-label { color: rgba(255,255,255,.55); }

/* ---------- Main card ---------- */
.qw-main {
  min-width: 0;
  background: var(--white);
  border: 1px solid #eadfce;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 48px;
}
.qw-disclosure {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #eef6fc;
  border: 1px solid #cfe3f3;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 34px;
  font-size: .85rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.qw-disclosure svg { flex-shrink: 0; margin-top: 2px; color: var(--blue-dark); }
.qw-main .alert { margin-bottom: 24px; }

.qw-step.is-active { animation: qwIn .35s ease; }
@keyframes qwIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

.qw-heading { margin-bottom: 32px; }
.qw-label {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue-dark);
}
.qw-label span { width: 30px; height: 2px; background: var(--blue); }
.qw-heading h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; outline: none; }
.qw-heading h2 em { font-style: italic; color: var(--blue-dark); }
.qw-heading p { margin: 0; color: var(--text-muted); font-size: .98rem; }

/* ---------- Fields ---------- */
.qw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-bottom: 28px; }
.qw-grid-one { grid-template-columns: 1fr; }
.qw-field { display: flex; flex-direction: column; gap: 8px; }
.qw-full { grid-column: 1 / -1; }
.qw-field label { font-size: .82rem; font-weight: 600; color: var(--text-dark); }
.qw-field input,
.qw-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d9d2c3;
  border-radius: 9px;
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--sans);
  font-size: 16px;
}
.qw-field textarea { min-height: 76px; resize: vertical; line-height: 1.6; }
.qw-field input:focus,
.qw-field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); }
.qw-field input.has-error { border-color: #c94b4b; }
.qw-err { display: none; font-size: .8rem; color: #c94b4b; }
.qw-err.is-shown { display: block; }

.qw-nav {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid #eee7d9;
}
.qw-nav .btn { padding: 13px 26px; }
.qw-nav .btn svg { flex-shrink: 0; }

.qw-section-label {
  margin: 8px 0 14px;
  font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Package cards ---------- */
.qw-packages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 30px; }
.qw-pkg {
  position: relative;
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 18px;
  text-align: left;
  border: 2px solid #e4ddd0;
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s ease, background .2s ease;
}
.qw-pkg:hover { border-color: var(--blue-light); }
.qw-pkg.is-selected { border-color: var(--blue); background: #f3f9fd; }
.qw-pkg.is-selected::after { content: "\2713"; position: absolute; top: 10px; right: 14px; color: var(--blue-dark); font-weight: 700; }
.qw-pkg-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--text-dark); }
.qw-pkg-desc { font-size: .83rem; line-height: 1.55; color: var(--text-muted); }

/* ---------- Checkbox look (rooms, add-ons, agreement) ---------- */
.qw-check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid #cfc7b6;
  border-radius: 6px;
  background: var(--white);
  color: var(--white);
  transition: background .2s ease, border-color .2s ease;
}
.qw-check svg { opacity: 0; transition: opacity .2s ease; }
.qw-check-sm { width: 18px; height: 18px; border-radius: 5px; }
.qw-check-lg { width: 24px; height: 24px; }
.qw-room.is-active .qw-room-head .qw-check,
.qw-addon.is-selected .qw-addon-head .qw-check,
.qw-whole.is-checked .qw-check,
.qw-agree.is-checked .qw-check { background: var(--blue); border-color: var(--blue); }
.qw-room.is-active .qw-room-head .qw-check svg,
.qw-addon.is-selected .qw-addon-head .qw-check svg,
.qw-whole.is-checked .qw-check svg,
.qw-agree.is-checked .qw-check svg { opacity: 1; }

/* ---------- Rooms ---------- */
.qw-room {
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #e4ddd0;
  border-radius: 12px;
  background: var(--white);
  transition: border-color .2s ease;
}
.qw-room.is-active { border-color: var(--blue-light); }
.qw-room-head {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: none; border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.qw-room-name { font-size: 1rem; font-weight: 600; color: var(--text-dark); }
.qw-room-body {
  display: none;
  flex-direction: column; gap: 16px;
  padding: 18px 20px 20px;
  border-top: 1px solid #eee7d9;
}
.qw-room.is-active .qw-room-body { display: flex; }
.qw-clean-type { display: none; }
.qw-rooms.show-custom .qw-clean-type { display: flex; }

.qw-stepper {
  display: inline-flex; align-items: center;
  width: fit-content;
  overflow: hidden;
  border: 1px solid #d9d2c3;
  border-radius: 9px;
  background: var(--cream);
}
.qw-stepper button {
  width: 38px; height: 38px;
  border: 0; background: none;
  font-size: 1.15rem; color: var(--text-muted);
  cursor: pointer;
}
.qw-stepper button:hover { background: #e4f1fb; color: var(--blue-dark); }
.qw-qty {
  min-width: 44px;
  text-align: center;
  font-weight: 600;
  line-height: 38px;
  border-left: 1px solid #d9d2c3;
  border-right: 1px solid #d9d2c3;
}
.qw-stepper.is-disabled { opacity: .5; pointer-events: none; }

.qw-type-btns { display: flex; gap: 8px; }
.qw-type-btns button {
  flex: 1;
  padding: 10px;
  border: 1px solid #d9d2c3;
  border-radius: 9px;
  background: var(--cream);
  font-family: inherit; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
}
.qw-type-btns button.is-selected { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ---------- Add-ons & fees ---------- */
.qw-addons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.qw-addon {
  border: 2px solid #e4ddd0;
  border-radius: 12px;
  background: var(--white);
  transition: border-color .2s ease, background .2s ease;
}
.qw-addon:hover { border-color: var(--blue-light); }
.qw-addon.is-selected { border-color: var(--blue); background: #f8fcfe; }
.qw-addon-head {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%;
  padding: 18px;
  background: none; border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.qw-addon-info { display: flex; flex-direction: column; gap: 3px; }
.qw-addon-name { font-weight: 600; color: var(--text-dark); }
.qw-addon-desc { font-size: .82rem; line-height: 1.5; color: var(--text-muted); }
.qw-deep-badge { display: none; margin-top: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #2f9e6e; }
.qw-addon.is-locked { opacity: .55; filter: grayscale(.3); }
.qw-addon.is-locked:hover { border-color: #e4ddd0; }
.qw-addon.is-locked .qw-addon-head { cursor: not-allowed; }
.qw-addon.is-locked .qw-deep-badge { display: block; }

.qw-addon-body {
  display: none;
  flex-direction: column; gap: 14px;
  padding: 14px 18px 18px;
  border-top: 1px solid #eee7d9;
  border-radius: 0 0 10px 10px;
  background: var(--cream);
}
.qw-addon.is-selected .qw-addon-body { display: flex; }
.qw-whole {
  display: inline-flex; align-items: center; gap: 10px;
  width: fit-content;
  padding: 9px 14px;
  border: 1px solid #d9d2c3;
  border-radius: 9px;
  background: var(--white);
  font-family: inherit; font-size: .85rem;
  color: var(--text-muted);
  cursor: pointer;
}
.qw-whole.is-checked { border-color: var(--blue); color: var(--blue-dark); font-weight: 600; }

/* ---------- Review ---------- */
.qw-receipt { overflow: hidden; border: 1px solid #e4ddd0; border-radius: 12px; }
.qw-receipt-head {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px;
  padding: 26px 30px;
  background: var(--navy);
  color: var(--white);
}
.qw-receipt-kicker { margin-bottom: 6px; font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--text-on-navy); }
.qw-receipt-name { font-family: var(--serif); font-size: 1.5rem; }
.qw-receipt-sub { margin-top: 4px; font-size: .8rem; color: var(--text-on-navy); }
.qw-receipt-right { text-align: right; font-size: .85rem; color: var(--text-on-navy); }
.qw-receipt-block { padding: 22px 30px; border-bottom: 1px solid #eee7d9; }
.qw-receipt-block:last-child { border-bottom: 0; }
.qw-receipt-title { margin-bottom: 12px; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-muted); }
.qw-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .92rem; border-bottom: 1px dashed #eee7d9; }
.qw-row:last-child { border-bottom: 0; }
.qw-row small { font-size: .75rem; color: var(--text-muted); }
.qw-row-meta { flex-shrink: 0; font-size: .82rem; color: var(--text-muted); }
.qw-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.qw-info-grid div { font-size: .9rem; color: var(--text-dark); word-break: break-word; }
.qw-info-grid strong { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .05em; color: var(--text-muted); }

/* ---------- Policies step ---------- */
.qw-policy-link { margin-bottom: 10px; }
.qw-policy-hint { margin-bottom: 22px; font-size: .85rem; color: var(--text-muted); }
.qw-agree {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%;
  padding: 20px;
  text-align: left;
  border: 2px solid #e4ddd0;
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s ease, opacity .2s ease;
}
.qw-agree:disabled { opacity: .5; cursor: not-allowed; }
.qw-agree.is-checked { border-color: var(--blue); background: #f8fcfe; }
.qw-agree-text { font-size: .92rem; line-height: 1.7; color: var(--text-muted); }
.qw-agree-text strong { color: var(--text-dark); }
.qw-agree + .qw-err { margin-top: 8px; }

/* ---------- Confirmation overlay ---------- */
.qw-confirm {
  position: fixed; inset: 0; z-index: 500;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 24px;
  text-align: center;
  background: rgba(245,242,236,.97);
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease;
}
.qw-confirm.is-shown { opacity: 1; pointer-events: auto; }
.qw-confirm-anim { position: relative; width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; color: #2f9e6e; }
.qw-circle { position: absolute; inset: 0; border: 3px solid currentColor; border-radius: 50%; }
.qw-confirm.is-shown .qw-circle { animation: qwCircle .5s ease forwards; }
@keyframes qwCircle { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.qw-ring { position: absolute; inset: -20px; border: 1px solid rgba(47,158,110,.35); border-radius: 50%; opacity: 0; }
.qw-confirm.is-shown .qw-ring:nth-child(1) { animation: qwRing 1s ease .5s forwards; }
.qw-confirm.is-shown .qw-ring:nth-child(2) { animation: qwRing 1s ease .7s forwards; }
.qw-confirm.is-shown .qw-ring:nth-child(3) { animation: qwRing 1s ease .9s forwards; }
@keyframes qwRing { from { transform: scale(.8); opacity: .6; } to { transform: scale(1.6); opacity: 0; } }
.qw-tick { position: relative; stroke-dasharray: 50; stroke-dashoffset: 50; transition: stroke-dashoffset .5s ease .4s; }
.qw-confirm.is-shown .qw-tick { stroke-dashoffset: 0; }
.qw-confirm-title { margin: 0; font-size: 2.4rem; opacity: 0; transform: translateY(10px); transition: opacity .5s ease .6s, transform .5s ease .6s; }
.qw-confirm-title em { font-style: italic; color: #2f9e6e; }
.qw-confirm.is-shown .qw-confirm-title { opacity: 1; transform: none; }
.qw-confirm-sub { max-width: 400px; margin: 0; color: var(--text-muted); opacity: 0; transition: opacity .5s ease .8s; }
.qw-confirm-detail { font-size: .85rem; letter-spacing: .04em; color: var(--text-muted); opacity: 0; transition: opacity .5s ease 1s; }
.qw-confirm.is-shown .qw-confirm-sub,
.qw-confirm.is-shown .qw-confirm-detail { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .qw { grid-template-columns: 1fr; gap: 18px; }
  .qw-side {
    top: 108px;
    z-index: 50;
    padding: 0 18px;
    box-shadow: 0 6px 18px -8px rgba(11,32,56,.5);
  }
  .qw-side-title, .qw-side-sub, .qw-steps { display: none; }
  .qw-step-mobile { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
  .qw-main { padding: 28px 22px; }
  .qw-packages, .qw-addons, .qw-grid, .qw-info-grid { grid-template-columns: 1fr; }
  .qw-receipt-head, .qw-receipt-block { padding-left: 20px; padding-right: 20px; }
  .qw-receipt-right { text-align: left; }
}
@media (max-width: 520px) {
  .qw-nav .btn { flex: 1; justify-content: center; padding-left: 14px; padding-right: 14px; }
  .qw-confirm-title { font-size: 1.9rem; }
}
