/* Directory claim/add/manage — shared styles for both local.yobi.com and practicefinder */
:root {
  --dir-primary: #3B82F6;
  --dir-primary-dark: #1D4ED8;
  --dir-success: #10B981;
  --dir-warning: #F59E0B;
  --dir-danger: #EF4444;
  --dir-bg: #F9FAFB;
  --dir-border: #E5E7EB;
  --dir-text: #111827;
  --dir-muted: #6B7280;
}
body.dir-npi {
  --dir-primary: #0EA5E9;
  --dir-primary-dark: #0369A1;
}

.dir-container { max-width: 720px; margin: 2rem auto; padding: 0 1rem; }
.dir-hero { text-align: center; padding: 3rem 1rem 2rem; }
.dir-hero h1 { font-size: 2.25rem; margin: 0 0 0.5rem; color: var(--dir-text); }
.dir-hero p  { color: var(--dir-muted); font-size: 1.1rem; margin: 0; }

.dir-card { background: #fff; border: 1px solid var(--dir-border); border-radius: 12px; padding: 2rem; box-shadow: 0 1px 3px rgba(0,0,0,.05); }

.dir-row   { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.dir-row > *{ flex: 1 1 0; min-width: 200px; }

.dir-field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1rem; }
.dir-field label { font-weight: 600; color: var(--dir-text); font-size: 0.9rem; }
.dir-field small { color: var(--dir-muted); font-size: 0.8rem; }
.dir-field input, .dir-field select, .dir-field textarea {
  padding: 0.65rem 0.85rem; border: 1px solid var(--dir-border); border-radius: 8px;
  font-size: 1rem; font-family: inherit; background: #fff;
}
.dir-field input:focus, .dir-field select:focus, .dir-field textarea:focus {
  outline: none; border-color: var(--dir-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--dir-primary) 20%, transparent);
}
.dir-field textarea { resize: vertical; min-height: 90px; }

.dir-btn {
  display: inline-block; padding: 0.75rem 1.5rem; border: 0; border-radius: 8px;
  background: var(--dir-primary); color: #fff; font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: background 0.15s;
}
.dir-btn:hover:not(:disabled) { background: var(--dir-primary-dark); }
.dir-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dir-btn-ghost { background: transparent; color: var(--dir-primary); border: 1px solid var(--dir-border); }
.dir-btn-ghost:hover:not(:disabled) { background: var(--dir-bg); color: var(--dir-primary-dark); }

.dir-alert { padding: 1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.95rem; }
.dir-alert.ok     { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.dir-alert.err    { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.dir-alert.info   { background: #EFF6FF; color: #1E40AF; border: 1px solid #BFDBFE; }
.dir-alert.warn   { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }

.dir-steps { display: flex; justify-content: space-between; margin-bottom: 2rem; padding: 0; list-style: none; }
.dir-steps li { flex: 1; text-align: center; position: relative; font-size: 0.85rem; color: var(--dir-muted); }
.dir-steps li::before {
  content: ""; display: block; width: 28px; height: 28px; border-radius: 50%;
  background: var(--dir-border); color: #fff; line-height: 28px; margin: 0 auto 0.5rem;
  font-weight: 700; content: counter(step); counter-increment: step;
}
.dir-steps { counter-reset: step; }
.dir-steps li.active::before { background: var(--dir-primary); color: #fff; }
.dir-steps li.done::before   { background: var(--dir-success); content: "✓"; }

.dir-results { list-style: none; padding: 0; margin: 0; }
.dir-results li {
  padding: 1rem; border: 1px solid var(--dir-border); border-radius: 8px; margin-bottom: 0.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.dir-results strong { display: block; }
.dir-results span.meta { color: var(--dir-muted); font-size: 0.9rem; }
.dir-results .badge { font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 12px; background: var(--dir-bg); color: var(--dir-muted); }
.dir-results .badge.claimed { background: #ECFDF5; color: #065F46; }

.dir-toggle { display: inline-flex; gap: 0.5rem; align-items: center; }
.dir-footnote { color: var(--dir-muted); font-size: 0.85rem; margin-top: 1rem; text-align: center; }
.dir-hidden { display: none !important; }

@media (max-width: 600px) {
  .dir-row { flex-direction: column; gap: 0; }
  .dir-hero h1 { font-size: 1.75rem; }
}
