/* "Voľné termíny" / "Available times" (/sk/rezervacia/ and /book/). Square, white, the same look as the landing page. */
:root {
  --ink: #16181D; --muted: #4A4D55; --faint: #8B8D94; --line: #E3E3DE; --field: #D9D9D3;
  --accent: #2F4AC0; --accent-dark: #1E3394; --free: #E4E9FB;
  --r: 4px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: #fff; color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.5; }
a { color: var(--accent); } a:hover { color: var(--accent-dark); }
button { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
[hidden] { display: none !important; }

/* top bar with the language switch */
.topbar { max-width: 1120px; margin: 0 auto; padding: 18px 16px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar .home { color: var(--ink); text-decoration: none; font-weight: 700; }
.lang { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); padding: 3px; }
.lang a { height: 38px; padding: 0 12px; border-radius: 3px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
.lang .sep { color: #B5B7BD; padding: 0 2px; }
.flag { width: 22px; height: 15px; border-radius: 2px; overflow: hidden; display: flex; box-shadow: 0 0 0 1px var(--field); }

main.bk { max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; }
.head { margin-bottom: 24px; }
.kicker { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
h1 { margin: 0 0 6px; font-size: clamp(26px, 5vw, 34px); letter-spacing: -0.02em; line-height: 1.15; }

.card { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 22px 24px; }
.grid { display: flex; gap: 24px; align-items: stretch; flex-wrap: wrap; }
.grid > .main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; }
.grid > .side { flex: 1 1 300px; }

/* calendar */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-head h2 { margin: 0; font-size: 18px; }
.icon-btn { width: 44px; height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:disabled { opacity: .35; }
.week, .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.week { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 6px; }
.day { height: 52px; border-radius: var(--r); border: 0; background: transparent; color: var(--faint); font-size: 16px; }
.day.free { background: var(--free); color: var(--ink); font-weight: 600; }
.day.free:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.day[aria-pressed="true"] { background: var(--accent); color: #fff; }
.day.blank { visibility: hidden; }
.cal-foot { display: flex; justify-content: flex-end; margin-top: auto; padding-top: 16px; }   /* bottom right, level with "Rezervovať termín" */
.cal-note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

/* slots */
.slots-title { margin: 0; font-size: 16px; }
.slot-count { margin: 2px 0 14px; font-size: 13px; color: var(--muted); }
.slot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.slot { height: 44px; white-space: nowrap; border-radius: var(--r); border: 1px solid var(--field); background: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.slot:hover { border-color: var(--accent); }
.slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tz { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.pick { margin-top: 16px; border-top: 1px solid #ECECE7; padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.pick .label { font-size: 13px; color: var(--muted); }
.pick .value { font-weight: 600; }
.side.card { display: flex; flex-direction: column; }
.side .pick { margin-top: auto; }

/* buttons */
.btn { min-height: 46px; padding: 0 22px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { color: #fff; background: #333; }
.btn:disabled { background: var(--line); border-color: var(--line); color: var(--muted); }
.btn.outline { background: #fff; color: var(--ink); }
.btn.outline:hover { background: #F6F6F3; color: var(--ink); }

/* the "send me an email" dialog */
.modal { width: min(480px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; color: var(--ink); background: #fff; box-shadow: 0 16px 48px rgba(22, 24, 29, .18); }
.modal::backdrop { background: rgba(22, 24, 29, .45); }
.modal h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.01em; }
.mail-slot { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r); background: var(--free); font-weight: 600; }
.nowrap { white-space: nowrap; }
.mail-text { margin: 0 0 16px; color: var(--muted); }
.mail-address { margin: 0 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 18px; font-weight: 600; }
.copy-btn { min-height: 40px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: #F0F0EC; color: var(--muted);
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.copy-btn:hover { background: #E7E7E2; color: var(--ink); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions form { margin: 0; }


@media (max-width: 640px) {
  .day { height: 44px; font-size: 15px; }
  .week, .days { gap: 4px; }
  .card { padding: 18px 16px; }
  .slot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal-foot .btn { width: 100%; }
}
