/* =========================================================
   #book — Netlify booking form + direct-contact side panel
   ========================================================= */
.book { overflow: clip; }
.book-aura {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(40% 30% at 18% 30%, rgba(41, 231, 255, .11), transparent 70%),
    radial-gradient(40% 34% at 85% 70%, rgba(255, 63, 208, .1), transparent 70%),
    radial-gradient(70% 40% at 50% 0%, rgba(138, 92, 255, .1), transparent 70%);
}
.book-aura::after {
  content: ""; position: absolute; inset: 0;
  background: center / cover no-repeat; /* image set below only once book.js marks the section near (no first-load fetch) */
  opacity: .12; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 60% at 50% 50%, #000 30%, transparent 80%);
}
.book.is-near .book-aura::after { background-image: url("../img/brand/bg-02-1280.webp"); }
.book .sec-head { position: relative; }

.book-grid {
  position: relative; margin-top: clamp(36px, 5vw, 60px);
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .8fr); gap: clamp(20px, 3vw, 36px); align-items: start;
}
.book-panel { padding: clamp(22px, 3.4vw, 44px); min-width: 0; scroll-margin-top: calc(var(--nav-h) + 18px); }

/* ---------- form ---------- */
.book-form { display: flex; flex-direction: column; gap: 24px; }
.book-form[hidden] { display: none; }
.book-form-title { font-size: clamp(22px, 2vw, 27px); line-height: 1.15; letter-spacing: -.025em; font-weight: 800; }
.book-form-title:focus, .book-success-title:focus { outline: none; }
.book-form-title:focus-visible, .book-success-title:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.book-form-sub { margin-top: -16px; color: var(--muted); font-size: 13.5px; }
.book-form-sub span, .book-req { color: var(--magenta); }

.book-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.book-picked {
  align-self: flex-start; display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; max-width: 100%;
  padding: 6px 6px 6px 16px; border-radius: 999px;
  border: 1px solid rgba(41, 231, 255, .55); background: rgba(41, 231, 255, .08); box-shadow: 0 0 24px -8px rgba(41, 231, 255, .7);
  animation: book-pop .5s var(--ease);
}
.book-picked[hidden] { display: none; }
.book-picked-k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); }
.book-picked b { font-size: 14.5px; font-weight: 650; min-width: 0; }
.book-picked-x {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--ink-2); transition: all .2s;
}
.book-picked-x:hover { color: #fff; border-color: var(--cyan); }
.book-picked-x .ico { width: 14px; height: 14px; }
@keyframes book-pop { from { opacity: 0; transform: translateY(6px) scale(.97); } }

.book-set { border: 0; padding: 0; margin: 0; min-width: 0; }
.book-label, .book-set > legend {
  display: block; padding: 0; margin: 0 0 10px;
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}

/* chips (ported from the holo-tunnel booking card) */
.book-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.book-chip { position: relative; cursor: pointer; display: inline-flex; }
.book-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.book-chip span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .025);
  font-size: 14px; color: var(--ink-2); transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.book-chip:hover span { border-color: rgba(41, 231, 255, .6); color: #fff; }
.book-chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 2px; }
.book-chip input[type="radio"]:checked + span {
  color: #050713; background: var(--grad); border-color: transparent; font-weight: 650;
  box-shadow: 0 0 18px -4px rgba(138, 92, 255, .9);
}
.book-set.is-invalid .book-chip span { border-color: rgba(255, 107, 139, .55); }

