/* ─── RESET & BASE ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:       #e73439;
  --brand-dark:  #c42b30;
  --brand-light: #fdf0f0;
  --neutral-100: #f4f4f5;
  --neutral-200: #e8e8ea;
  --neutral-400: #a0a0aa;
  --neutral-600: #6b6b75;
  --neutral-800: #1e1e24;
  --white:       #ffffff;
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --shadow-card: 0 4px 32px rgba(0,0,0,.07);
  --transition:  .2s ease;
  --font-body:   'DM Sans', sans-serif;
}

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--neutral-800);
  min-height: 100vh;
  /*padding: 40px 20px 80px;*/
}

/* ─── PROGRESS STEPPER ─────────────────────────────────────────── */
.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  max-width: 640px;
  margin: 20px auto 48px;
  position: relative;
  background: #ffffff;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  position: relative;
  cursor: default;
}

.step-item.clickable { cursor: pointer; }

/* hover on not-yet-done clickable steps: highlight in brand colour */
.step-item.clickable:not(.done):hover .step-circle { border-color: var(--brand); color: var(--brand); }

/* hover on completed steps: scale the checkmark only, circle stays still */
.step-item.clickable.done:hover .step-circle { transform: none; }
.step-circle .step-check-icon {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: transform var(--transition);
}
.step-item.clickable.done:hover .step-circle .step-check-icon { transform: scale(1.4); }

/* connector line */
.step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 2px;
  background: var(--neutral-200);
  transition: background var(--transition);
}

.step-item.done:not(:last-child)::after { background: var(--brand); }

.step-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--neutral-200);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 600;
  color: var(--neutral-400);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}

.step-item.active .step-circle {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--white);
  box-shadow: none;
}

.step-item.done .step-circle {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.step-label {
  font-size: .72rem;
  font-weight: 500;
  color: var(--neutral-400);
  text-align: center;
  line-height: 1.35;
  letter-spacing: .02em;
}

.step-item.active .step-label { color: var(--brand); font-weight: 600; }
.step-item.done  .step-label  { color: var(--neutral-600); }

/* ─── CARD ──────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 1110px;
  margin: 0 auto;
  padding: 52px 60px 52px;
  animation: fadeUp .35s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── STEP PANELS ───────────────────────────────────────────────── */
.step-panel { display: none; }
.step-panel.active { display: block; }

/* ─── STEP 1 ────────────────────────────────────────────────────── */
.card-heading {
  text-align: center;
  margin-bottom: 36px;
}

.card-heading p {
  font-size: 1.1rem;
  color: var(--neutral-600);
  line-height: 1.6;
}

.card-heading strong { color: var(--neutral-800); font-weight: 700; }

.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto 32px;
}

.type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 36px 24px;
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-md);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.type-btn i {
  font-size: 2.2rem;
  color: var(--neutral-600);
  transition: color var(--transition);
}

.type-btn-icon {
  width: 2.2rem;
  height: 2.2rem;
  object-fit: contain;
  transition: filter var(--transition);
}

.type-btn.selected .type-btn-icon {
  filter: brightness(0) invert(1);
}

.type-btn span {
  font-size: .95rem;
  font-weight: 600;
  color: var(--neutral-800);
  transition: color var(--transition);
}

.type-btn:hover {
  border-color: var(--neutral-400);
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}

.type-btn.selected {
  background: var(--brand);
  border-color: var(--brand);
}

.type-btn.selected i,
.type-btn.selected span {
  color: var(--white);
}

/* ─── SELECTOR AREA ─────────────────────────────────────────────── */
.selector-area {
  max-width: 640px;
  margin: 0 auto;
  animation: fadeUp .25s ease both;
}

.field-group {
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--neutral-600);
  margin-bottom: 8px;
}

select.hose-select,
input.hose-input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--neutral-800);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%236b6b75' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input.hose-input {
  background-image: none;
  cursor: text;
}

select.hose-select:focus,
input.hose-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: none;
}

/* ─── STEP 3 : PREV SUMMARY BAR ─────────────────────────────────── */
.step3-prev-summary-wrap {
  text-align: center;
  margin-bottom: 28px;
}

.step3-prev-summary {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--neutral-100);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 10px 24px;
  flex-wrap: wrap;
}

.step3-prev-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 20px;
}

.step3-prev-label {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  margin-bottom: 2px;
}

