/* Book a demo drawer (inc/demo-drawer.php): follows the theme (light or dark), slides in from the right over a dimmed page.
   The form shows one step at a time once demo-form.js adds .js-steps; without JS every step shows. */

.drawer-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(8, 8, 10, .55); opacity: 0; transition: opacity .3s; }
.drawer-scrim.on { opacity: 1; }
.drawer {
  --d-bg: #ffffff; --d-ink: #1b1a19; --d-ink-2: #44403c; --d-muted: #8a8580; --d-line: #e7e5e2; --d-card: #f6f5f3;
  --d-edge: #d6d3ce; --d-edge-hover: #a9a59f; --d-hover: #ecebe8; --d-ring: rgba(27, 26, 25, .18); --d-error: #c8264a; --d-pick: rgba(237, 38, 88, .08);
  position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: min(600px, 100vw);
  background: var(--d-bg); color: var(--d-ink); border-left: 1px solid var(--d-line);
  translate: 100% 0; visibility: hidden; transition: translate .4s cubic-bezier(.2, .7, .2, 1), visibility 0s .4s;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .drawer { --d-bg: #161617; --d-ink: #eeebe7; --d-ink-2: #b9b5b0; --d-muted: #8f8b86; --d-line: #2e2e33; --d-card: #1f1f22; --d-edge: #3a3a40; --d-edge-hover: #6a6a72; --d-hover: #2a2a2e; --d-ring: rgba(255, 255, 255, .25); --d-error: #ff7a93; --d-pick: rgba(237, 38, 88, .12); } }
:root[data-theme="dark"] .drawer { --d-bg: #161617; --d-ink: #eeebe7; --d-ink-2: #b9b5b0; --d-muted: #8f8b86; --d-line: #2e2e33; --d-card: #1f1f22; --d-edge: #3a3a40; --d-edge-hover: #6a6a72; --d-hover: #2a2a2e; --d-ring: rgba(255, 255, 255, .25); --d-error: #ff7a93; --d-pick: rgba(237, 38, 88, .12); }
.drawer.open, .drawer:target { translate: 0 0; visibility: visible; transition: translate .4s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.drawer-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 72px clamp(20px, 5vw, 40px) 40px; }
.drawer-close {
  position: absolute; top: 16px; right: 16px; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: var(--d-ink); background: var(--d-card); border: 1px solid var(--d-line); box-shadow: 0 0 0 4px var(--d-bg), 0 0 0 5px var(--d-ring);
  transition: background-color .2s;
}
.drawer-close:hover { background: var(--d-hover); }
.drawer-label { margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .5em; text-transform: uppercase; color: #ed2658; }
.drawer h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); line-height: 1.12; letter-spacing: -.03em; font-weight: 600; color: var(--d-ink); }
.drawer-lead { margin: 16px 0 0; font-size: 16px; line-height: 1.55; color: var(--d-ink-2); }
.drawer-note { margin: 12px 0 0; font-size: 14px; color: var(--d-ink); }

/* Form */
.df { margin-top: 36px; }
.df-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.df-progress { display: none; }
.js-steps .df-progress { display: block; margin-bottom: 28px; }
.df-count { display: block; text-align: right; font-size: 14px; color: var(--d-muted); margin-bottom: 10px; }
.df-bar { display: block; height: 3px; border-radius: 3px; background: var(--d-line); overflow: hidden; }
.df-bar i { display: block; height: 100%; width: var(--p, 20%); background: #ed2658; border-radius: 3px; transition: width .35s ease; }

.df-step { margin: 0 0 32px; padding: 0; border: 0; min-width: 0; }
.js-steps .df-step { display: none; margin: 0; }
.js-steps .df-step.on { display: block; animation: df-in .35s ease; }
@keyframes df-in { from { opacity: 0; translate: 12px 0; } to { opacity: 1; translate: 0 0; } }
.df-step legend { padding: 0; margin: 0 0 20px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; color: var(--d-ink); }

.df-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.df-choice { position: relative; cursor: pointer; }
.df-choice input { position: absolute; opacity: 0; pointer-events: none; }
.df-choice span {
  display: flex; align-items: center; min-height: 60px; height: 100%; padding: 14px 18px; border-radius: var(--r, 12px);
  border: 1px solid var(--d-edge); font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--d-ink);
  transition: border-color .15s, background-color .15s, color .15s;
}
.df-choice:hover span { border-color: var(--d-edge-hover); }
.df-choice input:checked + span { border-color: #ed2658; background: var(--d-pick); box-shadow: 0 0 0 1px #ed2658 inset; }
.df-choice input:focus-visible + span { outline: 2px solid #8aa4f0; outline-offset: 2px; }

.df-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.df-field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.df-field.half { grid-column: auto; }
.df-field label { font-size: 14px; font-weight: 500; color: var(--d-ink-2); }
.df-field input {
  width: 100%; height: 50px; padding: 0 14px; border-radius: var(--r, 12px); border: 1px solid var(--d-edge); background: var(--d-card);
  font: inherit; font-size: 16px; color: var(--d-ink); outline: none; transition: border-color .15s;
}
.df-field input:focus { border-color: #ed2658; }
.df-error { display: none; margin: 8px 0 0; font-size: 13px; color: var(--d-error); }
.df-field .df-error { margin: 0; }
.has-error > .df-error, .has-error .df-error { display: block; }
.df-field.has-error input { border-color: var(--d-error); }
.df-fine { margin: 18px 0 0; font-size: 13px; line-height: 1.5; color: var(--d-muted); }

/* Back / Next / Submit */
.df-nav { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.df-back { display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--d-ink-2); cursor: pointer; }
.df-back:hover { color: var(--d-ink); }
.df-back[hidden] { display: none; }
.df-next {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 600; background: var(--d-ink); color: var(--d-bg); transition: background-color .2s, opacity .2s;
}
.df-next:hover { background: var(--d-ink-2); }
/* Submit: the site's solid rose button (site.css .btn.btn-accent.btn-lg, like "Learn more"). */
.df-submit { margin-left: auto; height: 50px; font-size: 16px; --accent: #ed2658; --accent-hover: #d61f4e; }
.df-submit:disabled { opacity: .75; cursor: default; }
.js-steps .df-submit { display: none; }
.js-steps.last .df-submit { display: inline-flex; }
.js-steps.last .df-next { display: none; }
.df:not(:has(.js-steps)) .df-nav .df-next { display: none; }
.df-spin { display: none; width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: df-spin .7s linear infinite; }
.df-submit.loading .df-spin { display: inline-block; }
@keyframes df-spin { to { rotate: 360deg; } }

/* After sending */
.df-done h3 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.df-done p { margin: 12px 0 0; font-size: 16px; line-height: 1.55; color: var(--d-ink-2); }
.df-done a { color: var(--d-ink); }
.df-done .df-next { margin: 24px 0 0; }
.df-done-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; background: rgba(237, 38, 88, .15); color: #ed2658; }

@media (max-width: 520px) {
  .df-choices { grid-template-columns: 1fr; }
  .df-choice span { min-height: 54px; }
  .df-fields { grid-template-columns: 1fr; }
  .df-field.half { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer.open, .drawer-scrim { transition: none; }
  .js-steps .df-step.on { animation: none; }
}
body.drawer-open { overflow: hidden; }
