/* ============ TOKENS ============ */
.shooting-app {
  --bg: #F5EFE6;
  --bg-elevated: #FBF7F0;
  --bg-sunken: #EDE4D4;
  --surface: #FFFFFF;
  --ink: #2A1F17;
  --ink-2: #5B4A3A;
  --ink-3: #8A7862;
  --line: #E4D9C4;
  --line-strong: #C9B89A;
  --accent: #C9985E;
  --accent-ink: #8A6333;
  --accent-soft: #F3E4CA;
  --success: #6B8E4E;
  --danger: #B45A3C;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 2px rgba(42, 31, 23, 0.04), 0 1px 3px rgba(42, 31, 23, 0.03);
  --shadow: 0 2px 8px rgba(42, 31, 23, 0.06), 0 8px 24px rgba(42, 31, 23, 0.05);
  --shadow-lg: 0 12px 40px rgba(42, 31, 23, 0.12);

  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --dur-fast: 140ms;
  --dur: 220ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.shooting-app[data-theme="dark"] {
  --bg: #1C1611;
  --bg-elevated: #262019;
  --bg-sunken: #14100C;
  --surface: #2D261E;
  --ink: #F2E8D5;
  --ink-2: #C9B89A;
  --ink-3: #8A7862;
  --line: #3A3127;
  --line-strong: #4D4030;
  --accent: #D9A76B;
  --accent-ink: #E8BD85;
  --accent-soft: #3A2F20;
}

.shooting-app[data-density="compact"] {
  --pad-lg: 20px;
  --pad: 14px;
  --gap-lg: 20px;
  --gap: 12px;
  --input-h: 44px;
}
.shooting-app,
.shooting-app[data-density="cozy"] {
  --pad-lg: 28px;
  --pad: 18px;
  --gap-lg: 28px;
  --gap: 16px;
  --input-h: 52px;
}

/* ============ RESET & BASE ============ */
.shooting-app, .shooting-app * { box-sizing: border-box; }
.shooting-app {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
}

.shooting-app h1, .shooting-app h2, .shooting-app h3 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
.shooting-app p { margin: 0; }
.shooting-app button.btn, .shooting-app button.cal-btn, .shooting-app button.step-item, .shooting-app button.type-card, .shooting-app button.option-card, .shooting-app button.chip, .shooting-app button.slot, .shooting-app button.cal-day, .shooting-app button.fc-del { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.shooting-app input, .shooting-app textarea, .shooting-app select { font-family: inherit; font-size: inherit; color: inherit; }

.serif { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.005em; }

/* ============ HERO ============ */
.hero {
  position: relative;
  background: #1C1611;
  color: #F2E8D5;
  padding: 56px 48px 72px;
  overflow: hidden;
}
/* Image de fond (photo floutée), couche la plus basse */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-bg, url('/background/DSC04188-2-Edit.webp'));
  background-size: cover;
  background-position: center;
  filter: blur(18px) brightness(0.45) saturate(1.15);
  transform: scale(1.1); /* évite que le blur ne laisse voir les bords */
  pointer-events: none;
  z-index: 0;
}
/* Voile sombre + lueurs dorées par-dessus l'image */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(42,31,23,0.6) 0%, rgba(28,22,17,0.85) 100%),
    radial-gradient(ellipse 800px 400px at 80% 20%, rgba(201, 152, 94, 0.25), transparent 60%),
    radial-gradient(ellipse 600px 400px at 10% 90%, rgba(201, 152, 94, 0.12), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  max-width: 1280px; margin: 0 auto;
  position: relative;
  z-index: 2; /* au-dessus de l'image et du voile */
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(242, 232, 213, 0.2);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #D9C9A8;
  background: rgba(242, 232, 213, 0.04);
  backdrop-filter: blur(10px);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 152, 94, 0.25);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 400;
  line-height: 1.02;
  margin: 20px 0 16px;
  max-width: 820px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic; color: var(--accent);
  font-weight: 400;
}
.hero-sub {
  font-size: 17px; color: #D9C9A8; max-width: 560px; line-height: 1.55;
}
.hero-badges { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(242, 232, 213, 0.06);
  border: 1px solid rgba(242, 232, 213, 0.12);
  border-radius: 100px;
  font-size: 13px;
  color: #E6D7B8;
}
.hero-badge svg { width: 14px; height: 14px; opacity: 0.9; }

