/* ============================================================
   Lichtschachtbilder Konfigurator – Styles
   ============================================================ */

* { -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { overscroll-behavior-y: none; }

/* Step section visibility */
.step-section { display: none; }
.step-section.active { display: block; }

/* ============ Hero ============ */
.hero-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('images/fenster-1-nachher.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  animation: heroDrift 24s ease-in-out infinite alternate;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(11,44,57,0.78) 0%,
      rgba(11,44,57,0.55) 30%,
      rgba(11,44,57,0.50) 65%,
      rgba(11,44,57,0.55) 85%,
      rgba(251,248,243,1) 100%);
  z-index: -1;
}
@keyframes heroDrift {
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.12) translateY(-14px); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.25);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  color: white;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #C7A86C;
  box-shadow: 0 0 12px #DAC59B;
}

.hero-stats {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(11,44,57,0.45);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(11,44,57,0.25);
}
.hero-stat {
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.hero-stat:last-child { border-right: 0; }
.hero-stat-value {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  color: white;
}
.hero-stat-label {
  margin-top: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* ============ Buttons ============ */
.btn,
.btn-primary,
.btn-primary-dark,
.btn-ghost,
.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 999px;
  transition: all 0.22s cubic-bezier(.32,.72,.0,1);
  cursor: pointer;
  white-space: nowrap;
  height: 52px;
  padding: 0 1.6rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: white;
  color: #114B5F;
  box-shadow: 0 10px 30px rgba(11,44,57,0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(11,44,57,0.25); }

.btn-primary-dark {
  background: #114B5F;
  color: white;
  box-shadow: 0 8px 24px rgba(17,75,95,0.25);
}
.btn-primary-dark:hover:not(:disabled) {
  background: #0E3B4B;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(17,75,95,0.35);
}
.btn-primary-dark:disabled {
  background: #C7A86C;
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

.btn-ghost-dark {
  background: transparent;
  color: #114B5F;
  border: 1px solid #DAC59B;
}
.btn-ghost-dark:hover {
  background: white;
  border-color: #C7A86C;
}

.btn-large { height: 60px; padding: 0 2.2rem; font-size: 1rem; }
.btn-text-link {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(11,44,57,0.6);
  font-size: 0.875rem;
  text-decoration: underline;
  padding: 0.25rem;
}
.btn-text-link:hover { color: #114B5F; }

/* ============ Sections / Layout ============ */
.section { padding: 6rem 1.5rem; }
.container { max-width: 1140px; margin: 0 auto; }
.container-narrow { max-width: 880px; margin: 0 auto; }
.container-tight { max-width: 640px; margin: 0 auto; }

.section-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1F7895;
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.section-sub {
  color: rgba(11,44,57,0.65);
  font-size: 1.05rem;
  max-width: 36rem;
  margin: 0 auto;
}

/* Step pane headers */
.step-eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1F7895;
  margin-bottom: 1rem;
}
.step-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(1.875rem, 3.75vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}
.step-sub {
  color: rgba(11,44,57,0.65);
  font-size: 1rem;
  max-width: 38rem;
  margin: 0 auto;
}
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  gap: 1rem;
}

/* ============ Header / Progress ============ */
.config-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid #EADFC7;
}
.config-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.header-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #114B5F;
  font-size: 0.875rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0;
}
.header-back:hover { color: #0B2C39; }
.header-step-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(17,75,95,0.65);
  font-weight: 600;
}
.header-step-info span.muted { opacity: 0.4; }

