/* HawkBooking - branded slot picker that replaces the HubSpot Meetings iframe.
   Dark StudioHawk palette so it sits inside /call-apply and /book without a
   seam. Everything is flow layout: no iframe, so nothing re-measures itself
   and jumps the page between steps the way the embed did. */

.hbk { font-family: 'Archivo', system-ui, -apple-system, sans-serif; color: #b5b5b5; text-align: left; }
.hbk *, .hbk *::before, .hbk *::after { box-sizing: border-box; }

.hbk__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 14px; }
.hbk__dur {
    font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: #adbaff; background: rgba(173,186,255,.1); border: 1px solid rgba(173,186,255,.25);
    border-radius: 100px; padding: 5px 12px;
}
.hbk__tz { font-size: 12.5px; color: #888; }
.hbk__tz select {
    background: transparent; border: 0; border-bottom: 1px dotted rgba(173,186,255,.5);
    color: #adbaff; font-family: inherit; font-size: 12.5px; padding: 2px 2px 3px; cursor: pointer;
    max-width: 210px;
}
.hbk__tz select option { background: #0d0f14; color: #fff; }

/* --- day rail: horizontal, swipeable, never a ragged wrap on a phone ------ */
.hbk__days {
    display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
}
.hbk__days::-webkit-scrollbar { display: none; }
.hbk__day {
    flex: 0 0 auto; scroll-snap-align: start; cursor: pointer;
    min-width: 74px; padding: 10px 13px; border-radius: 13px;
    border: 1.5px solid rgba(173,186,255,.2); background: rgba(173,186,255,.05);
    color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.3;
    text-align: center; transition: border-color .18s, background .18s;
}
.hbk__day span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #888; margin-bottom: 3px; }
.hbk__day:hover { border-color: rgba(1,255,255,.5); }
.hbk__day.is-on { border-color: #01ffff; background: rgba(1,255,255,.12); }
.hbk__day.is-on span { color: #01ffff; }

/* --- time grid ------------------------------------------------------------ */
.hbk__slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 9px; margin-top: 4px; }
.hbk__slot {
    cursor: pointer; padding: 14px 6px; border-radius: 12px;
    border: 1.5px solid rgba(173,186,255,.22); background: rgba(173,186,255,.05);
    color: #fff; font-family: inherit; font-size: 14.5px; font-weight: 700;
    transition: border-color .18s, background .18s, transform .18s;
}
.hbk__slot:hover { border-color: #01ffff; background: rgba(1,255,255,.1); transform: translateY(-1px); }
.hbk__slot.is-on { border-color: #01ffff; background: rgba(1,255,255,.16); }

/* --- confirm panel -------------------------------------------------------- */
.hbk__confirm { margin-top: 18px; border-top: 1px solid rgba(173,186,255,.15); padding-top: 18px; }
.hbk__when { color: #fff; font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.hbk__when em { font-style: normal; color: #01ffff; }
.hbk__whensub { font-size: 12.5px; color: #888; margin-bottom: 14px; }
.hbk__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.hbk__fields .full { grid-column: 1 / -1; }
.hbk__fields label { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #888; margin-bottom: 5px; }
.hbk__fields input {
    width: 100%; background: rgba(255,255,255,.03); border: 1.5px solid rgba(173,186,255,.22);
    border-radius: 10px; color: #fff; font-family: inherit; font-size: 15px; padding: 11px 12px; outline: none;
}
.hbk__fields input:focus { border-color: #adbaff; }
.hbk__fields input::placeholder { color: rgba(255,255,255,.25); }

.hbk__go {
    width: 100%; cursor: pointer; border: 0; border-radius: 100px; padding: 16px 28px;
    background: linear-gradient(140deg, #adbaff 4%, #01ffff 100%); color: #000;
    font-family: inherit; font-size: 15.5px; font-weight: 800; letter-spacing: .03em;
    transition: filter .2s, transform .2s;
}
.hbk__go:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.hbk__go:disabled { opacity: .55; cursor: default; transform: none; }

.hbk__msg { font-size: 13px; margin-top: 12px; line-height: 1.6; }
.hbk__msg.err { color: #ff8f8f; }
.hbk__note { font-size: 12px; color: #777; margin-top: 12px; line-height: 1.6; }

/* --- states --------------------------------------------------------------- */
.hbk__state { text-align: center; padding: 34px 22px; }
.hbk__state h3 { color: #fff; font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.hbk__state p { font-size: 13.5px; color: #888; max-width: 420px; margin: 0 auto; line-height: 1.65; }
.hbk__spin {
    width: 30px; height: 30px; margin: 0 auto 16px; border-radius: 50%;
    border: 2.5px solid rgba(173,186,255,.2); border-top-color: #01ffff;
    animation: hbkSpin .8s linear infinite;
}
@keyframes hbkSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hbk__spin { animation-duration: 2.4s; } }

/* Refetching with a calendar already on screen, e.g. after a timezone change.
   The grid stays put and dims; a small spinner sits over it. Replacing the
   whole panel with the big spinner reads as the UI breaking, not loading. */
.hbk.is-busy { position: relative; }
.hbk.is-busy > * { opacity: .4; pointer-events: none; transition: opacity .12s ease; }
.hbk.is-busy::after {
    content: ""; position: absolute; top: 50%; left: 50%;
    width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%;
    border: 2.5px solid rgba(173,186,255,.25); border-top-color: #01ffff;
    animation: hbkSpin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .hbk.is-busy::after { animation-duration: 2.4s; } }

.hbk__tick {
    width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
    background: rgba(1,255,255,.12); border: 2px solid #01ffff;
    display: flex; align-items: center; justify-content: center;
    color: #01ffff; font-size: 26px; font-weight: 800; line-height: 1;
}

@media (max-width: 560px) {
    .hbk__fields { grid-template-columns: 1fr; }
    .hbk__slots { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
    .hbk__slot { padding: 13px 4px; font-size: 14px; }
}

/* ===== TWO-PANE DESKTOP (2026-08-03) =====
   Mobile keeps the horizontal day rail. From 760px up we show a month grid
   beside the times, the way HubSpot's own scheduler does - a rail reads as
   cramped on a wide screen and gives no sense of where you are in the month.
   Both are always in the DOM; CSS picks, so there is no resize listener to
   fall out of sync. */
.hbk__panes { display: block; }
.hbk__cal { display: none; }
.hbk__pick { display: none; }

.hbk__calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hbk__month { color: #fff; font-size: 15.5px; font-weight: 800; }
.hbk__nav {
    width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
    border: 1.5px solid rgba(173,186,255,.22); background: rgba(173,186,255,.06);
    color: #adbaff; font-family: inherit; font-size: 17px; line-height: 1;
}
.hbk__nav:hover:not(:disabled) { border-color: #01ffff; color: #01ffff; }
.hbk__nav:disabled { opacity: .3; cursor: default; }

.hbk__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hbk__dow {
    text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: #666; padding-bottom: 6px;
}
.hbk__cell {
    aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center;
    border-radius: 9px; border: 1.5px solid transparent; background: transparent;
    font-family: inherit; font-size: 13px; font-weight: 700; color: #3a3a3a;
}
.hbk__cell.is-empty { border: 0; }
.hbk__cell.is-off { color: #3a3a3a; }
.hbk__cell.is-free {
    cursor: pointer; color: #fff;
    border-color: rgba(173,186,255,.28); background: rgba(173,186,255,.07);
}
.hbk__cell.is-free:hover { border-color: #01ffff; background: rgba(1,255,255,.12); }
.hbk__cell.is-on { border-color: #01ffff; background: rgba(1,255,255,.2); color: #fff; }
.hbk__legend { font-size: 11px; color: #666; margin-top: 10px; line-height: 1.5; }

@media (min-width: 760px) {
    .hbk__panes { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; }
    .hbk__cal { display: block; }
    .hbk__days { display: none; }          /* rail is mobile-only */
    .hbk__pick { display: block; color: #fff; font-size: 14.5px; font-weight: 800; margin-bottom: 12px; }
    .hbk__slots { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); max-height: 306px; overflow-y: auto; padding-right: 4px; }
}