/* ============ STEPPER (sticky) ============ */
.stepper-wrap {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.stepper {
  max-width: 1280px; margin: 0 auto;
  padding: 0 48px;
  display: flex; align-items: center;
  height: 64px;
  gap: 8px;
}
.step-item {
  flex: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  color: var(--ink-3);
  min-width: 0;
}
.step-item:hover { background: var(--bg-elevated); color: var(--ink-2); }
.step-item.active { color: var(--ink); }
.step-item.done { color: var(--ink-2); }
.step-num {
  flex-shrink: 0;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  font-size: 12px; font-weight: 500;
  background: var(--bg);
  transition: all var(--dur) var(--ease);
}
.step-item.active .step-num {
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.step-item.done .step-num {
  background: var(--accent); color: white; border-color: var(--accent);
}
.step-label {
  display: flex; flex-direction: column; min-width: 0;
}
.step-label .k {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3);
  font-weight: 500;
}
.step-label .v {
  font-size: 14px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.step-sep {
  flex-shrink: 0;
  height: 1px; width: 24px; background: var(--line-strong);
  opacity: 0.5;
}

/* ============ LAYOUT ============ */
.shell {
  max-width: 1280px; margin: 0 auto;
  padding: 40px 48px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: flex-start;
}
.main-col { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.side-col { position: sticky; top: 96px; }

/* ============ SECTION ============ */
.section {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--pad-lg) var(--pad-lg) var(--pad-lg);
  scroll-margin-top: 96px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.section.focused {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 8px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 24px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.section-sub {
  font-size: 14px; color: var(--ink-2);
  margin-top: 6px; max-width: 540px;
}
.section-badge {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent-ink);
  padding: 6px 10px;
  background: var(--accent-soft);
  border-radius: 100px;
  white-space: nowrap;
}

/* ============ FIELDS ============ */
.field { display: flex; flex-direction: column; gap: 8px; }
.label {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  font-weight: 500;
}
.label .req { color: var(--accent-ink); margin-left: 4px; }
.label .hint { font-size: 11px; color: var(--ink-3); text-transform: none; letter-spacing: 0; font-weight: 400; }

.input, .textarea, .select {
  width: 100%;
  height: var(--input-h);
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  transition: all var(--dur) var(--ease);
  outline: none;
}
.textarea {
  height: auto; min-height: 120px; padding: 14px 16px;
  resize: vertical;
  line-height: 1.55;
}
.input:hover, .textarea:hover, .select:hover { border-color: var(--line-strong); }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }

.field-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 700px) { .field-grid, .field-grid.cols-3 { grid-template-columns: 1fr; } }

.input-wrap { position: relative; }
.input-wrap .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); pointer-events: none;
  width: 18px; height: 18px;
}
.input-wrap.with-icon .input { padding-left: 44px; }
.input-wrap .input-suffix {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-3); font-size: 13px; pointer-events: none;
}

/* ============ TYPE CARDS ============ */
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 900px) { .type-grid { grid-template-columns: repeat(2, 1fr); } }

.type-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  display: flex; flex-direction: column;
  gap: 14px;
  overflow: hidden;
  min-height: 180px;
}
.type-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.type-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow);
}
.type-card .type-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--bg-sunken);
  position: relative;
  overflow: hidden;
}
.type-card .type-thumb::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 6px, rgba(42, 31, 23, 0.04) 6px 7px);
}
.type-card .type-thumb .icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
}
.type-card .type-thumb .icon svg { width: 28px; height: 28px; }
.type-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}
.type-card .type-desc {
  font-size: 13px; color: var(--ink-2); line-height: 1.45;
}
.type-card .type-price {
  margin-top: auto;
  font-size: 12px;
  color: var(--accent-ink);
  font-weight: 500;
  letter-spacing: 0.04em;
}
.type-card .check {
  position: absolute; top: 12px; right: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: white;
  opacity: 0; transform: scale(0.6);
  transition: all var(--dur) var(--ease);
}
.type-card.selected .check { opacity: 1; transform: scale(1); }

