/* ════════════════════════════════════════════════════════════
   DPS Cost Calculator — Premium Wizard Styles
   ════════════════════════════════════════════════════════════ */

:root {
  --primary:        #0f4959;
  --primary-deep:   #083240;
  --primary-soft:   #1a5d70;
  --accent:         #f2b72b;
  --accent-deep:    #d99e15;
  --accent-soft:    rgba(242, 183, 43, 0.10);
  --accent-border:  rgba(242, 183, 43, 0.35);
  --bg:             #fafaf7;
  --bg-cool:        #f4f4ef;
  --surface:        #ffffff;
  --text:           #1a1a1a;
  --text-soft:      #6b6b6b;
  --text-faint:     #9a9a9a;
  --border:         #e8e6e0;
  --border-strong:  #c5c2b8;
  --radius-sm:      8px;
  --radius-md:      14px;
  --radius-lg:      24px;
  --shadow-sm:      0 1px 2px rgba(15, 73, 89, 0.04);
  --shadow-md:      0 4px 16px rgba(15, 73, 89, 0.06);
  --shadow-lg:      0 12px 48px rgba(15, 73, 89, 0.10);
  --shadow-xl:      0 24px 80px rgba(15, 73, 89, 0.14);
  --font-serif:     'Cormorant Garamond', Georgia, serif;
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease:           cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:       cubic-bezier(0.16, 1, 0.3, 1);
  --header-h:       72px;
  --footer-h:       80px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}

.display {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.display em {
  font-style: italic;
  color: var(--primary);
  font-weight: 500;
}

.eyebrow,
.step-eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.lede {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.65;
  color: var(--text-soft);
  font-weight: 300;
  max-width: 580px;
  margin: 24px auto 44px;
}

/* ─── HEADER ─────────────────────────────────────────────── */
.wiz-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.wiz-header-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.wiz-logo img {
  height: 32px;
  width: auto;
  display: block;
}
.wiz-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 380px;
  width: 100%;
  justify-self: center;
}
.wiz-progress-track {
  height: 4px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}
.wiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-deep));
  border-radius: 100px;
  transition: width 0.5s var(--ease-out);
  width: 0%;
}
.wiz-progress-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
  letter-spacing: 0.5px;
  text-align: center;
}
.wiz-exit {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
}
.wiz-exit:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

/* ─── WIZARD ─────────────────────────────────────────────── */
.wizard {
  padding-top: var(--header-h);
  padding-bottom: var(--footer-h);
  min-height: 100vh;
  position: relative;
}

.step {
  display: none;
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  padding: 56px 32px 64px;
  animation: fadeSlide 0.45s var(--ease-out);
}
.step.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
/* Welcome and success are vertically centered */
.step-welcome.active,
.step[data-step="success"].active {
  justify-content: center;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-inner {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}
.step-inner--narrow { max-width: 720px; }
.step-inner--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.step h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.2;
  font-weight: 500;
  margin-bottom: 18px;
}
.step-sub {
  font-size: 16px;
  color: var(--text-soft);
  margin-bottom: 44px;
  max-width: 620px;
  line-height: 1.65;
}
.step-inner--centered .step-sub { margin-left: auto; margin-right: auto; }

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.2px;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  padding: 14px 28px;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(15, 73, 89, 0.25);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.btn-xl {
  padding: 18px 36px;
  font-size: 16px;
}
.btn-block { width: 100%; padding: 18px 36px; font-size: 16px; }

/* ─── CARDS — base ────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
  user-select: none;
  font-family: var(--font-sans);
  color: var(--text);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 73, 89, 0.12), var(--shadow-md);
}

/* Illustrated cards (SVG) */
.card--illustrated .card-illustration {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #fafaf5 0%, #f0eee5 100%);
  display: flex;
  align-items: stretch;
  justify-content: center;
  color: var(--primary);
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.card--illustrated .card-illustration svg {
  width: 100%;
  height: 100%;
  display: block;
}
.card.selected .card-illustration {
  background: linear-gradient(180deg, #fff8e6 0%, #fdf0c7 100%);
}
.card-body {
  padding: 20px 22px 22px;
}
.card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
}
.card-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-soft);
  margin-top: 8px;
  line-height: 1.5;
  letter-spacing: 0.1px;
}

