/* ============================================
   Wizard Pages — Shared Styles
   Used by: wizard-step-1 through 6, new-service
   ============================================ */

/* === Body === */
.wizard-body {
  background: #e8f0fa;
  min-height: 100vh;
}

/* === Utility === */
.mb-0 { margin-bottom: 0 !important; }

/* === Topbar === */
.wizard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}
.wizard-topbar .logo { height: 28px; }
.wizard-topbar .back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  text-decoration: none;
}
.wizard-topbar .back-link:hover {
  color: var(--primary);
  text-decoration: none;
}

/* === Step Indicator === */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 16px;
  gap: 0;
}
.wizard-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wizard-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 2px solid #cbd5e1;
  color: #94a3b8;
  background: #fff;
  flex-shrink: 0;
}
.wizard-step-circle.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.wizard-step-circle.completed {
  border-color: var(--primary);
  background: #d0e4f7;
  color: var(--primary);
}
.wizard-step-label {
  font-size: 0.6875rem;
  color: #94a3b8;
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}
.wizard-step-label.active {
  color: var(--primary);
  font-weight: 600;
}
.wizard-step-label.completed {
  color: var(--primary);
}
.wizard-step-line {
  width: 40px;
  height: 2px;
  background: #cbd5e1;
  margin: 0 4px;
  flex-shrink: 0;
}
.wizard-step-line.completed {
  background: var(--primary);
}

/* === Content Container === */
.wizard-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
}
.wizard-content--md { max-width: 860px; }
.wizard-content--lg { max-width: 960px; }
.wizard-content--card {
  background: #fff;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
  padding: 32px;
  margin-top: 8px;
}

/* === Header === */
.wizard-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.wizard-question {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.wizard-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.step-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* === Navigation === */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.wizard-nav-end {
  display: flex;
  gap: 8px;
}

/* === Section Label === */
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

/* === Card Sections === */
.wizard-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 24px;
  margin-bottom: 20px;
}
.wizard-card--flush { margin-bottom: 0; }
.wizard-card--mt { margin-top: 20px; }
.wizard-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.wizard-card-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.wizard-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 20px 0;
}

/* === Type Cards (Step 1) === */
.type-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}
.type-grid--3col { grid-template-columns: repeat(3, 1fr); }
.type-grid--2col { grid-template-columns: repeat(2, 1fr); }

.type-card {
  border: 2px solid #e2e8f0;
  border-radius: 7px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
}
.type-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(3, 100, 177, 0.1);
}
.type-card.selected {
  border-color: var(--primary);
  background: #e8f2fb;
}
.type-card .tc-icon { margin-bottom: 10px; }
.type-card .tc-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.type-card .tc-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.type-card .tc-sub {
  font-size: 0.6875rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* === Details Grid (Step 2 — 60/40 layout) === */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 0.65fr;
  gap: 20px;
  align-items: start;
}

/* === Form Input Overrides (wizard context) === */
.wizard-input {
  background: #fff;
  border-color: #94a3b8;
}
.wizard-input-row {
  display: flex;
  gap: 6px;
}
.wizard-input-row--flex1 { flex: 1; }
.wizard-btn-inline {
  padding: 8px 12px;
  white-space: nowrap;
  font-size: 0.8125rem;
}

/* === Toggle Switch === */
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.toggle-row--flush { margin-bottom: 0; }
.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-track {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 11px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.toggle-switch input:checked + .toggle-track {
  background: var(--primary);
}
.toggle-switch input:checked + .toggle-track::after {
  transform: translateX(18px);
}
.toggle-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* === Tags / Chips Input === */
.tags-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #94a3b8;
  border-radius: 7px;
  background: #fff;
  min-height: 40px;
  cursor: text;
}
.tags-input:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 138, 204, 0.12);
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #c4ddf2;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 500;
}
.tag-chip .tag-remove {
  cursor: pointer;
  opacity: 0.6;
  font-size: 0.875rem;
  line-height: 1;
}
.tag-chip .tag-remove:hover { opacity: 1; }
.tags-input input {
  border: none;
  outline: none;
  font-size: 0.8125rem;
  color: var(--text-primary);
  flex: 1;
  min-width: 80px;
  padding: 2px 0;
  background: transparent;
}

/* === Dynamic Attributes (Step 2) === */
.attr-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.attr-section-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.attr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* === Config Summary Card (Step 2) === */
.config-card {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 20px;
  margin-bottom: 16px;
}
.config-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.config-row:last-child { border-bottom: none; }
.config-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.config-value {
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 500;
}
.config-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #c4ddf2;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
}
.config-card-footer {
  margin-top: 10px;
  text-align: right;
}
.config-card-link {
  font-size: 0.6875rem;
  color: var(--primary);
  font-weight: 500;
}

/* === Visibility Card (Step 2) === */
.visibility-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  padding: 20px;
}
.visibility-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.visibility-display-name { margin-bottom: 14px; }

