/* Slot picker states: green = available, red = unavailable, amber = being handled by another visitor (unchanged), purple = your choice. */
body #main .picker .slot.open { background: linear-gradient(180deg, #e3f7d6, #cdeeb9); border-color: #4fa83a; color: #1b5210; box-shadow: 0 2px 0 rgba(63, 140, 44, .25); }
body #main .picker .slot.open .sym { color: #2f8f1e; }
body #main .picker .slot.open:hover:not([disabled]) { background: linear-gradient(180deg, #d3f2c2, #b9e6a0); border-color: #3a912a; }
body #main .picker .slot:is(.taken, .closed) { background: linear-gradient(180deg, #fde8e8, #f9cfcf); border-color: #d84a4a; color: #a01c1c; box-shadow: none; }
body #main .picker .slot:is(.taken, .closed) .sym { color: #c62828; }
body #main .picker .slot.held { background: var(--warn-bg); border-color: #e8d4ad; color: var(--warn); }
body #main .picker .slot.held .sym { color: var(--warn); }
body #main .picker .slot.mine { background: #f4e8fd; border: 2px solid #9239c2; color: #7130a5; }
body #main .picker .slot.mine .sym { color: #8734b5; }
/* legend dots use the same colours */
body #main .picker .legend .lg-ok { color: #2f8f1e; }
body #main .picker .legend .lg-warn { color: var(--warn); }
body #main .picker .legend .lg-off { color: #c62828; }
body #main .picker .hour-btn small.zero { color: #c62828; }

/* One-handed phone use: big thumb-sized targets, the main action pinned to the bottom edge (thumb zone), whole upload row tappable */
@media (max-width: 640px) {
  body #main .picker .day-btn { min-width: 84px; min-height: 84px; }
  body #main .picker .hours { gap: 10px; }
  body #main .picker .hour-btn { min-height: 76px; }
  body #main .picker .slots { gap: 10px; }
  body #main .picker .slot { min-height: 64px; font-size: 17px; }
  body #main .booking-selection, body #main .booking-continue { position: sticky; z-index: 25; background: #fff; }
  body #main .booking-continue { bottom: max(10px, env(safe-area-inset-bottom)); width: 100%; min-height: 58px; justify-self: stretch; box-shadow: 0 -10px 18px 6px #fff, 0 6px 18px rgba(74, 29, 120, .28); }
  body #main .booking-selection { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 66px); padding: 8px 6px 2px; box-shadow: 0 -8px 14px 4px #fff; }
  body #main .file { min-height: 68px; cursor: pointer; }
  body #main .file .pick { padding: 0 20px; font-size: 16px; }
  body #main .file .name { font-size: 15px; }
  body #main .file .clear { min-width: 56px; font-size: 26px; }
  body #main .form-actions { position: sticky; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 25; padding: 10px 0 2px; background: #fff; box-shadow: 0 -10px 14px 4px #fff; }
  body #main .form-actions .btn { min-height: 56px; }
}

/* 1. Available slots stand out: bold green with a thick border and a larger ○; unavailable ones recede (dimmed, struck-through time) */
body #main .picker .slot.open { border-width: 3px; font-weight: 800; box-shadow: 0 3px 0 rgba(63, 140, 44, .35), 0 0 0 3px rgba(79, 168, 58, .16); }
body #main .picker .slot.open .sym { font-size: 24px; }
body #main .picker .slot:is(.taken, .closed) { opacity: .55; border-width: 1px; }
body #main .picker .slot:is(.taken, .closed) > span:first-child { text-decoration: line-through; }
body #main .picker .day-btn:has(.left:not(.zero)), body #main .picker .hour-btn:has(small:not(.zero)) { border-color: #4fa83a; }
body #main .picker .day-btn:has(.left.zero), body #main .picker .hour-btn:has(small.zero) { opacity: .55; }
body #main .picker .day-btn .left:not(.zero), body #main .picker .hour-btn small:not(.zero) { color: #1b6a10; font-weight: 800; }
body #main .picker .day-btn[aria-pressed="true"] .left, body #main .picker .hour-btn[aria-pressed="true"] small { color: #fff; }
body #main .picker .legend { font-size: 15px; font-weight: 700; gap: 14px; }

/* 3. Upload instructions: readable help text under each field, obvious empty / chosen states */
body #main .field .help { font-size: 14px; line-height: 1.7; color: #4a3560; margin-top: 6px; }
body #main .file .name { color: #7b2fa6; font-weight: 700; }
body #main .file.has { border-color: #4fa83a; background: #f3fbef; }

/* 2. Mobile calendar: no sideways scrolling - dates sit in a grid, hours in three columns, selected state is unmistakable */
@media (max-width: 640px) {
  body #main .picker .days { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; gap: 8px; }
  body #main .picker .day-btn { min-width: 0; width: 100%; min-height: 80px; }
  body #main .picker .hours { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body #main .picker .hour-btn { min-height: 72px; padding: 8px 4px; }
  body #main .picker .slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body #main .picker .day-btn[aria-pressed="true"], body #main .picker .hour-btn[aria-pressed="true"] { box-shadow: 0 0 0 3px #f6d98a; }
  body #main .picker .picker-heading, body #main .picker .picker-hours-heading { font-size: 18px; margin: 14px 0 8px; }
}
