/* Dover Dumpster booking form + drop-off calendar (/book/ and the end of each size page). Phones first:
   big tap targets, one column, the calendar full width. */
.book-sec { background: var(--paper); }
.book-wrap { max-width: 760px; }
.book { display: grid; gap: 18px; padding: clamp(16px, 4vw, 28px); border-radius: 20px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(14, 15, 16, .04), 0 18px 40px -26px rgba(14, 15, 16, .35); }
.bk-label, .bk-sizes legend, .bk-f > span { display: block; margin: 0 0 6px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }

/* size choice (book page) */
.bk-sizes { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bk-sizes legend { grid-column: 1 / -1; padding: 0; }
.bk-size { position: relative; cursor: pointer; }
.bk-size input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bk-size span { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--paper); transition: border-color .15s, background .15s; }
.bk-size b { font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 1.25rem; letter-spacing: -.02em; }
.bk-size em { font-style: normal; font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--hv-deep); }
.bk-size small { font-size: 13px; color: var(--steel); }
.bk-size input:checked + span { border-color: var(--hv); background: #FFF3EC; }
.bk-size input:focus-visible + span { outline: 3px solid var(--hv); outline-offset: 2px; }

/* the calendar */
.bk-cal { border: 1px solid var(--line); border-radius: 16px; padding: 10px; background: var(--paper); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cal-head b { font-family: var(--display); font-stretch: 108%; font-weight: 900; font-size: clamp(.9rem, 4.4vw, 1.1rem); white-space: nowrap; letter-spacing: -.01em; }
.cal-nav { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 26px; line-height: 1; color: var(--ink); cursor: pointer; }
.cal-nav:disabled { color: var(--steel); background: transparent; border-style: dashed; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid .dow { text-align: center; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--steel); padding: 2px 0 4px; }
.cal-grid .day { min-height: 44px; border-radius: 10px; border: 1px solid transparent; background: #fff; font: inherit; font-weight: 700; font-size: 16px; color: var(--ink); cursor: pointer; }
.cal-grid .day:hover:not(:disabled) { border-color: var(--hv); }
.cal-grid .day.today { box-shadow: inset 0 0 0 2px rgba(255, 90, 31, .35); }
.cal-grid .day.off { background: transparent; color: #646A70; cursor: default; font-weight: 500; }
.cal-grid .day.full { background: repeating-linear-gradient(135deg, #ECECE8 0 6px, #F6F6F3 6px 12px); color: #50555A; text-decoration: line-through; cursor: help; }
.cal-grid .day.on { background: var(--hv); color: #fff; border-color: var(--hv); }
.cal-grid .day:focus-visible { outline: 3px solid var(--ink); outline-offset: 1px; }
.cal-key { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--steel); }
.cal-key i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 4px; vertical-align: -1px; }
.k-open { background: #fff; border: 1px solid var(--line); }
.k-full { background: repeating-linear-gradient(135deg, #DADAD5 0 3px, #F6F6F3 3px 6px); }
.k-on { background: var(--hv); }
.k-off { background: transparent; border: 1px dashed rgba(14, 15, 16, .35); }
.bk-date-out { margin: 8px 0 0; font-weight: 700; color: var(--ink); min-height: 1.3em; }
.bk-native { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font: inherit; }

/* fields */
.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-f { display: block; min-width: 0; }
.bk-f.wide { grid-column: 1 / -1; }
.bk-f input, .bk-f select, .bk-f textarea { width: 100%; min-height: 48px; padding: 11px 12px; border-radius: 12px; border: 1px solid #CFD2D5; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink); }
.bk-f textarea { min-height: 88px; resize: vertical; }
.bk-f input:focus, .bk-f select:focus, .bk-f textarea:focus { outline: 3px solid rgba(255, 90, 31, .45); outline-offset: 0; border-color: var(--hv); }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-small { margin: 0; font-size: 14px; color: var(--steel); }
.bk-go { width: 100%; min-height: 56px; justify-content: center; font-size: 1.05rem; }
.bk-go:disabled { opacity: .7; cursor: progress; }
.bk-msg { margin: 0; min-height: 1.2em; font-weight: 700; color: var(--hv-deep); }
.bk-msg:empty { display: none; }
.bk-msg a { color: inherit; }
.bk-done { padding: clamp(18px, 4vw, 30px); border-radius: 20px; background: var(--ink); color: #fff; }
.bk-done h3 { margin: 6px 0 8px; font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: clamp(1.4rem, 6vw, 2rem); letter-spacing: -.02em; }
.bk-done p { color: var(--silver); }
.bk-done .kick { color: #FF8A5C; }
.bk-done .btn { margin-top: 6px; }
.bk-alt { margin-top: 18px; color: var(--steel); }
.side-card .bk-side { width: 100%; justify-content: center; margin-bottom: 10px; }

@media (max-width: 400px) {
  .bk-grid { grid-template-columns: 1fr; }
  .cal-grid .day { min-height: 40px; font-size: 15px; }
}

/* the form hides once it's sent (its display: grid would otherwise beat the hidden attribute) */
.book[hidden], .bk-done[hidden] { display: none !important; }

/* "You're booked!" pop-up */
.bk-pop { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(11, 12, 13, .62);
  opacity: 0; transition: opacity .22s ease; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.bk-pop.on { opacity: 1; }
.bk-pop-card { width: min(440px, 100%); max-height: calc(100vh - 36px); overflow: auto; padding: 26px 22px 22px; border-radius: 22px; background: #fff; color: var(--ink);
  text-align: center; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.2, .8, .2, 1); outline: none; }
.bk-pop.on .bk-pop-card { transform: none; }
.bk-pop-check { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--hv); color: #111; margin-bottom: 10px; }
.bk-pop-card h2 { margin: 0 0 8px; font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 1.8rem; letter-spacing: -.02em; }
.bk-pop-card p { margin: 6px 0; font-size: 16px; color: var(--ink); }
.bk-pop-next { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--line); }
.bk-count { display: block; margin-top: 4px; color: var(--steel); font-size: 14px; }
.bk-pop-btns { display: grid; gap: 10px; margin-top: 16px; }
.bk-pop-btns .btn { width: 100%; justify-content: center; min-height: 52px; }
html.bk-popped { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .bk-pop, .bk-pop-card { transition: none; } }

/* desktop: the form beside a "What you get" card */
.book-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .book-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .book-grid .side-card { position: sticky; top: calc(var(--head-h) + 20px); } }
