.wb-app {
  --wb-navy: #102b69;
  --wb-blue: #2168b5;
  --wb-blue-dark: #174f8c;
  --wb-gold: #f5bd2e;
  --wb-ink: #172033;
  --wb-muted: #5b6576;
  --wb-border: #cbd5e1;
  --wb-soft: #f4f7fb;
  --wb-error: #9f2434;
  --wb-success: #166534;
  color: var(--wb-ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  margin: 1.5rem auto;
  max-width: 760px;
}

.wb-app *, .wb-app *::before, .wb-app *::after { box-sizing: border-box; }
.wb-app [hidden] { display: none !important; }
.wb-app.is-busy form { pointer-events: none; user-select: none; }
.wb-card { background: #fff; border: 1px solid var(--wb-border); border-radius: 18px; box-shadow: 0 18px 50px rgba(16, 43, 105, .12); overflow: hidden; }
.wb-header { background: linear-gradient(135deg, var(--wb-navy), #174a92); color: #fff; padding: clamp(1.2rem, 3vw, 1.75rem); }
.wb-header h2 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2rem); line-height: 1.15; margin: .15rem 0 .5rem; }
.wb-header p { margin: 0; max-width: 62ch; }
.wb-eyebrow { color: var(--wb-gold); font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.wb-environment { background: var(--wb-gold); border-radius: 999px; color: #302000; display: inline-block; font-size: .72rem; font-weight: 800; margin-top: 1rem; padding: .25rem .65rem; text-transform: uppercase; }
.wb-app[data-wb-current-step]:not([data-wb-current-step="1"]) .wb-header { align-items: center; display: flex; gap: .75rem; justify-content: space-between; padding: .7rem 1.15rem; }
.wb-app[data-wb-current-step]:not([data-wb-current-step="1"]) .wb-header h2 { font-size: 1.15rem; margin: 0; }
.wb-app[data-wb-current-step]:not([data-wb-current-step="1"]) .wb-header .wb-eyebrow,
.wb-app[data-wb-current-step]:not([data-wb-current-step="1"]) .wb-header > p:not(.wb-eyebrow) { display: none; }
.wb-app[data-wb-current-step]:not([data-wb-current-step="1"]) .wb-environment { flex: 0 0 auto; margin: 0; }
.wb-progress { display: grid; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: .7rem clamp(1rem, 3vw, 1.75rem); border-bottom: 1px solid var(--wb-border); }
.wb-progress li { align-items: center; color: var(--wb-muted); display: flex; font-size: .78rem; font-weight: 700; gap: .4rem; min-width: 0; }
.wb-progress li > b { font: inherit; }
.wb-progress span { align-items: center; background: #e7edf5; border-radius: 50%; display: inline-flex; flex: 0 0 1.65rem; height: 1.65rem; justify-content: center; }
.wb-progress li[aria-current="step"] { color: var(--wb-blue-dark); }
.wb-progress li[aria-current="step"] span, .wb-progress li.is-complete span { background: var(--wb-blue); color: #fff; }
.wb-step { border: 0; margin: 0; min-width: 0; padding: clamp(1rem, 2.5vw, 1.4rem); }
.wb-step[hidden] { display: none !important; }
.wb-step legend { color: var(--wb-navy); float: left; font-size: clamp(1.25rem, 2.6vw, 1.55rem); font-weight: 800; margin: 0 0 .85rem; width: 100%; }
.wb-step legend + * { clear: both; }
.wb-help { color: var(--wb-muted); margin: 0 0 1.2rem; }
.wb-step[data-wb-step="3"] legend { margin-bottom: .5rem; }
.wb-step[data-wb-step="3"] .wb-help { font-size: .82rem; line-height: 1.3; margin: 0; }
.wb-step[data-wb-step="3"] .wb-help[data-wb-address-summary] { color: var(--wb-navy); font-weight: 700; }
.wb-time-summary { display: flex; flex-wrap: wrap; gap: .15rem .6rem; margin-bottom: .55rem; }
.wb-time-summary .wb-help + .wb-help::before { content: "• "; }
.wb-grid { display: grid; gap: 1rem; }
.wb-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-grid-address { grid-template-columns: minmax(0, 2fr) minmax(5rem, .65fr) minmax(7rem, .9fr); }
.wb-field { display: block; margin: 0 0 1rem; }
.wb-field > span { display: block; font-weight: 750; margin-bottom: .35rem; }
.wb-field b, .wb-check b { color: var(--wb-error); }
.wb-field input, .wb-field select, .wb-field textarea { background: #fff; border: 1px solid #9eabbc; border-radius: 9px; color: var(--wb-ink); font: inherit; padding: .72rem .8rem; width: 100%; }
.wb-field input:focus, .wb-field select:focus, .wb-field textarea:focus, .wb-button:focus-visible, .wb-slot:focus-visible, .wb-check input:focus-visible { outline: 3px solid rgba(33, 104, 181, .3); outline-offset: 2px; }
.wb-field [aria-invalid="true"] { border-color: var(--wb-error); }
.wb-field small { color: var(--wb-muted); display: block; font-size: .8rem; margin-top: .35rem; }
.wb-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; margin-top: 1.5rem; }
.wb-actions-end { justify-content: flex-end; }
.wb-actions-center { justify-content: center; }
.wb-button { border: 1px solid transparent; border-radius: 9px; cursor: pointer; font: inherit; font-weight: 800; min-height: 46px; padding: .7rem 1.05rem; }
.wb-button:disabled { cursor: wait; opacity: .58; }
.wb-button-primary { background: var(--wb-blue); color: #fff; }
.wb-button-primary:hover { background: var(--wb-blue-dark); color: #fff; }
.wb-button-secondary { background: #fff; border-color: var(--wb-border); color: var(--wb-navy); }
.wb-alert { border-radius: 9px; margin: 1rem clamp(1rem, 4vw, 2.5rem) 0; padding: .8rem 1rem; }
.wb-alert-error { background: #fff0f1; border: 1px solid #efb7be; color: var(--wb-error); }
.wb-alert-info { background: #eef6ff; border: 1px solid #b7d2ef; color: var(--wb-navy); }
.wb-alert-success { background: #eefbf2; border: 1px solid #9ed6ad; color: var(--wb-success); }
.wb-area-result { margin: 0 clamp(1rem, 4vw, 2.5rem) 1.4rem; }
.wb-area-result:focus { outline: none; }
.wb-area-result > strong, .wb-area-address { display: block; }
.wb-area-result > strong { font-size: 1.05rem; }
.wb-area-address { color: var(--wb-ink); font-weight: 750; margin-top: .35rem; }
.wb-area-result > p { color: var(--wb-ink); margin: .45rem 0 0; }
.wb-area-actions { justify-content: flex-start; margin-top: 1rem; }
.wb-area-actions .wb-button { align-items: center; display: inline-flex; text-decoration: none; }
.wb-area-call { color: var(--wb-navy); display: inline-block; font-weight: 800; margin-top: .65rem; }
.wb-busy-overlay { align-items: center; background: rgba(9, 25, 60, .62); display: flex; inset: 0; justify-content: center; padding: 1rem; position: fixed; z-index: 2147483000; }
.wb-busy-dialog { animation: wb-busy-arrive .16s ease-out; background: #fff; border: 1px solid rgba(16, 43, 105, .18); border-radius: 16px; box-shadow: 0 24px 70px rgba(5, 18, 48, .36); color: var(--wb-ink); max-width: 390px; padding: 1.4rem 1.25rem 1.25rem; text-align: center; width: min(100%, 390px); }
.wb-busy-overlay:focus { outline: none; }
.wb-busy-spinner { animation: wb-busy-spin .8s linear infinite; border: 5px solid #dce8f6; border-radius: 50%; border-top-color: var(--wb-blue); display: block; height: 3rem; margin: 0 auto .85rem; width: 3rem; }
.wb-busy-eyebrow { color: var(--wb-blue-dark); font-size: .72rem; font-weight: 850; letter-spacing: .09em; margin: 0 0 .25rem; text-transform: uppercase; }
.wb-busy-dialog h3 { color: var(--wb-navy); font-size: 1.18rem; line-height: 1.3; margin: 0; }
.wb-busy-dialog p:last-child { color: var(--wb-muted); font-size: .88rem; line-height: 1.45; margin: .55rem 0 0; }
@keyframes wb-busy-spin { to { transform: rotate(360deg); } }
@keyframes wb-busy-arrive { from { transform: translateY(6px) scale(.985); } to { transform: translateY(0) scale(1); } }
.wb-availability { display: grid; gap: .65rem; }
.wb-calendar { border: 1px solid var(--wb-border); border-radius: 10px; padding: .6rem; }
.wb-calendar-nav { align-items: center; display: grid; grid-template-columns: 2.25rem 1fr 2.25rem; margin-bottom: .35rem; }
.wb-calendar-nav h3 { color: var(--wb-navy); font-size: 1.05rem; margin: 0; text-align: center; }
.wb-calendar-nav-button { align-items: center; background: #fff; border: 1px solid var(--wb-border); border-radius: 7px; color: var(--wb-navy); cursor: pointer; display: inline-flex; font-size: 1.35rem; height: 2.25rem; justify-content: center; padding: 0; width: 2.25rem; }
.wb-calendar-nav-button:disabled { cursor: default; opacity: .3; }
.wb-calendar-weekdays, .wb-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wb-calendar-weekdays span { color: var(--wb-muted); font-size: .7rem; font-weight: 800; padding: .22rem 0; text-align: center; text-transform: uppercase; }
.wb-calendar-grid { gap: .22rem; }
.wb-calendar-day, .wb-calendar-blank { height: 2.5rem; min-height: 0; }
.wb-calendar-day { background: #f8fafc; border: 1px solid transparent; border-radius: 9px; color: #7a8493; font: inherit; font-weight: 750; padding: .25rem; }
.wb-calendar-day:disabled { cursor: default; opacity: .62; }
.wb-calendar-day.is-available { background: #fff3c6; border-color: #d99c00; box-shadow: inset 0 0 0 1px rgba(217, 156, 0, .18); color: var(--wb-navy); cursor: pointer; opacity: 1; }
.wb-calendar-day.is-available:hover { background: #ffe898; border-color: #b67d00; }
.wb-calendar-day.is-selected { background: var(--wb-blue); border-color: var(--wb-blue-dark); color: #fff; }
.wb-calendar-legend { align-items: center; color: var(--wb-muted); display: flex; font-size: .72rem; gap: .35rem; margin: .35rem 0 0; }
.wb-calendar-legend span { background: #fff3c6; border: 1px solid #d99c00; border-radius: 3px; display: inline-block; height: .8rem; width: .8rem; }
.wb-time-panel { background: var(--wb-soft); border-radius: 10px; padding: .65rem; }
.wb-time-panel h3 { color: var(--wb-navy); font-size: 1.05rem; margin: 0 0 .35rem; }
.wb-time-panel p { color: var(--wb-muted); margin: 0; }
.wb-time-panel .wb-slots { margin-top: .5rem; }
.wb-slots { display: grid; gap: .4rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wb-slot { background: var(--wb-soft); border: 1px solid #9ab4d4; border-radius: 8px; color: var(--wb-navy); cursor: pointer; font-family: inherit; font-size: .88rem; font-weight: 750; line-height: 1.15; min-height: 2.7rem; padding: .5rem .3rem; }
.wb-slot:hover { background: #e6f1ff; border-color: var(--wb-blue); }
.wb-hold { background: #fff9e7; border-left: 4px solid var(--wb-gold); margin-bottom: 1.1rem; padding: .65rem .8rem; }
.wb-review { background: var(--wb-soft); border-radius: 11px; margin-bottom: 1.25rem; padding: 1rem; }
.wb-review dl { display: grid; gap: .45rem 1rem; grid-template-columns: minmax(8rem, .7fr) 2fr; margin: 0; }
.wb-review dt { color: var(--wb-muted); font-weight: 750; }
.wb-review dd { margin: 0; }
.wb-check { align-items: flex-start; display: flex; gap: .7rem; margin: .8rem 0; }
.wb-check input { flex: 0 0 auto; height: 1.1rem; margin-top: .25rem; width: 1.1rem; }
.wb-check-boxed { border: 1px solid var(--wb-border); border-radius: 9px; padding: .9rem; }
.wb-check a { color: var(--wb-blue-dark); font-weight: 750; text-decoration: underline; text-underline-offset: .12em; }
.wb-confirmation { text-align: center; }
.wb-confirmation-mark { align-items: center; background: #dcfce7; border-radius: 50%; color: var(--wb-success); display: inline-flex; font-size: 2rem; font-weight: 900; height: 4rem; justify-content: center; width: 4rem; }
.wb-confirmation h3 { color: var(--wb-navy); font-size: 1.7rem; }
.wb-confirmation .wb-actions { margin-top: 1rem; }
.wb-footer { background: var(--wb-soft); border-top: 1px solid var(--wb-border); color: var(--wb-muted); font-size: .82rem; line-height: 1.3; padding: .6rem 1rem; text-align: center; }
.wb-footer p { margin: 0; }
.wb-footer a { color: var(--wb-blue-dark); font-weight: 800; }
.wb-loading { color: var(--wb-muted); padding: 1.5rem; text-align: center; }

@media (max-width: 660px) {
  .wb-app { margin: .4rem 0; }
  .wb-card { border-radius: 12px; }
  .wb-header { padding: 1rem; }
  .wb-header h2 { font-size: 1.45rem; }
  .wb-app[data-wb-current-step]:not([data-wb-current-step="1"]) .wb-header { display: none; }
  .wb-app[data-wb-current-step]:not([data-wb-current-step="1"]) .wb-progress { display: flex; padding: .35rem .7rem; }
  .wb-app[data-wb-current-step]:not([data-wb-current-step="1"]) .wb-progress li { display: none; }
  .wb-app[data-wb-current-step]:not([data-wb-current-step="1"]) .wb-progress li[aria-current="step"] { display: flex; font-size: .75rem; gap: .4rem; }
  .wb-app[data-wb-current-step]:not([data-wb-current-step="1"]) .wb-progress li[aria-current="step"]::before { color: var(--wb-muted); content: "Step"; font-weight: 600; }
  .wb-app[data-wb-current-step]:not([data-wb-current-step="1"]) .wb-progress li[aria-current="step"]::after { color: var(--wb-muted); content: "of 5 ·"; font-weight: 600; order: 2; }
  .wb-app[data-wb-current-step]:not([data-wb-current-step="1"]) .wb-progress li[aria-current="step"] > b { order: 3; }
  .wb-progress { padding: .45rem .5rem; }
  .wb-progress span { height: 1.35rem; width: 1.35rem; }
  .wb-step { padding: .7rem .65rem; }
  .wb-progress li { font-size: 0; gap: 0; justify-content: center; }
  .wb-progress span { flex-basis: 1.35rem; font-size: .72rem; }
  .wb-grid-2, .wb-grid-address { grid-template-columns: 1fr; }
  .wb-step[data-wb-step="3"] legend { font-size: 1.08rem; margin-bottom: .3rem; }
  .wb-time-summary { display: block; margin-bottom: .4rem; }
  .wb-time-summary .wb-help + .wb-help::before { content: ""; }
  .wb-step[data-wb-step="3"] .wb-help { font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .wb-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wb-calendar { padding: .45rem; }
  .wb-calendar-nav { margin-bottom: .2rem; }
  .wb-calendar-grid { gap: .14rem; }
  .wb-calendar-day, .wb-calendar-blank { height: 2.1rem; }
  .wb-calendar-day { border-radius: 6px; font-size: .82rem; }
  .wb-calendar-weekdays span { font-size: .62rem; padding: .15rem 0; }
  .wb-calendar-legend { font-size: .68rem; margin-top: .25rem; }
  .wb-time-panel h3 { font-size: .9rem; }
  .wb-time-panel { padding: .5rem; }
  .wb-time-panel .wb-slots { margin-top: .4rem; }
  .wb-slot { font-size: .7rem; min-height: 2.25rem; padding: .3rem .15rem; }
  .wb-step[data-wb-step="3"] .wb-actions { flex-wrap: nowrap; gap: .4rem; margin-top: .65rem; }
  .wb-step[data-wb-step="3"] .wb-actions .wb-button { flex: 1 1 0; font-size: .78rem; min-height: 40px; padding: .45rem .35rem; }
  .wb-review dl { grid-template-columns: 1fr; }
  .wb-review dd { margin-bottom: .5rem; }
  .wb-actions .wb-button { flex: 1 1 100%; }
}

@media (max-width: 370px) {
  .wb-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .wb-app * { scroll-behavior: auto !important; transition: none !important; }
  .wb-busy-dialog, .wb-busy-spinner { animation: none !important; }
}