/* Photo cards */
.card--photo {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  overflow: hidden;
  width: 100%;
}
.card--photo-tall { aspect-ratio: 4 / 3; }
.card--photo .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 73, 89, 0.05) 0%, rgba(15, 73, 89, 0.85) 100%);
  transition: background 0.25s var(--ease);
}
.card--photo:hover .card-overlay {
  background: linear-gradient(180deg, rgba(15, 73, 89, 0.15) 0%, rgba(15, 73, 89, 0.92) 100%);
}
.card--photo.selected .card-overlay {
  background: linear-gradient(180deg, rgba(15, 73, 89, 0.30) 0%, rgba(15, 73, 89, 0.95) 100%);
}
.card-photo-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 26px 22px;
  color: #fff;
}
.card-photo-body h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 8px;
}
.card-photo-body p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  font-weight: 300;
}

/* Photo card check (multi-select indicator) */
.card-check {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all 0.25s var(--ease);
}
.card--photo.selected .card-check {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}
.card--photo.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-lg);
}

/* Size cards */
.card--size {
  padding: 36px 20px 28px;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 220px;
}
.card--size .size-grid {
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
}
.size-grid-cell {
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  opacity: 0.18;
  border-radius: 4px;
  transition: opacity 0.25s var(--ease);
}
.card--size:hover .size-grid-cell { opacity: 0.30; }
.card--size.selected .size-grid-cell { opacity: 0.55; }
.card--size h3 { text-align: center; font-size: 20px; }
.card--size .card-sub { text-align: center; }

/* Custom size card */
.card--custom {
  padding: 28px 20px 24px;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 220px;
}
.custom-input-wrap {
  width: 100%;
  margin-bottom: 16px;
}
.custom-input-label {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 10px;
  letter-spacing: 0.4px;
}
.custom-input-row {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
  background: var(--bg);
}
.card--custom.selected .custom-input-row,
.custom-input-row:focus-within {
  border-color: var(--primary);
  background: #fff;
}
.custom-input-row input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 12px 14px;
  font-size: 18px;
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--text);
  text-align: center;
  width: 0;
  min-width: 0;
  -moz-appearance: textfield;
}
.custom-input-row input::-webkit-outer-spin-button,
.custom-input-row input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.custom-input-unit {
  padding: 12px 14px;
  background: rgba(0,0,0,0.03);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  border-left: 1.5px solid var(--border);
  display: flex;
  align-items: center;
}
.custom-h3 { color: var(--text-soft); font-size: 15px; font-weight: 400; font-style: italic; }

/* ─── CHOICE TILES (yes/no/not sure) ─────────────────────── */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.choice-grid--4 { grid-template-columns: repeat(4, 1fr); }

.choice-tile {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 24px 30px;
  cursor: pointer;
  text-align: center;
  transition: all 0.25s var(--ease);
  font-family: var(--font-sans);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.choice-tile:hover {
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.choice-tile.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 12px 32px rgba(15, 73, 89, 0.20);
}
.choice-tile h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: inherit;
}
.choice-tile p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
}
.choice-tile.selected p { color: rgba(255,255,255,0.7); }
.choice-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.85;
}
.choice-tile.selected .choice-icon { color: var(--accent); opacity: 1; }
.choice-icon svg { width: 100%; height: 100%; }

.choice-tile--compact { padding: 28px 24px; min-height: 96px; justify-content: center; }
.choice-tile--compact h3 { font-size: 22px; }

/* ─── WELCOME STEP TRUST ROW ─────────────────────────────── */
.trust-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
  justify-content: center;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.trust-num {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
}
.trust-lbl {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── ESTIMATE ───────────────────────────────────────────── */
.estimate-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  text-align: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.estimate-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(242, 183, 43, 0.18) 0%, transparent 60%);
  pointer-events: none;
}
.estimate-hero-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 24px;
  position: relative;
}
.estimate-hero-numbers {
  display: flex;
  align-items: baseline;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.estimate-hero-from,
.estimate-hero-to {
  font-family: var(--font-serif);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 500;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.estimate-hero-sep {
  font-size: 22px;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
  font-family: var(--font-serif);
  font-style: italic;
}
.estimate-hero-note {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 32px;
  line-height: 1.6;
  position: relative;
}

.estimate-breakdown {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px 32px;
  margin-bottom: 48px;
}
.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.breakdown-item:last-child { border-bottom: none; }
.breakdown-label {
  font-size: 15px;
  color: var(--text);
  font-weight: 400;
}
.breakdown-value {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
}

.estimate-cta {
  text-align: center;
  padding-top: 16px;
}
.estimate-cta-text {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── CONTACT FORM ───────────────────────────────────────── */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 32px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.2px;
}
.optional {
  font-weight: 400;
  font-size: 12px;
  color: var(--text-faint);
}
.form-field input,
.form-field select,
.form-field textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  transition: all 0.2s var(--ease);
  outline: none;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 73, 89, 0.08);
}
.form-field textarea { resize: vertical; min-height: 96px; }
.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.check-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 28px;
}
.check-label input[type="checkbox"] {
  width: 18px; height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  accent-color: var(--primary);
}
.check-label a { color: var(--primary); text-decoration: underline; }

