/* ---------------------------------------------------------------------
   Base / reset
--------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

/* The [hidden] attribute is overridden by any author rule that sets
   `display` on the same element (e.g. .btn, .field, .confirmation-screen).
   Force it to win so IntakeApp's step/element toggling always works. */
[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: var(--font-body);
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ---------------------------------------------------------------------
   Header
--------------------------------------------------------------------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.brand-logo {
  height: 56px;
  width: auto;
}

.brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--color-primary);
}

.step-indicator {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------
   Branding hero (placeholder for showroom imagery)
--------------------------------------------------------------------- */
.brand-hero {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.brand-hero-placeholder {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-xs);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.brand-hero-icon {
  font-size: 2.5rem;
}

.brand-hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--color-primary);
  margin: 0;
}

.brand-hero-sub {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------------------------------------------------------------------
   Progress navigation
--------------------------------------------------------------------- */
.progress-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-lg);
}

.progress-dots {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-md);
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0;
  position: relative;
}

.progress-dots::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.step-dot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  flex: 1;
  min-width: 0;
}

.step-dot .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  transition: all 0.2s ease;
}

.step-dot .label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.step-dot.completed .dot {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.step-dot.current .dot {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(28, 53, 87, 0.15);
  background: var(--color-surface);
}

.step-dot.current .label {
  color: var(--color-primary);
  font-weight: 600;
}

.step-dot.completed .label {
  color: var(--color-text);
}

.step-dot.clickable {
  cursor: pointer;
}

.progress-bar-mobile {
  display: none;
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 12.5%;
  background: var(--color-primary);
  transition: width 0.2s ease;
}

/* ---------------------------------------------------------------------
   Step container / card
--------------------------------------------------------------------- */
.step-container {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
}

#intakeForm {
  width: 100%;
  max-width: var(--max-width-content);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
}

#intakeForm.wide {
  max-width: var(--max-width-wide);
}

.step-heading {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.step-subtext {
  color: var(--color-text-muted);
  margin-top: 0;
  margin-bottom: var(--space-lg);
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* ---------------------------------------------------------------------
   Form elements
--------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.field-row {
  display: flex;
  gap: var(--space-sm);
}

.field-row .field {
  flex: 1;
  min-width: 0;
}

.field-row .field-wide {
  flex: 2;
}

.field label,
.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(28, 53, 87, 0.12);
}

textarea {
  resize: vertical;
  min-height: 80px;
}

.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--color-error);
}

.field-error-message {
  font-size: 0.8125rem;
  color: var(--color-error);
}

/* Checkbox / radio groups */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.choice-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.choice-option:hover {
  border-color: var(--color-primary);
}

.choice-option input {
  margin-top: 3px;
  accent-color: var(--color-primary);
  width: auto;
}

.choice-option.checked,
.choice-option.selected {
  border-color: var(--color-primary);
  background: rgba(28, 53, 87, 0.04);
}

.choice-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.choice-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.choice-option.full-width {
  grid-column: 1 / -1;
}

/* Shape / icon selector grid (kitchen shape, etc.) */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-sm);
}

.shape-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  cursor: pointer;
  text-align: center;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.shape-option:hover {
  border-color: var(--color-primary);
}

.shape-option.selected {
  border-color: var(--color-primary);
  background: rgba(28, 53, 87, 0.04);
  font-weight: 600;
}

.shape-option .shape-icon {
  font-size: 1.75rem;
}

