/* Demo request page (demo.html): night page, header stacked left, then the picker; step 2 puts the form where the table was. */
* { box-sizing: border-box; }
.dmp { margin: 0; min-height: 100vh; color: #fff; font-family: "Inter", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  background: radial-gradient(50% 55% at 85% 45%, rgb(124 77 255 / .26), transparent 70%), radial-gradient(40% 40% at 0% 100%, rgb(153 102 255 / .1), transparent 70%), #0b0817; }
.dmp-top { max-width: 1440px; margin: 0 auto; padding: 26px 64px 0; display: flex; align-items: center; justify-content: space-between; }
.dmp-top img { height: 52px; display: block; margin-left: -4px; }
.dmp-tel { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.dmp-tel i { font-size: 12px; color: #c9b5ff; }
.dmp-main { max-width: 1440px; margin: 0 auto; padding: 34px 64px 32px; }
.dmp-head h1 { margin: 0; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: clamp(2.4rem, 3.6vw, 3.3rem); font-weight: 600; line-height: 1.1; letter-spacing: -.03em; }
.blk { display: inline-block; padding: .02em .18em .06em; margin: 0 .03em; border-radius: .18em; line-height: 1; color: #fff;
  box-shadow: inset 0 -.07em 0 rgb(0 0 0 / .16), inset 0 .05em 0 rgb(255 255 255 / .3); }
.blk-p { background: #8b5cf6; }
.dmp-sub { max-width: 820px; margin: 18px 0 0; font-size: 1.08rem; line-height: 1.65; color: rgb(255 255 255 / .64); }
.dmp-pick { margin-top: 36px; }

/* Step 2: the form where the table was */
.dmf { grid-column: 1; align-self: start; max-width: 640px; padding: 28px; border-radius: 24px; color: #181c32; background: #fff;
  box-shadow: 0 60px 110px -40px #000, 0 0 0 8px rgb(255 255 255 / .05); animation: dmf-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes dmf-in { from { opacity: 0; transform: translateX(-30px); } }
.dmf-h { display: flex; align-items: center; margin: 0 0 20px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.dmf-back { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 0 auto; padding: 0; border: 0; background: none; cursor: pointer; font: 600 13.5px "Inter", system-ui, sans-serif; color: #6d28d9; }
.dmf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dmf-fields label { display: grid; gap: 6px; }
.dmf-fields .w2 { grid-column: span 2; }
.dmf-fields span { font-size: 12.5px; font-weight: 600; color: #4a4a60; }
.dmf-fields input { height: 46px; padding: 0 14px; border: 0; border-radius: 12px; font: 500 15px "Inter", system-ui, sans-serif; color: #181c32; background: #f5f4f9; box-shadow: inset 0 0 0 1px #e7e4ef; outline: none; transition: box-shadow .15s, background .15s; }
.dmf-fields input:focus { background: #fff; box-shadow: inset 0 0 0 1.5px #8b5cf6, 0 0 0 4px rgb(139 92 246 / .12); }
.dmf-fields input.is-bad { box-shadow: inset 0 0 0 1.5px #e11d48; }
.dmf-hp { position: absolute; left: -9999px; }
.dmf-err { margin: 12px 0 0; font-size: 13px; font-weight: 500; color: #be123c; }
.dmf-err:empty { display: none; }
.dmf-go { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin-top: 22px; padding: 17px 24px; border: 0; border-radius: 14px; cursor: pointer;
  font: 700 16px "Inter", system-ui, sans-serif; color: #fff; text-decoration: none; background: linear-gradient(100deg, #8b5cf6, #6d28d9);
  box-shadow: 0 18px 36px -14px rgb(109 40 217 / .8), inset 0 1px 0 rgb(255 255 255 / .25); transition: transform .2s, filter .2s; }
.dmf-go:hover { transform: translateY(-1px); filter: brightness(1.08); }
.dmf.is-busy .dmf-go { opacity: .7; pointer-events: none; }
.dmf-legal { margin: 12px 0 0; font-size: 12px; text-align: center; color: #8a8aa0; }
.dmf-legal a { color: #6d28d9; }
.dmf-done { padding: 44px 40px 36px; text-align: center; }
.dmf-ok { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 99px; font-size: 26px; color: #fff; background: #16a34a; box-shadow: 0 0 0 10px #e3f4ea; }
.dmf-t { margin: 26px 0 0; font-family: "Inter Tight", "Inter", system-ui, sans-serif; font-size: 1.8rem; font-weight: 600; letter-spacing: -.02em; }
.dmf-s { max-width: 440px; margin: 12px auto 0; font-size: 15px; line-height: 1.6; color: #4a4a60; }
.pk.is-done .pk-card { pointer-events: none; }
.dmf-home { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; font-size: 14px; font-weight: 600; color: #6d28d9; text-decoration: none; }

/* Step 2: the form and the selection become ONE card (demo.js animates the merge): white form left, night selection right */
.pk.is-form { grid-template-columns: 640px 400px; gap: 0; width: fit-content; border-radius: 26px; transition: box-shadow .5s; }
.pk.is-form.is-merged { box-shadow: 0 0 0 8px rgb(255 255 255 / .05), 0 60px 110px -40px #000; }
.pk.is-form .dmf { max-width: none; border-radius: 26px 0 0 26px; box-shadow: none; animation: none; }
.pk.is-form .pk-tray { z-index: 1; border-radius: 0 26px 26px 0; background: linear-gradient(165deg, #2c1e57, #181031); box-shadow: inset -1px 0 0 rgb(201 181 255 / .14), inset 0 1px 0 rgb(201 181 255 / .14), inset 0 -1px 0 rgb(201 181 255 / .1); }
@media (max-width: 1000px) {
  .pk.is-form { grid-template-columns: 1fr; width: auto; }
  .pk.is-form .dmf { border-radius: 26px 26px 0 0; }
  .pk.is-form .pk-tray { position: relative; bottom: auto; border-radius: 0 0 26px 26px; }
}

/* Tablet and phone */
@media (max-width: 1000px) {
  .dmp-top { padding: 22px 32px 0; }
  .dmp-main { padding: 28px 32px 40px; }
  .dmp-pick { margin-top: 28px; }
  .pk.is-form { grid-template-columns: minmax(0, 1fr); }
  .dmf-fields > label, .dmf-fields input { min-width: 0; }
  .dmf-fields input { width: 100%; }
}
@media (max-width: 640px) {
  .dmp-top { padding: 18px 20px 0; gap: 12px; }
  .dmp-top img { height: 40px; }
  .dmp-tel { flex: none; gap: 8px; min-height: 40px; font-size: 14px; white-space: nowrap; }
  .dmp-main { padding: 22px 20px 32px; }
  .dmp-head h1 { font-size: 2.2rem; }
  .dmp-sub { margin-top: 14px; font-size: 1rem; }
  .dmp-pick { margin-top: 26px; }
  .dmf { padding: 22px 18px; }
  .dmf-h { flex-wrap: wrap; gap: 6px 12px; font-size: 18px; }
  .dmf-back { min-height: 40px; }
  .dmf-fields { gap: 12px; }
  .dmf-fields input { height: 48px; font-size: 16px; }
  .dmf-go { min-height: 52px; padding: 15px 18px; font-size: 15.5px; }
  .dmf-done { padding: 36px 22px 30px; }
  .dmf-home { min-height: 40px; }
}