.step3-prev-val {
  font-size: .95rem;
  font-weight: 700;
  color: var(--neutral-800);
}

.step3-prev-sep {
  width: 1px;
  height: 32px;
  background: var(--neutral-200);
  flex-shrink: 0;
}

/* ─── STEP 2 : DIMENSIONS ───────────────────────────────────────── */
.dim-heading {
  text-align: center;
  margin-bottom: 40px;
}

.dim-heading h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--neutral-800);
}

.dim-field {
  margin-bottom: 32px;
}

.dim-field .field-label {
  margin-bottom: 14px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* range track container — padding gives thumb room to breathe */
.range-track-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 10px 0;
}

.range-track-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  border-radius: 2px;
  background: var(--brand);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--neutral-200);
  outline: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--white);
  box-shadow: none;
  cursor: pointer;
  transition: transform var(--transition);
  position: relative;
  z-index: 3;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--brand);
  border: 2px solid var(--white);
  box-shadow: none;
  cursor: pointer;
}

/* ─── NUMBER CONTROL (− input +) ───────────────────────────────── */
.num-control {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.num-control:focus-within {
  border-color: var(--brand);
  box-shadow: none;
}

.num-btn {
  width: 36px;
  flex-shrink: 0;
  background: var(--brand);
  color: var(--white);
  border: none;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  user-select: none;
}

.num-btn:hover  { background: var(--brand-dark); }
.num-btn:active { background: var(--brand-dark); transform: scale(.93); }

.slider-val-input {
  width: 72px;
  padding: 10px 4px;
  border: none;
  background: var(--white);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  color: var(--neutral-800);
  text-align: center;
  outline: none;
}

/* hide native browser spinners */
.slider-val-input::-webkit-inner-spin-button,
.slider-val-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.slider-val-input { -moz-appearance: textfield; }

.slider-hint {
  font-size: .78rem;
  color: var(--brand);
  margin-top: 8px;
  line-height: 1.5;
  font-style: italic;
}

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px 15px 30px;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
border-radius: 8px;
  transition: background var(--transition), transform var(--transition);
}

.btn-next:hover { background: var(--brand-dark); transform: translateX(2px); }
.btn-next:disabled { background: var(--neutral-200); color: var(--neutral-400); cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  background: var(--white);
  color: var(--brand);
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .03em;
  border: 2px solid var(--brand);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.btn-secondary:hover { background: var(--brand-light); }
.btn-secondary:disabled { border-color: var(--neutral-200); color: var(--neutral-400); cursor: not-allowed; }

.btn-prev {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--neutral-600);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 4px;
  border-bottom: 2px solid var(--brand);
  transition: color var(--transition);
}

.btn-prev:hover { color: var(--brand); }

.btn-chevron {
  width: .75rem;
  height: .75rem;
  object-fit: contain;
  vertical-align: middle;
}

.btn-prev .btn-chevron { filter: brightness(0) saturate(100%) invert(40%); }
.btn-prev:hover .btn-chevron { filter: brightness(0) saturate(100%) invert(30%) sepia(1) saturate(5) hue-rotate(320deg); }
.btn-next .btn-chevron { filter: brightness(0) invert(1); }
.btn-next:disabled .btn-chevron { filter: brightness(0) saturate(0) invert(60%); }

/* ─── UTILITY ───────────────────────────────────────────────────── */
.hidden { display: none !important; }

.slide-in {
  animation: fadeUp .25s ease both;
}

/* ─── STEP 3 : FITTINGS ─────────────────────────────────────────── */
.fitting-sides-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

.fitting-side {
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 24px 20px;
}

.fitting-side-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.fitting-side-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--neutral-600);
  padding: 4px 12px;
  border-radius: 20px;
}

.fitting-images-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.fitting-img-btn {
  border: 2px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transition: all var(--transition);
  display: block;
  width: 100%;
  position: relative;
}

.fitting-img-btn:hover {
  border-color: var(--neutral-400);
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.fitting-img-btn.selected {
  border-color: var(--brand);
  background: var(--brand-light);
}

.fitting-img-btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
}

.fitting-img-angle {
  position: absolute;
  bottom: 6px;
  right: 7px;
  z-index: 2;
  font-size: .7rem;
  font-weight: 700;
  color: var(--white);
  background: rgba(0, 0, 0, .45);
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .04em;
  pointer-events: none;
}

.fitting-img-btn.selected .fitting-img-angle {
  background: var(--brand);
  color: var(--white);
}

