:root {
  --primary: #ba2a34;
  --primary-dark: #a1252d;
  --primary-light: rgba(186, 42, 52, 0.08);
  --primary-hover: rgba(186, 42, 52, 0.14);
  --accent: #2f6fe0;
  --accent-dark: #245ec2;
  --accent-light: rgba(47, 111, 224, 0.12);
  --text: #2f3237;
  --text-dark: #1f2937;
  --muted: #6b7280;
  --muted-light: #9aa0a6;
  --bg: #f6f7fb;
  --bg-light: #fafbfe;
  --bg-subtle: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --border-light: #eef1f5;
  --border-input: #d0d5dd;
  --border-dashed: #d7dce2;
  --shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  --shadow-hover: 0 12px 24px rgba(0, 0, 0, 0.07);
  --shadow-primary: 0 14px 28px rgba(186, 42, 52, 0.12);
  --radius-card: 10px;
  --radius-panel: 10px;
  --radius-control: 6px;
}

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

body {
  margin: 0;
  font-family: 'Work Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-logo {
  height: 30px;
  width: auto;
  object-fit: contain;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.brand-name {
  font-size: 14px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 12px;
}

.admin-link {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-input);
  color: var(--muted);
  font-weight: 600;
  background: var(--white);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.admin-link:hover {
  border-color: var(--border);
  color: var(--text);
  text-decoration: none;
}

.divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  display: inline-block;
}

.contact {
  font-weight: 500;
  color: var(--muted);
}

.contact a {
  color: inherit;
}

.contact a:hover {
  text-decoration: none;
}

.back-link {
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  padding: 6px 0;
  margin-right: 6px;
}

.page {
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 16px 60px;
  gap: 16px;
}

.flow-page {
  justify-content: flex-start;
}

.card {
  width: 100%;
  max-width: 980px;
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border-light);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}

.progress {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  background: var(--primary-light);
  padding: 5px 10px;
  border-radius: 999px;
}

.flow-card .progress {
  display: none;
}

