/* ============================================================================
   mediweb-program.css — pagina „Program de consultații” (29.07.2026)

   Tabelul are 5 coloane fixe (zilele lucrătoare). Pe ecrane înguste NU îl
   lăsăm să iasă lateral: se transformă în listă pe zile, cu numele zilei luat
   din atributul `data-zi` al celulei, iar zilele fără program dispar.
   ============================================================================ */

body.pp-program { background: #f1f5f9; }

body.pp-program section.registration-form {
  background: transparent; box-shadow: none; border-radius: 0;
  padding: 0; width: 100%; margin: 0;
}

.pg-wrap { width: min(1200px, 94vw); margin: 0 auto; padding: 22px 0 10px; }

.pg-head h1 { font-size: 1.6rem; color: #1e293b; margin: 0 0 6px; }
.pg-sub { color: #64748b; font-size: .92rem; margin: 0 0 18px; line-height: 1.5; }

/* -------------------------------------------------- bara: săptămână + căutare */
.pg-bara { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pg-sapt { display: inline-flex; background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 3px; }
.pg-sapt a {
  padding: 7px 16px; border-radius: 999px; text-decoration: none;
  font-size: .87rem; font-weight: 600; color: #475569;
}
.pg-sapt a:hover { color: #0369a1; }
.pg-sapt a.on { background: #0ea5e9; color: #fff; }

/* navigarea între săptămâni + calendarul */
.pg-nav { display: flex; align-items: center; gap: 6px; }
.pg-sag {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  color: #0369a1; font-size: 1.25rem; line-height: 1; font-weight: 700;
}
.pg-sag:hover { background: #eff6ff; border-color: #bae6fd; }
.pg-sag.stins { color: #cbd5e1; cursor: default; }
.pg-data {
  display: flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0 13px;
}
body.pp-program .pg-data input {
  border: 0; outline: none; padding: 8px 0; font-size: .86rem; font-family: inherit;
  color: #334155; background: transparent; width: 96px; max-width: none; margin: 0;
  border-radius: 0; cursor: pointer; font-weight: 600;
}

.pg-cauta {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 0 14px;
}
.pg-cauta span { opacity: .6; font-size: .95rem; }
.pg-cauta input {
  border: 0; outline: none; padding: 9px 0; font-size: .9rem; font-family: inherit;
  color: #334155; background: transparent; width: 190px; max-width: none; margin: 0; border-radius: 0;
}

/* ---------------------------------------------------------- chips specialități */
.pg-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pg-chip {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 999px;
  padding: 7px 15px; font-size: .86rem; font-weight: 600; color: #475569;
  cursor: pointer; user-select: none; transition: background .15s, color .15s, border-color .15s;
}
.pg-chip:hover { background: #eff6ff; color: #0369a1; }
.pg-chip.on { background: #0ea5e9; border-color: #0ea5e9; color: #fff; }
.pg-chip:focus-visible { outline: 2px solid #0369a1; outline-offset: 2px; }

/* lista derulantă de specialități — apare doar pe ecrane mici */
.pg-selsec { display: none; margin-bottom: 10px; }
.pg-selsec label { display: block; font-size: .78rem; font-weight: 700; color: #64748b;
                   text-transform: uppercase; letter-spacing: .03em; margin-bottom: 5px; }
body.pp-program .pg-selsec select {
  width: 100%; max-width: none; margin: 0; padding: 11px 13px; font-size: .95rem;
  font-family: inherit; color: #1e293b; background: #fff;
  border: 1px solid #e2e8f0; border-radius: 10px;
}

.pg-info { color: #64748b; font-size: .84rem; margin: 0 0 16px; }

/* ------------------------------------------------- „consultă acum" + progres */
.pg-slot.acum {
  background: #f0fdf4; border-color: #86efac;
  box-shadow: 0 0 0 2px rgba(34,197,94,.18);
}
.pg-slot.acum:hover { background: #dcfce7; border-color: #4ade80; }
.pg-slot.acum b { color: #15803d; }
.pg-acum { display: block; margin-top: 6px; }
.pg-acum-cap { display: block; font-size: .7rem; font-weight: 700; color: #15803d; margin-bottom: 4px; }
.pg-acum-bara {
  display: block; height: 5px; background: #dcfce7; border-radius: 99px; overflow: hidden;
}
.pg-acum-bara i { display: block; height: 100%; background: #22c55e; border-radius: 99px; }

/* ------------------------------------------------------------- blocul unui cabinet */
.pg-bloc {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05); margin-bottom: 16px; overflow: hidden;
}
.pg-bloc.ascuns { display: none; }
.pg-bloc-cap {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  padding: 13px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.pg-bloc-cap h2 { font-size: 1.02rem; color: #1e293b; margin: 0; }
.pg-cab {
  font-size: .76rem; font-weight: 700; color: #0369a1; background: #e0f2fe;
  border-radius: 999px; padding: 3px 10px;
}

/* --------------------------------------------------------------------- tabelul */
.pg-tabel { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pg-tabel th {
  padding: 9px 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .03em;
  color: #64748b; text-align: left; border-bottom: 1px solid #e2e8f0; font-weight: 700;
  background: #fff;
}
.pg-tabel th small { display: block; font-size: .72rem; font-weight: 500; color: #94a3b8;
                     text-transform: none; letter-spacing: 0; margin-top: 1px; }
.pg-tabel th.azi { color: #0369a1; background: #eff6ff; }
.pg-tabel th.azi small { color: #0284c7; }
.pg-tabel td { padding: 10px; vertical-align: top; border-right: 1px solid #f1f5f9; }
.pg-tabel td:last-child { border-right: 0; }
.pg-tabel td.azi { background: #f8fbff; }

.pg-slot {
  display: block; text-decoration: none; color: #334155;
  background: #f8fafc; border: 1px solid #e8edf3; border-radius: 9px;
  padding: 7px 9px; margin-bottom: 6px; transition: background .15s, border-color .15s;
}
.pg-slot:last-child { margin-bottom: 0; }
.pg-slot:hover { background: #eff6ff; border-color: #bae6fd; }
.pg-slot.ascuns { display: none; }
.pg-slot b { display: block; color: #1e293b; font-size: .86rem; }
.pg-slot .med { display: block; color: #64748b; font-size: .78rem; line-height: 1.35; margin-top: 1px; }
.pg-rot {
  display: inline-block; margin-top: 3px; background: #fef3c7; color: #92400e;
  border-radius: 999px; padding: 1px 7px; font-size: .66rem; font-weight: 700;
}
.pg-nimic { color: #cbd5e1; font-size: .85rem; }

.pg-gol {
  display: none; background: #fff; border: 1px dashed #cbd5e1; border-radius: 14px;
  padding: 22px; text-align: center; color: #64748b;
}
.pg-gol b { color: #1e293b; }

/* ------------------------------------------------------------------ ecrane mici
   Tabelul de 5 coloane nu încape: îl desfacem în listă pe zile. Numele zilei
   vine din `data-zi`, iar zilele fără program se ascund complet. */
@media (max-width: 760px) {
  .pg-cauta { margin-left: 0; width: 100%; }
  .pg-cauta input { width: 100%; }
  .pg-head h1 { font-size: 1.3rem; }

  /* nouă pastile ocupau jumătate de ecran înainte de primul program */
  .pg-chips  { display: none; }
  .pg-selsec { display: block; }
  .pg-sapt a { padding: 7px 12px; font-size: .82rem; }

  /* Pe telefon bara are trei grupuri (săptămâna, navigarea cu calendarul,
     căutarea). Le punem pe rânduri proprii: încercarea de a le ține pe un
     singur rând împingea căutarea în afara ecranului. */
  .pg-bara { flex-direction: column; align-items: stretch; gap: 10px; }
  .pg-sapt { width: 100%; }
  .pg-sapt a { flex: 1 1 0; text-align: center; }
  .pg-nav { width: 100%; }
  .pg-data { flex: 1 1 auto; justify-content: center; }
  body.pp-program .pg-data input { width: 100%; text-align: center; }

  .pg-tabel, .pg-tabel tbody, .pg-tabel tr, .pg-tabel td { display: block; width: 100%; }
  .pg-tabel thead { display: none; }
  .pg-tabel td {
    border-right: 0; border-bottom: 1px solid #f1f5f9; padding: 10px 14px;
  }
  .pg-tabel td:last-child { border-bottom: 0; }
  .pg-tabel td.goala { display: none; }
  .pg-tabel td::before {
    content: attr(data-zi);
    display: block; font-size: .74rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .03em; color: #94a3b8; margin-bottom: 6px;
  }
  .pg-tabel td.azi::before { content: attr(data-zi) " · azi"; color: #0284c7; }
}

/* ============================================================================
   Întrebări frecvente (31.07.2026)
   Sunt și în datele structurate (FAQPage). Google le ia în seamă doar dacă
   există vizibil pe pagină — dacă se scot de aici, se scot și din schema.
   ============================================================================ */
.pg-faq {
  width: min(1160px, 94vw); margin: 26px auto 40px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.pg-faq h2 { margin: 0 0 14px; font-size: 1.15rem; color: #0f2f5c; }
.pg-faq details {
  border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 8px; background: #fff;
}
.pg-faq details[open] { border-color: #bae6fd; background: #f8fdff; }
.pg-faq summary {
  padding: 12px 14px; cursor: pointer; font-weight: 600; font-size: .95rem;
  color: #0f2f5c; list-style: none; display: flex; align-items: center; gap: 10px;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq summary::after {
  content: '▾'; margin-left: auto; color: #0284c7; font-size: .85rem;
  transition: transform .2s ease;
}
.pg-faq details[open] summary::after { transform: rotate(180deg); }
.pg-faq summary:hover { background: #f0f9ff; border-radius: 10px; }
.pg-faq p {
  margin: 0; padding: 0 14px 14px; font-size: .92rem; color: #475569; line-height: 1.65;
}
@media (max-width: 560px) {
  .pg-faq { padding: 18px 16px; border-radius: 14px; }
  .pg-faq summary { font-size: .92rem; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-faq summary::after { transition: none; }
}