.fitting-special-note {
  background: var(--brand-light);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  margin-top: 4px;
}

.fitting-special-note p {
  font-size: .88rem;
  color: var(--brand-dark);
  font-style: italic;
  line-height: 1.5;
}

/* ─── STEP 4 : QUOTATION SUMMARY ────────────────────────────────── */
.sum-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0;
  max-width: 700px;
  padding-top: 30px;
}

.sum-visual-images {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 70px;
  min-height: 320px;
}

.sum-fitting-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sum-fitting-wrap img {
  width: 250px;
  height: 250px;
  display: block;
}

.sum-fitting-wrap.mirrored img {
  transform: scaleX(-1);
}

/* Mirror right-side thumbnails in Step 3 fitting picker */
#ft-right-images-grid .fitting-img-btn img {
  transform: scaleX(-1);
}


.sum-tube-label {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--neutral-600);
  white-space: nowrap;
}

.sum-tube-img-wrap {
  position: relative;
  width: 420px;
  height: 50px;
}

.sum-tube-img {
  position: relative;
  z-index: 1;
  width: 420px;
  height: 50px;
  display: block;
}

.sum-tube-dim {
  position: absolute;
  bottom: 50px;
  left: 0;
  right: 0;
  height: auto;
  pointer-events: none;
  z-index: 2;
}

/* ── Multi-config blocks ── */
.sum-config-block {
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  padding: 24px 20px 20px;
  margin-bottom: 4px;
}

/* ── Collapsible previous-config toggle ── */
.sum-config-toggle {
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-md);
  margin-bottom: 4px;
  overflow: hidden;
}

.sum-config-toggle-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  gap: 12px;
  background: var(--neutral-100);
}

.sum-config-toggle-summary::-webkit-details-marker { display: none; }
.sum-config-toggle-summary::marker { display: none; }

.sum-config-toggle-chevron {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--neutral-400);
  border-bottom: 2px solid var(--neutral-400);
  transform: rotate(-45deg);
  transition: transform .2s ease;
  flex-shrink: 0;
}

.sum-config-toggle[open] .sum-config-toggle-chevron {
  transform: rotate(45deg);
}

.sum-config-toggle-body {
  padding: 20px 20px 20px;
  border-top: 1.5px solid var(--neutral-200);
}

.sum-config-block-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid var(--neutral-200);
}

.sum-config-num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--brand);
  padding: 4px 14px;
  border-radius: 20px;
}

.special-uploads-section {
  margin: 4px 0;
}

.special-upload-config-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 12px;
  padding: 6px 12px;
  background: var(--neutral-100);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Config cards ── */
.sum-config-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 16px;
}

.sum-config-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--neutral-100);
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  min-width: 110px;
}

.sum-config-key {
  font-size: .62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--neutral-400);
}

.sum-config-val {
  font-size: .95rem;
  font-weight: 700;
  color: var(--neutral-800);
}

/* ── Fittings block ── */
.sum-fittings-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto 4px;
}

.sum-fitting-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sum-fitting-item.right {
  flex-direction: row-reverse;
}

.sum-fitting-item.right .sum-fitting-text {
  text-align: right;
}

.sum-fitting-side {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--neutral-600);
  padding: 3px 12px;
  border-radius: 20px;
  flex-shrink: 0;
  min-width: 52px;
  text-align: center;
}

.sum-fitting-text {
  font-size: .9rem;
  color: var(--neutral-600);
}

.sum-divider {
  border: none;
  border-top: 1.5px solid var(--neutral-200);
  margin: 20px 0;
}

.sum-delivery-wrap {
  margin-bottom: 4px;
}
.sum-delivery-hint {
  font-size: .8rem;
  color: var(--neutral-500);
  margin: 3px 0 10px;
}

.sum-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 24px;
}

.sum-textarea-group {
  margin-top: 4px;
}

/* ── Special fitting upload ── */
.special-uploads-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.special-uploads-col {
  min-width: 0;
}

.special-upload-group {
  margin: 0;
}

.special-upload-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 4px;
}

.special-upload-hint {
  font-size: .78rem;
  color: var(--neutral-400);
  font-style: italic;
  margin-bottom: 10px;
}

.upload-row {
  display: inline-flex;
  align-items: stretch;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 6px;
  transition: border-color var(--transition);
}

.upload-row:hover {
  border-color: var(--neutral-400);
}