h1 {
  margin: 10px 0 6px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

h2 {
  margin: 8px 0 4px;
  font-size: 16px;
  font-weight: 600;
}

h3 {
  margin: 6px 0 4px;
  font-size: 14px;
  font-weight: 600;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

.step {
  margin-top: 20px;
}

.step-subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
}

.flow-card {
  max-width: 980px;
  padding: 24px 28px 28px;
}

.flow-header {
  display: none;
}

.flow-title {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flow-eyebrow {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

.flow-eyebrow span {
  color: var(--text);
  font-weight: 700;
}

.flow-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.flow-steps {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 32px;
  margin: 16px -28px 20px;
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.flow-steps::before {
  content: '';
  position: absolute;
  left: 44px;
  right: 44px;
  top: 50%;
  border-top: 1px dashed var(--border-dashed);
  transform: translateY(-50%);
}

.flow-steps::after {
  content: none;
}

.flow-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  flex: 1;
}

.flow-step:first-child {
  justify-content: flex-start;
}

.flow-step:last-child {
  justify-content: flex-end;
}

.flow-step-number {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid var(--muted-light);
  background: var(--muted-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--white);
  font-size: 12px;
  flex-shrink: 0;
}

.flow-step.active .flow-step-number,
.flow-step.current .flow-step-number {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  box-shadow: none;
  transform: none;
}

.flow-step.active .flow-step-label,
.flow-step.current .flow-step-label {
  color: var(--text-dark);
}

.flow-step-label {
  padding: 0;
  background: transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.flow-stage {
  max-width: 100%;
  margin: 0 auto 18px;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stage-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.stage-actions .primary-btn,
.stage-actions .ghost-btn {
  min-width: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.panel-step {
  display: none;
}

.panel-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.panel-divider {
  height: 1px;
  width: 100%;
  background: var(--border);
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.panel-grid.apt-city-row {
  grid-template-columns: 1fr 1fr;
}

.panel-grid.state-zip-row {
  grid-template-columns: 1fr 1fr;
}

.form-group.full {
  grid-column: 1 / -1;
}

.panel-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.location-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  margin-bottom: 12px;
  background: var(--primary-light);
  border: 1px solid rgba(186, 42, 52, 0.25);
  border-radius: 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.location-btn:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: rgba(186, 42, 52, 0.4);
}

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

.location-icon {
  font-size: 14px;
}

.suggestion-empty {
  margin-top: -4px;
}

.suggestion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 100%;
  overflow: hidden;
}

.suggestion-card {
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  overflow: hidden;
  min-width: 0;
}

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

.suggestion-card.selected {
  border-color: var(--primary);
  background: var(--primary-hover);
  box-shadow: none;
}

.suggestion-card-title {
  font-weight: 700;
  font-size: 13px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.suggestion-card-price {
  font-size: 12px;
  color: var(--muted);
}

.suggestion-card-price span {
  font-weight: 600;
  color: var(--text-dark);
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.chip-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.suggestion-row.suggestion-stack {
  flex-direction: column;
  align-items: stretch;
}

.suggest-btn {
  width: 100%;
  justify-content: center;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.role-card {
  text-align: left;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(145deg, var(--white), var(--bg-subtle));
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.role-card .eyebrow {
  font-size: 12px;
  letter-spacing: 0.6px;
  color: var(--primary);
  font-weight: 700;
}

.role-card p {
  margin: 4px 0 0;
  color: var(--muted);
}

.role-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(186, 42, 52, 0.4);
}

.role-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-primary);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.chip {
  background: var(--bg);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
}

form {
  margin-top: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group[data-field="serviceSuggestion"] {
  margin-bottom: 4px;
}

.form-group[data-field="serviceSuggestion"] label {
  display: none;
}

label {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--muted);
}

input,
select,
textarea {
  padding: 8px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-input);
  font-size: 12px;
  font-family: 'Work Sans', sans-serif;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background: var(--white);
  min-height: 36px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%2398A2B3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><path d='M3 4.5l3 3 3-3'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  padding-right: 34px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
  background: var(--white);
}

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

.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}

.primary-btn,
.ghost-btn {
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.primary-btn {
  background: var(--primary);
  color: var(--white);
  box-shadow: none;
}

.primary-btn:hover {
  background: var(--primary-dark);
}

.primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.ghost-btn {
  background: var(--white);
  color: var(--muted);
  border: 1px solid var(--border-input);
}

.ghost-btn:hover {
  border-color: var(--border);
  color: var(--text);
}

.error {
  color: var(--primary);
  font-size: 11px;
  min-height: 16px;
  margin-top: 6px;
}

.helper {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}

.price-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
}

.price-amount {
  font-weight: 700;
  font-size: 12px;
}

.price-note {
  font-size: 10px;
  color: var(--muted);
}

.suggestion-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.suggestion-chip {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.suggestion-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.suggestion-text {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.suggestion-strong {
  color: var(--text);
  font-weight: 600;
}

.suggest-btn {
  padding: 7px 12px;
  font-size: 11px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal-card {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
}

.modal-subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.modal-list {
  display: grid;
  gap: 10px;
}

.modal-option {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.modal-option:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary);
}

.modal-option-title {
  color: var(--text);
}

.modal-option-meta {
  font-size: 10px;
  color: var(--muted);
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: var(--primary);
  background: var(--primary-light);
}

.error-banner {
  width: 100%;
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid rgba(186, 42, 52, 0.35);
  padding: 10px 12px;
  border-radius: var(--radius-control);
  margin: 10px 0;
  font-weight: 600;
  font-size: 11px;
}

.hidden {
  display: none;
}

.hidden-field {
  display: none;
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0 18px;
}

.stat {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: linear-gradient(145deg, var(--white), var(--bg-subtle));
}

.stat .label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 700;
}

.stat .value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.table-wrapper {
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.leads-table th,
.leads-table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.leads-table th:nth-child(4),
.leads-table td:nth-child(4) {
  min-width: 130px;
}

.description-cell {
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  color: var(--text);
}

.description-cell:hover {
  color: var(--primary);
}

.modal-description {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
}

.phone-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.phone-block {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
}

.leads-table th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--muted);
}

.leads-table tbody tr:hover {
  background: var(--primary-light);
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.4px;
}

.badge.client {
  background: var(--bg);
  color: var(--text);
}

.badge.vendor {
  background: var(--primary-light);
  color: var(--primary);
}

.badge.payment {
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 11px;
}

.badge.payment.paid {
  background: rgba(23, 132, 75, 0.14);
  color: #17844b;
}

.badge.payment.pending {
  background: rgba(255, 193, 7, 0.2);
  color: #a36b00;
}

.badge.payment.unpaid {
  background: var(--primary-light);
  color: var(--primary);
}

.badge.payment.unknown {
  background: var(--bg);
  color: var(--text);
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  font-size: 12px;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--primary-light);
  border-color: rgba(186, 42, 52, 0.6);
  color: var(--primary);
  box-shadow: var(--shadow-primary);
}

@media (max-width: 1100px) {
  .panel-grid {
    grid-template-columns: 1fr;
  }

  .flow-steps {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
  }

  .flow-stage {
    max-width: 100%;
  }

  .suggestion-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .top-bar {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

  .top-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  h1 {
    font-size: 20px;
  }

  .card {
    padding: 20px;
  }

  .flow-card {
    padding: 20px;
  }

  .flow-header {
    flex-direction: column;
    gap: 10px;
  }

  .flow-steps {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 16px -20px 18px;
  }

  .flow-steps::before {
    display: none;
  }

  .flow-step-label {
    white-space: normal;
  }

  .form-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .stage-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .suggestion-grid {
    grid-template-columns: 1fr;
  }

  .occupancy-toggle {
    flex-direction: column;
  }

  .occupancy-btn {
    width: 100%;
  }
}

/* Occupancy Toggle */
.occupancy-toggle {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.occupancy-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-panel);
  background: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
}

.occupancy-btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px var(--accent-light);
}

.occupancy-btn.active {
  border-color: var(--primary);
  background: linear-gradient(145deg, var(--primary-light), var(--white));
  box-shadow: var(--shadow-primary);
}

.occupancy-icon {
  font-size: 28px;
}

.occupancy-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.occupancy-details {
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-subtle);
  border-radius: var(--radius-panel);
  border: 1px solid var(--border);
  animation: slideDown 0.25s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.occupancy-details h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
}

/* Entry Method Chips */
.entry-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.entry-chip {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.entry-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.entry-chip.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

/* Service Detail Card (auto-visible on selection) */
.service-detail-card {
  margin-top: 10px;
  padding: 14px 16px;
  background: linear-gradient(145deg, var(--bg-subtle), var(--white));
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-panel);
  animation: detailCardIn 0.25s ease;
  max-width: 100%;
  box-sizing: border-box;
}

@keyframes detailCardIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-card-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
}

.detail-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detail-card-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-card-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.detail-card-value {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* T&C Notice Box */
.tc-notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  background: linear-gradient(145deg, #fff8e1, #fffdf5);
  border: 1px solid #ffe082;
  border-left: 4px solid #ffa000;
  border-radius: var(--radius-panel);
}

.tc-icon {
  font-size: 18px;
  color: #f57c00;
  flex-shrink: 0;
}

.tc-text {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.tc-text strong {
  color: #e65100;
}

/* Make form-group contain tooltip properly */
[data-field="serviceNeeded"] {
  position: relative;
  overflow: visible;
}
