/* The quote request page. Every rule is scoped under .dkc-quote and reads the --brand-* tokens of the active theme. */
@font-face {
  font-family: Mulish;
  src: url("../assets/fonts/mulish-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

.dkc-quote { display: block; box-sizing: border-box; max-width: 1180px; margin: 0 auto; padding: 0 30px; color: var(--brand-text); font: 400 16px/1.5 var(--brand-font-body); text-align: left; -webkit-text-size-adjust: 100%; }
.dkc-quote *, .dkc-quote *::before, .dkc-quote *::after { box-sizing: border-box; }
.dkc-quote [hidden] { display: none !important; }
.dkc-quote :focus-visible { outline: 3px solid var(--brand-focus); outline-offset: 2px; }

.dkc-quote .dkc-q-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.dkc-quote .dkc-q-main { min-width: 0; border: 1px solid var(--brand-rule); background: var(--brand-surface); }
.dkc-quote .dkc-q-form { margin: 0; padding: 28px 36px 32px; min-height: 380px; }

/* ---------------------------------------------------------------- progress */
.dkc-quote .dkc-q-progress { padding: 18px 36px 0; }
.dkc-quote .dkc-q-progress__text { margin: 0 0 10px; font: 600 13px/1.4 var(--brand-font-body); text-transform: var(--brand-label-transform); letter-spacing: var(--brand-label-tracking); }
.dkc-quote .dkc-q-progress__step { color: var(--brand-ink); }
.dkc-quote .dkc-q-progress__track { height: 4px; background: var(--brand-surface-alt); }
.dkc-quote .dkc-q-progress__bar { height: 100%; width: 0; background: var(--brand-ink); transition: width 0.35s ease; }

/* ---------------------------------------------------------------- type */
.dkc-quote .dkc-q-title { margin: 0 0 6px; padding: 0; color: var(--brand-ink); font: 400 clamp(24px, 2.4vw, 30px)/1.2 var(--brand-font-heading); letter-spacing: 0.01em; text-transform: none; }
.dkc-quote .dkc-q-title:focus { outline: none; }
.dkc-quote .dkc-q-lede { margin: 0 0 20px; color: var(--brand-text); font-size: 16px; line-height: 1.45; }
.dkc-quote .dkc-q-sub { margin: 26px 0 4px; padding: 0; color: var(--brand-ink); font: 600 16px/1.35 var(--brand-font-body); }
.dkc-quote .dkc-q-note { margin: 0 0 12px; color: var(--brand-muted); font-size: 14px; line-height: 1.45; }
.dkc-quote .dkc-q-fine { margin: 14px 0 0; color: var(--brand-muted); font-size: 14px; line-height: 1.45; text-align: right; }
.dkc-quote .dkc-q-error { display: block; flex-basis: 100%; margin: 8px 0 0; color: var(--brand-danger); font-size: 14px; font-weight: 600; line-height: 1.35; }
.dkc-quote .dkc-q-link { display: inline; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; color: var(--brand-ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dkc-quote .dkc-q-link:hover { color: var(--brand-muted); }
.dkc-quote .dkc-q-link--big { font-size: 22px; font-weight: 400; text-decoration: none; }

/* ---------------------------------------------------------------- ways to start: the whole tile is the button */
.dkc-quote .dkc-q-paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; }
.dkc-quote .dkc-q-path {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-height: 138px; margin: 0; padding: 18px 12px 14px;
  background: var(--brand-surface); color: var(--brand-ink); border: 1px solid var(--brand-field-border); border-radius: var(--brand-radius); box-shadow: none;
  font: 400 16px/1.3 var(--brand-font-body); text-align: center; text-transform: none; letter-spacing: 0; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dkc-quote .dkc-q-path:hover, .dkc-quote .dkc-q-path:focus-within { border-color: var(--brand-ink); background: var(--brand-surface-alt); }
.dkc-quote .dkc-q-path__icon { display: block; width: 38px; height: 38px; margin-bottom: 2px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.dkc-quote .dkc-q-path__label { display: block; font-weight: 600; font-size: 17px; }
.dkc-quote .dkc-q-path__note { display: block; color: var(--brand-muted); font-size: 14px; }
.dkc-quote .dkc-q-path__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

.dkc-quote .dkc-q-spaces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; }
.dkc-quote .dkc-q-space {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-height: 120px; margin: 0; padding: 8px 8px 12px;
  background: var(--brand-surface); color: var(--brand-ink); border: 1px solid var(--brand-field-border); border-radius: var(--brand-radius); box-shadow: none;
  font: 400 15px/1.3 var(--brand-font-body); text-align: center; text-transform: none; letter-spacing: 0; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.dkc-quote .dkc-q-space:hover { border-color: var(--brand-ink); }
.dkc-quote .dkc-q-space.is-on { border-color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); background: var(--brand-surface-alt); }
.dkc-quote .dkc-q-space__img { display: block; width: 100%; height: auto; margin: 0 0 6px; pointer-events: none; }
.dkc-quote .dkc-q-space__label { display: block; font-weight: 600; font-size: 16px; }
.dkc-quote .dkc-q-space__tag { display: block; color: var(--brand-muted); font-size: 13px; }
.dkc-quote .dkc-q-space__tick { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-ink); opacity: 0; transform: scale(0.6); transition: opacity 0.15s ease, transform 0.15s ease; }
.dkc-quote .dkc-q-space__tick::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 10px; border: solid var(--brand-surface); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.dkc-quote .dkc-q-space.is-on .dkc-q-space__tick { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- drawing */
.dkc-quote .dkc-q-pad {
  position: relative; margin: 0; border: 1px solid var(--brand-ink); background-color: var(--brand-surface);
  background-image: linear-gradient(var(--brand-rule) 1px, transparent 1px), linear-gradient(90deg, var(--brand-rule) 1px, transparent 1px); background-size: 40px 40px;
}
.dkc-quote .dkc-q-pad__canvas { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; touch-action: none; cursor: crosshair; }
.dkc-quote .dkc-q-pad__hint { position: absolute; left: 0; right: 0; top: 50%; margin: -16px 0 0; color: var(--brand-muted); font-size: 22px; font-weight: 250; text-align: center; pointer-events: none; opacity: 0; }
.dkc-quote .dkc-q-pad.is-empty .dkc-q-pad__hint { opacity: 1; }

.dkc-quote .dkc-q-busy { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; text-align: center; }
.dkc-quote .dkc-q-busy__dot { width: 44px; height: 44px; margin: 0 0 22px; border: 3px solid var(--brand-surface-alt); border-top-color: var(--brand-ink); border-radius: 50%; animation: dkc-q-spin 0.9s linear infinite; }
@keyframes dkc-q-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- the room */
.dkc-quote .dkc-q-found { margin: 0 0 18px; padding: 14px 18px; background: var(--brand-surface-alt); border-left: 3px solid var(--brand-ink); }
.dkc-quote .dkc-q-found__list { margin: 0; padding: 0; list-style: none; }
.dkc-quote .dkc-q-found__item { margin: 0; padding: 2px 0; color: var(--brand-ink); font-size: 15px; line-height: 1.4; }

.dkc-quote .dkc-q-shapes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; }
.dkc-quote .dkc-q-shape {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 76px; margin: 0; padding: 8px 6px 8px; background: var(--brand-surface); color: var(--brand-ink);
  border: 1px solid var(--brand-field-border); border-radius: var(--brand-radius); box-shadow: none; font: 400 14px/1.3 var(--brand-font-body); text-transform: none; letter-spacing: 0; cursor: pointer;
}
.dkc-quote .dkc-q-shape:hover { border-color: var(--brand-ink); }
.dkc-quote .dkc-q-shape.is-on { border-color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); background: var(--brand-surface-alt); font-weight: 600; }
.dkc-quote .dkc-q-shape__icon { display: block; width: 46px; height: 40px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: square; }
.dkc-quote .dkc-q-shape__label { display: block; }

.dkc-quote .dkc-q-measure { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: start; }
.dkc-quote .dkc-q-walls { display: grid; gap: 10px; justify-items: start; }
.dkc-quote .dkc-q-wall { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dkc-quote .dkc-q-wall--ceiling { margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--brand-rule); width: 100%; }
.dkc-quote .dkc-q-wall__name { width: 60px; color: var(--brand-ink); font-weight: 600; font-size: 15px; line-height: 1.25; }
.dkc-quote .dkc-q-wall__tag { color: var(--brand-muted); font-size: 13px; }
.dkc-quote .dkc-q-unit { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.dkc-quote .dkc-q-unit__label { color: var(--brand-muted); font-size: 15px; }
.dkc-quote .dkc-q-diagram { padding: 6px; background: var(--brand-surface-alt); }
.dkc-quote .dkc-q-diagram__svg { display: block; width: 100%; height: auto; }
.dkc-quote .dkc-q-diagram__wall { stroke: var(--brand-draw-line); stroke-width: 4; stroke-linecap: square; }
.dkc-quote .dkc-q-diagram__wall.is-open { stroke: var(--brand-draw-dim); stroke-width: 2; stroke-dasharray: 5 5; }
.dkc-quote .dkc-q-diagram__text { fill: var(--brand-draw-dim-text); font: 600 12px/1 var(--brand-font-body); }

/* ---------------------------------------------------------------- fields */
.dkc-quote .dkc-q-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0; }
.dkc-quote .dkc-q-field { display: block; min-width: 0; margin: 0; padding: 0; }
.dkc-quote .dkc-q-field__label { display: block; margin: 0 0 6px; color: var(--brand-ink); font: 600 15px/1.35 var(--brand-font-body); }
.dkc-quote .dkc-q-field__hint { color: var(--brand-muted); font-weight: 400; font-size: 14px; }
.dkc-quote .dkc-q-input {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 12px; background: var(--brand-surface); color: var(--brand-ink);
  border: 1px solid var(--brand-field-border); border-radius: var(--brand-field-radius); box-shadow: none; font: 400 16px/1.2 var(--brand-font-body);
}
.dkc-quote .dkc-q-input--num { width: 76px; text-align: center; font-variant-numeric: tabular-nums; }
.dkc-quote .dkc-q-input:focus-visible { outline: 3px solid var(--brand-focus); outline-offset: 0; border-color: var(--brand-ink); }
.dkc-quote .dkc-q-input.is-guess { border-style: dashed; border-color: var(--brand-ink); background: var(--brand-surface-alt); }
.dkc-quote .dkc-q-input.is-invalid { border-color: var(--brand-danger); }

/* ---------------------------------------------------------------- buttons */
.dkc-quote .dkc-q-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 0; padding: 22px 0 0; border-top: 1px solid var(--brand-rule); }
.dkc-quote .dkc-q-foot--tight { margin-top: 14px; padding-top: 0; border-top: 0; }
.dkc-quote .dkc-q-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 16px 0 0; }
.dkc-quote .dkc-q-row--flush { margin-top: 0; gap: 8px; }
.dkc-quote .dkc-q-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px; margin: 0; padding: 0 26px; background: var(--brand-action-bg); color: var(--brand-action-text);
  border: 2px solid var(--brand-action-bg); border-radius: var(--brand-button-radius); box-shadow: none; font: 600 16px/1.2 var(--brand-font-body); text-transform: none; letter-spacing: 0; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.dkc-quote .dkc-q-btn:hover { background: var(--brand-action-hover-bg); border-color: var(--brand-action-hover-bg); color: var(--brand-action-hover-text); }
