/* SolarMan PH booking page. Layered on the site's /style.css + /brand/brand.css (same tokens). */
.bk-grid { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 960px) { .bk-grid { grid-template-columns: minmax(0, 1fr) 20rem; } .bk-aside { position: sticky; top: 7rem; } }
.bk-form { display: grid; gap: 1.25rem; max-width: 46rem; }
.bk-card { border: 1px solid var(--line); background: var(--surface); border-radius: 1.25rem; padding: 1.25rem 1.25rem 1.4rem; margin: 0; display: grid; gap: 1rem; min-width: 0; }
.bk-card legend { float: left; width: 100%; padding: 0; margin: 0 0 0.25rem; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 1.3rem; color: var(--navy); letter-spacing: -0.02em; display: flex; align-items: center; gap: 0.6rem; }
.bk-card legend + * { clear: both; }
.bk-card .num { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--sun); color: var(--sunink); font-size: 0.95rem; font-family: Figtree, sans-serif; font-weight: 800; }
.bk-form label { display: grid; gap: 0.15rem; font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.bk-form input, .bk-form textarea { margin-top: 0.35rem; background: #fff; }
.bk-form input:focus, .bk-form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.bk-form .bad { border-color: var(--red) !important; box-shadow: 0 0 0 3px rgba(208, 18, 45, 0.15); }
.bk-form .hint, .bk-aside .hint, .bk-done .hint { font-size: 0.8rem; font-weight: 400; color: var(--muted); margin: 0; }
.two { display: grid; gap: 1rem; }
@media (min-width: 640px) { .two { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bk-alert { border: 1px solid #f1b6bf; background: #fff1f3; color: #8a0b1e; border-radius: 0.9rem; padding: 0.85rem 1rem; font-weight: 600; }

/* calendar */
.cal { border: 1px solid var(--line); border-radius: 1rem; padding: 0.9rem; background: #fff; max-width: 26rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.cal-head b { font-family: "Bricolage Grotesque", sans-serif; color: var(--navy); font-size: 1.05rem; }
.cal-nav { width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 1.2rem; line-height: 1; }
.cal-nav:disabled { opacity: 0.35; cursor: default; }
.cal .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.3rem; margin: 0; padding: 0; border: 0; }
.cal .dow { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding-bottom: 0.2rem; }
.cal .day { position: relative; aspect-ratio: 1 / 1; border-radius: 0.65rem; border: 1px solid transparent; background: transparent; font-weight: 700; font-size: 0.92rem; cursor: pointer; display: grid; place-items: center; align-content: center; gap: 0; color: var(--ink); padding: 0; }
.cal .day small { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0; line-height: 1; max-width: 100%; }
.cal .day.d-open { background: var(--sky); color: var(--navy); border-color: #cfe0ff; }
.cal .day.d-open:hover { border-color: var(--navy); }
.cal .day.sel { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 6px 14px -6px rgba(7, 39, 92, 0.6); }
.cal .day.d-full { background: #f3eee6; color: #a39787; text-decoration: line-through; cursor: not-allowed; }
.cal .day.d-full small { text-decoration: none; color: var(--red); }
.cal .day.d-closed { color: #c2b8a8; cursor: not-allowed; border: 1px dashed #ddd3c3; }
.cal .day.d-out { color: #d2c9ba; cursor: default; }
.cal-legend { display: flex; gap: 0.5rem; align-items: center; font-size: 0.75rem; color: var(--muted); margin: 0.75rem 0 0; flex-wrap: wrap; }
.cal-legend .k { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 0.25rem; margin-left: 0.4rem; }
.cal-legend .k.d-open { background: var(--sky); border: 1px solid #cfe0ff; }
.cal-legend .k.d-full { background: #f3eee6; }
.cal-legend .k.d-closed { background: #fff; border: 1px dashed #c2b8a8; }
.cal-pick { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); }
.cal-pick b { color: var(--navy); }
.slots { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.slots .slotopt { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.55rem 1.1rem 0.55rem 0.8rem; cursor: pointer; font-weight: 700; grid-auto-flow: column; }
.slots .slotopt input { width: auto; margin: 0; accent-color: var(--navy); }
.slots .slotopt:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.slots .slotopt.taken { opacity: 0.45; text-decoration: line-through; cursor: not-allowed; }
.slots.wait .slotopt { opacity: 0.55; }
.consent { display: flex !important; gap: 0.75rem; align-items: flex-start; font-weight: 400 !important; font-size: 0.85rem !important; color: var(--muted) !important; background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; padding: 1rem; }
.consent input { width: 1.2rem; height: 1.2rem; margin: 0.1rem 0 0; flex: none; accent-color: var(--navy); }
.consent a, .bk-form .hint a { color: var(--navy); text-decoration: underline; }
.bk-submit { font-size: 1rem; padding: 0.95rem 1.6rem; justify-self: start; }
.bk-submit:disabled { opacity: 0.7; cursor: progress; }
.sky-card { background: var(--sky); border-color: #cfe0ff; }
.sky-card h2 { margin: 0; font-family: "Bricolage Grotesque", sans-serif; color: var(--navy); font-size: 1.3rem; }
.sky-card ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; font-size: 0.92rem; }
.sky-card b { color: var(--navy); }

/* confirmation */
.bk-done { max-width: 40rem; border: 1px solid var(--line); background: var(--surface); border-radius: 1.5rem; padding: 2rem; display: grid; gap: 0.9rem; outline: none; }
.bk-done .tickmark { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--sun); color: var(--sunink); display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; }
.bk-done .kicker { justify-self: start; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.bk-done h2 { margin: 0; font-family: "Bricolage Grotesque", sans-serif; color: var(--navy); font-size: 2.2rem; letter-spacing: -0.03em; line-height: 1; }
.bk-done p { margin: 0; color: var(--muted); }
.bk-done dl { margin: 0.5rem 0; display: grid; gap: 0.6rem; }
.bk-done dl div { display: grid; grid-template-columns: 9rem 1fr; gap: 0.5rem; border-top: 1px dashed var(--line); padding-top: 0.6rem; }
.bk-done dt { color: var(--muted); font-size: 0.85rem; }
.bk-done dd { margin: 0; font-weight: 700; }
.bk-done .ref { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.4rem; color: var(--red); letter-spacing: 0.04em; }
.bk-done .btn { justify-self: start; }
.bk-prose { max-width: 44rem; }
.bk-prose h2 { font-family: "Bricolage Grotesque", sans-serif; color: var(--navy); margin: 1.8rem 0 0.4rem; font-size: 1.35rem; }
.bk-prose p { color: var(--muted); margin: 0; }
.bk-prose a { color: var(--navy); text-decoration: underline; }
@media (max-width: 640px) { .pagehead h1 { font-size: 2.6rem; } .bk-done dl div { grid-template-columns: 1fr; } }

/* bill photo picker */
.billpick { display: grid; gap: 0.6rem; }
.billpick-title { margin: 0; font-size: 0.9rem; font-weight: 600; display: grid; gap: 0.1rem; }
.billpick-btns { display: grid; gap: 0.6rem; }
@media (min-width: 640px) { .billpick-btns { grid-template-columns: 1fr 1fr; } }
.pick-btn { display: grid !important; gap: 0.4rem; font-weight: 700 !important; }
.pick-btn input { padding: 0.6rem; background: var(--paper); }
/* with JS: the inputs become big tap targets, the native control is visually hidden but still reachable */
.billpick.js .pick-btn { display: flex !important; align-items: center; justify-content: center; gap: 0.55rem; min-height: 3.4rem; padding: 0.8rem 1rem;
  border-radius: 999px; border: 2px solid var(--navy); color: var(--navy); background: #fff; cursor: pointer; text-align: center; position: relative; }
.billpick.js .pick-cam { background: var(--navy); color: #fff; }
.billpick.js .pick-btn:hover { transform: translateY(-1px); }
.billpick.js .pick-btn:focus-within { outline: 3px solid var(--sun); outline-offset: 2px; }
.billpick.js .pick-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; margin: 0; padding: 0; border: 0; }
.billpick.js.has .billpick-btns { display: none; }
.billpick-preview { display: flex; gap: 0.9rem; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 1rem; padding: 0.7rem; }
.billpick-preview[hidden] { display: none; }
.billpick-preview .thumb { width: 6rem; height: 6rem; object-fit: cover; border-radius: 0.6rem; border: 1px solid var(--line); flex: none; }
.billpick-preview .docicon { font-size: 2.6rem; width: 6rem; text-align: center; flex: none; }
.billpick-preview .meta { display: grid; gap: 0.25rem; min-width: 0; }
.billpick-preview .meta .hint { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.billpick-preview .acts { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.25rem; }
.billpick-preview .mini { border-radius: 999px; border: 0; background: var(--navy); color: #fff; font-weight: 700; padding: 0.5rem 1rem; cursor: pointer; font-size: 0.85rem; }
.billpick-preview .mini.ghost { background: var(--surface); color: var(--red); border: 1px solid var(--line); }

/* active "Book Inspection" nav item on /book/ (site CSS turns aria-current links navy, keep the CTA readable) */
.navdesk a.nav-book[aria-current="page"] { color: var(--surface); font-weight: 700; box-shadow: 0 0 0 3px var(--sun); }
.navmob a.nav-book[aria-current="page"] { color: var(--red); font-weight: 800; }

/* narrow phones: keep weekday labels (MON, WED...) on one line */
.cal .dow { white-space: nowrap; }
@media (max-width: 400px) {
  .cal { padding: 0.6rem; }
  .cal .cal-grid { gap: 0.2rem; }
  .cal .dow { letter-spacing: 0; font-size: 0.6875rem; }
}
