/* ==========================================================================
   Atlantyda – strona „Wstępna wycena”
   ========================================================================== */

.quote { padding-bottom: var(--section); }
.quote__layout { display: flex; flex-wrap: wrap; gap: clamp(24px, 3vw, 48px); align-items: flex-start; }

.quote-form {
  flex: 999 1 560px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  box-shadow: var(--shadow-card);
  container-type: inline-size;
}
/* ---------- Kreator krokowy: stepper + pasek postępu ---------- */
.wizard { display: flex; flex-direction: column; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stepper__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  font: 700 14px var(--font);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.stepper__btn:disabled { cursor: default; }
.stepper__btn[aria-current="step"] { cursor: default; }
.stepper__n {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--line-2);
  background: var(--white);
  color: var(--text);
  font: 700 13px var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.stepper__item.is-current .stepper__btn { color: var(--ink); }
.stepper__item.is-current .stepper__n { border-color: var(--accent); background: var(--accent); color: var(--white); box-shadow: 0 0 0 4px var(--tint); }
.stepper__item.is-done .stepper__btn { color: var(--ink); }
.stepper__item.is-done .stepper__btn:hover .stepper__label { color: var(--accent); }
.stepper__item.is-done .stepper__n { border-color: var(--accent); background: var(--tint); color: transparent; position: relative; }
.stepper__item.is-done .stepper__n::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--accent-deep);
  border-bottom: 2px solid var(--accent-deep);
  transform: translateY(-1px) rotate(-45deg);
}
.stepper__bar { height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.stepper__fill { display: block; height: 100%; width: 33.333%; border-radius: 5px; background: linear-gradient(90deg, #f26c27 0%, #eb5a14 100%); transition: width .35s ease; }
.stepper__status { font: 400 14px var(--font); color: var(--text); }
.stepper__status strong { color: var(--ink); }
@media (max-width: 440px) { .stepper__label { display: none; } .stepper { gap: 4px; } }

@keyframes wizard-step-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.wizard__step { display: flex; flex-direction: column; animation: wizard-step-in .25s ease; }
.wizard__step > .quote-step:first-child { border-top: 0; }
.wizard__step > .quote-step:last-child { padding-bottom: 0; }
.wizard__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.wizard__hint { font: 400 14px var(--font); color: var(--text); margin-left: auto; }
@media (max-width: 560px) { .wizard__hint { margin-left: 0; flex-basis: 100%; } }

.quote-step { display: flex; flex-direction: column; gap: 18px; padding: 32px 0; border-top: 1px solid var(--line); }
.quote-step__head { display: flex; align-items: center; gap: 12px; }
.quote-step__head h2 { font: 700 20px var(--font); color: var(--ink); }
.quote-step--pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.quote-step--pair > div { display: flex; flex-direction: column; gap: 14px; }
.quote-note { font: 400 14px/1.5 var(--font); }

/* Typ hali */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@container (max-width: 760px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }
@container (max-width: 400px) { .type-grid { grid-template-columns: 1fr; } }
.type-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line-2);
  background: var(--white);
  cursor: pointer;
  text-align: left;
}
.type-opt__dot { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.type-opt__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.type-opt__name { font: 700 16px/1.25 var(--font); color: var(--ink); }
.type-opt__range { font: 400 14px var(--font); color: var(--text); }
.type-opt.is-active { border-color: var(--accent); background: var(--tint-4); }
.type-opt.is-active .type-opt__dot { border-color: var(--accent); }
.type-opt.is-active .type-opt__dot::after { background: var(--accent); }

/* Wymiary */
.dim-group { display: flex; flex-direction: column; gap: 10px; }
.width-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.width-pill {
  min-width: 64px;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line-3);
  background: var(--white);
  color: var(--ink);
  font: 700 15px var(--font);
  cursor: pointer;
}
.width-pill.is-active { border-color: var(--accent); background: var(--accent); color: var(--white); }
.dim-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.dim-row .field { flex: 1 1 200px; }
.area-box {
  flex: 1 1 200px;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: var(--surface);
  font: 400 15px var(--font);
}
.area-box strong { color: var(--ink); }

/* Bramy */
.gates { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.gate { display: flex; flex-direction: column; gap: 10px; }

/* Lokalizacja */
.loc-row { display: flex; flex-wrap: wrap; gap: 16px; }
.loc-row .field--zip { flex: 0 1 220px; }
.loc-row .field--notes { flex: 1 1 320px; }

/* Wysyłka */
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.submit-row span { font: 400 14px var(--font); }

/* Potwierdzenie */
.quote-sent {
  flex: 999 1 560px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-card);
  container-type: inline-size;
}
.quote-sent h2 { font: 700 clamp(28px, 3vw, 40px)/1.15 var(--font); letter-spacing: -.02em; color: var(--ink); }
.quote-sent p { font: 400 17px/1.65 var(--font); max-width: 560px; }
.quote-sent__steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
@container (max-width: 560px) { .quote-sent__steps { grid-template-columns: 1fr; } }
.quote-sent__steps .step { gap: 8px; padding-top: 0; }
.quote-sent__steps .step__n { font-size: 36px; }
.quote-sent__steps .step strong { font: 700 16px var(--font); color: var(--ink); }
.quote-sent__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.quote-sent__reset { height: 56px; padding: 0 24px; border: 0; background: none; color: var(--accent-deep); font: 700 16px var(--font); cursor: pointer; }
.quote-sent__reset:hover { color: var(--accent); }

/* Panel boczny */
.quote-aside { flex: 1 1 320px; position: sticky; top: 104px; display: flex; flex-direction: column; gap: 16px; }
.summary { display: flex; flex-direction: column; gap: 6px; padding: 28px; }
.summary .kicker { color: var(--accent-deep); margin-bottom: 8px; }
.summary__rows { display: flex; flex-direction: column; gap: 6px; }
.summary__row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f1e5dc; font: 400 15px var(--font); }
.summary__row strong { color: var(--ink); text-align: right; }
.talk { display: flex; flex-direction: column; gap: 14px; padding: 28px; }
.talk h3 { font: 700 22px var(--font); }
.talk p { font: 400 15px/1.6 var(--font); }
.talk .btn { height: 54px; padding: 0 22px; background: var(--white); color: var(--ink); }
.talk .btn:hover { background: var(--tint-3); color: var(--ink); }
.talk__mail { color: var(--white); font: 700 15px var(--font); }
.talk__mail:hover { color: var(--white); text-decoration: underline; }
.talk__hours { font: 400 14px var(--font); }