/* === Packaging Grid (Step 3) === */
.pack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* === Unit Cards (Step 3) === */
.unit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.unit-card {
  border: 2px solid #e2e8f0;
  border-radius: 7px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
  text-align: center;
}
.unit-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(3, 100, 177, 0.1);
}
.unit-card.selected {
  border-color: var(--primary);
  background: #e8f2fb;
}
.unit-card .uc-icon {
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
}
.unit-card .uc-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* === Conversion Card (Step 3) === */
.conversion-card {
  background: #f0f7ff;
  border: 1px solid #c4ddf2;
  border-radius: 7px;
  padding: 20px;
  margin-top: 20px;
  display: none;
}
.conversion-card.show { display: block; }
.conversion-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.conversion-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.conversion-row input[type="number"] {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid #94a3b8;
  border-radius: 7px;
  font-size: 0.875rem;
  text-align: center;
  color: var(--text-primary);
  background: #fff;
}
.conversion-row input[type="number"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 138, 204, 0.12);
}
.conversion-row strong { font-weight: 600; }

/* === Dimension Cards (Step 4) === */
.dim-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.dim-card {
  border: 2px solid #e2e8f0;
  border-radius: 7px;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 130px;
}
.dim-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(3, 100, 177, 0.1);
}
.dim-card.selected {
  border-color: var(--primary);
  background: #e8f2fb;
}
.dim-card .dim-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.dim-card.selected .dim-check {
  border-color: var(--primary);
  background: var(--primary);
}
.dim-card.selected .dim-check::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}
.dim-card .dim-icon { color: #64748b; flex-shrink: 0; }
.dim-card.selected .dim-icon { color: var(--primary); }
.dim-card .dim-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.dim-card.selected .dim-name { color: var(--primary); }

/* === Pricing Dimension Radio Cards (Step 4) === */
.price-dim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.price-dim-card {
  border: 2px solid #e2e8f0;
  border-radius: 7px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
}
.price-dim-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(3, 100, 177, 0.1);
}
.price-dim-card.selected {
  border-color: var(--primary);
  background: #e8f2fb;
}
.price-dim-card .pd-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.price-dim-card .pd-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.price-dim-card.selected .pd-radio {
  border-color: var(--primary);
  background: var(--primary);
}
.price-dim-card.selected .pd-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.price-dim-card .pd-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.price-dim-card.selected .pd-name { color: var(--primary); }
.price-dim-card .pd-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-left: 26px;
}

/* === Note Bar (Step 4) === */
.note-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* === Choice Cards (Step 5 — Variants toggle) === */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.choice-card {
  border: 2px solid #e2e8f0;
  border-radius: 7px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
}
.choice-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(3, 100, 177, 0.1);
}
.choice-card.selected {
  border-color: var(--primary);
  background: #e8f2fb;
}
.choice-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
}
.choice-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.choice-card-title--inline {
  margin-left: 0;
  margin-bottom: 0;
}
.choice-card.selected .choice-card-title { color: var(--primary); }
.choice-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.choice-card.selected .choice-radio {
  border-color: var(--primary);
  background: var(--primary);
}
.choice-card.selected .choice-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.choice-card-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-left: 28px;
  margin-top: 8px;
}
.choice-card-icon { color: #94a3b8; display: flex; align-items: center; }
.choice-card.selected .choice-card-icon { color: var(--primary); }

/* === Variant Axis Builder (Step 5) === */
.axis-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.axis-label-input {
  width: 120px;
  padding: 8px 12px;
  border: 1px solid #94a3b8;
  border-radius: 7px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  background: #fff;
  flex-shrink: 0;
}
.axis-label-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(60, 138, 204, 0.12);
}
.axis-chips-wrap { flex: 1; }
.axis-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.axis-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 500;
}
.axis-chip .chip-remove {
  cursor: pointer;
  color: var(--primary);
  opacity: 0.6;
  font-size: 0.875rem;
  line-height: 1;
}
.axis-chip .chip-remove:hover { opacity: 1; }
.axis-chip-input {
  padding: 5px 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 7px;
  font-size: 0.75rem;
  color: var(--text-primary);
  background: #fff;
  width: 80px;
}
.axis-chip-input:focus {
  outline: none;
  border-color: var(--primary);
  border-style: solid;
}
.axis-chip-input::placeholder { color: #94a3b8; }
.axis-remove {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-color);
  border-radius: 7px;
  background: #fff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 4px;
}
.axis-remove:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-bg);
}

