/* The "Get a quote" page (src/quote-request-markup.js): step list, one card per step, items, files and the confirmation. Tokens from styles.css. */
.qr-wrap [hidden] { display: none !important; }
.qr-wrap { padding-bottom: 32px; }
.qr-wrap .linkish { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--forest); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* the step list: numbers in circles, the current one in forest, the done ones ticked */
.qr-steps { list-style: none; counter-reset: qr; display: flex; gap: 6px; margin: 18px 0 14px; padding: 0; }
.qr-steps li { counter-increment: qr; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .85rem; color: var(--ink-2); line-height: 1.25; }
.qr-steps li::before { content: counter(qr); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); font-weight: 700; color: var(--ink-2); }
.qr-steps li.is-done::before { content: '\2713'; border-color: var(--forest); color: var(--forest); }
.qr-steps li[aria-current=step] { color: var(--ink); font-weight: 600; }
.qr-steps li[aria-current=step]::before { background: var(--forest); border-color: var(--forest); color: #fff; }

.qr-step { padding: 20px; }
.qr-step-h { font-size: 1.3rem; margin-bottom: 14px; outline: none; scroll-margin-top: 16px; }
.qr-step-n { display: block; font: 600 .8rem/1.3 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 2px; }
.qr-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.qr-nav .btn { min-width: 128px; }
.qr-errors { outline: none; }
.qr-errors a { color: inherit; }
.qr-row { align-items: end; } /* inputs line up when only one of the pair has a help line */
.qr-row3 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.qr-firm { align-self: end; margin-bottom: 12px; }
.qr-label { font-weight: 600; font-size: .95rem; }
.qr-wrap input[type=date] { font: 16px/1.4 var(--font); color: var(--ink); background: var(--white); border: 1.5px solid #b9c4bd; border-radius: 10px; padding: 10px 12px; min-height: 48px; width: 100%; }
.qr-wrap select[aria-invalid=true], .qr-wrap textarea[aria-invalid=true] { border-color: var(--bad); }
.qr-wrap input[readonly] { background: var(--ground); color: var(--ink-2); }

/* items */
.qr-item { border: 1.5px solid var(--line); border-radius: 12px; padding: 4px 14px 6px; margin: 0 0 14px; min-width: 0; position: relative; }
.qr-item-h { font: 700 1.05rem/1.3 var(--display); padding: 0 6px; }
.qr-wrap .qr-remove { position: absolute; top: -22px; right: 12px; background: var(--white); padding: 0 8px; min-height: 40px; }
.qr-qtys { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.qr-qtys legend { font-weight: 600; font-size: .95rem; padding: 0; }
.qr-qtys .hint { margin-top: 2px; }
.qr-qty-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qr-qty-row .field { margin-bottom: 4px; }

/* files and delivery */
.qr-files-btn { align-self: flex-start; cursor: pointer; }
.qr-files-input:focus-visible + .qr-files-btn { outline: 3px solid var(--forest); outline-offset: 2px; }
.qr-files { list-style: none; margin: 8px 0 0; padding: 0; }
.qr-file { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 4px 0 4px 12px; border-left: 3px solid var(--forest); margin-bottom: 6px; background: var(--ground); border-radius: 0 8px 8px 0; }
.qr-file-name { min-width: 0; overflow-wrap: anywhere; }
.qr-file.is-sending { border-left-color: var(--mustard); color: var(--ink-2); padding: 12px; }
.qr-file.is-failed { border-left-color: var(--bad); color: var(--bad); }
.qr-file-rm { padding-right: 12px !important; flex: 0 0 auto; }
.qr-ship { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.qr-ship legend { font: 700 1.05rem/1.3 var(--display); padding: 0; }

/* review */
.qr-rev { border-bottom: 1px solid var(--line); padding: 4px 0 10px; }
.qr-rev:last-child { border-bottom: 0; }
.qr-rev-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.qr-rev-head h3 { font-size: 1.02rem; margin: 0; }
.qr-rev p { margin: 2px 0; overflow-wrap: anywhere; }
.qr-rev .qr-rev-sub { font-weight: 600; margin-top: 8px; }
.qr-rev ul { margin: 2px 0 0; padding-left: 20px; overflow-wrap: anywhere; }

/* confirmation */
.qr-done { padding: 22px; border-top: 6px solid var(--forest); }
.qr-done-h { outline: none; }
.qr-done-number { font: 700 1.15rem/1.4 var(--display); }
.qr-done-acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

@media (max-width: 600px) {
  .qr-step { padding: 16px 14px; }
  .qr-steps li { font-size: .75rem; }
  .qr-row.row2, .qr-row3 { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .qr-firm { margin-top: -4px; }
  .qr-item { padding: 4px 10px 6px; }
  .qr-nav .btn { min-width: 0; flex: 1 1 0; }
}