/* Different thumb palettes */
.type-card[data-tone="portrait"] .type-thumb { background: linear-gradient(135deg, #D4B89A, #A88660); }
.type-card[data-tone="event"] .type-thumb { background: linear-gradient(135deg, #8A8B6A, #5D6B4E); }
.type-card[data-tone="pet"] .type-thumb { background: linear-gradient(135deg, #B09878, #7E6A4F); }
.type-card[data-tone="other"] .type-thumb { background: linear-gradient(135deg, #9B8072, #6B574B); }

/* ============ OPTIONS (switches) ============ */
.options-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .options-grid { grid-template-columns: 1fr; } }

.option-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-align: left;
  position: relative;
}
.option-card:hover { border-color: var(--line-strong); }
.option-card.on {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--surface) 100%);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.option-card .opt-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-sunken);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  flex-shrink: 0;
  transition: all var(--dur) var(--ease);
}
.option-card.on .opt-icon { background: var(--accent); color: white; }
.option-card .opt-icon svg { width: 18px; height: 18px; }
.option-card .opt-body { flex: 1; min-width: 0; }
.option-card .opt-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.option-card .opt-desc { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.option-card .opt-price {
  font-size: 12px; font-weight: 500;
  color: var(--accent-ink);
  padding: 4px 8px;
  background: var(--accent-soft);
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.switch {
  width: 36px; height: 22px;
  border-radius: 100px;
  background: var(--line-strong);
  position: relative;
  transition: background var(--dur) var(--ease);
  flex-shrink: 0;
}
.switch::after {
  content: "";
  position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: transform var(--dur) var(--ease);
}
.option-card.on .switch { background: var(--accent-ink); }
.option-card.on .switch::after { transform: translateX(14px); }

/* ============ DURATION SLIDER ============ */
.duration {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.duration-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.duration-value {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  line-height: 1;
  color: var(--ink);
}
.duration-value .unit { font-size: 14px; font-family: var(--font-sans); color: var(--ink-3); margin-left: 6px; }
.duration-pips {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-3);
  margin-top: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px;
  background: var(--line-strong);
  border-radius: 100px;
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--line-strong), var(--shadow-sm);
  cursor: grab;
  transition: transform var(--dur) var(--ease);
}
.slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.15); }
.slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  border: 4px solid var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--line-strong);
  cursor: grab;
}