.dkc-quote .dkc-q-btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.dkc-quote .dkc-q-btn--main { min-width: 220px; }
.dkc-quote .dkc-q-btn--ghost { padding: 0 18px; background: transparent; color: var(--brand-ink); border: 1px solid var(--brand-ink); font-weight: 400; }
.dkc-quote .dkc-q-btn--ghost:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--brand-surface); }

/* ---------------------------------------------------------------- after sending */
.dkc-quote .dkc-q-while { margin: 22px 0 0; padding: 20px 22px 22px; background: var(--brand-surface-alt); }
.dkc-quote .dkc-q-while__title { margin: 0 0 4px; color: var(--brand-ink); font: 600 13px/1.4 var(--brand-font-body); text-transform: var(--brand-label-transform); letter-spacing: var(--brand-label-tracking); }
.dkc-quote .dkc-q-while__text { margin: 0; color: var(--brand-ink); font-size: 18px; }

/* ---------------------------------------------------------------- aside */
.dkc-quote .dkc-q-aside { position: sticky; top: 20px; display: grid; gap: 16px; }
.dkc-quote .dkc-q-box { margin: 0; padding: 22px 24px; background: var(--brand-surface-alt); }
.dkc-quote .dkc-q-box--plain { background: none; border: 1px solid var(--brand-rule); }
.dkc-quote .dkc-q-box__title { margin: 0 0 12px; color: var(--brand-ink); font: 600 13px/1.4 var(--brand-font-body); text-transform: var(--brand-label-transform); letter-spacing: var(--brand-label-tracking); }
.dkc-quote .dkc-q-box__text { margin: 0 0 6px; font-size: 14px; }
.dkc-quote .dkc-q-ticks { margin: 0; padding: 0; list-style: none; }
.dkc-quote .dkc-q-ticks__item { position: relative; margin: 0 0 10px; padding: 0 0 0 28px; color: var(--brand-ink); font-size: 15px; line-height: 1.4; }
.dkc-quote .dkc-q-ticks__item::before { content: ""; position: absolute; left: 4px; top: 3px; width: 7px; height: 12px; border: solid var(--brand-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }

@media (max-width: 991px) {
  .dkc-quote { padding: 0 16px; }
  .dkc-quote .dkc-q-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .dkc-quote .dkc-q-aside { position: static; }
  .dkc-quote .dkc-q-form { padding: 22px 18px 24px; min-height: 0; }
  .dkc-quote .dkc-q-progress { padding: 14px 18px 0; }
}
@media (max-width: 640px) {
  .dkc-quote .dkc-q-paths { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .dkc-quote .dkc-q-path { min-height: 128px; padding: 14px 8px 12px; }
  .dkc-quote .dkc-q-spaces { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dkc-quote .dkc-q-space { padding: 6px 6px 10px; font-size: 14px; }
  .dkc-quote .dkc-q-space__label { font-size: 14px; }
  .dkc-quote .dkc-q-space__tag { font-size: 12px; }
  .dkc-quote .dkc-q-pad__canvas { aspect-ratio: 1 / 1; }
  .dkc-quote .dkc-q-shapes { gap: 6px; }
  .dkc-quote .dkc-q-shape { font-size: 12px; }
  .dkc-quote .dkc-q-measure { grid-template-columns: minmax(0, 1fr); }
  .dkc-quote .dkc-q-diagram { max-width: 300px; }
  .dkc-quote .dkc-q-wall__name { width: 52px; }
  .dkc-quote .dkc-q-input--num { width: 64px; }
  .dkc-quote .dkc-q-fields { grid-template-columns: minmax(0, 1fr); }
  .dkc-quote .dkc-q-foot { margin-top: 22px; padding-top: 16px; }
  .dkc-quote .dkc-q-foot--tight { flex-wrap: wrap; margin-top: 12px; padding-top: 0; }
  .dkc-quote .dkc-q-foot--tight .dkc-q-btn--main { flex: 1 0 100%; }
  .dkc-quote .dkc-q-btn { padding: 0 16px; }
  .dkc-quote .dkc-q-btn--main { flex: 1; min-width: 0; }
  .dkc-quote .dkc-q-fine { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .dkc-quote .dkc-q-progress__bar, .dkc-quote .dkc-q-path, .dkc-quote .dkc-q-space, .dkc-quote .dkc-q-space__tick { transition: none; }
  .dkc-quote .dkc-q-busy__dot { animation-duration: 4s; }
}
