/* quote-embed.css -- the wizard's own styles, ported from quote/styles.css
   and scoped entirely under #quote so none of that file's global element
   rules (body, h1-h3, img, a, button, header, footer) reach the rest of
   this page. Same brand tokens (../brand/scs-tokens.css already loaded).
   No change to questions, validation, pricing logic or the summary --
   this only restyles the shell. */

#quote {
  position: relative;
  z-index: 2;
  background: var(--bg-soft);
  padding-inline: clamp(20px, 4vw, 48px);
  padding-block: clamp(80px, 10vw, 140px);
  text-align: center;
}

#quote .quote-heading {
  margin: 0 0 12px;
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  color: var(--ink);
}

#quote .quote-subhead {
  margin: 0 0 40px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--role-text-muted);
  max-width: 46ch;
}

.back-to-top-row {
  text-align: center;
  padding-block: 32px;
  background: var(--role-bg-soft);
}

.back-to-top {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--role-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  transition: color var(--dur-fast) var(--ease-ui);
}

.back-to-top:hover { color: var(--charcoal); }

.back-to-top__arrow {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-ui);
}

.back-to-top:hover .back-to-top__arrow { transform: translateY(-3px); }

#quote .wizard-shell {
  max-width: 1040px;
  margin: 0 auto;
  text-align: left;
}

#quote .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(43, 38, 33, 0.18);
}

#quote .progress-track { height: 6px; background: var(--bg-soft); }
#quote .progress-fill { height: 100%; background: var(--charcoal); transition: width 0.5s var(--ease-ui); width: 0%; }
#quote .progress-label { padding: 14px 26px 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); font-family: var(--heading); }

#quote .wizard-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: stretch; }
#quote .wizard-media { position: relative; background: var(--bg-soft); min-height: 100%; }
#quote .wizard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#quote .wizard-media-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 16px; font-size: 12px; font-weight: 600;
  color: #fff; background: linear-gradient(to top, rgba(74,65,57,.78), transparent);
}
@media (max-width: 859px) { #quote .wizard-grid { grid-template-columns: 1fr; } #quote .wizard-media { display: none; } }

#quote .step-card { padding: 28px 30px; }
#quote .step-card h2 {
  font-family: var(--heading); text-transform: uppercase; letter-spacing: .01em; color: var(--charcoal);
  font-size: 20px; margin: 0 0 20px; line-height: 1.35; font-weight: 600;
}

#quote .tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 12px; margin-bottom: 8px; }
#quote .vtile {
  border: 1.5px solid var(--line); background: #fff; border-radius: 8px; padding: 18px 12px 15px;
  display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center;
  font-family: var(--body); color: var(--ink); font-weight: 600; font-size: 13.5px;
  transition: border-color var(--dur-fast) var(--ease-ui), background var(--dur-fast) var(--ease-ui), transform 120ms var(--ease-ui);
}
#quote .vtile:hover { border-color: var(--charcoal); transform: translateY(-2px); }
#quote .vtile:active { transform: translateY(0) scale(0.98); }
#quote .vtile.selected { background: #F1EFE9; border-color: var(--charcoal); }
#quote .vtile .vtile-icon { color: var(--charcoal); height: 40px; display: flex; align-items: flex-end; justify-content: center; }
#quote .vtile .vtile-label { line-height: 1.3; }
#quote .vtile .vtile-sub { color: var(--ink-muted); font-weight: 400; font-size: 11.5px; }

#quote .extras-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 10px; margin-bottom: 10px; }
#quote .extra-tile {
  display: flex; align-items: flex-start; gap: 12px; border: 1.5px solid var(--line); background: #fff; text-align: left;
  padding: 13px 14px; border-radius: 8px; font-family: var(--body);
  transition: border-color var(--dur-fast) var(--ease-ui), background var(--dur-fast) var(--ease-ui), transform 120ms var(--ease-ui);
}
#quote .extra-tile:hover { border-color: var(--charcoal); transform: translateY(-2px); }
#quote .extra-tile:active { transform: translateY(0) scale(0.98); }
#quote .extra-tile.selected { background: #F1EFE9; border-color: var(--charcoal); }
#quote .extra-tile .extra-icon { color: var(--charcoal); flex-shrink: 0; margin-top: 1px; }
#quote .extra-tile .extra-check {
  margin-left: auto; width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--line); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff; background: #fff;
}
#quote .extra-tile.selected .extra-check { background: var(--charcoal); border-color: var(--charcoal); }
#quote .extra-title { display: block; font-weight: 700; font-size: 14px; margin-bottom: 3px; }
#quote .extra-helper { display: block; font-size: 12px; color: var(--ink-muted); line-height: 1.4; }

