/* ============================================================
   Instant Quote widget — Putt Social DMV
   Inherits theme tokens from styles.css (--accent, --ink, etc.)
   ============================================================ */

.quote__head { max-width: 640px; margin: 0 auto; text-align: center; }
.quote__head .h2 { margin: 0.4em 0 0.35em; }
.quote__head .lead { margin: 0 auto; }

/* ---- modal ---- */
.qmodal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(22, 19, 14, 0.55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  overflow-y: auto;
  animation: qfade .25s ease both;
}
.qmodal__inner { position: relative; width: min(820px, 100%); margin: auto; animation: qrise .32s cubic-bezier(.2,.9,.3,1) both; }
.qmodal__close {
  position: fixed; top: 18px; right: 18px; z-index: 210;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--cream-3); border: 1px solid rgba(255,255,255,0.25); color: var(--ink);
  cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25); transition: transform .15s, background .2s;
}
.qmodal__close:hover { background: #fff; transform: rotate(90deg); }
@keyframes qfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes qrise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.quote__head--modal { margin-bottom: 6px; }
.quote__head--modal .eyebrow { color: #cfd6c2; }
.quote__head--modal .eyebrow::before, .quote__head--modal .eyebrow::after { background: #cfd6c2; }
.quote__head--modal .h2 { color: #fdfbf6; }
.quote__head--modal .h2 em { color: #cfd6c2; }
.quote__head--modal .lead { color: #e8e3d6; }

/* ---- the card ---- */
.qcard {
  max-width: 820px;
  margin: clamp(36px, 5vw, 60px) auto 0;
  background: var(--cream-3);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 60px -40px rgba(32,29,23,0.5);
  padding: clamp(22px, 3.4vw, 40px);
}

/* ============================================================ STEPPER */
.stepper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: clamp(24px, 3vw, 36px);
  scrollbar-width: thin;
}
.stepper__item { display: flex; align-items: flex-start; flex: 1 1 0; min-width: 88px; }
.stepper__node { display: flex; flex-direction: column; align-items: center; gap: 0.55em; flex: none; width: 64px; }
.node__dot {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  background: var(--cream-3);
  color: var(--ink-faint);
  font-family: var(--font-display);
  font-size: 1.15rem; font-weight: 600;
  transition: background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.node__dot svg { width: 18px; height: 18px; }
.node__label {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-faint); text-align: center; line-height: 1.2; font-weight: 600;
  transition: color .25s;
}
/* connector */
.stepper__line { flex: 1 1 auto; height: 2px; background: var(--line); margin-top: 21px; min-width: 16px; border-radius: 2px; position: relative; overflow: hidden; }
.stepper__line::after { content:""; position:absolute; inset:0; width:0; background: var(--accent); transition: width .35s ease; }
.stepper__line.is-filled::after { width: 100%; }

/* states */
.stepper__item.is-active .node__dot {
  border-color: var(--accent-deep); color: var(--accent-deep);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.stepper__item.is-active .node__label { color: var(--ink); }
.stepper__item.is-done .node__dot {
  background: var(--accent); border-color: var(--accent); color: #fbf8f0;
}
.stepper__item.is-done .node__label { color: var(--ink-soft); }

/* ============================================================ STEP BODY */
.qbody { min-height: 318px; display: flex; flex-direction: column; }
.qstep__q {
  font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 500; line-height: 1.15; margin-bottom: 0.25em;
}
.qstep__hint { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1.4rem; }
.qstep__hint em { color: var(--accent-deep); font-style: italic; }

/* ---- choice grids ---- */
.qgrid { display: grid; gap: 14px; }
.qgrid--3 { grid-template-columns: repeat(3, 1fr); }
.qgrid--2 { grid-template-columns: repeat(2, 1fr); }
.qgrid--addons { grid-template-columns: repeat(2, 1fr); }

/* ---- choice card ---- */
.qc {
  position: relative; text-align: left;
  background: var(--cream); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 18px 18px 16px;
  cursor: pointer; font-family: var(--font-body); color: var(--ink);
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
  display: flex; flex-direction: column; gap: 0.2em;
}
.qc:hover { border-color: var(--ink); }
.qc:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.qc.is-sel {
  background: var(--accent-tint); border-color: var(--accent-deep);
  box-shadow: 5px 7px 0 -1px color-mix(in oklab, var(--accent) 32%, transparent);
  transform: translateY(-2px);
}
.qc__big { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-weight: 500; }
.qc__t { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.1; }
.qc__s { color: var(--ink-soft); font-size: 0.92rem; line-height: 1.35; }
.qc__badge {
  position: absolute; top: -10px; right: 14px;
  background: var(--ink); color: var(--cream);
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  padding: 0.35em 0.8em; border-radius: 999px;
}

/* add-on card */
.qc--addon { padding-right: 52px; min-height: 104px; }
.qc__price {
  align-self: flex-start; margin-top: 0.5em;
  font-family: var(--font-body); font-weight: 600; font-size: 0.85rem;
  color: var(--accent-deep); background: var(--cream-3);
  border: 1px solid var(--line); padding: 0.3em 0.7em; border-radius: 999px;
}
.qc.is-sel .qc__price { background: #fff; }
.qc__check {
  position: absolute; top: 16px; right: 16px;
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--cream-3);
  display: grid; place-items: center; transition: .18s;
}
.qc__check svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.5); transition: .18s; color: #fbf8f0; }
.qc.is-sel .qc__check { background: var(--accent); border-color: var(--accent); }
.qc.is-sel .qc__check svg { opacity: 1; transform: scale(1); }

/* ---- form ---- */
.qform { display: grid; gap: 16px; }
.qrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.qfield { display: grid; gap: 0.45em; }
.qfield label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.qopt { letter-spacing: 0.04em; text-transform: none; color: var(--ink-faint); font-weight: 400; }
.qfield input {
  font-family: var(--font-body); font-size: 1.05rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line);
  border-radius: 11px; padding: 0.78em 0.9em; transition: border-color .18s, box-shadow .18s;
}
.qfield input::placeholder { color: var(--ink-faint); }
.qfield input:focus { outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-tint); }
.qfield input[type="date"] { cursor: pointer; }

/* yes/no segmented control */
.qseg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qseg__btn {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 11px;
  padding: 0.7em 1em; cursor: pointer; transition: border-color .18s, background .18s, box-shadow .18s;
}
.qseg__btn:hover { border-color: var(--ink); }
.qseg__btn.is-on { background: var(--accent-tint); border-color: var(--accent-deep); color: var(--accent-deep); font-weight: 600; }

/* ============================================================ QUOTE FORM (rental options + groups) */
.qhead { margin-bottom: clamp(20px, 2.6vw, 28px); }
.qhead__eyebrow {
  font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.72rem; font-weight: 600; color: var(--accent-deep);
}
.qhead h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.05;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0.3em 0 0; }
.qhead h3 em { font-style: italic; color: var(--accent-deep); }

.qform2 { display: grid; gap: clamp(22px, 2.8vw, 30px); }
.qgroup { display: grid; gap: 0.9rem; }
.qgroup__label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; }
.req { color: var(--accent-deep); margin-left: 0.2em; }

/* rental option rows */
.optlist { display: grid; gap: 10px; }
.optrow {
  display: flex; align-items: center; gap: 14px; text-align: left;
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; font-family: var(--font-body); color: var(--ink);
  transition: border-color .16s, background .16s;
}
.optrow:hover { border-color: var(--ink); }
.optrow.is-sel { background: var(--accent-tint); border-color: var(--accent-deep); }
.optrow__box {
  flex: none; width: 24px; height: 24px; border-radius: 7px;
  border: 1.5px solid var(--line); background: var(--cream-3);
  display: grid; place-items: center; transition: .16s;
}
.optrow__box svg { width: 13px; height: 13px; color: #fbf8f0; opacity: 0; transform: scale(0.5); transition: .16s; }
.optrow.is-sel .optrow__box { background: var(--accent); border-color: var(--accent); }
.optrow.is-sel .optrow__box svg { opacity: 1; transform: scale(1); }
.optrow__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.optrow__name { font-size: 1.04rem; font-weight: 600; line-height: 1.25; }
.optrow__sub { font-size: 0.86rem; color: var(--ink-soft); margin-top: 3px; line-height: 1.35; }
.optrow__price {
  flex: none; font-weight: 600; font-size: 0.9rem; color: var(--accent-deep);
  background: var(--cream-3); border: 1px solid var(--line);
  padding: 0.34em 0.7em; border-radius: 999px; white-space: nowrap;
}
.optrow.is-sel .optrow__price { background: #fff; }

/* wrapping pill radios */
.pillset { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  font-family: var(--font-body); font-size: 0.98rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0.6em 1.2em; cursor: pointer; transition: border-color .16s, background .16s, color .16s;
}
.pill:hover { border-color: var(--ink); }
.pill.is-on { background: var(--accent-tint); border-color: var(--accent-deep); color: var(--accent-deep); font-weight: 600; }

/* ============================================================ FOOTER NAV */
.qnav { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: clamp(22px, 3vw, 32px); padding-top: 22px; border-top: 1px solid var(--line); }
.qnav .btn[disabled] { opacity: 0.34; pointer-events: none; }
.qnav--single { justify-content: flex-end; }
.qnav__back { background: none; border: none; cursor: pointer; font-family: var(--font-body);
  font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: 0.5em; padding: 0.6em 0.2em; }
.qnav__back:hover { color: var(--ink); }
.qnav__back[disabled] { opacity: 0.3; pointer-events: none; }

/* ============================================================ SUCCESS */
.qsuccess { text-align: center; padding: clamp(14px, 3vw, 34px) 0; min-height: 318px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
.qsuccess__badge {
  width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #fbf8f0;
  display: grid; place-items: center; margin-bottom: 1.2rem;
  box-shadow: 0 0 0 8px var(--accent-tint);
  animation: qpop .5s cubic-bezier(.2,1.3,.5,1) both;
}
.qsuccess__badge svg { width: 36px; height: 36px; }
@keyframes qpop { from { transform: scale(0); } to { transform: scale(1); } }
.qsuccess h3 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 500; }
.qsuccess h3 em { font-style: italic; color: var(--accent-deep); }
.qsuccess__sub { color: var(--ink-soft); margin: 0.5rem auto 1.6rem; max-width: 440px; }
.qpill {
  display: inline-flex; align-items: baseline; gap: 0.4em;
  background: var(--ink); color: var(--cream); border-radius: 999px;
  padding: 0.7em 1.4em; margin-bottom: 1.6rem;
}
.qpill b { font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1; }
.qpill span { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: #c4cdb4; }
.qsuccess__note { color: var(--ink-faint); font-size: 0.92rem; max-width: 420px; margin: 0 auto; }

/* ============================================================ RESPONSIVE */
@media (max-width: 720px) {
  .qgrid--3, .qgrid--addons { grid-template-columns: 1fr; }
  .qgrid--2 { grid-template-columns: 1fr; }
  .qrow { grid-template-columns: 1fr; }
  .stepper__item { min-width: 76px; }
  .node__dot { width: 38px; height: 38px; font-size: 1rem; }
  .stepper__line { margin-top: 19px; }
  .qbody, .qsuccess { min-height: 0; }
}

/* tighten the quote form so it isn't so tall on phones */
@media (max-width: 600px) {
  .qmodal { padding: 12px 12px 12px; align-items: flex-start; }
  .qcard { padding: 20px 18px 22px; border-radius: 18px; }
  .qhead { margin-bottom: 16px; }
  .qhead h3 { font-size: 1.6rem; }
  .qform2 { gap: 18px; }
  .qgroup { gap: 0.6rem; }
  .qgroup__label { font-size: 0.7rem; }
  .optlist { gap: 8px; }
  .optrow { padding: 12px; gap: 11px; border-radius: 10px; }
  .optrow__box { width: 22px; height: 22px; border-radius: 6px; }
  .optrow__name { font-size: 0.98rem; }
  .optrow__sub { display: none; }
  .optrow__price { font-size: 0.82rem; padding: 0.3em 0.6em; }
  .pillset { gap: 8px; }
  .pill { padding: 0.5em 1em; font-size: 0.92rem; }
  .qform { gap: 12px; }
  .qfield input { padding: 0.68em 0.8em; font-size: 1rem; }
  .qnav { margin-top: 18px; padding-top: 16px; }
  .qnav--single .btn { width: 100%; justify-content: center; }
}