/* === Radio Pills (Yes/No) === */
.pill-group { display: flex; gap: 8px; }
.pill-radio { display: none; }
.pill-label {
  display: inline-flex;
  align-items: center;
  padding: 7px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pill-label:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.pill-radio:checked + .pill-label {
  background: #d0e4f7;
  color: var(--primary);
  border-color: var(--primary);
  font-weight: 600;
}

/* === Price Toggle Row (Step 5) === */
.price-toggle-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}
.price-toggle-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}
.price-toggle-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  margin-left: auto;
}
.price-note-box {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* === Review Card (Step 6) === */
.review-card {
  background: #e8f2fb;
  border: 1px solid #bdd7ef;
  border-radius: 7px;
  overflow: hidden;
}
.review-section {
  padding: 16px 20px;
  border-bottom: 1px solid #d0e4f7;
}
.review-section:last-child { border-bottom: none; }
.review-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.review-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.review-edit-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.review-edit-link:hover { text-decoration: underline; }
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 24px;
}
.review-label {
  font-size: 0.6875rem;
  color: #64748b;
  font-weight: 500;
}
.review-value {
  font-size: 0.8125rem;
  color: var(--text-primary);
  font-weight: 500;
}
.review-value.muted {
  color: #94a3b8;
  font-weight: 400;
  font-style: italic;
}
.review-value--full { grid-column: 1 / -1; }
.review-value--success { color: #16a34a; }
.review-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid #d0e4f7;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}
.review-badge--muted {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}
.review-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.review-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.review-tag {
  padding: 3px 8px;
  background: #fff;
  border: 1px solid #d0e4f7;
  border-radius: 5px;
  font-size: 0.6875rem;
  color: #64748b;
}
.review-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.review-chip {
  padding: 3px 10px;
  background: #d0e4f7;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary);
}
.review-attr-row {
  display: flex;
  gap: 4px;
  font-size: 0.75rem;
}
.review-attr-key { color: #64748b; }
.review-attr-val {
  color: var(--text-primary);
  font-weight: 500;
}
.review-attrs {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.review-label-mb {
  margin-bottom: 4px;
}
.review-section-block {
  margin-bottom: 8px;
}
.review-visible-icon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* === Modal Overlay === */
.wizard-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.wizard-modal {
  background: #fff;
  border-radius: 7px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.wizard-modal--sm { width: 380px; }
.wizard-modal--md { width: 420px; }
.wizard-modal-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.wizard-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}
.wizard-modal-btn {
  font-size: 0.8125rem;
  padding: 7px 14px;
}
.form-label-optional {
  font-weight: 400;
  color: #94a3b8;
}

/* === Add Button with Top Margin === */
.wizard-add-btn-mt { margin-top: 12px; }
.wizard-add-axis-btn { margin-top: 4px; }

/* =============================================
   New Service Page — Specific Styles
   ============================================= */

/* === Service Form Layout === */
.service-form {
  max-width: 720px;
  margin: 32px auto;
  padding: 0 24px;
}
.service-form h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.service-form .subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* === Form Card === */
.form-card {
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 28px;
  margin-bottom: 20px;
}
.form-card-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form-card-title svg { color: #64748b; }

/* === Form Rows === */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.form-row--mt { margin-top: 4px; }
.form-hint {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 4px;
}

/* === Pricing Method Cards === */
.pricing-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.pm-card {
  border: 2px solid #e2e8f0;
  border-radius: 7px;
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
  text-align: center;
}
.pm-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(3, 100, 177, 0.08);
}
.pm-card.selected {
  border-color: var(--primary);
  background: #f0f7ff;
}
.pm-card .pm-icon {
  margin-bottom: 6px;
  display: flex;
  justify-content: center;
}
.pm-card .pm-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}
.pm-card .pm-desc {
  font-size: 0.6875rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* === Price Input === */
.price-section {
  display: none;
  padding-top: 8px;
}
.price-section.show { display: block; }
.price-input-group {
  display: flex;
  align-items: center;
  gap: 0;
}
.price-input-group--max { max-width: 240px; }
.price-currency {
  background: #f1f5f9;
  border: 1px solid #64748b;
  border-right: none;
  border-radius: 7px 0 0 7px;
  padding: 9px 12px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.price-input {
  border-radius: 0 7px 7px 0 !important;
  font-size: 1rem;
  font-weight: 600;
}

/* === Tier Table === */
.tier-table { width: 100%; border-collapse: collapse; }
.tier-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  text-transform: uppercase;
}
.tier-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #f1f5f9;
}
.tier-table input { width: 100%; }
.tier-table .remove-row {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}
.tier-table .remove-row:hover { color: #ef4444; }
.add-tier {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 8px;
}
.add-tier:hover { text-decoration: underline; }

/* === Service Toggle (new-service variant) === */
.service-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}
.service-toggle-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}
.service-toggle-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
}
.service-toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.service-toggle-switch.on { background: var(--primary); }
.service-toggle-switch .toggle-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.service-toggle-switch.on .toggle-knob {
  transform: translateX(20px);
}
.service-toggle-border-top {
  border-top: 1px solid #f1f5f9;
}

/* === Form Actions (bottom bar) === */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 20px 0 40px;
}
.form-actions-link {
  text-decoration: none;
}
.form-actions-save {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* === Estimate Fields === */
.estimate-fields {
  display: none;
  margin-top: 12px;
  padding: 14px;
  background: #f8fafc;
  border-radius: 7px;
  border: 1px solid #e2e8f0;
}
.estimate-fields.show { display: block; }

/* === Estimate Divider === */
.estimate-divider {
  border-top: 1px solid #e2e8f0;
  margin-top: 16px;
  padding-top: 12px;
}

/* === Pricing Label with Bottom Margin === */
.pricing-label-mb { margin-bottom: 12px; }

/* === Textarea Resize Override === */
.textarea-resize-vertical { resize: vertical; }
