/* Quote form only. Preserve native hidden/conditional states and all form names. */
html body #avfpForm[data-murcot-quote-refresh] {
  --mcq-ink:#172d23; --mcq-muted:#475e52; --mcq-green:#14663f;
  --mcq-line:#d7e3da; --mcq-soft:#f5f9f5;
  --mcq-space:clamp(12px,2.8vw,20px); --mcq-radius:14px;
}
html body #avfpForm[data-murcot-quote-refresh] .mc-input-shell {
  width:100%!important; max-width:100%!important; min-width:0!important;
  transform:none!important; transform-origin:initial!important;
}
html body #avfpForm[data-murcot-quote-refresh] :is(input:not([type=checkbox],[type=radio],[type=hidden],[type=file]),select,textarea) {
  box-sizing:border-box!important; width:100%!important; max-width:100%!important; min-width:0!important;
  min-height:46px!important; font-size:16px!important; line-height:1.35!important;
}
html body #avfpForm[data-murcot-quote-refresh] textarea {min-height:86px!important;}
html body #avfpForm[data-murcot-quote-refresh] label:not(.avfp-opt) {
  line-height:1.35!important; overflow-wrap:anywhere; min-width:0;
}
html body #avfpForm[data-murcot-quote-refresh] :is(input,select,textarea,button,a):focus-visible {
  outline:2px solid var(--mcq-green)!important; outline-offset:2px;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-btnDecodeVIN {
  display:inline-flex!important; justify-content:center; align-items:center; min-height:46px!important;
  width:auto!important; min-width:86px!important; padding:8px 12px!important; margin:0!important;
  font-size:14px!important; order:initial!important; position:static!important;
  transform:none!important; scale:none!important; height:46px!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-vinSection .avfp-helper-vin {grid-column:1 / -1;}
html body #avfpForm[data-murcot-quote-refresh] #avfp-vinSection .avfp-input-group {
  display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:7px!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-statusMsg {
  min-width:0; font-size:14px!important; font-weight:600!important; line-height:1.45!important;
  color:var(--mcq-muted)!important; margin:8px 0 0!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-statusMsg:empty {display:none!important;}
html body #avfpForm[data-murcot-quote-refresh] #avfp-vinSection:is([data-murcot-vin-phase=working],[data-murcot-vin-phase=mileage],[data-murcot-vin-phase=retry],[data-murcot-vin-phase=invalid]) #avfp-statusMsg {
  padding:9px 11px!important; border-radius:8px!important; background:var(--mcq-soft)!important;
  border:1px solid var(--mcq-line)!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-vinSection[data-murcot-vin-phase=working] #avfp-statusMsg {
  color:var(--mcq-green)!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-vinSection[data-murcot-vin-phase=working] #avfp-statusMsg::before {
  content:""; display:inline-block; width:10px; height:10px; margin-inline-end:8px;
  border:2px solid currentColor; border-inline-end-color:transparent; border-radius:50%;
  animation:mcq-spin 850ms linear infinite;
}
@keyframes mcq-spin {to {transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){#avfpForm #avfp-statusMsg::before{animation:none!important}}
html body #avfpForm[data-murcot-quote-refresh] #avfp-vinSection[data-murcot-vin-phase=invalid] #avfp-statusMsg {
  color:#80291f!important; background:#fff7f3!important; border-color:#eccac2!important;
}


html body #avfpForm[data-murcot-quote-refresh] .mcq-mileage-row {
  display:grid!important; grid-template-columns:minmax(0,1fr) auto; gap:9px; align-items:center; width:100%; min-width:0;
}
html body #avfpForm[data-murcot-quote-refresh]:is([data-murcot-vin-mode=manual],[data-murcot-vin-mode=decoded]) .mcq-mileage-row {grid-template-columns:minmax(0,1fr);}
html body #avfpForm[data-murcot-quote-refresh]:is([data-murcot-vin-mode=manual],[data-murcot-vin-mode=decoded]) .mcq-mileage-row #avfp-btnDecodeVIN {display:none!important;}
@media(max-width:300px) {
  html body #avfpForm[data-murcot-quote-refresh] .mcq-mileage-row {grid-template-columns:minmax(0,1fr);}
}

html body #avfpForm[data-murcot-quote-refresh] #avfp_vin[aria-invalid=true] {
  border-color:#b54234!important; box-shadow:0 0 0 1px #b54234!important;
}