.progress-track {
  height: 3px;
  background: #EADFC7;
  position: relative;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(to right, #1F7895, #73B8D2);
  transition: width 0.6s cubic-bezier(.32,.72,.0,1);
  border-radius: 0 999px 999px 0;
  box-shadow: 0 0 10px rgba(31,120,149,0.4);
}

/* ============ Choice Cards (Schritt 1, 3, 6) ============ */
.choice-card,
.choice-card-tall {
  position: relative;
  background: white;
  border: 1.5px solid #EADFC7;
  border-radius: 1.25rem;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(.32,.72,.0,1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.choice-card {
  min-height: 140px;
  padding: 1.25rem 1rem;
}
.choice-card-tall {
  min-height: 220px;
  padding: 2rem 1.25rem;
}

.choice-card:hover,
.choice-card-tall:hover {
  border-color: #73B8D2;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(11,44,57,0.10);
}
.choice-card.selected,
.choice-card-tall.selected {
  border-color: #1F7895;
  background: #EEF7FB;
  box-shadow: 0 12px 32px rgba(31,120,149,0.22);
}
.choice-card.selected::after,
.choice-card-tall.selected::after {
  content: '';
  position: absolute;
  top: -7px;
  right: -7px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #1F7895 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/14px no-repeat;
  box-shadow: 0 4px 12px rgba(31,120,149,0.4);
}

.choice-big-num {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 2.4rem;
  line-height: 1;
  color: #0B2C39;
}
.choice-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11,44,57,0.6);
  font-weight: 600;
}
.choice-card-tall .choice-big-num { font-size: 1.65rem; }

.choice-badge {
  display: inline-flex;
  align-items: center;
  background: #DAC59B;
  color: #5E4422;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  min-height: 22px;
}
.choice-badge.neutral {
  background: transparent;
  color: rgba(17,75,95,0.45);
  font-weight: 600;
}
.choice-badge.success {
  background: #D6ECF4;
  color: #114B5F;
}
.choice-badge.warn {
  background: #F5EFE5;
  color: #7B5A2B;
}

/* Depth illustration */
.depth-illustration {
  width: 84px;
  height: 100px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: linear-gradient(to bottom, transparent 0%, rgba(31,120,149,0.06) 100%);
  border-left: 1.5px dashed #C7A86C;
  border-right: 1.5px dashed #C7A86C;
  border-bottom: 1.5px dashed #C7A86C;
  border-radius: 0 0 6px 6px;
}
.depth-bar {
  width: 26px;
  background: linear-gradient(to top, #C7A86C, #DAC59B);
  border-radius: 4px 4px 0 0;
}

/* ============ Input fields (Schritt 2) ============ */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.input-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #114B5F;
}
.input-wrap {
  position: relative;
}
.input-wrap input {
  width: 100%;
  background: white;
  border: 1.5px solid #EADFC7;
  border-radius: 0.9rem;
  padding: 1rem 3rem 1rem 1.1rem;
  font-size: 1.05rem;
  color: #0B2C39;
  transition: all 0.2s ease;
  outline: none;
  font-family: inherit;
  font-weight: 500;
}
.input-wrap input::placeholder { color: rgba(11,44,57,0.35); font-weight: 400; }
.input-wrap input:focus {
  border-color: #1F7895;
  box-shadow: 0 0 0 4px rgba(31,120,149,0.12);
}
.input-wrap input:invalid:not(:placeholder-shown) {
  border-color: #d97757;
}
.input-wrap .unit {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.875rem;
  color: rgba(11,44,57,0.45);
  pointer-events: none;
  font-weight: 500;
}
.input-hint {
  font-size: 0.8rem;
  color: rgba(11,44,57,0.55);
}

/* Size preview */
.size-summary {
  border-radius: 1rem;
  background: white;
  border: 1px solid #EADFC7;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 18px rgba(11,44,57,0.05);
}
.size-preview {
  flex-shrink: 0;
  background: linear-gradient(135deg, #73B8D2, #1F7895);
  border-radius: 0.5rem;
  min-width: 30px;
  min-height: 22px;
  box-shadow: inset 0 0 24px rgba(255,255,255,0.25), 0 4px 12px rgba(31,120,149,0.22);
  transition: all 0.3s ease;
}
.size-summary-info { flex: 1; }
.size-summary-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(11,44,57,0.55);
  font-weight: 600;
}
.size-summary-value {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1;
  margin-top: 0.35rem;
  color: #0B2C39;
}
.size-summary-cat {
  font-size: 0.875rem;
  color: rgba(11,44,57,0.6);
  margin-top: 0.35rem;
}

/* ============ Motiv cards (Schritt 4) ============ */
.motiv-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.32,.72,.0,1);
  background: white;
  border: 1.5px solid #EADFC7;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.motiv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 44px rgba(11,44,57,0.14);
  border-color: #73B8D2;
}
.motiv-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: #D6ECF4;
}
.motiv-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,44,57,0.5) 0%, rgba(11,44,57,0) 50%);
}
.motiv-image-tag {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  background: rgba(11,44,57,0.55);
  backdrop-filter: blur(8px);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
  z-index: 1;
}
.motiv-info {
  padding: 1.1rem 1.25rem 1.25rem;
  flex: 1;
}
.motiv-name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.2;
}
.motiv-desc {
  font-size: 0.85rem;
  color: rgba(11,44,57,0.6);
  margin-top: 0.35rem;
}
.motiv-card.selected {
  border-color: #1F7895;
  box-shadow: 0 16px 44px rgba(31,120,149,0.28);
}
.motiv-card.selected::after {
  content: '';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #1F7895 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/16px no-repeat;
  box-shadow: 0 4px 12px rgba(31,120,149,0.5);
}

