/* Section: quote_wizard — mockup EXALCO-Quote "Quote wizard" (stepper, 4 steps, review, success, two-column shell). */

.ex-quote-wizard { padding-top: clamp(24px, 2.8vw, 40px); }

/* ---- Stepper 01–04 ---- */
ol.ex-quote-wizard__stepper { /* ol.: base resets margins on ol[class] */
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 980px;
  margin: 0 0 clamp(24px, 2.8vw, 38px);
  padding: 0;
  list-style: none;
}
.ex-quote-wizard__indicator { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.ex-quote-wizard__indicator-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  border: var(--ex-border-w, 1.5px) solid var(--ex-line-ink);
  border-radius: 0;
  background: var(--ex-white);
  color: var(--ex-ink);
  /* Rendered value: the mockup's `font: … inherit` shorthand is invalid CSS and is dropped, so the control shows the default control font (13.33px / 400). */
  font-family: inherit;
  font-size: var(--ex-fs-control);
  font-weight: 400;
  line-height: normal;
  letter-spacing: .04em;
  cursor: default;
  opacity: 1;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--ex-t-base), background var(--ex-t-base), color var(--ex-t-base);
}
.ex-quote-wizard__indicator-check { display: none; }
/* Rendered value: the mockup's `font: 700 11px/1.2 inherit` is invalid CSS and is dropped: the label shows at the inherited 16px / 400. */
.ex-quote-wizard__indicator-label { font-size: 16px; font-weight: 400; line-height: normal; letter-spacing: .1em; white-space: nowrap; color: rgba(35, 31, 32, .45); transition: color var(--ex-t-base); }
.ex-quote-wizard__indicator-line { flex: 1; min-width: 12px; height: 1.5px; background: rgba(35, 31, 32, .2); transition: background var(--ex-t-base); }

.ex-quote-wizard__indicator.is-active .ex-quote-wizard__indicator-box { border-color: var(--ex-red); background: var(--ex-red); color: var(--ex-white); }
.ex-quote-wizard__indicator.is-done .ex-quote-wizard__indicator-box { border-color: var(--ex-red); background: var(--ex-white); color: var(--ex-red); }
.ex-quote-wizard__indicator.is-done .ex-quote-wizard__indicator-num { display: none; }
.ex-quote-wizard__indicator.is-done .ex-quote-wizard__indicator-check { display: inline; }
.ex-quote-wizard__indicator.is-done .ex-quote-wizard__indicator-line { background: var(--ex-red); }
.ex-quote-wizard__indicator.is-active .ex-quote-wizard__indicator-label,
.ex-quote-wizard__indicator.is-done .ex-quote-wizard__indicator-label { color: var(--ex-ink); }
.ex-quote-wizard__indicator-box:not(:disabled) { cursor: pointer; }
.ex-quote-wizard__indicator-box:not(:disabled):hover { background: var(--ex-red-tint); }

