/* MedicalNavigator booking calendar. Everything is scoped under .mnb so it can't affect
   the article around it, and the page's own styles can't reach in. */
.mnb {
  --pink: #E0004D;
  --pink-dark: #C00042;
  --pink-soft: rgba(224, 2, 78, .45);
  --pink-tint: #FFF6F9;
  --ink: #0F1222;
  --text: #2A2D3A;
  --muted: #737782;
  --faint: #A9ADB6;
  --line: #E4E5E9;
  --line-strong: #D3D5DB;
  --surface: #FFFFFF;
  --surface-2: #F6F6F8;
  --red: #C41200;
  --green: #166534;
  --green-tint: #CDE7D6;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 16px;
  --ring: 0 0 0 4px rgba(224, 2, 78, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);

  padding: 28px 32px calc(32px + env(safe-area-inset-bottom));
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 640px) {
  .mnb { padding: 20px 16px calc(28px + env(safe-area-inset-bottom)); }
}
.mnb, .mnb * { box-sizing: border-box; }
.mnb button, .mnb input, .mnb select, .mnb textarea { font: inherit; color: inherit; }
/* iOS zooms the page when a form control under 16px gets focus. */
.mnb select { font-size: 16px; }
.mnb button, .mnb a, .mnb select, .mnb label { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mnb input, .mnb textarea { scroll-margin: 96px; }
.mnb [hidden] { display: none !important; }
.mnb .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mnb svg { flex: none; }
.mnb .progress { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 14px; }
.mnb .seg { height: 6px; border-radius: 6px; background: var(--line); transition: background .35s var(--ease); }
.mnb .seg.is-on { background: var(--pink-soft); }
.mnb .step-count { margin: 0 0 36px; color: var(--muted); font-size: 15px; }
.mnb .step { animation: mnb-rise .35s var(--ease); }
.mnb .field { margin: 0 0 18px; padding: 0; border: none; min-width: 0; }
.mnb .field > label, .mnb .field > legend { display: block; margin: 0 0 10px; padding: 0; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.mnb input:not([type=radio]):not([type=checkbox]), .mnb textarea { width: 100%; height: 60px; padding: 0 22px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 17px; transition: border-color .15s, box-shadow .15s; }
.mnb textarea { height: auto; padding: 16px 22px; resize: vertical; line-height: 1.5; }
.mnb ::placeholder { color: var(--faint); opacity: 1; }
.mnb input:hover, .mnb textarea:hover { border-color: var(--line-strong); }
.mnb input:focus, .mnb textarea:focus { outline: none; border-color: var(--pink); box-shadow: var(--ring); }
.mnb .field.has-error input, .mnb .field.has-error textarea, .mnb .field.has-error .phone { border-color: var(--red); }
.mnb .field-error { margin: 8px 0 0; color: var(--red); font-size: 13px; }
.mnb .field-error:empty { display: none; }
.mnb .phone { display: flex; align-items: center; height: 60px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.mnb .phone:hover { border-color: var(--line-strong); }
.mnb .phone:focus-within { border-color: var(--pink); box-shadow: var(--ring); }
.mnb .phone input:not([type=radio]) { border: none !important; box-shadow: none !important; height: 100%; padding-left: 18px; border-radius: 0 var(--radius) var(--radius) 0; background: transparent; }
.mnb .dial { position: relative; display: flex; align-items: center; height: 100%; padding: 0 16px 0 22px; cursor: pointer; }
.mnb .dial::after { content: ''; position: absolute; right: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.mnb .dial-display { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 17px; pointer-events: none; }
.mnb .dial-display .flag { font-size: 22px; line-height: 1; }
.mnb .dial-display svg { width: 18px; height: 18px; fill: var(--text); }
.mnb .dial select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.mnb .section-label { display: flex; align-items: center; gap: 10px; margin: 8px 0 18px; color: var(--pink); font-size: 15px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.mnb .section-label svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mnb .section-label--icon { margin-top: 32px; }
.mnb .range-label { margin: 0 0 18px; text-align: center; color: var(--ink); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.mnb .back-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; margin: 0 0 16px; padding: 0 18px 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 600; transition: border-color .15s; }
.mnb .back-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mnb .back-btn:hover { border-color: var(--line-strong); }
.mnb .chosen { display: flex; align-items: center; gap: 16px; margin: 0 0 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--pink-tint); }
.mnb .chosen svg { width: 26px; height: 26px; fill: none; stroke: var(--pink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mnb .chosen-date { margin: 0; color: var(--ink); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.mnb .chosen-time { margin: 2px 0 0; color: var(--text); font-size: 15px; }
.mnb .days { display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr)); gap: 12px; }
.mnb .day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 4px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; color: var(--ink); transition: border-color .15s, background .2s, color .2s, transform .2s var(--ease); }
.mnb .day:hover:not(:disabled) { border-color: var(--line-strong); transform: translateY(-1px); }
.mnb .day-dow { color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.mnb .day-num { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
.mnb .day-count { color: var(--muted); font-size: 13px; }
.mnb .day[aria-checked="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
.mnb .day[aria-checked="true"] .day-dow, .mnb .day[aria-checked="true"] .day-count { color: rgba(255,255,255,.9); }
.mnb .day:disabled { cursor: default; border-color: #F1F2F4; background: #FBFBFC; color: #DADCE1; }
.mnb .day:disabled .day-dow, .mnb .day:disabled .day-count { color: #DADCE1; }
.mnb .day--skeleton { height: 112px; border: none; }
.mnb .more-days { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 2px; border: none; background: none; cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.mnb .more-days svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.mnb .more-days:hover { color: var(--pink); text-decoration-color: var(--pink); }
.mnb .more-days:focus-visible { outline: none; color: var(--pink); text-decoration-color: var(--pink); }
.mnb .times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mnb .time { height: 60px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.mnb .time:hover { border-color: var(--line-strong); }
.mnb .time[aria-checked="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
.mnb .time--skeleton { display: block; border: none; }
.mnb .day--skeleton, .mnb .time--skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, #FCFCFD 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: mnb-shimmer 1.2s linear infinite; border-radius: var(--radius); }
.mnb .empty { margin: 0; padding: 22px; border-radius: var(--radius); background: var(--surface-2); color: var(--muted); text-align: center; }
.mnb .tz-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mnb .tz { position: relative; cursor: pointer; }
.mnb .tz-display { padding-right: 16px; color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z' fill='%23737782'/%3E%3C/svg%3E") no-repeat right center; }
.mnb .tz select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.mnb .tz:focus-within .tz-display { text-decoration-color: var(--pink); }
.mnb .btn-next { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; height: 64px; margin-top: 28px; border: none; border-radius: 18px; background: var(--pink); color: #fff; font-size: 18px; font-weight: 600; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(224, 2, 78, .55); transition: background .2s, box-shadow .2s, transform .2s var(--ease), color .2s; }
.mnb .btn-next svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.mnb .btn-next:hover:not(:disabled) { background: var(--pink-dark); transform: translateY(-1px); }
.mnb .btn-next:hover:not(:disabled) svg { transform: translateX(3px); }
.mnb .btn-next:disabled { background: #EBEBEE; color: var(--ink); box-shadow: 0 6px 16px -10px rgba(15, 18, 34, .35); cursor: default; }
.mnb .btn-next:focus-visible, .mnb .day:focus-visible, .mnb .time:focus-visible, .mnb .back-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.mnb .btn-next:disabled .spinner { border-color: rgba(15, 18, 34, .2); border-top-color: var(--ink); }
.mnb .spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: mnb-spin .8s linear infinite; }
.mnb .consent { margin: 32px auto 0; max-width: 560px; text-align: center; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mnb .consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.mnb .consent a:hover { color: var(--text); }
.mnb .form-error { margin: 18px 0 0; padding: 14px 18px; border-radius: 12px; background: #FDECEA; color: #A31000; font-size: 14px; font-weight: 500; }
.mnb .step--done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 0 8px; }
.mnb .success-mark { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; background: var(--green-tint); animation: mnb-pop .4s var(--ease); }
.mnb .success-mark svg { width: 34px; height: 34px; fill: none; stroke: var(--green); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mnb .done-title { margin: 0 0 8px; color: var(--ink); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.mnb .done-sub { margin: 0 0 28px; color: var(--muted); max-width: 460px; }
.mnb .summary { width: 100%; max-width: 520px; border: 1.5px solid var(--line); border-radius: var(--radius); text-align: left; }
.mnb .summary div { display: flex; justify-content: space-between; gap: 16px; padding: 18px 22px; }
.mnb .summary div + div { border-top: 1px solid var(--line); }
.mnb .summary span { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.mnb .summary strong { color: var(--ink); font-weight: 600; text-align: right; }
.mnb .done-actions { display: flex; gap: 24px; margin-top: 22px; }
.mnb .link { border: none; background: none; padding: 0; color: var(--text); font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.mnb .link--danger { color: var(--red); }
.mnb .step--done .btn-next { max-width: 360px; }
.mnb .dialog { border: none; border-radius: 20px; padding: 28px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 60px -20px rgba(15,18,34,.35); }
.mnb .dialog::backdrop { background: rgba(15, 18, 34, .35); }
.mnb .dialog h3 { margin: 0 0 16px; color: var(--ink); font-size: 20px; }
.mnb .dialog label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.mnb .dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.mnb .btn-plain, .mnb .btn-danger { height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 600; cursor: pointer; }
.mnb .btn-plain { border: 1.5px solid var(--line); background: var(--surface); }
.mnb .btn-danger { border: none; background: var(--red); color: #fff; }
@keyframes mnb-spin { to { transform: rotate(360deg); } }
@keyframes mnb-rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes mnb-pop { from { opacity: 0; transform: scale(.6); } }
@keyframes mnb-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 640px) {
  .mnb .step-count { margin-bottom: 28px; }
  .mnb .days { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .mnb .day { padding: 12px 4px 10px; }
  .mnb .day-num { font-size: 26px; }
  .mnb .times { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .mnb .time { height: 54px; font-size: 17px; }
  .mnb .range-label { font-size: 18px; }
  .mnb .btn-next { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .mnb *, .mnb *::before, .mnb *::after { animation: none !important; transition: none !important; }
}