/* Measurement compound field (ft / in / fraction) */
.measurement-input {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.measurement-input .unit-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.measurement-input input[type="number"] {
  width: 70px;
}

.measurement-input select {
  width: 90px;
}

.measurement-input .unit-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.measurement-display {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Wall list */
.wall-row {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.wall-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.wall-row-header input[type="text"],
.wall-row-header select {
  flex: 1;
}

.wall-identifier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 2.5rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.btn-remove {
  background: none;
  border: none;
  color: var(--color-error);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 4px 8px;
}

.wall-row.error {
  border-color: var(--color-error);
}

.wall-row .field-error-message {
  margin: 0;
}

/* Window / door measurement details for an obstruction */
.obstruction-detail {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.measurement-field label {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* Room shape diagram */
.shape-diagram-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.shape-diagram-svg {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
}

.diagram-room {
  fill: var(--color-surface);
  stroke: var(--color-border);
  stroke-width: 2;
}

.diagram-cabinet {
  fill: var(--color-secondary);
  opacity: 0.25;
}

.diagram-wall-line {
  stroke: var(--color-primary);
  stroke-width: 4;
  stroke-linecap: square;
}

.diagram-badge {
  fill: var(--color-primary);
}

.diagram-badge-label {
  fill: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.diagram-feature {
  fill: var(--color-accent);
  opacity: 0.35;
  stroke: var(--color-accent);
  stroke-width: 1.5;
}

.diagram-feature-label {
  fill: var(--color-text);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
}

.shape-diagram-caption {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0;
}

/* ---------------------------------------------------------------------
   Cabinet style selection (Step 5)
--------------------------------------------------------------------- */
.filter-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.filter-row .field {
  flex: 1;
  min-width: 140px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.rank-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.rank-summary-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.8125rem;
  background: var(--color-surface);
}

.rank-summary-item.empty {
  color: var(--color-text-muted);
  border-style: dashed;
}

.rank-summary-label {
  font-weight: 600;
  color: var(--color-primary);
}

.rank-summary-remove {
  background: none;
  border: none;
  color: var(--color-error);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 2px;
}

.collection-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.collection-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  z-index: 1;
}

.collection-card-badge.rank-2 {
  background: var(--color-secondary);
}

.collection-card-badge.rank-3 {
  background: var(--color-accent);
  color: var(--color-text);
}

.collection-card:hover {
  border-color: var(--color-primary);
}

.collection-card.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(28, 53, 87, 0.15);
}

.collection-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.collection-card-body {
  padding: var(--space-sm) var(--space-md);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.collection-card-name {
  font-weight: 600;
  font-size: 0.9375rem;
}

.collection-card-meta,
.collection-card-color,
.collection-card-price {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.collection-card-price {
  font-weight: 600;
  color: var(--color-primary);
}

/* ---------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  background: rgba(28, 53, 87, 0.06);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-add {
  align-self: flex-start;
  background: none;
  border: 1px dashed var(--color-border);
  color: var(--color-primary);
  font-weight: 600;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.btn-add:hover {
  border-color: var(--color-primary);
}

/* ---------------------------------------------------------------------
   Step 6 -- Cabinet features
--------------------------------------------------------------------- */
.feature-group-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: var(--space-md) 0 var(--space-sm);
}

.feature-group-title:first-child {
  margin-top: 0;
}

.feature-note {
  margin-top: var(--space-xs);
}

/* ---------------------------------------------------------------------
   Step 7 -- Photo uploads
--------------------------------------------------------------------- */
.photo-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: var(--space-md) 0 var(--space-sm);
}

.photo-section-title:first-child {
  margin-top: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-md);
}

.photo-slot {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  background: var(--color-surface);
}

.photo-slot.error {
  border-color: var(--color-error);
}

.photo-preview {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
}

.photo-preview:hover {
  border-color: var(--color-primary);
}

.photo-preview.drag-over {
  border-color: var(--color-primary);
  border-style: solid;
  background: rgba(28, 53, 87, 0.06);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

.photo-placeholder-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.photo-slot-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 600;
}

.photo-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: var(--color-text-muted);
}

.photo-badge.required {
  background: var(--color-error);
}

.photo-badge.uploaded {
  background: var(--color-success);
}

.photo-remove {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-error);
  cursor: pointer;
  font-size: 0.8125rem;
  padding: var(--space-xs) var(--space-sm);
}

.photo-remove:hover {
  border-color: var(--color-error);
}

/* Plans, drawings & layout document uploads */
.document-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  background: var(--color-bg);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.document-dropzone:hover,
.document-dropzone:focus {
  border-color: var(--color-primary);
  outline: none;
}

.document-dropzone.drag-over {
  border-color: var(--color-primary);
  border-style: solid;
  background: rgba(28, 53, 87, 0.06);
}

.document-dropzone-icon {
  font-size: 1.75rem;
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.document-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
}

.document-card-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.document-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.document-card-name {
  font-size: 0.875rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.document-card-size {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.document-remove {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-error);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px 8px;
  flex-shrink: 0;
}

.document-remove:hover {
  border-color: var(--color-error);
}

/* Inspiration & dream kitchen photos */
.inspiration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.inspiration-card {
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.inspiration-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.inspiration-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-error);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 2px 6px;
}

.inspiration-remove:hover {
  border-color: var(--color-error);
}

/* ---------------------------------------------------------------------
   Step 8 -- Review & submit
--------------------------------------------------------------------- */
.review-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  overflow: hidden;
}