#quote .text-input, #quote .textarea-input {
  width: 100%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: 12px 14px;
  border-radius: 6px; font-size: 15px; font-family: var(--body); margin-bottom: 6px;
  transition: border-color var(--dur-fast) var(--ease-ui);
}
#quote .text-input:focus, #quote .textarea-input:focus { outline: none; border-color: var(--charcoal); }
#quote .textarea-input { min-height: 90px; resize: vertical; }
#quote .text-input.invalid, #quote .textarea-input.invalid { border-color: #A6382B; }
#quote .field-error { color: #A6382B; font-size: 12.5px; font-weight: 600; margin: -2px 0 12px; }
#quote .field-block { margin-bottom: 14px; }
#quote .field-block-label { font-size: 12.5px; color: var(--ink-muted); font-weight: 600; margin: 14px 0 6px; }

#quote .dims-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
#quote .dims-field { flex: 1; min-width: 110px; }
#quote .dims-field label { display: block; font-size: 12px; font-weight: 700; color: var(--ink-muted); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .04em; }
#quote .dims-times { font-family: var(--heading); font-size: 22px; color: var(--charcoal-soft); padding-top: 18px; }
#quote .area-readout {
  margin-top: 4px; background: var(--bg-soft); border: 1.5px dashed var(--line); border-radius: 8px;
  padding: 16px 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
#quote .area-readout .area-figure { font-family: var(--heading); font-size: 28px; color: var(--charcoal); font-weight: 600; }
#quote .area-readout .area-label { font-size: 13px; color: var(--ink-muted); font-weight: 600; }
#quote .area-readout.empty .area-figure { color: var(--ink-muted); font-size: 15px; font-family: var(--body); font-weight: 600; }

#quote .price-panel {
  margin-top: 12px; border-left: 3px solid var(--charcoal); background: #F8F7F4; border-radius: 0 8px 8px 0;
  padding: 12px 16px; font-size: 13px; color: var(--ink-muted); line-height: 1.55;
}
#quote .price-panel strong { color: var(--charcoal); }
#quote .price-panel .price-eyebrow { display: block; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--charcoal); margin-bottom: 5px; }

#quote .notice-panel { margin: 4px 0 16px; border-left: 3px solid var(--charcoal); background: #F8F7F4; border-radius: 0 8px 8px 0; padding: 14px 16px; }
#quote .notice-panel-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
#quote .notice-panel .notice-icon { color: var(--charcoal); flex-shrink: 0; margin-top: 1px; }
#quote .notice-panel .notice-text { font-size: 13px; color: var(--ink-muted); line-height: 1.55; }
#quote .notice-actions { display: flex; justify-content: flex-end; align-items: center; gap: 16px; flex-wrap: wrap; }

#quote .scale-panel { margin-top: 12px; background: var(--bg-soft); border: 1.5px dashed var(--line); border-radius: 8px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
#quote .scale-drawing { width: 100%; max-width: 280px; height: auto; display: block; }
#quote .scale-note { width: 100%; text-align: center; font-size: 13px; color: var(--ink-muted); line-height: 1.5; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
#quote .scale-note .scale-eyebrow { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--charcoal-soft); margin-bottom: 4px; }
#quote .scale-note .scale-multislab-note { display: block; margin-top: 6px; font-size: 11.5px; color: var(--ink-muted); font-style: italic; }

#quote .upload-zone {
  border: 2px dashed var(--line); border-radius: 10px; padding: 34px 20px; text-align: center; color: var(--ink-muted);
  margin-bottom: 16px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  transition: border-color var(--dur-fast) var(--ease-ui), color var(--dur-fast) var(--ease-ui);
}
#quote .upload-zone:hover { border-color: var(--charcoal); color: var(--charcoal); }
#quote .upload-zone .upload-icon { color: var(--charcoal); }
#quote .upload-zone .upload-title { font-weight: 700; font-size: 15px; color: var(--ink); }
#quote .upload-zone .upload-sub { font-size: 12.5px; }
#quote .thumb-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
#quote .thumb { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
#quote .thumb img { width: 100%; height: 100%; object-fit: cover; }
#quote .thumb button { position: absolute; top: 3px; right: 3px; background: rgba(74,65,57,.78); color: #fff; border: none; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; cursor: pointer; }
#quote .photo-count { font-size: 13px; color: var(--charcoal); font-weight: 700; margin-bottom: 14px; }