/* Custom checkbox */
.custom-check {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border: 1.5px solid #C7A86C;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.15s ease;
}
.custom-check:checked {
  background: #1F7895;
  border-color: #1F7895;
}
.custom-check:checked::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.option-box {
  border-radius: 1rem;
  background: white;
  border: 1px solid #EADFC7;
  padding: 1.1rem 1.25rem;
}
.option-box label { display: flex; align-items: flex-start; gap: 0.85rem; cursor: pointer; }

/* ============ Comparison slider (vorher/nachher) ============ */
.comparison-card { user-select: none; }
.comparison-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 1.25rem;
  overflow: hidden;
  cursor: ew-resize;
  background: #0B2C39;
  box-shadow: 0 16px 44px rgba(11,44,57,0.18);
}
.comparison-slider img.img-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.comparison-slider .img-after-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  border-left: 2px solid white;
  box-shadow: -4px 0 24px rgba(0,0,0,0.25);
}
.comparison-slider .img-after-wrap img {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 200%;
  max-width: none;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 44px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: white;
  box-shadow: 0 0 18px rgba(255,255,255,0.6);
}
.slider-button {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: white;
  color: #114B5F;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.35);
  position: relative;
  z-index: 2;
}
.slider-button svg { width: 24px; height: 24px; }

.tag {
  position: absolute;
  top: 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: white;
  backdrop-filter: blur(10px);
  pointer-events: none;
  z-index: 1;
}
.tag-before { left: 1rem; background: rgba(11,44,57,0.65); }
.tag-after  { right: 1rem; background: rgba(31,120,149,0.85); }

.comparison-meta {
  padding: 0.25rem 0.25rem 0;
  margin-top: 1.1rem;
}
.comparison-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.25rem;
}
.comparison-sub {
  font-size: 0.875rem;
  color: rgba(11,44,57,0.6);
  margin-top: 0.25rem;
}

/* ============ Upload ============ */
.upload-zone {
  border: 2px dashed #C7A86C;
  border-radius: 1.5rem;
  padding: 3.5rem 2rem;
  text-align: center;
  background: white;
  transition: all 0.2s ease;
}
.upload-zone:hover { background: #FBF8F3; border-color: #1F7895; }
.upload-zone.dragover { background: #EEF7FB; border-color: #1F7895; transform: scale(1.005); }

.upload-icon {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: #EEF7FB;
  color: #1F7895;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.upload-icon svg { width: 32px; height: 32px; }

.upload-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
}
.upload-hint {
  font-size: 0.875rem;
  color: rgba(11,44,57,0.6);
  margin: 0.5rem auto 1.5rem;
  max-width: 22rem;
}

/* KI loader */
.ki-loader {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.ki-pulse {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1F7895, #73B8D2);
  animation: kiPulse 1.4s ease-in-out infinite;
  box-shadow: 0 4px 14px rgba(31,120,149,0.4);
}
@keyframes kiPulse {
  0%, 100% { transform: scale(0.55); opacity: 0.3; }
  50%      { transform: scale(1.1); opacity: 1; }
}
.ki-processing-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ============ Summary / Price (Schritt 7) ============ */
.summary-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .summary-grid { grid-template-columns: 1fr; }
}

.summary-card {
  background: white;
  border: 1px solid #EADFC7;
  border-radius: 0.85rem;
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}
.summary-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(11,44,57,0.55);
  font-weight: 600;
}
.summary-value {
  font-weight: 500;
  text-align: right;
  color: #0B2C39;
  font-size: 0.95rem;
}

.price-card {
  background: linear-gradient(140deg, #114B5F 0%, #0B2C39 100%);
  color: white;
  padding: 2rem 1.85rem;
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px rgba(11,44,57,0.3);
  position: relative;
}
.price-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  background: radial-gradient(60% 50% at 100% 0%, rgba(31,120,149,0.4), transparent 70%);
  pointer-events: none;
}
.price-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
  position: relative;
}
.price-total {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 3rem;
  line-height: 1;
  margin: 0.75rem 0 0.5rem;
  color: white;
  letter-spacing: -0.02em;
  position: relative;
}
.price-per-window {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  position: relative;
}
.price-divider {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin: 1.5rem 0 1.25rem;
  position: relative;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  padding: 0.4rem 0;
  line-height: 1.4;
}
.price-list li.subtle {
  color: rgba(255,255,255,0.5);
  font-size: 0.78rem;
  padding-top: 0.25rem;
}
.price-list li.total {
  border-top: 1px solid rgba(255,255,255,0.22);
  padding-top: 0.85rem;
  margin-top: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: white;
}
.price-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  position: relative;
}