.form-tiny {
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-faint);
  margin-top: 20px;
}

/* ─── SUCCESS ────────────────────────────────────────────── */
.success-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  animation: scaleIn 0.5s var(--ease-out);
}
@keyframes scaleIn {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.success-summary {
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  max-width: 480px;
  text-align: left;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
}
.success-summary strong { color: var(--text); }

/* ─── FOOTER NAV ─────────────────────────────────────────── */
.wiz-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--footer-h);
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid var(--border);
  z-index: 90;
}
.wiz-footer-inner {
  max-width: 1280px;
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wiz-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-soft);
  padding: 12px 20px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.wiz-back:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.wiz-back:disabled,
.wiz-back[hidden] { display: none; }
.wiz-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wiz-footer.hidden { display: none; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .card-grid--5 { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 48px 24px 64px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --header-h: 60px; --footer-h: 70px; }
  .wiz-header-inner { padding: 0 16px; gap: 12px; }
  .wiz-progress { max-width: none; }
  .wiz-logo img { height: 24px; }
  .wiz-exit { width: 36px; height: 36px; }

  .step { padding: 28px 18px 48px; }

  .display { font-size: clamp(30px, 8vw, 44px); }
  .step h2 { font-size: clamp(22px, 5.5vw, 30px); }
  .step-sub { font-size: 15px; margin-bottom: 24px; }
  .lede { font-size: 16px; margin-bottom: 28px; }

  .card-grid, .card-grid--3, .card-grid--4, .card-grid--5 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .card h3 { font-size: 16px; }
  .card-photo-body { padding: 16px 18px; }
  .card-photo-body h3 { font-size: 19px; margin-bottom: 2px; }
  .card-photo-body p { font-size: 12px; }
  .card-body { padding: 12px 14px; }
  .card-sub { font-size: 12px; }

  .card-check { top: 10px; right: 10px; width: 26px; height: 26px; }
  .card-check svg { width: 12px; height: 12px; }

  .choice-grid { grid-template-columns: 1fr; gap: 10px; }
  .choice-grid--4 { grid-template-columns: 1fr 1fr; }
  .choice-tile { padding: 20px 18px; gap: 10px; }
  .choice-tile h3 { font-size: 18px; }
  .choice-tile--compact { padding: 18px; min-height: 64px; }
  .choice-tile--compact h3 { font-size: 18px; }
  .choice-icon { width: 44px; height: 44px; }

  .trust-row { gap: 16px; margin-top: 32px; }
  .trust-divider { display: none; }
  .trust-num { font-size: 24px; }
  .trust-lbl { font-size: 11px; }

  .estimate-hero { padding: 32px 20px; border-radius: var(--radius-md); }
  .estimate-hero-from, .estimate-hero-to { font-size: clamp(34px, 11vw, 52px); }
  .estimate-hero-numbers { gap: 10px; }
  .estimate-hero-label { margin-bottom: 16px; font-size: 10px; }
  .estimate-hero-note { margin-top: 16px; font-size: 12px; }

  .estimate-breakdown { padding: 6px 18px; border-radius: var(--radius-md); }
  .breakdown-item { padding: 14px 0; flex-wrap: wrap; gap: 4px; }
  .breakdown-label { font-size: 14px; }
  .breakdown-value { font-size: 16px; }

  .contact-form { padding: 24px 18px; border-radius: var(--radius-md); }
  .form-grid { grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; }
  .form-field--full { grid-column: 1; }

  .wiz-footer-inner { padding: 0 14px; }
  .wiz-back { padding: 10px 16px; font-size: 13px; }
  .btn { padding: 12px 18px; font-size: 13px; }
  .btn-xl { padding: 14px 22px; font-size: 14px; }
}

@media (max-width: 480px) {
  .card-photo-body { padding: 14px 16px 12px; }
  .card-photo-body h3 { font-size: 17px; }
  .card-photo-body p { display: none; } /* hide subtitle on tiny screens */

  .card--illustrated .card-illustration { aspect-ratio: 5 / 4; }
  .card--photo-tall { aspect-ratio: 4 / 5; } /* taller on mobile so photo is visible */

  .card--size, .card--custom { min-height: 180px; padding: 24px 12px; }
  .card--size .size-grid { width: 56px; height: 56px; margin-bottom: 16px; }

  .form-checks { font-size: 13px; }
}
