/* consult.css — video consultations: the call page (consult.html), the list (consultations.html) and the
   "Video consultation" card on Today. Uses the app's colour tokens (styles.css), so light/dark and the clinic
   branding behave like every other page. */

/* ---------- shared bits ---------- */
.vc-icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--border); background: rgba(var(--surface-rgb), 0.7); color: var(--ink-soft); white-space: nowrap; }
.vc-chip[data-tone="good"] { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.45); background: rgba(var(--accent-rgb), 0.1); }
.vc-chip[data-tone="warn"] { color: var(--warn); border-color: rgba(var(--warn-rgb), 0.45); background: rgba(var(--warn-rgb), 0.1); }
.vc-note { margin: 6px 0 0; color: var(--ink-soft); font-size: 15px; }
.vc-privacy { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.vc-privacy .vc-icon { margin-top: 2px; color: var(--accent); }

/* ---------- Today card ---------- */
.vc-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin: 0 0 18px; border: 1px solid rgba(var(--accent-rgb), 0.4); border-radius: var(--radius); background: rgba(var(--accent-rgb), 0.08); }
.vc-card-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--accent-rgb), 0.16); color: var(--accent); flex: none; }
.vc-card-icon .vc-icon { width: 24px; height: 24px; }
.vc-card-text { flex: 1; min-width: 0; }
.vc-card-text strong { display: block; font-size: 17px; line-height: 1.25; }
.vc-card-text span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--ink-soft); }
.vc-card-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.vc-card-actions .pill-btn { white-space: nowrap; }
.vc-card-actions .vc-all { font-size: 13px; color: var(--accent); }
@media (max-width: 560px) {
  .vc-card { flex-wrap: wrap; }
  .vc-card-actions { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .vc-card-actions .pill-btn { flex: 1; justify-content: center; }
}

/* ---------- pre-join screen ---------- */
.vc-precheck { max-width: 760px; margin-inline: auto; }
.vc-precheck h2 { margin: 0 0 4px; font-size: 24px; line-height: 1.2; }
.vc-when { margin: 0; font-size: 18px; font-weight: 600; color: var(--accent); }
.vc-preview { position: relative; margin: 18px 0 8px; aspect-ratio: 4 / 3; max-height: 52vh; width: 100%; border-radius: 16px; overflow: hidden; background: #07100f; border: 1px solid var(--border); }
.vc-preview video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.vc-preview-hint { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; color: var(--on-video-ink); font-size: 15px; line-height: 1.45; }
.vc-meter { display: flex; align-items: center; gap: 10px; margin: 6px 0 14px; font-size: 14px; color: var(--ink-soft); }
.vc-meter-bar { flex: 1; height: 8px; border-radius: 8px; background: rgba(var(--surface-rgb), 0.9); border: 1px solid var(--border); overflow: hidden; }
.vc-meter-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.08s linear; }
.vc-join-status { margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.vc-precheck .button-row { flex-wrap: wrap; }
.vc-message h2 { margin: 0 0 8px; }
.vc-message p { margin: 0 0 14px; color: var(--ink-soft); font-size: 16px; line-height: 1.5; }

/* ---------- the call itself (a direct child of <body>, so no page element can shift or clip it) ---------- */
.vc-call { position: fixed; inset: 0; z-index: 1000; background: #07100f; color: #eafaf5; overflow: hidden; }
.vc-remote { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #050b0a; }
.vc-remote-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; text-align: center; }
.vc-remote-empty p { margin: 0; max-width: 28ch; font-size: 20px; line-height: 1.4; color: #eafaf5; }
.vc-remote-empty .vc-dots { display: block; margin-top: 14px; color: #8fb8ad; font-size: 14px; }
.vc-top { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 8px; align-items: center; justify-content: space-between; pointer-events: none; z-index: 3; }
.vc-top .vc-chip { background: rgba(0, 0, 0, 0.6); border-color: rgba(255, 255, 255, 0.22); color: #eafaf5; }
.vc-top .vc-chip[data-tone="good"] { color: #34e6a8; border-color: rgba(52, 230, 168, 0.5); }
.vc-top .vc-chip[data-tone="warn"] { color: #f2b94b; border-color: rgba(242, 185, 75, 0.55); }
.vc-notice { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 46px); left: 50%; transform: translateX(-50%); z-index: 4; max-width: calc(100% - 24px); display: flex; gap: 10px; align-items: center; padding: 9px 14px; border-radius: 12px; background: rgba(0, 0, 0, 0.72); border: 1px solid rgba(242, 185, 75, 0.6); color: #f9e2b0; font-size: 14px; text-align: center; }
.vc-notice button { border: 0; border-radius: 999px; padding: 6px 12px; font-weight: 700; background: #f2b94b; color: #1c1400; cursor: pointer; white-space: nowrap; }
.vc-local { position: absolute; right: 12px; bottom: calc(96px + env(safe-area-inset-bottom)); width: 112px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 2px solid rgba(255, 255, 255, 0.35); background: #000; z-index: 2; }
.vc-local.is-mirrored { transform: scaleX(-1); }
.vc-local.is-off { opacity: 0.25; }
.vc-controls { position: absolute; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; gap: 14px; justify-content: center; z-index: 3; }
.vc-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, 0.18); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.vc-btn:hover { background: rgba(255, 255, 255, 0.28); }
.vc-btn[aria-pressed="true"] { background: #fff; color: #111; }
.vc-btn .vc-icon { width: 26px; height: 26px; }
.vc-btn.vc-end { background: #d93b2b; color: #fff; }
.vc-btn.vc-end:hover { background: #bf2f21; }
.vc-btn:focus-visible { outline: 3px solid #34e6a8; outline-offset: 2px; }
.vc-tap-sound { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; padding: 14px 22px; border-radius: 999px; border: 0; font-size: 17px; font-weight: 700; background: #34e6a8; color: #03231b; cursor: pointer; }
@media (max-width: 560px) { .vc-local { width: 92px; } }
@media (orientation: landscape) and (max-height: 520px) {
  .vc-local { width: 130px; bottom: 90px; }
  .vc-btn { width: 50px; height: 50px; }
}

/* ---------- consultations list + scheduling ---------- */
.consult-page { max-width: 880px; }
.consult-form { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.consult-form .span-2 { grid-column: 1 / -1; }
.consult-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink-soft); }
.consult-form select, .consult-form input { font: inherit; font-weight: 400; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--border-strong); background: rgba(var(--surface-rgb), 0.9); color: var(--ink); min-width: 0; }
.consult-form .button-row { grid-column: 1 / -1; flex-wrap: wrap; align-items: center; }
.consult-form-msg { grid-column: 1 / -1; margin: 0; font-size: 15px; }
.consult-form-msg[data-tone="error"] { color: var(--alert); }
.consult-form-msg[data-tone="good"] { color: var(--accent); }
@media (max-width: 560px) { .consult-form { grid-template-columns: 1fr; } }
.consult-section-title { margin: 26px 0 10px; font-size: 18px; }
.consult-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.consult-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: rgba(var(--surface-rgb), 0.55); }
.consult-row strong { font-size: 17px; }
.consult-meta { margin: 2px 0 0; font-size: 14px; color: var(--ink-soft); }
.consult-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.consult-actions .pill-btn { white-space: nowrap; }
.consult-empty { margin: 0; padding: 18px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .consult-row { grid-template-columns: 1fr; }
  .consult-actions { justify-content: flex-start; }
}

/* ---------- link-buttons on the message screens ("Back to my consultations", etc.) look like the real buttons ---------- */
.button-row a.primary-btn, .button-row a.ghost-btn {
  flex: 1; min-height: 52px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--border-strong);
  font: inherit; font-size: 17px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; text-align: center;
}
.vc-message .button-row { flex-wrap: wrap; }

/* ---------- phone Today: the Aa and profile buttons float at the top right, so the card starts below them ---------- */
body.m-p-today .vc-card { margin-top: calc(48px + env(safe-area-inset-top)); }