#quote .step-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
#quote .link-btn { background: none; border: none; color: var(--ink-muted); text-decoration: underline; font-size: 13.5px; padding: 6px 0; cursor: pointer; font-family: var(--body); }
#quote .btn-primary {
  background: var(--charcoal); color: #fff; border: none; font-weight: 700; font-size: 14.5px; padding: 13px 26px;
  border-radius: 6px; font-family: var(--heading); text-transform: uppercase; letter-spacing: .03em; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-ui), transform 90ms var(--ease-press);
}
#quote .btn-primary:hover { background: #5c5142; }
#quote .btn-primary:active { transform: scale(0.97); }

#quote .kickoff-field-label { font-size: 12.5px; color: var(--ink-muted); font-weight: 600; margin: 4px 0 8px; }

#quote .extract-confirm-sub { color: var(--ink-muted); font-size: 14px; margin: -8px 0 16px; }
#quote .extract-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
#quote .extract-row { align-items: center; opacity: 0; transform: translateY(8px); animation: quoteExtractRowIn .18s ease forwards; }
#quote .extract-row-text { flex: 1; font-size: 14px; }
#quote .extract-row-text strong { color: var(--charcoal); }
#quote .extra-icon.extract-check-badge { color: #fff; background: var(--charcoal); border-radius: 50%; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; margin-top: 0; }
#quote .extract-edit { flex-shrink: 0; white-space: nowrap; }
@keyframes quoteExtractRowIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

#quote .combo { position: relative; }
#quote .combo-listbox {
  position: fixed; z-index: 60; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1.5px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(74,65,57,.16);
  max-height: 240px; overflow-y: auto;
}
#quote .combo-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 6px; font-size: 14.5px; color: var(--ink); cursor: pointer; }
#quote .combo-option.active, #quote .combo-option:hover { background: #F1EFE9; }
#quote .combo-name { font-weight: 600; }
#quote .combo-postcode { color: var(--ink-muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }

#quote .completion { padding: 32px 30px 8px; text-align: center; }
#quote .completion h2 { font-family: var(--heading); text-transform: uppercase; color: var(--charcoal); font-size: 23px; margin: 0 0 10px; font-weight: 600; }
#quote .completion > p { color: var(--ink-muted); max-width: 46ch; margin: 0 auto 6px; }

#quote .brief { margin: 22px 30px 26px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-align: left; }
#quote .brief-head { background: var(--charcoal); color: #fff; padding: 18px 22px; display: flex; align-items: center; gap: 14px; }
#quote .brief-head img { height: 32px; }
#quote .brief-head .brief-head-text .eyebrow { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); font-weight: 700; margin: 0; overflow: visible; }
#quote .brief-head .brief-head-text h3 { color: #fff; font-size: 17px; font-family: var(--heading); text-transform: uppercase; margin: 0; }
#quote .brief-media { height: 160px; overflow: hidden; }
#quote .brief-media img { width: 100%; height: 100%; object-fit: cover; }
#quote .brief-body { padding: 22px; }
#quote .brief-who { color: var(--ink-muted); font-size: 13.5px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
#quote .brief-grid { display: grid; grid-template-columns: 150px 1fr; gap: 11px 16px; font-size: 14.5px; margin: 0; }
#quote .brief-grid dt { color: var(--ink-muted); font-weight: 600; margin: 0; }
#quote .brief-grid dd { margin: 0; }
#quote .brief-photos { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
#quote .brief-photos img { width: 58px; height: 58px; object-fit: cover; border-radius: 7px; }
#quote .reset-row { text-align: center; padding: 0 26px 32px; }

#quote .hidden { display: none !important; }

@media (max-width: 600px) {
  #quote .step-card { padding: 22px 20px; }
  #quote .brief { margin: 18px 18px 22px; }
  #quote .brief-grid { grid-template-columns: 120px 1fr; }
  #quote .dims-times { padding-top: 0; }
}