/* ============ CALENDAR ============ */
.calendar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.cal-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  text-transform: capitalize;
}
.cal-nav {
  display: flex; gap: 4px;
}
.cal-btn {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  transition: all var(--dur) var(--ease);
}
.cal-btn:hover { background: var(--bg-sunken); color: var(--ink); }
.cal-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-dow {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  padding: 8px 0;
}
.cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  transition: all var(--dur-fast) var(--ease);
}
.cal-day:hover:not(.disabled):not(.other):not(.selected) { background: var(--bg-sunken); }
.cal-day.other { color: transparent; pointer-events: none; }
.cal-day.past, .cal-day.disabled {
  color: var(--ink-3);
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}
.cal-day.today { font-weight: 600; }
.cal-day.today::after {
  content: ""; position: absolute; bottom: 4px;
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--ink-2);
}
.cal-day.available { color: var(--ink); }
.cal-day.available::before {
  content: ""; position: absolute; inset: 2px;
  border-radius: 6px;
  background: rgba(107, 142, 78, 0.12);
  z-index: -1;
}
.cal-day.partial::before { background: rgba(201, 152, 94, 0.15); }
.cal-day.full { color: var(--ink-3); opacity: 0.5; cursor: not-allowed; }
.cal-day.full::after {
  content: ""; position: absolute;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--danger); bottom: 4px;
}
.cal-day { isolation: isolate; }
.cal-day.selected {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.cal-day.selected::before { display: none; }

.cal-legend {
  display: flex; gap: 16px; margin-top: 14px;
  padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cal-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .lg::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
}
.cal-legend .lg.free::before { background: #6B8E4E; }
.cal-legend .lg.partial::before { background: var(--accent); }
.cal-legend .lg.full::before { background: var(--danger); }

/* ============ TIMESLOTS ============ */
.slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
@media (max-width: 600px) { .slots { grid-template-columns: repeat(3, 1fr); } }
.slot {
  padding: 10px 6px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.slot:hover:not(.disabled) { border-color: var(--line-strong); }
.slot.selected {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
}
.slot.disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.slots-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

/* ============ ESTIMATE (sidebar) ============ */
.estimate {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.estimate-head {
  padding: 20px;
  background: linear-gradient(135deg, #2A1F17 0%, #3D2E20 100%);
  color: #F2E8D5;
  position: relative;
  overflow: hidden;
}
.estimate-head::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 300px 200px at 80% 20%, rgba(201, 152, 94, 0.3), transparent 60%);
}
.estimate-eyebrow {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em;
  color: #D9C9A8;
  position: relative;
}
.estimate-amount {
  display: flex; align-items: baseline; gap: 8px;
  margin-top: 8px;
  position: relative;
}
.estimate-amount .num {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1;
  font-weight: 400;
}
.estimate-amount .cur {
  font-family: var(--font-serif);
  font-size: 24px;
  color: var(--accent);
}
.estimate-amount .ttc {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: #A89778;
  margin-left: auto;
}

.estimate-body { padding: 20px; }
.estimate-lines { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.estimate-line {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px;
  color: var(--ink-2);
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  animation: slideIn var(--dur) var(--ease);
}
.estimate-line:last-child { border-bottom: none; }
.estimate-line .lbl { display: flex; align-items: center; gap: 8px; }
.estimate-line .lbl-ico {
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--bg-sunken);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.estimate-line .lbl-ico svg { width: 12px; height: 12px; }
.estimate-line .val { font-variant-numeric: tabular-nums; font-weight: 500; color: var(--ink); }
.estimate-line.muted .val { color: var(--ink-3); font-style: italic; }

.estimate-meta {
  margin-top: 16px;
  padding: 14px;
  background: var(--bg-sunken);
  border-radius: 10px;
  font-size: 12px;
  color: var(--ink-2);
  display: flex; gap: 10px; align-items: flex-start;
  line-height: 1.5;
}
.estimate-meta svg { flex-shrink: 0; color: var(--accent-ink); margin-top: 1px; }

.estimate-summary {
  padding: 16px 20px;
  background: var(--bg-sunken);
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.estimate-summary b { color: var(--ink); font-weight: 500; }
.estimate-summary ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.estimate-summary li { display: flex; align-items: center; gap: 8px; }
.estimate-summary li svg { color: var(--success); flex-shrink: 0; }

@keyframes slideIn {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 22px;
  height: 48px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink); color: var(--bg);
}
.btn-primary:hover { background: #0f0907; box-shadow: var(--shadow); }
.btn-primary:disabled { background: var(--line-strong); color: var(--ink-3); cursor: not-allowed; }
.btn-ghost {
  background: transparent; color: var(--ink-2);
}
.btn-ghost:hover { background: var(--bg-sunken); color: var(--ink); }
.btn-accent {
  background: var(--accent); color: white;
}
.btn-accent:hover { background: var(--accent-ink); }

.btn-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px dashed var(--line);
}

/* ============ FILE UPLOAD ============ */
.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  background: var(--bg-sunken);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone-icon {
  width: 44px; height: 44px;
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border-radius: 12px;
  color: var(--ink-2);
}
.dropzone-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.dropzone-sub { font-size: 12px; color: var(--ink-3); }
.dropzone-sub u { color: var(--accent-ink); }
.file-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  margin-top: 8px;
}
.file-chip .fc-name { flex: 1; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip .fc-size { color: var(--ink-3); font-size: 12px; }
.file-chip .fc-del {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
}
.file-chip .fc-del:hover { background: var(--bg-sunken); color: var(--danger); }

/* ============ CHIPS (participants quick picks) ============ */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 12px;
  color: var(--ink-2);
  background: var(--surface);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--line-strong); }
.chip.selected { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ============ TWEAKS PANEL ============ */
.tweaks {
  position: fixed; bottom: 24px; right: 24px; z-index: 100;
  width: 320px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: none;
  font-size: 13px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.tweaks.open { display: block; }
.tweaks h4 {
  font-family: var(--font-serif);
  font-size: 18px; margin-bottom: 4px;
}
.tweaks .tw-sub {
  font-size: 11px; color: var(--ink-3);
  margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.tweaks .tw-row { margin-bottom: 14px; }
.tweaks .tw-lbl {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-weight: 500;
}
.tweaks .tw-swatches { display: flex; gap: 6px; }
.tweaks .tw-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease);
}
.tweaks .tw-swatch.active { border-color: var(--ink); transform: scale(1.1); }
.tweaks .tw-seg {
  display: flex; background: var(--bg-sunken); border-radius: 8px; padding: 3px;
}
.tweaks .tw-seg-btn {
  flex: 1;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-2);
  transition: all var(--dur-fast) var(--ease);
}
.tweaks .tw-seg-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ============ CONFIRMATION ============ */
.confirm-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(42, 31, 23, 0.5);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.confirm-overlay.open { opacity: 1; pointer-events: auto; }
.confirm-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 40px;
  text-align: center;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateY(8px);
  transition: transform var(--dur) var(--ease);
}
.confirm-overlay.open .confirm-card { transform: translateY(0); }
.confirm-icon {
  width: 72px; height: 72px;
  background: var(--accent-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--accent-ink);
  animation: pop 400ms var(--ease);
}
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.confirm-card h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  margin-bottom: 8px;
}
.confirm-card p { color: var(--ink-2); margin-bottom: 24px; }
.confirm-recap {
  background: var(--bg-sunken);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
  font-size: 13px;
}
.confirm-recap .cr-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--line);
}
.confirm-recap .cr-row:last-child { border-bottom: none; }
.confirm-recap .cr-row b { font-weight: 500; }