/* product interest */
.book-groups { display: grid; }
.book-group { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px 14px; align-items: start; padding: 10px 0; }
.book-group + .book-group { border-top: 1px solid rgba(130, 200, 255, .07); }
.book-group-name { padding-top: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.book-chips-sm { gap: 7px; }
.book-chips-sm span { min-height: 40px; padding: 0 13px; font-size: 13.5px; }
.book-pchip span::before {
  content: ""; width: 14px; height: 14px; flex: none; border-radius: 4px; border: 1.5px solid var(--line-2);
  background: center / 10px no-repeat; transition: all .2s;
}
.book-pchip input:checked + span { color: #fff; border-color: var(--cyan); background: rgba(41, 231, 255, .12); box-shadow: 0 0 18px -6px rgba(41, 231, 255, .9); }
.book-pchip input:checked + span::before {
  border-color: transparent; background-color: var(--cyan);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23050713' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.book-groups.is-collapsed .book-pchip:not(.is-flag):not(.is-on) { display: none; }
.book-pchip.is-flash span { animation: book-flash 1.1s var(--ease) 2; }
@keyframes book-flash { 0% { box-shadow: 0 0 0 0 rgba(41, 231, 255, .85); } 100% { box-shadow: 0 0 0 12px rgba(41, 231, 255, 0); } }
.book-more {
  margin-top: 8px; min-height: 40px; padding: 0 2px; border: 0; background: none; cursor: pointer;
  color: var(--cyan); font-size: 14px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(41, 231, 255, .4); text-underline-offset: 4px;
}
.book-more:hover { color: #fff; }
.book-hint { color: var(--muted); font-size: 13.5px; }

/* inputs */
.book-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.book-field { display: flex; flex-direction: column; min-width: 0; }
.book-form input:not([type="radio"]):not([type="checkbox"]),
.book-form select,
.book-form textarea {
  width: 100%; min-height: 50px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, .04); color: var(--ink); padding: 0 14px;
  font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.book-form textarea { padding: 12px 14px; min-height: 116px; resize: vertical; line-height: 1.5; }
.book-form select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2329e7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.book-form select option { background: #0a0f24; color: var(--ink); }
.book-form input::placeholder, .book-form textarea::placeholder { color: rgba(133, 146, 180, .75); }
.book-form input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.8) sepia(1) hue-rotate(150deg) saturate(4); cursor: pointer; }
.book-form input:not([type="radio"]):not([type="checkbox"]):hover, .book-form select:hover, .book-form textarea:hover { border-color: rgba(41, 231, 255, .45); }
.book-form input:not([type="radio"]):not([type="checkbox"]):focus,
.book-form select:focus, .book-form textarea:focus {
  outline: none; border-color: var(--cyan); background: rgba(41, 231, 255, .05); box-shadow: 0 0 0 3px rgba(41, 231, 255, .2);
}
.book-field.is-invalid input, .book-field.is-invalid select { border-color: #ff6b8b; box-shadow: 0 0 0 3px rgba(255, 107, 139, .15); }
.book-err { color: #ff9db2; font-size: 13px; line-height: 1.4; margin-top: 6px; }
.book-err:empty { margin: 0; }

.book-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 4px; }
.book-submit { min-width: 230px; }
.book-submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.book-fine { flex: 1; min-width: 200px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.book-status { font-size: 14px; color: var(--ink-2); margin-top: -8px; }
.book-status:empty { display: none; }
.book-status.is-error { color: #ff9db2; }
.book-status a { color: var(--cyan); }

/* ---------- success ---------- */
.book-success { text-align: center; padding: clamp(18px, 4vw, 48px) 0; }
.book-success[hidden] { display: none; }
.book-success-ring { width: 76px; height: 76px; margin: 0 auto 20px; filter: drop-shadow(0 0 16px rgba(41, 231, 255, .7)); }
.book-success-ring svg { width: 100%; height: 100%; }
.book-success.is-in .book-success-ring { animation: book-pop .7s var(--ease); }
.book-success.is-in .book-success-ring path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: book-draw .6s .25s var(--ease) forwards; }
@keyframes book-draw { to { stroke-dashoffset: 0; } }
.book-success-title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.book-success-text { margin: 14px auto 0; max-width: 520px; color: var(--ink-2); font-size: 16px; }
.book-success-sum { list-style: none; margin: 24px auto 0; padding: 6px 18px; max-width: 540px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .025); }
.book-success-sum:empty { display: none; }
.book-success-sum li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 0; font-size: 14px; }
.book-success-sum li + li { border-top: 1px solid var(--line); }
.book-success-sum span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.book-success-sum b { font-weight: 600; color: var(--ink); }
.book-success-dev { margin: 18px auto 0; max-width: 540px; padding: 10px 14px; border-radius: 12px; border: 1px dashed rgba(246, 198, 107, .55); color: #ffe9a8; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; }
.book-success-cta { justify-content: center; }
html.reduced .book-success-ring, html.reduced .book-success-ring path, html.reduced .book-picked, html.reduced .book-pchip.is-flash span { animation: none !important; stroke-dashoffset: 0; }

/* ---------- side panel ---------- */
.book-side { display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 20px); min-width: 0; }
.book-card {
  border-radius: var(--radius); border: 1px solid var(--line); padding: 20px 22px;
  background: linear-gradient(170deg, rgba(14, 21, 52, .72), rgba(6, 9, 24, .72));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.book-status-card { border-color: rgba(61, 255, 168, .32); background: linear-gradient(170deg, rgba(20, 60, 54, .45), rgba(6, 9, 24, .72)); }
.book-now { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #b8ffe0; }
.book-now i { width: 8px; height: 8px; border-radius: 50%; background: #3dffa8; box-shadow: 0 0 12px #3dffa8; animation: pulse 1.8s ease-in-out infinite; }
html.reduced .book-now i { animation: none; }
.book-card-text { margin-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.book-card-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 12px; }

.book-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.book-contact a, .book-contact-row { display: flex; align-items: center; gap: 12px; padding: 8px; margin: 0 -8px; border-radius: 12px; text-decoration: none; transition: background .2s; }
.book-contact a:hover { background: rgba(41, 231, 255, .07); }
.book-contact-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(41, 231, 255, .06); color: var(--cyan); }
.book-contact small { display: block; font-size: 12px; color: var(--muted); line-height: 1.3; }
.book-contact b { display: block; font-size: 15px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.book-email { font-size: 14px !important; }

.book-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: bstep; }
.book-steps li { position: relative; padding-left: 38px; color: var(--ink-2); font-size: 14px; line-height: 1.45; counter-increment: bstep; }
.book-steps li::before {
  content: counter(bstep); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; color: #050713;
  background: var(--grad); box-shadow: 0 0 14px -2px rgba(138, 92, 255, .8);
}
.book-steps b { color: var(--ink); font-weight: 650; }

.book-stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.book-stats li { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.book-stats b { display: block; font-size: 22px; line-height: 1.1; letter-spacing: -.03em; font-weight: 800; }
.book-stats span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .book-grid { grid-template-columns: 1fr; }
  .book-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .book-stats { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .book-panel { padding: 22px 18px 24px; }
  .book-panel.hud-corners::before, .book-panel.hud-corners::after { width: 16px; height: 16px; }
  .book-row { grid-template-columns: 1fr; }
  .book-group { grid-template-columns: 1fr; gap: 8px; }
  .book-group-name { padding-top: 2px; }
  .book-chip span { padding: 0 14px; }
  .book-submit { width: 100%; }
  .book-side { grid-template-columns: 1fr; }
  .book-success-sum li { grid-template-columns: 1fr; gap: 2px; }
}
