/* Plafon Live — stil pentru paginile publice (homepage, căutare, profil clinică, cont pacient) */

:root {
  --paper: #F5F7F4;
  --paper-deep: #EAEFE9;
  --ink: #16241F;
  --muted: #5B6B62;
  --line: #D9E1DB;
  --green: #1F8A5F;
  --green-deep: #156647;
  --green-tint: #E4F3EB;
  --amber: #C9791E;
  --amber-tint: #FBEEDD;
  --white: #FFFFFF;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--green-deep); outline-offset: 3px;
}

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; gap: 16px; flex-wrap: wrap; }
.nav-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 700; font-size: 19px; text-decoration: none; }
.nav-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nav-link {
  text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; padding: 9px 16px; background: var(--white);
}
.nav-link:hover { border-color: var(--green); color: var(--green-deep); }
.nav-link.primary { background: var(--green); color: var(--white); border-color: var(--green); }
.nav-link.primary:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }

/* ---------- Buttons / forms (public pages) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px; text-decoration: none;
  border-radius: 9px; padding: 12px 22px; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-deep); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--green); color: var(--green-deep); }
.btn-block { width: 100%; }

label { font-size: 13.5px; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=tel], select, textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px;
  background: var(--white); margin-bottom: 16px;
}
input:focus, select:focus, textarea:focus { border-color: var(--green); }
textarea { min-height: 90px; resize: vertical; }

.alert { border-radius: 9px; padding: 12px 16px; font-size: 14.5px; margin-bottom: 16px; }
.alert-error { background: var(--amber-tint); color: #8A4E10; }
.alert-success { background: var(--green-tint); color: var(--green-deep); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px;
}

/* ---------- Search hero ---------- */
.hero { padding: 40px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 40px; max-width: 15ch; }
.hero-sub { margin-top: 18px; font-size: 17px; color: var(--muted); max-width: 46ch; }

.search-mock {
  margin-top: 28px; display: flex; gap: 10px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 8px;
  box-shadow: 0 1px 2px rgba(22,36,31,.04);
}
.search-mock select, .search-mock input {
  flex: 1; border: none; background: none; font-family: var(--font-body);
  font-size: 15px; padding: 10px 12px; color: var(--ink); margin: 0;
}
.search-mock button {
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  background: var(--green); color: var(--white); border: none;
  border-radius: 8px; padding: 0 20px; cursor: pointer; white-space: nowrap;
}
.search-mock button:hover { background: var(--green-deep); }

/* ---------- Status card / result rows ---------- */
.status-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 20px 44px rgba(22,36,31,.08); }
.status-card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-bottom: 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.status-card-head span { font-size: 13.5px; color: var(--muted); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--green-deep); }
.live-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
@media (prefers-reduced-motion: no-preference) { .live-pill .dot { animation: pulse 2.2s ease-in-out infinite; } }
@keyframes pulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(31,138,95,.35); } 50% { opacity: .7; box-shadow: 0 0 0 5px rgba(31,138,95,0); } }

.result-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.result-row:last-child { border-bottom: none; }
.result-clinic { font-weight: 600; font-size: 15px; }
.result-service { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.badge { flex-shrink: 0; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 20px; white-space: nowrap; }
.badge.ok { background: var(--green-tint); color: var(--green-deep); }
.badge.no { background: var(--amber-tint); color: var(--amber); }
.badge.pending { background: var(--paper-deep); color: var(--muted); }

/* ---------- Generic sections ---------- */
.section { padding: 56px 0; }
.section-head { max-width: 56ch; margin-bottom: 32px; }
.section-head h2 { font-size: 28px; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.steps { display: grid; gap: 0; max-width: 640px; }
.step { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--green); flex-shrink: 0; width: 32px; }
.step-body h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.step-body p { color: var(--muted); font-size: 15.5px; }

footer { padding: 40px 0 56px; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 26px; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.footer-note { font-size: 13px; color: var(--muted); max-width: 46ch; margin-top: 8px; }
.footer-links { display: flex; gap: 20px; font-size: 14px; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 32px; max-width: none; }
  .section { padding: 40px 0; }
}
@media (max-width: 520px) {
  .search-mock { flex-direction: column; }
  .search-mock button { padding: 12px; }
  .result-row { flex-direction: column; align-items: flex-start; gap: 6px; }
}