/* ============ RESPONSIVE ============ */

/* ---- TABLET (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .shell {
    grid-template-columns: 1fr;
    padding: 24px 24px 140px;
    gap: 28px;
  }
  /* estimate becomes a floating summary at top on tablet */
  .side-col {
    position: sticky;
    top: 72px;
    order: -1;
    z-index: 30;
  }
  .estimate-summary { display: none; }
  .estimate-body .estimate-lines { max-height: 180px; overflow-y: auto; }

  .hero { padding: 40px 24px 56px; }
  .hero h1 { font-size: clamp(34px, 6vw, 54px); }
  .stepper { padding: 0 24px; }

  .section { padding: 22px; }
  .section-title { font-size: 28px; }

  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .options-grid { grid-template-columns: 1fr; }
}

/* ---- MOBILE (≤ 720px) ---- */
@media (max-width: 720px) {
  :root {
    --pad-lg: 18px;
    --pad: 14px;
    --input-h: 48px;
    --radius-xl: 18px;
    --radius-lg: 14px;
  }

  body { font-size: 14px; }

  /* Hero */
  .hero { padding: 28px 18px 40px; }
  .hero h1 { font-size: clamp(28px, 9vw, 40px); line-height: 1.05; margin: 14px 0 10px; }
  .hero-sub { font-size: 14px; }
  .hero-badges { gap: 6px; margin-top: 18px; }
  .hero-badge { padding: 6px 10px; font-size: 11px; }
  .hero-badge svg { width: 12px; height: 12px; }

  /* Stepper — compact, hide the value text, keep numbers + keys */
  .stepper-wrap { top: 0; }
  .stepper {
    padding: 0 14px;
    height: 56px;
    gap: 4px;
  }
  .step-item {
    padding: 8px 6px;
    gap: 8px;
    flex: 1;
    min-width: 0;
  }
  .step-num { width: 24px; height: 24px; font-size: 11px; }
  .step-label .k { font-size: 9px; }
  .step-label .v { display: none; }
  .step-sep { width: 12px; }

  /* Shell */
  .shell {
    padding: 16px 14px 140px;
    gap: 20px;
  }

  /* Sections */
  .section { padding: 18px 16px; border-radius: 16px; }
  .section-head {
    padding-bottom: 14px;
    margin-bottom: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .section-title { font-size: 24px; line-height: 1.1; }
  .section-sub { font-size: 13px; }
  .section-badge { font-size: 10px; padding: 4px 8px; }

  /* Fields */
  .field-grid, .field-grid.cols-3 { grid-template-columns: 1fr; gap: 14px; }
  .input, .select { font-size: 16px; } /* 16px prevents iOS zoom */
  .textarea { font-size: 16px; min-height: 100px; }
  .label { font-size: 11px; }
  .label .hint { font-size: 10px; }

  /* Type cards — 1 col on tiny, 2 on ≥420px */
  .type-grid { grid-template-columns: 1fr; gap: 10px; }
  .type-card {
    flex-direction: row;
    align-items: center;
    min-height: 0;
    padding: 14px;
    gap: 14px;
  }
  .type-card .type-thumb {
    width: 72px;
    aspect-ratio: 1;
    flex-shrink: 0;
    border-radius: 10px;
  }
  .type-card > div:nth-child(3) { flex: 1; min-width: 0; }
  .type-card h3 { font-size: 18px; }
  .type-card .type-desc { font-size: 12px; margin-top: 2px; }
  .type-card .type-price {
    margin-top: 0;
    position: absolute;
    top: 14px; right: 14px;
    font-size: 11px;
  }
  .type-card .check { top: auto; bottom: 14px; right: 14px; width: 22px; height: 22px; }

  @media (min-width: 440px) {
    .type-grid { grid-template-columns: repeat(2, 1fr); }
    .type-card { flex-direction: column; align-items: stretch; }
    .type-card .type-thumb { width: 100%; aspect-ratio: 4/3; }
    .type-card .type-price { position: static; margin-top: auto; }
    .type-card .check { top: 10px; right: 10px; bottom: auto; }
  }

  /* Option cards — tighter */
  .option-card { padding: 12px; gap: 10px; }
  .option-card .opt-icon { width: 32px; height: 32px; }
  .option-card .opt-title { font-size: 13px; }
  .option-card .opt-desc { font-size: 11px; }
  .option-card .opt-price { font-size: 11px; padding: 3px 7px; }

  /* Calendar — larger tap targets */
  .calendar { padding: 14px; }
  .cal-title { font-size: 17px; }
  .cal-btn { width: 36px; height: 36px; }
  .cal-day { font-size: 13px; min-height: 38px; }
  .cal-dow { font-size: 10px; padding: 6px 0; }
  .cal-legend { gap: 10px; font-size: 10px; }

  /* Time slots — 3 cols */
  .slots { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .slot { padding: 12px 4px; font-size: 13px; }

  /* Duration / sliders */
  .duration { padding: 14px; }
  .duration-pips { font-size: 10px; }
  .slider::-webkit-slider-thumb { width: 26px; height: 26px; } /* bigger tap target */
  .slider::-moz-range-thumb { width: 26px; height: 26px; }

  /* Estimate — collapse into a compact bar on mobile */
  .side-col {
    position: sticky;
    top: 56px;
    z-index: 30;
  }
  .estimate { border-radius: 14px; box-shadow: var(--shadow); }
  .estimate summary::-webkit-details-marker { display: none; }
  .estimate summary { list-style: none; cursor: pointer; }
  .estimate-head { padding: 14px 16px; }
  .estimate-amount .num { font-size: 36px; }
  .estimate-amount .cur { font-size: 20px; }
  .estimate-eyebrow { font-size: 9px; }
  .estimate-toggle-ico {
    margin-left: auto;
    color: #D9C9A8;
    transition: transform var(--dur) var(--ease);
    position: relative;
  }
  .estimate details[open] .estimate-toggle-ico { transform: rotate(90deg); }
  .estimate-body { padding: 14px 16px 4px; }
  .estimate-body .estimate-lines { max-height: none; }
  .estimate-meta { margin-top: 10px; }
  .estimate-summary { display: block; }

  /* Button row — stack on narrow */
  .btn-row {
    flex-direction: column-reverse;
    gap: 12px;
    align-items: stretch;
    margin-top: 20px;
    padding-top: 16px;
  }
  .btn-row > span { text-align: center; }
  .btn { width: 100%; height: 52px; }

  /* Dropzone */
  .dropzone { padding: 20px 16px; }
  .dropzone-icon { width: 36px; height: 36px; margin-bottom: 8px; }
  .dropzone-title { font-size: 13px; }
  .dropzone-sub { font-size: 11px; }

  /* Chips — wrap nicely */
  .chips { gap: 6px; }
  .chip { font-size: 11px; padding: 5px 10px; }

  /* Tweaks panel — full-width sheet on mobile */
  .tweaks {
    left: 12px; right: 12px; bottom: 12px;
    width: auto;
    padding: 16px;
    max-height: 70vh;
  }

  /* Confirm modal */
  .confirm-card { padding: 28px 20px; border-radius: 18px; }
  .confirm-card h2 { font-size: 26px; }
  .confirm-icon { width: 60px; height: 60px; margin-bottom: 14px; }
}

/* ---- TINY (≤ 380px) ---- */
@media (max-width: 380px) {
  .hero-badges { flex-direction: column; align-items: flex-start; }
  .hero-badge { width: auto; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .step-item { padding: 6px 4px; }
  .step-label .k { font-size: 8px; letter-spacing: 0.08em; }
  .step-sep { display: none; }
}

/* ---- LANDSCAPE PHONES / SMALL TABLETS ---- */
@media (min-width: 721px) and (max-width: 1024px) {
  .type-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .slots { grid-template-columns: repeat(6, 1fr); }
}

/* ---- TOUCH DEVICE TUNING ---- */
@media (hover: none) {
  .type-card:hover { transform: none; box-shadow: none; }
  .type-card:active { transform: scale(0.98); }
  .option-card:active { transform: scale(0.98); }
  .slot:active:not(.disabled) { background: var(--bg-sunken); }
  .cal-day:active:not(.disabled):not(.other) { background: var(--bg-sunken); }
  .btn:active { transform: scale(0.98); }
}

/* ---- PREVENT HORIZONTAL OVERFLOW ---- */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Focus ring */
*:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.input:focus-visible, .textarea:focus-visible { outline: none; }