.upload-filename {
  font-size: .88rem;
  color: var(--neutral-600);
  padding: 10px 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  background: var(--white);
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--brand);
  color: var(--white);
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  border-left: 1.5px solid var(--neutral-200);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
}

.upload-btn:hover { background: var(--brand-dark); }

.note-char-counter {
  display: block;
  text-align: right;
  font-size: .75rem;
  color: var(--neutral-400);
  margin-top: 4px;
}

.sum-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--neutral-800);
  resize: vertical;
  min-height: 100px;
  transition: border-color var(--transition);
}

.sum-textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.sum-privacy {
  text-align: center;
  margin-top: 20px;
  font-size: .88rem;
  color: var(--neutral-600);
}

.sum-privacy label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.sum-privacy a {
  color: var(--brand);
  text-decoration: underline;
}

.sum-privacy input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}

.sum-error {
  color: var(--brand);
  font-size: .85rem;
  text-align: center;
  margin-top: 12px;
  font-style: italic;
}

.sum-success-state {
  text-align: center;
  padding: 60px 20px;
}

.sum-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--white);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.sum-success-state h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 8px;
}

.sum-success-state p {
  color: var(--neutral-600);
  font-size: .95rem;
}

.sum-full-col {
  grid-column: 1 / -1;
}

.sum-qty-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 6px;
}

.sum-qty-row .field-label {
  text-align: left;
}

.sum-qty-row .num-control {
  width: auto;
}

.sum-qty-row .slider-val-input {
  width: 80px;
}

/* ─── FIELD VALIDATION ──────────────────────────────────────────────── */
.field-error {
  display: block;
  font-size: .75rem;
  color: var(--brand);
  margin-top: 4px;
  min-height: 18px;
  font-style: italic;
}

.hose-input.field-has-error {
  border-color: var(--brand);
  background-color: var(--brand-light);
}

/* ─── INTL-TEL-INPUT OVERRIDES ──────────────────────────────────────── */
.iti { width: 100%; display: block; }

.iti__tel-input {
  padding-left: 52px !important;
}

/* ─── PRIVACY MODAL ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(3px);
  animation: fadeIn .2s ease;
}

.modal-overlay.hidden { display: none !important; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  max-width: 640px;
  width: 100%;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  animation: slideUp .25s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1.5px solid var(--neutral-200);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--neutral-800);
}

.modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--neutral-100);
  border-radius: 50%;
  font-size: 1rem;
  color: var(--neutral-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.modal-close:hover { background: var(--brand); color: var(--white); }

.modal-body {
  padding: 24px 28px 28px;
  overflow-y: auto;
  font-size: .9rem;
  line-height: 1.75;
  color: var(--neutral-600);
}

.modal-body h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin: 22px 0 6px;
}

.modal-body h3:first-child { margin-top: 0; }

.modal-body p { margin-bottom: 12px; }

/* ─── DIM INFO BOX ──────────────────────────────────────────────── */
.dim-info-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--brand-light);
  border: 1.5px solid rgba(231,52,57,.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 36px;
}
.dim-info-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--brand);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  margin-top: 1px;
}
.dim-info-body .dim-info-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--neutral-800);
  margin-bottom: 4px;
}
.dim-info-body .dim-info-text {
  font-size: .83rem;
  color: var(--neutral-600);
  line-height: 1.55;
}
.dim-info-text a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(231,52,57,.3);
  transition: border-color var(--transition);
}
.dim-info-text a:hover { border-bottom-color: var(--brand); }

/* ─── ORIENTATION PICKER ────────────────────────────────────────── */
.orient-section {
  margin: 0 0 32px;
}
.orient-hint {
  font-size: .78rem;
  color: var(--neutral-600);
  font-style: italic;
  margin: 4px 0 16px;
  line-height: 1.5;
}
.orient-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.orient-dial-wrap { flex-shrink: 0; }
.orient-dial {
  width: 160px;
  height: 160px;
  cursor: crosshair;
  display: block;
  touch-action: none;
  user-select: none;
}
.orient-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.orient-num-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.orient-unit {
  font-size: .78rem;
  font-weight: 600;
  color: var(--neutral-600);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.orient-presets {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 8px;
  justify-content: start;
}
.orient-preset-btn {
  padding: 6px 14px;
  border: 1.5px solid var(--neutral-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--neutral-600);
  cursor: pointer;
  transition: all var(--transition);
}
.orient-preset-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-light);
}
.orient-preset-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