.review-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.review-section-header h3 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
}

.review-edit-btn {
  background: none;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 12px;
  cursor: pointer;
}

.review-edit-btn:hover {
  background: rgba(28, 53, 87, 0.06);
}

.review-section-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.review-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: 0.9375rem;
  padding: 4px 0;
  border-bottom: 1px solid var(--color-border);
}

.review-row:last-child {
  border-bottom: none;
}

.review-wall-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.review-wall-block:not(:last-child) {
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-border);
}

.review-wall-block .review-row:last-child {
  border-bottom: none;
}

.review-label {
  font-weight: 600;
  color: var(--color-text-muted);
}

.review-value {
  text-align: right;
}

.review-empty {
  color: var(--color-text-muted);
  font-style: italic;
}

.review-list {
  margin: 0;
  padding-left: 1.25rem;
}

.review-list li {
  font-size: 0.9375rem;
}

.review-subheading {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: var(--space-sm) 0 4px;
}

.review-file-size {
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.review-file-type {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-secondary);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
  margin-right: 4px;
  vertical-align: middle;
}

.review-style-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.review-style-card {
  display: flex;
  gap: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.review-style-card img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  flex-shrink: 0;
}

.review-style-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-sm);
}

.review-style-rank {
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent);
}

.review-style-name {
  font-weight: 600;
}

.review-style-meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.review-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: var(--space-sm);
}

.review-photo-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.review-photo-card.empty .review-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  text-align: center;
}

.review-photo-label {
  font-size: 0.8125rem;
  font-weight: 600;
}

.review-photo-caption {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------
   Step navigation footer (within form)
--------------------------------------------------------------------- */
.step-nav {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.step-error {
  color: var(--color-error);
  font-size: 0.875rem;
  margin-top: var(--space-sm);
  text-align: right;
}

/* ---------------------------------------------------------------------
   Confirmation screen
--------------------------------------------------------------------- */
.confirmation-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--space-md);
  padding: var(--space-2xl) var(--space-lg);
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.confirmation-logo {
  height: 48px;
  margin-bottom: var(--space-md);
}

.confirmation-ref {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  color: var(--color-primary);
  font-weight: 700;
}

/* ---------------------------------------------------------------------
   Footer
--------------------------------------------------------------------- */
.app-footer {
  text-align: center;
  padding: var(--space-md);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.app-footer a {
  color: var(--color-text-muted);
}

.footer-brands {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.footer-brand-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xs) var(--space-md);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------
   Embed mode -- hide chrome
--------------------------------------------------------------------- */
body.embed-mode .app-header,
body.embed-mode .app-footer {
  display: none;
}

/* ---------------------------------------------------------------------
   Mobile (<= 640px)
--------------------------------------------------------------------- */
@media (max-width: 640px) {
  .app-header {
    padding: var(--space-sm) var(--space-md);
  }

  .brand-logo {
    height: 40px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .brand-hero {
    padding: var(--space-sm) var(--space-md);
  }

  .brand-hero-placeholder {
    padding: var(--space-lg) var(--space-md);
  }

  .brand-hero-icon {
    font-size: 2rem;
  }

  .progress-dots {
    display: none;
  }

  .progress-bar-mobile {
    display: block;
  }

  .step-container {
    padding: var(--space-md);
    padding-bottom: 96px; /* room for fixed bottom nav */
  }

  #intakeForm {
    padding: var(--space-lg);
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .choice-grid,
  .choice-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .choice-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-row {
    flex-wrap: wrap;
  }

  .filter-row .field {
    min-width: calc(50% - var(--space-sm) / 2);
  }

  .step-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
    margin-top: 0;
    z-index: 10;
  }

  .step-nav .btn {
    flex: 1;
  }

  .review-row {
    flex-direction: column;
    gap: 2px;
  }

  .review-value {
    text-align: left;
  }

  .review-style-card {
    flex-direction: column;
  }

  .review-style-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
