/* Structure of the free-trial booking flow. Each design version themes it by
   setting the --bk-* variables on :root and adding a few overrides. */
html.bk-open { overflow: hidden; }

.bk-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 16px;
  background: var(--bk-scrim, rgba(11, 37, 69, .55));
  overflow: auto; overscroll-behavior: contain;
  animation: bk-fade .18s ease-out;
}
.bk-overlay[hidden] { display: none; }

.bk-panel {
  position: relative; box-sizing: border-box;
  width: min(100%, var(--bk-width, 480px));
  max-height: calc(100dvh - 32px); overflow: auto;
  padding: var(--bk-pad, 28px);
  background: var(--bk-bg, #fff); color: var(--bk-ink, #0b2545);
  border: var(--bk-border, 0); border-radius: var(--bk-radius, 22px);
  box-shadow: var(--bk-shadow, 0 30px 80px rgba(11, 37, 69, .35));
  font-family: var(--bk-font, inherit);
  animation: bk-rise .24s cubic-bezier(.2, .8, .2, 1);
}
.bk-panel * { box-sizing: border-box; }

body[data-bk-layout="drawer"] .bk-overlay { place-items: stretch end; padding: 0; }
body[data-bk-layout="drawer"] .bk-panel {
  width: min(100%, 460px); max-height: none; height: 100dvh;
  border-radius: var(--bk-radius, 22px) 0 0 var(--bk-radius, 22px);
  animation: bk-slide .28s cubic-bezier(.2, .8, .2, 1);
}

.bk-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  display: grid; place-items: center; cursor: pointer;
  font: 400 26px/1 system-ui, sans-serif; color: inherit;
  background: var(--bk-close-bg, transparent); border: var(--bk-close-border, 0); border-radius: 50%;
}
.bk-close:hover { background: var(--bk-field-bg, #f1f5f9); }

.bk-head { display: flex; align-items: center; gap: 14px; padding-right: 44px; }
.bk-avatar { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: var(--bk-avatar-radius, 18px); border: var(--bk-avatar-border, 0); }
.bk-kicker { margin: 0 0 2px; font-size: 13px; opacity: .7; }
.bk-title { margin: 0 0 6px; font: var(--bk-title-font, 700 24px/1.1 inherit); }
.bk-tag {
  display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: var(--bk-tag-bg, #e0f7ff); color: var(--bk-tag-ink, #0b2545);
  border: var(--bk-tag-border, 0); border-radius: var(--bk-tag-radius, 999px);
}

.bk-steps { display: flex; gap: 8px; list-style: none; margin: 22px 0 20px; padding: 0; font-size: 13px; font-weight: 700; }
.bk-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 4px solid var(--bk-track, #e2e8f0); opacity: .55; }
.bk-steps li span { display: none; }
.bk-steps li.is-current, .bk-steps li.is-done { opacity: 1; border-top-color: var(--bk-accent, #1ecaff); }

.bk-step { display: none; }
.bk-overlay[data-step="1"] [data-step="1"],
.bk-overlay[data-step="2"] [data-step="2"],
.bk-overlay[data-step="3"] [data-step="3"] { display: block; }
.bk-overlay[data-step="3"] .bk-form { display: none; }

.bk-legend { margin: 0 0 16px; font: var(--bk-legend-font, 700 20px/1.2 inherit); }
.bk-field { display: block; margin: 0 0 14px; }
.bk-field[hidden] { display: none; }
.bk-field > span { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.bk-field input:not([type="radio"]), .bk-field select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 16px; color: inherit;
  background: var(--bk-field-bg, #f8fafc);
  border: var(--bk-field-border, 2px solid #e2e8f0); border-radius: var(--bk-field-radius, 12px);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.bk-field input::placeholder { color: currentColor; opacity: .4; }
.bk-field input:not([type="radio"]):focus-visible, .bk-field select:focus-visible {
  border-color: var(--bk-accent, #1ecaff); box-shadow: 0 0 0 4px var(--bk-ring, rgba(30, 202, 255, .3));
}
.bk-field .is-invalid { border-color: var(--bk-danger, #e5484d) !important; }

.bk-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.bk-choice { position: relative; cursor: pointer; }
.bk-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.bk-choice span {
  display: block; padding: 11px 12px; text-align: center; font-size: 15px; font-weight: 700;
  background: var(--bk-field-bg, #f8fafc);
  border: var(--bk-field-border, 2px solid #e2e8f0); border-radius: var(--bk-field-radius, 12px);
  transition: background .15s, border-color .15s, transform .15s;
}
.bk-choice input:checked + span { background: var(--bk-accent, #1ecaff); border-color: var(--bk-accent-edge, var(--bk-accent, #1ecaff)); color: var(--bk-accent-ink, #0b2545); }
.bk-choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--bk-ring, rgba(30, 202, 255, .3)); }

.bk-error { min-height: 20px; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--bk-danger, #e5484d); }
.bk-actions { display: flex; gap: 10px; }
.bk-btn {
  flex: 1; min-height: 52px; padding: 12px 18px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 800;
  background: var(--bk-accent, #1ecaff); color: var(--bk-accent-ink, #0b2545);
  border: var(--bk-btn-border, 0); border-radius: var(--bk-btn-radius, 14px);
  box-shadow: var(--bk-btn-shadow, none); transition: transform .12s, box-shadow .12s, filter .12s;
}
.bk-btn:hover { filter: brightness(1.04); transform: translateY(-1px); }
.bk-btn:focus-visible { outline: 3px solid var(--bk-ink, #0b2545); outline-offset: 2px; }
.bk-btn--ghost { flex: 0 0 auto; background: transparent; color: inherit; border: var(--bk-field-border, 2px solid #e2e8f0); box-shadow: none; }

.bk-done { text-align: center; }
.bk-check {
  width: 64px; height: 64px; margin: 4px auto 14px; display: grid; place-items: center;
  font-size: 32px; font-weight: 800; border-radius: 50%;
  background: var(--bk-accent, #1ecaff); color: var(--bk-accent-ink, #0b2545); border: var(--bk-btn-border, 0);
}
.bk-summary { margin: 0 0 16px; line-height: 1.5; }
.bk-mail { list-style: none; margin: 0 0 12px; padding: 0; text-align: left; border: var(--bk-field-border, 2px solid #e2e8f0); border-radius: var(--bk-field-radius, 12px); overflow: hidden; }
.bk-mail::before { content: "Trial details are emailed to"; display: block; padding: 10px 14px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .6; }
.bk-mail li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; font-size: 14px; }
.bk-mail li span { opacity: .7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bk-note { margin: 0 0 16px; font-size: 13px; opacity: .65; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.bk-btn:disabled { opacity: .55; cursor: progress; }

/* preview switcher, only shown on the design previews */
.pv-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 90;
  display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 14px;
  font: 700 12px/1 system-ui, -apple-system, "Segoe UI", sans-serif; white-space: nowrap;
  color: #fff; background: rgba(11, 23, 42, .88); border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25); backdrop-filter: blur(8px);
}
.pv-bar span { margin-right: 6px; opacity: .65; }
.pv-bar a { padding: 8px 12px; color: #fff; text-decoration: none; border-radius: 999px; }
.pv-bar a em { font-style: normal; }
.pv-bar a[aria-current] { background: #1ecaff; color: #0b2545; }
.pv-bar a:hover:not([aria-current]) { background: rgba(255, 255, 255, .14); }
@media (max-width: 520px) { .pv-bar span, .pv-bar a:not([aria-current]) em { display: none; } }

@keyframes bk-fade { from { opacity: 0; } }
@keyframes bk-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes bk-slide { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .bk-overlay, .bk-panel { animation: none !important; }
}