/* Trim options wrap inside the form; standard-engine and equipment values stay native. */
html body #avfpForm[data-murcot-quote-refresh] #avfp-optBox:not(.avfp-hidden) {
  border:1px solid var(--mcq-line)!important; border-radius:var(--mcq-radius)!important;
  background:var(--mcq-soft)!important; padding:clamp(10px,2.4vw,16px)!important;
  margin:var(--mcq-space) 0 0!important; min-width:0!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-optBox .avfp-opt-list {
  grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr))!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-optBox .avfp-opt {
  min-width:0!important; min-height:44px; align-items:flex-start!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-optBox .avfp-opt span {min-width:0;overflow-wrap:anywhere;}
html body #avfpForm[data-murcot-quote-refresh] #avfp-optBox .avfp-opt:has(:checked) {
  border-color:#6aa982!important; background:#f0faf2!important;
}

/* Existing elements form the cards; no reparenting of controlled fields. */
html body #avfpForm[data-murcot-quote-refresh] #avfp-step2.active>.avfp-section-card {
  display:grid!important; grid-template-columns:minmax(0,1fr)!important; gap:var(--mcq-space)!important;
  margin:0!important; padding:0!important; background:transparent!important; border:0!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step2>.avfp-section-card>.avfp-trust-note {
  margin:0!important; padding:11px 13px!important; font-size:14px!important;
  line-height:1.5!important; color:var(--mcq-muted)!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step2>.avfp-section-card>:is(.avfp-collapsible,#avfp-conditionBlock,.avfp-field-photos,#avfp-timelineField,.avfp-field:has(#avfp_notes)) {
  box-sizing:border-box!important; min-width:0!important; width:100%!important; margin:0!important;
  border:1px solid var(--mcq-line)!important; border-radius:var(--mcq-radius)!important;
  padding:var(--mcq-space)!important; background:#fff!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step2 .avfp-collapse-toggle {
  min-height:44px!important; padding:3px 0 6px!important; gap:8px!important; text-align:start!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step2 .avfp-field-row {
  gap:12px!important; align-items:start!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step2 .avfp-field { min-width:0!important; }
html body #avfpForm[data-murcot-quote-refresh] #avfp-step2 .avfp-collapse-body:not(.avfp-hidden) {padding-inline:0!important;}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step2 #avfp-uploadBox {width:100%!important;box-sizing:border-box!important;min-width:0;}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step2 .mg-photo-guide-link a {overflow-wrap:anywhere;}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step2>.avfp-actions {
  margin-top:var(--mcq-space)!important; gap:12px!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-btnSubmit {min-height:48px!important;}

/* Result: separate vehicle, range, and next steps. Preserve hide logic and price copy. */
html body #avfpForm[data-murcot-quote-refresh] #avfp-step3 .mcv {
  min-width:0; color:var(--mcq-ink); overflow-wrap:anywhere;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step3 .mcv :is(.mcv-vehline,.mcv-range,.mcv-respond,.mcv-fx) {
  box-sizing:border-box; max-width:100%; min-width:0; padding:var(--mcq-space)!important;
  border:1px solid var(--mcq-line)!important; border-radius:var(--mcq-radius)!important;
  margin-block:12px!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step3 .mcv :is(.mcv-range,.mcv-respond) {background:var(--mcq-soft)!important;}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step3 .mcv .mcv-figures {
  display:flex!important; flex-wrap:wrap!important; gap:4px 9px!important; align-items:baseline!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step3 .mcv .mcv-n {
  font-size:clamp(24px,5vw,37px)!important; line-height:1.12!important; white-space:nowrap;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step3 .mcv-fx li {min-width:0; gap:8px!important;}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step3 .mcv-fx .mcv-adjlabel {min-width:0;overflow-wrap:anywhere;}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step3 .mcv-fx .mcv-delta {white-space:nowrap;}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step3 .avfp-thank-you:not(:has(.mcv)) {
  padding:var(--mcq-space)!important; border:1px solid var(--mcq-line)!important;
  border-radius:var(--mcq-radius)!important; background:var(--mcq-soft)!important;
}
@media(max-width:520px) {
  html body #avfpForm[data-murcot-quote-refresh] #avfp-step2 .avfp-field-row {
    display:grid!important; grid-template-columns:minmax(0,1fr)!important;
  }
  html body #avfpForm[data-murcot-quote-refresh] #avfp-step2 .avfp-field-row>.avfp-field {width:100%!important;}
}

/* The existing release theme uses high-specificity !important sizing for the old placement. */
html body #avfpForm#avfpForm#avfpForm#avfpForm[data-murcot-quote-refresh] #avfp-step1 .mcq-mileage-row #avfp-btnDecodeVIN {
  height:46px!important; min-height:46px!important; max-height:none!important;
  box-sizing:border-box!important; font-size:14px!important; max-width:100%!important;
  margin:0!important; padding:0 12px!important; transform:none!important; zoom:1!important;
}
html body #avfpForm#avfpForm#avfpForm#avfpForm[data-murcot-quote-refresh] #avfp-step1 .mcq-mileage-row #avfp-btnDecodeVIN::after {content:none!important;}


/* Box each of the groups marked in the homepage screenshots. */
html body .mc-card:has(#avfpForm[data-murcot-quote-refresh]) .mcq-quote-head {
  box-sizing:border-box!important; width:100%!important; max-width:none!important; margin-inline:auto!important;
  padding:clamp(22px,5vw,34px) clamp(14px,4vw,24px) clamp(14px,3vw,22px)!important;
  text-align:center!important;
}
html body .mc-card:has(#avfpForm[data-murcot-quote-refresh]) .mcq-quote-head .mc-card__title {
  margin:0 auto 6px!important; font-family:Archivo, system-ui, sans-serif!important; font-size:clamp(24px,3.1vw,30px)!important;
  line-height:1.16!important; font-weight:760!important; letter-spacing:-.035em!important;
  max-width:24ch; text-wrap:balance; color:#172d23!important;
}
html body .mc-card:has(#avfpForm[data-murcot-quote-refresh]) .mcq-quote-head .mcf-header-note {
  margin-inline:auto!important; text-align:center!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step1 :is(.mcq-identity-card,.mcq-contact-card,.mcq-odometer-card) {
  grid-column:1 / -1;
  box-sizing:border-box!important; min-width:0!important; width:100%!important;
  padding:clamp(10px,2.5vw,18px)!important; border:1px solid var(--mcq-line)!important;
  border-radius:var(--mcq-radius)!important; background:#fff!important; box-shadow:none!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step1 .mcq-identity-card {
  display:grid!important; grid-template-columns:minmax(0,1fr); gap:12px;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step1 .mcq-identity-card .avfp-field-row {
  margin:0!important; min-width:0!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step1 .mcq-contact-card {
  margin-top:14px!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step1 #avfp-scopeNotice:not([hidden]) {
  display:block!important; margin:8px 0 4px!important; padding:0!important; text-align:start!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step1 #avfp-scopeAckField:not([hidden]):not(.avfp-hidden) {
  padding:10px 11px!important; margin:4px 0 0!important; border:1px solid var(--mcq-line)!important;
  background:var(--mcq-soft)!important; border-radius:9px!important; min-width:0!important; box-sizing:border-box;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step1 #avfp-scopeAckField label {
  display:flex!important; align-items:flex-start!important; gap:9px!important; margin:0!important;
  color:var(--mcq-ink)!important; font-size:13px!important; line-height:1.45!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step1 #avfp_scopeAck {
  accent-color:var(--mcq-green); width:18px!important; height:18px!important; flex:0 0 18px!important;
  margin:1px 0 0!important;
}
html body #avfpForm[data-murcot-quote-refresh] #avfp-step1 #avfp-scopeAckLabel {min-width:0; overflow-wrap:normal;}

