/* TrèBien / quote form premium refinement — presentation only, 2026-10. */
:root {
  --quote-ink: #18251f;
  --quote-muted: #5d665e;
  --quote-line: #dce2da;
  --quote-soft: #f5f7f2;
  --quote-soft-2: #e9eee7;
  --quote-focus: #3e6454;
  --quote-radius: 21px;
  --quote-shadow: 0 18px 58px rgba(18,38,27,.075);
}
html { scroll-padding-top: 24px; }
body.quote-body {
  color: var(--quote-ink);
  background: linear-gradient(170deg, #fafbf8 0%, #fff 46%, #f7f7f3 100%);
  font-kerning: normal;
}
.quote-intro h1,.quote-step legend strong {
  text-wrap: balance;
  letter-spacing: -.037em;
}
.quote-intro>p:last-child,.quote-step legend>small:last-child {
  line-height: 1.65;
}
.quote-card {
  border-radius: var(--quote-radius);
  box-shadow: var(--quote-shadow);
  border-color: var(--quote-line);
}
.quote-progress {
  background: linear-gradient(90deg, #fafcf9, #fff);
  border-bottom-color: var(--quote-line);
}
.quote-choice>span,.quote-choice-stack span,
.quote-chip-grid span,.quote-upload-box,.quote-info-box {
  border-radius: 12px;
}
.quote-choice>span,.quote-choice-stack span {
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.quote-choice input:checked+span,.quote-choice-stack input:checked+span {
  border-color: #476958;
  background: #f0f5ed;
  box-shadow: 0 0 0 1px #476958;
}
.quote-field :is(input,select,textarea) {
  border-radius: 11px;
  border-color: #cbd4cb;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.quote-field :is(input,select,textarea):focus-visible {
  border-color: #477461;
  outline: 3px solid rgba(30,95,170,.45);
  outline-offset: 2px;
}
.quote-choice input:focus-visible+span,
.quote-choice-stack input:focus-visible+span,
.quote-chip-grid input:focus-visible+span {
  outline: 3px solid #1263b8;
  outline-offset: 3px;
}
.quote-consent,.quote-info-box,.quote-review,.quote-aside-card,.quote-aside-help {
  border-radius: 14px;
}
.quote-button {
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: .01em;
  transition: color .18s ease, background-color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.quote-button-primary { background: #1a3529; border-color: #1a3529; }
.quote-button:focus-visible { outline: 3px solid #1263b8; outline-offset: 3px; }
.quote-review dl { row-gap: 9px; }
@media (max-width: 680px) {
  :root { --quote-radius: 15px; }
  .quote-progress { padding: 12px 10px 11px; }
  .quote-step { padding-inline: clamp(16px,4vw,24px); }
  .quote-card { box-shadow: 0 8px 24px rgba(18,38,27,.055); }
  .quote-button { min-height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .quote-button,.quote-choice>span,.quote-choice-stack span,
  .quote-field :is(input,select,textarea) {
    transition:none!important;transform:none!important;
  }
}
@media (forced-colors:active) {
  .quote-choice>span,.quote-card,.quote-button { border:1px solid CanvasText; }
}
/* Preview studio: same calm visual language as the rest of the quotation.
   Controls and illustration remain optional; nothing is hidden or recropped. */
.quote-preview {
  border-color: #cfddd2;
  border-radius: 18px;
  background: linear-gradient(155deg, #fafcf9 0%, #f1f6f1 100%);
  box-shadow: 0 12px 30px rgba(25,55,37,.045);
}
.quote-preview h3 { letter-spacing: -.029em; line-height: 1.2; }
.quote-preview-fields select {
  min-height: 44px;
  border-color: #bfcfc3;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.quote-preview-fields select:focus-visible {
  border-color: #477461;
  outline: 3px solid #1263b8;
  outline-offset: 2px;
}
.quote-preview-display canvas {
  border: 1px solid #cfdbd1;
  box-shadow: 0 7px 22px rgba(25,55,37,.065);
}
.quote-preview-actions button {
  border-radius: 10px;
  transition: border-color .18s ease, background-color .18s ease;
}
.quote-preview-actions [data-preview-add] {
  background: #1a3529;
  border-color: #1a3529;
}
@media (prefers-reduced-motion: reduce) {
  .quote-preview-fields select,
  .quote-preview-actions button { transition: none!important; }
}


/* Restore recognisable wordmark and bring the quote into the brand type system. */
.quote-brand img {
  width: clamp(6.8rem, 13vw, 8.8rem);
  height: 3rem;
  object-fit: contain;
}
.quote-brand span { display: none; } /* Wordmark is already in the image. */
.quote-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.075;
  letter-spacing: -.035em;
  text-wrap: balance;
}
@media (max-width: 30rem) {
  .quote-header { min-height: 4.2rem; }
  .quote-brand img { width: 7rem; height: 2.8rem; }
  .quote-shell { padding-top: 1.6rem; }
  .quote-intro { margin-bottom: 1.3rem; }
  .quote-intro h1 { font-size: clamp(2.2rem, 9vw, 2.55rem); }
  .quote-intro > p:last-child { margin-top: .85rem; }
}

/* Quote V8: guided review, explicit progress and accessible attachment feedback. */
.quote-progress-status {
  display: block;
  margin: 0 0 14px;
  color: var(--quote-ink);
  font-size: .84rem;
  font-weight: 800;
  letter-spacing: .01em;
}
.quote-review { background: #fcfdfa; }
.quote-review-heading strong { margin-bottom: 5px; font-size: 1rem; }
.quote-review-heading p { margin: 0 0 14px; font-size: .82rem; color: var(--quote-muted); line-height: 1.5; }
.quote-review dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  font-size: .84rem;
}
.quote-review-line {
  min-width: 0;
  padding: 13px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 8px;
  align-content: start;
  border: 1px solid var(--quote-line);
  border-radius: 11px;
  background: #fff;
}
.quote-review-line dt { grid-column: 1; font-weight: 750; }
.quote-review-line dd {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  min-width: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  font-weight: 550;
}
.quote-review-edit {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  border: 1px solid #b8cbbd;
  border-radius: 8px;
  color: #1a3529;
  background: #fff;
  padding: 5px 9px;
  cursor: pointer;
  font-size: .78rem;
  font-weight: 750;
}
.quote-review-edit:hover { background: #edf5ee; }
.quote-review-edit:focus-visible,
.quote-actions [data-review-return]:focus-visible {
  outline: 3px solid #1263b8;
  outline-offset: 2px;
}
.quote-upload [data-file-summary].is-error { color: #9d2b24; font-weight: 750; }
.quote-upload input:focus-visible + .quote-upload-box {
  outline: 3px solid #1263b8;
  outline-offset: 3px;
}
.quote-choice input[aria-invalid="true"] + span,
.quote-chip-grid input[aria-invalid="true"] + span,
.quote-choice-stack input[aria-invalid="true"] + span {
  border-color: #9d2b24;
}
.quote-actions [data-review-return] {
  border-color: #7b9785;
  color: #1a3529;
}
.quote-step [aria-invalid="true"] { outline: 2px solid #9d2b24; outline-offset: 2px; }
@media (max-width: 680px) {
  .quote-progress-status { text-align: center; font-size: .82rem; margin: 0 0 9px; }
  .quote-review dl { grid-template-columns: 1fr; }
  .quote-review-line { padding: 12px; }
  .quote-actions [data-review-return] {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
  }
}

/* Per-stage validation stays visible without native popovers swallowing clicks. */
.quote-step-error[hidden] { display: none; }
.quote-step-error:not([hidden]) {
  margin: -8px 0 20px;
  padding: 12px 14px;
  border: 1px solid #d5a4a0;
  border-left: 4px solid #9d2b24;
  border-radius: 9px;
  background: #fff6f5;
  color: #842b25;
  font-size: .88rem;
  line-height: 1.5;
  font-weight: 650;
}