/* CTA-Block */
.cta-card {
  margin-top: 2.5rem;
  background: white;
  border: 1px solid #EADFC7;
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(11,44,57,0.08);
}
.cta-title {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1.1;
}
.cta-sub {
  color: rgba(11,44,57,0.65);
  margin-top: 0.75rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.cta-note {
  font-size: 0.78rem;
  color: rgba(11,44,57,0.55);
  margin-top: 1.5rem;
}

/* ============ Modal ============ */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(11,44,57,0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
}
.modal-bg.open { display: flex; }
.modal {
  background: white;
  border-radius: 1.5rem;
  padding: 2.5rem;
  max-width: 28rem;
  width: 100%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(11,44,57,0.4);
  animation: modalIn 0.3s cubic-bezier(.32,.72,.0,1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #EEF7FB;
  color: #1F7895;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-icon svg { width: 32px; height: 32px; }

/* ============ Result card after upload ============ */
.result-card {
  background: white;
  border: 1px solid #EADFC7;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(11,44,57,0.12);
}
.result-meta {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.result-meta-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1F7895;
  font-weight: 700;
}
.result-meta-text {
  font-size: 0.875rem;
  color: rgba(11,44,57,0.65);
  margin-top: 0.25rem;
}

/* ============ Responsive tweaks ============ */
@media (max-width: 768px) {
  .hero-stats { max-width: 100%; }
  .hero-stat { padding: 1rem 0.5rem; }
  .hero-stat-value { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.6rem; }

  .step-actions { flex-direction: column-reverse; }
  .step-actions button { width: 100%; }

  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn-large { width: 100%; }

  /* Summary cards: stack label/value vertically on mobile */
  .summary-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.9rem 1.1rem;
  }
  .summary-value { text-align: left; font-size: 1rem; }

  /* Price card breathing room */
  .price-card { padding: 1.75rem 1.5rem; }
  .price-total { font-size: 2.5rem; }

  /* Header sizing on mobile */
  .config-header-inner { padding: 0.85rem 1rem; gap: 0.75rem; }
  .header-back { font-size: 0.8rem; white-space: nowrap; }
  .header-step-info { font-size: 0.62rem; letter-spacing: 0.12em; gap: 0.4rem; white-space: nowrap; }
  .header-back-text-long { display: none; }
  .header-back-text-short { display: inline !important; }

  .section { padding: 4rem 1.25rem; }

  /* Choice cards on mobile: side-by-side with smaller numbers */
  .choice-card { min-height: 130px; padding: 1rem 0.5rem; }
  .choice-big-num { font-size: 1.85rem; }
  .choice-card-tall .choice-big-num { font-size: 1.4rem; }
}

@media (max-width: 420px) {
  .choice-big-num { font-size: 1.5rem; }
  .choice-label { font-size: 0.62rem; letter-spacing: 0.12em; }
  .choice-badge { font-size: 0.6rem; padding: 0.2rem 0.4rem; }
}