/* ---- Two-column shell ---- */
.ex-quote-wizard__layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr); gap: clamp(24px, 3vw, 52px); align-items: start; }
.ex-quote-wizard__layout--single { grid-template-columns: minmax(0, 1fr); }
.ex-quote-wizard__main { min-width: 0; }
.ex-quote-wizard__aside {
  --ex-usps-gutter: 0px; /* the "ΓΙΑΤΙ EXALCO" card (usps) sits flush in the column */
  position: sticky;
  top: calc(var(--ex-scroll-offset) - 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* ---- Steps ---- */
.ex-quote-wizard__form { margin: 0; }
.ex-quote-wizard__step { min-width: 0; margin: 0 0 40px; padding: 0; border: 0; }
.ex-quote-wizard__legend { float: left; width: 100%; padding: 0; }
.ex-quote-wizard__legend + * { clear: both; }
.ex-quote-wizard__heading { margin: 0 0 6px; font-size: clamp(22px, 2vw, 30px); font-weight: var(--ex-fw-title); line-height: normal; letter-spacing: -.01em; color: var(--ex-ink); }
.ex-quote-wizard__heading:focus { outline: none; }
.ex-quote-wizard__text { margin: 0 0 20px; font-size: 13.5px; line-height: normal; color: var(--ex-ink); } /* one 16px line in the mockup; 1.5 below 900px where it wraps */
.ex-quote-wizard__legend:not(:has(+ .ex-quote-wizard__text)) { margin-bottom: 14px; } /* no help text under the heading */
.ex-quote-wizard__heading + .ex-quote-wizard__review { margin-top: 14px; }

/* prefilled system (from a product page or the quiz) */
.ex-quote-wizard__system { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 16px; padding: 10px 14px; border: 1px solid var(--ex-blue-line); background: var(--ex-blue); }
.ex-quote-wizard__system-label { font-size: 10.5px; font-weight: 700; letter-spacing: .2em; }
.ex-quote-wizard__system-name { font-size: 13.5px; font-weight: 800; }

/* ---- Step 1: window types with − / + counters ---- */
.ex-quote-wizard__types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.ex-quote-wizard__type {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: var(--ex-border-w, 1.5px) solid var(--ex-line);
  background: var(--ex-white);
  transition: border-color var(--ex-t-fast), background var(--ex-t-fast);
}
.ex-quote-wizard__type.is-selected { border-color: var(--ex-red); background: var(--ex-red-tint); }
.ex-quote-wizard__type-label { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 700; line-height: normal; color: var(--ex-ink); cursor: pointer; }
.ex-quote-wizard__qty { display: flex; align-items: center; flex: none; margin-left: auto; border: 1px solid rgba(35, 31, 32, .25); background: var(--ex-white); }
.ex-quote-wizard__qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ex-ink);
  font-family: inherit; /* the shorthand `font: 800 15px/1 inherit` is invalid and was dropped: − / + showed at 13.33px / 400 instead of the designed 15px / 800 */
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background var(--ex-t-fast);
}
.ex-quote-wizard__qty-btn--plus { color: var(--ex-red); }
.ex-quote-wizard__qty-btn:hover { background: var(--ex-tint); }
.ex-quote-wizard__qty-input {
  width: 30px;
  height: 30px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ex-ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.ex-quote-wizard__qty-input::-webkit-outer-spin-button,
.ex-quote-wizard__qty-input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.ex-quote-wizard__qty-input:focus-visible { outline: 2px solid var(--ex-focus); outline-offset: -2px; }
.ex-quote-wizard__step-error { margin: 12px 0 0; }

/* ---- Step 2: option chips (real radios) + free text ---- */
.ex-quote-wizard__group { min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.ex-quote-wizard__group:last-child { margin-bottom: 0; }
.ex-quote-wizard__group-title { display: block; margin: 0 0 10px; padding: 0; font-size: 13.5px; font-weight: 700; line-height: normal; letter-spacing: .2em; color: var(--ex-ink); }
.ex-quote-wizard__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-quote-wizard__chip { position: relative; display: block; margin: 0; cursor: pointer; }
.ex-quote-wizard__chip-input { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.ex-quote-wizard__chip-label {
  display: block;
  padding: 11px 16px;
  border: var(--ex-border-w, 1.5px) solid rgba(35, 31, 32, .35);
  background: var(--ex-white);
  color: var(--ex-ink);
  /* Rendered value: the mockup's `font: … inherit` shorthand is invalid CSS and is dropped, so the chip (a <button> in the mockup) shows the default control font (13.33px / 400). */
  font-size: var(--ex-fs-control);
  font-weight: 400;
  line-height: normal;
  letter-spacing: .06em;
  transition: border-color var(--ex-t-fast), background var(--ex-t-fast), color var(--ex-t-fast);
}
.ex-quote-wizard__chip:hover .ex-quote-wizard__chip-label { border-color: var(--ex-ink); }
.ex-quote-wizard__chip-input:checked + .ex-quote-wizard__chip-label { border-color: var(--ex-red); background: var(--ex-red); color: var(--ex-white); }
.ex-quote-wizard__chip-input:focus-visible + .ex-quote-wizard__chip-label { outline: 2px solid var(--ex-focus); outline-offset: 2px; }
.ex-quote-wizard__textarea { min-height: 87px; resize: vertical; }
.ex-quote-wizard__textarea[name="comments"] { min-height: 79px; }

/* ---- Step 4: review ---- */
.ex-quote-wizard__review { margin: 0; border-top: 1.5px solid var(--ex-ink); }
.ex-quote-wizard__review-row {
  display: grid;
  grid-template-columns: minmax(150px, .6fr) 1.4fr;
  gap: 14px;
  align-items: baseline;
  padding: 12px 2px;
  border-bottom: .5px solid rgba(35, 31, 32, .14);
}
.ex-quote-wizard__review-key { font-size: 12.5px; font-weight: 700; line-height: 1.4; color: var(--ex-ink); }
.ex-quote-wizard__review-value { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-width: 0; margin: 0; }
.ex-quote-wizard__review-text { min-width: 0; font-size: 13px; line-height: 1.5; color: var(--ex-ink); overflow-wrap: anywhere; white-space: pre-line; }
.ex-quote-wizard__edit { flex: none; color: var(--ex-red); font-size: 10px; font-weight: 700; line-height: 1; letter-spacing: .08em; text-decoration: none; }
.ex-quote-wizard__edit:hover,
.ex-quote-wizard__edit:focus-visible { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Navigation ---- */
.ex-quote-wizard__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
/* 48px high as rendered: "← ΠΙΣΩ" 14px 22px + 2px border (13.33px / 400 through .ex-btn--regular), "ΣΥΝΕΧΕΙΑ →" 14px 26px stretched to the row. */
.ex-quote-wizard__back { padding: 14px 22px; }
.ex-quote-wizard__next,
.ex-quote-wizard__submit { padding: 16px 26px; }
.ex-quote-wizard__form.is-first-step .ex-quote-wizard__back { visibility: hidden; }

/* ---- With JS: one step at a time; "next" until the last step, then "submit". ---- */
.js .ex-quote-wizard__step { margin-bottom: 0; }
.js .ex-quote-wizard__step:not(.is-active) { display: none; }
.js .ex-quote-wizard__step.is-active { animation: ex-quote-wizard-fade .25s ease both; }
.js .ex-quote-wizard__form:not(.is-last-step) .ex-quote-wizard__submit,
.js .ex-quote-wizard__form.is-last-step .ex-quote-wizard__next { display: none; }

/* ---- Without JS: every step in order, native submit; JS-only controls and the JS-filled review are hidden. ---- */
html:not(.js) .ex-quote-wizard__stepper,
html:not(.js) .ex-quote-wizard__step--review,
html:not(.js) .ex-quote-wizard__back,
html:not(.js) .ex-quote-wizard__next,
html:not(.js) .ex-quote-wizard__qty-btn { display: none; }
html:not(.js) .ex-quote-wizard__qty-input { width: 56px; padding: 0 4px; -moz-appearance: auto; appearance: auto; }

/* ---- Success ---- */
.ex-quote-wizard__success:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(20px, 2.6vw, 44px) 16px;
  text-align: center;
  animation: ex-quote-wizard-fade .3s ease both;
}
.ex-quote-wizard__success:focus { outline: none; }
.ex-quote-wizard__success .ex-form-success__icon { margin: 0 0 22px; }
.ex-quote-wizard__success-title { font-size: clamp(24px, 2.2vw, 34px); }
.ex-quote-wizard__success .ex-form-success__text { max-width: 520px; font-size: 14px; line-height: 1.6; color: var(--ex-ink); }

@keyframes ex-quote-wizard-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- Responsive (proposal — not designed) ---- */
@media (max-width: 1439px) {
  .ex-quote-wizard__types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1199px) {
  .ex-quote-wizard__layout { grid-template-columns: minmax(0, 1fr); }
  .ex-quote-wizard__aside { position: static; }
}
@media (max-width: 899px) {
  .ex-quote-wizard__indicator-label { display: none; }
  .ex-quote-wizard__indicator-box { width: var(--ex-touch); height: var(--ex-touch); }
  .ex-quote-wizard__qty-btn,
  .ex-quote-wizard__qty-input { width: var(--ex-touch); height: var(--ex-touch); }
  .ex-quote-wizard__qty-input { font-size: 16px; }
  .ex-quote-wizard__chip-label { padding: 13px 18px; }
  .ex-quote-wizard__text { line-height: 1.5; }
  .ex-quote-wizard__group-title { font-size: 12px; letter-spacing: .16em; }
  .ex-quote-wizard__edit { display: inline-flex; align-items: center; min-height: var(--ex-touch); font-size: 11px; }
  .ex-quote-wizard__review-value { align-items: center; }
}
@media (max-width: 599px) {
  .ex-quote-wizard__stepper { gap: 6px; }
  .ex-quote-wizard__indicator { gap: 6px; }
  .ex-quote-wizard__indicator-line { min-width: 6px; }
  .ex-quote-wizard__types { grid-template-columns: minmax(0, 1fr); }
  .ex-quote-wizard__review-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ex-quote-wizard__nav .ex-btn { flex: 1 1 auto; }
  .ex-quote-wizard__form.is-first-step .ex-quote-wizard__back { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ex-quote-wizard__indicator-box,
  .ex-quote-wizard__indicator-label,
  .ex-quote-wizard__indicator-line,
  .ex-quote-wizard__type,
  .ex-quote-wizard__qty-btn,
  .ex-quote-wizard__chip-label { transition: none; }
  .js .ex-quote-wizard__step.is-active,
  .ex-quote-wizard__success:not([hidden]) { animation: none; }
}

/* Counter limit reached: custom-quote.js sets aria-disabled on the − / + buttons. */
.ex-quote-wizard__qty-btn[aria-disabled="true"] { opacity: .35; cursor: default; }