/* ─── RESPONSIVE — MOBILE ───────────────────────────────────────── */
@media (max-width: 600px) {

  body {
    padding: 0px 12px 60px;
  }

  /* — Stepper — */
  .stepper {
    max-width: 100%;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .step-circle {
    width: 34px;
    height: 34px;
    font-size: .78rem;
  }

  /* adjust connector line to match smaller circle */
  .step-item:not(:last-child)::after {
    top: 17px;
    left: calc(50% + 17px);
    width: calc(100% - 34px);
  }

  .step-label {
    font-size: .62rem;
    letter-spacing: 0;
  }

  /* — Card — */
  .card {
    padding: 28px 20px 32px;
    border-radius: var(--radius-md);
  }

  /* — Step 1 heading — */
  .card-heading {
    margin-bottom: 24px;
  }

  .card-heading p {
    font-size: .95rem;
  }

  /* — Type buttons: single column, icon left of label — */
  .type-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .type-btn {
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    padding: 20px 24px;
    text-align: left;
  }

  .type-btn i {
    font-size: 1.8rem;
    flex-shrink: 0;
  }

  .type-btn-icon {
    width: 1.8rem;
    height: 1.8rem;
  }

  .type-btn span {
    font-size: 1rem;
  }

  /* — Selectors — */
  .selector-area {
    max-width: 100%;
  }

  select.hose-select,
  input.hose-input {
    font-size: .9rem;
    padding: 12px 14px;
  }

  /* — Step 2 — */
  #panel-2 .dim-heading {
    margin-bottom: 24px;
  }

  .dim-heading h2 {
    font-size: 1.2rem;
  }

  .dim-field {
    margin-bottom: 24px;
  }

  .num-btn { width: 30px; font-size: 1.1rem; }
  .slider-val-input { width: 56px; padding: 8px 4px; font-size: .88rem; }

  /* — Buttons — */
  .btn-row {
    margin-top: 28px;
    gap: 14px;
  }

  .btn-next {
    font-size: .82rem;
    padding: 11px 30px 11px 20px;
  }

  .btn-prev {
    font-size: .82rem;
  }

  /* — Fittings — */
  .fitting-sides-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .fitting-side {
    padding: 18px 16px;
  }

  .fitting-images-grid {
    gap: 6px;
  }

  .fitting-img-angle {
    font-size: .62rem;
    padding: 1px 5px;
  }

  .fitting-img-angle {
    font-size: .62rem;
  }

  /* — Step 3 prev summary — */
  .step3-prev-summary-wrap {
    text-align: center;
  }

  .step3-prev-summary {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 8px 0;
    border-radius: var(--radius-sm);
  }

  .step3-prev-item {
    flex: 1;
    padding: 4px 8px;
  }

  .step3-prev-label {
    font-size: .6rem;
    letter-spacing: .04em;
  }

  .step3-prev-val {
    font-size: .85rem;
  }

  .step3-prev-sep {
    height: 28px;
  }

  /* — Step 4 — */
  .sum-form-grid {
    grid-template-columns: 1fr;
  }

  .sum-visual {
    padding-top: 18px;
  }

  .sum-fitting-wrap img {
    width: 80px;
    height: 110px;
  }

  .sum-tube-img-wrap {
    width: 120px;
    height: 22px;
  }

  .sum-tube-img {
    width: 120px;
    height: 22px;
  }

  .sum-visual-images {
    padding-bottom: 40px;
    min-height: 130px;
  }

  .sum-tube-label {
    font-size: .55rem;
    letter-spacing: .06em;
    bottom: 40px;
  }

  .sum-tube-dim text {
    font-size: 18px;
  }

  .sum-fittings-block {
    flex-direction: column;
    gap: 6px;
  }

  .sum-fitting-item.right {
    flex-direction: row;
  }

  .sum-fitting-item.right .sum-fitting-text {
    text-align: left;
  }

  .special-uploads-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sum-config-block {
    padding: 16px 14px 14px;
  }
  .sum-tube-dim {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    height: auto;
    pointer-events: none;
    z-index: 2;
}
  .btn-secondary {
    font-size: .8rem;
    padding: 11px 16px;
  }

  .dim-info-box {
    padding: 14px 16px;
    gap: 12px;
    margin-bottom: 28px;
  }

  .orient-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
