.f15-project-job-wizard {
  --f15-gap: 1rem;
  display: grid;
  gap: var(--f15-gap);
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem;
}

.f15-wizard-header,
.f15-card,
.f15-steps,
.f15-wizard-actions {
  border: 1px solid var(--border, #d7d7d7);
  border-radius: 0.75rem;
  background: var(--surface, #fff);
}

.f15-wizard-header,
.f15-card,
.f15-wizard-actions {
  padding: 1rem;
}

.f15-eyebrow,
.f15-number-note {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.72;
}

.f15-wizard-header h1,
.f15-card h2 {
  margin: 0.25rem 0 0.75rem;
}

.f15-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.f15-step {
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--border, #d7d7d7);
}

.f15-step:last-child { border-right: 0; }
.f15-step[aria-current="step"] { font-weight: 700; }
.f15-step-done { opacity: 0.72; }

.f15-wizard-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--f15-gap);
}

.f15-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-content: start;
}

.f15-card h2,
.f15-number-note,
.f15-field-wide,
.f15-customer-actions,
.f15-selected-card,
.f15-project-table-wrap,
.f15-confirm dl {
  grid-column: 1 / -1;
}

.f15-field {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.f15-field span {
  font-size: 0.875rem;
  font-weight: 600;
}

.f15-field input,
.f15-field textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, #c9c9c9);
  border-radius: 0.5rem;
  background: var(--surface, #fff);
  color: inherit;
}

.f15-field textarea { min-height: 7rem; resize: vertical; }
.f15-field-grow { flex: 1 1 18rem; }

.f15-customer-actions,
.f15-wizard-actions {
  display: flex;
  align-items: end;
  gap: 0.75rem;
}

.f15-selected-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid var(--border, #d7d7d7);
  border-radius: 0.5rem;
}

.f15-project-table-wrap { overflow-x: auto; }
.f15-project-table-wrap table { width: 100%; border-collapse: collapse; }
.f15-project-table-wrap caption { text-align: left; font-weight: 700; margin-bottom: 0.5rem; }
.f15-project-table-wrap th,
.f15-project-table-wrap td { text-align: left; padding: 0.55rem; border-bottom: 1px solid var(--border, #e1e1e1); }

.f15-confirm { grid-column: 1 / -1; }
.f15-confirm dl { display: grid; grid-template-columns: minmax(9rem, 0.3fr) 1fr; gap: 0.5rem 1rem; margin: 0; }
.f15-confirm dt { font-weight: 700; }
.f15-confirm dd { margin: 0; }

.f15-error {
  padding: 0.75rem 1rem;
  border: 1px solid currentColor;
  border-radius: 0.5rem;
  font-weight: 600;
}

.f15-wizard-actions { justify-content: space-between; }
.f15-primary,
.f15-secondary {
  min-height: 2.6rem;
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border, #b9b9b9);
  font: inherit;
  cursor: pointer;
}
.f15-primary { font-weight: 700; }
.f15-primary:disabled,
.f15-secondary:disabled { cursor: not-allowed; opacity: 0.55; }

@media (max-width: 900px) {
  .f15-project-job-wizard { padding: 0.75rem; }
  .f15-wizard-body { grid-template-columns: 1fr; }
  .f15-card { grid-template-columns: 1fr; }
  .f15-card > * { grid-column: 1; }
  .f15-steps { grid-template-columns: 1fr; }
  .f15-step { border-right: 0; border-bottom: 1px solid var(--border, #d7d7d7); }
  .f15-step:last-child { border-bottom: 0; }
  .f15-customer-actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 640px) {
  .f15-wizard-actions { align-items: stretch; flex-direction: column-reverse; }
  .f15-wizard-actions button { width: 100%; }
  .f15-selected-card { flex-direction: column; }
  .f15-confirm dl { grid-template-columns: 1fr; }
}
