/* Book a Demo dialog (markup at the end of index.html, behaviour in js/demo.js) */
html.dm-lock{overflow:hidden}
.dm{width:min(920px,calc(100% - 32px));max-width:none;max-height:none;margin:auto;padding:0;border:0;background:transparent;color:#F4F7FB;overflow:visible}
.dm::backdrop{background:rgba(2,5,12,.74);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.dm[open]{animation:dm-in .3s cubic-bezier(.2,.7,.2,1)}
.dm[open]::backdrop{animation:dm-fade .3s ease}
@keyframes dm-in{from{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:none}}
@keyframes dm-fade{from{opacity:0}to{opacity:1}}

.dm-card{position:relative;box-sizing:border-box;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;padding:36px 36px 30px;border-radius:24px;border:1px solid rgba(110,193,255,.22);background:linear-gradient(165deg,rgba(12,26,46,.97),rgba(5,11,22,.985));box-shadow:0 40px 100px rgba(0,0,0,.6),0 0 60px rgba(110,193,255,.06);font-family:'Plus Jakarta Sans','Segoe UI',system-ui,-apple-system,sans-serif;-webkit-font-smoothing:antialiased}
.dm-x{position:absolute;top:14px;right:14px;display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;border-radius:50%;border:1px solid rgba(142,193,235,.18);background:rgba(255,255,255,.03);color:rgba(244,247,251,.8);cursor:pointer;transition:color .2s ease,border-color .2s ease,background-color .2s ease}
.dm-x:hover{color:#FFFFFF;border-color:rgba(244,247,251,.5);background:rgba(255,255,255,.07)}

.dm-eyebrow{margin:0;font-size:12px;font-weight:600;letter-spacing:.3em;color:rgba(244,247,251,.7)}
.dm-title{margin:14px 48px 0 0;font-size:clamp(26px,3.2vw,34px);line-height:1.1;font-weight:500;letter-spacing:-.025em;color:#FFFFFF}
.dm-title span{color:#FFB13D}
.dm-title:focus{outline:none}
.dm-lede{margin:12px 0 0;font-size:15.5px;line-height:1.6;color:rgba(244,247,251,.66)}

.dm-form{display:flex;flex-direction:column;gap:14px;margin-top:24px}
.dm-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.dm-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13.5px;font-weight:600;color:rgba(244,247,251,.82)}
.dm-field label i{font-style:normal;color:#FFB13D}
.dm-field input,.dm-field select,.dm-field textarea{box-sizing:border-box;width:100%;min-height:44px;margin:0;padding:10px 14px;border-radius:12px;border:1px solid rgba(142,193,235,.2);background:rgba(2,6,14,.6);color:#F4F7FB;font:inherit;font-size:15px;font-weight:400;transition:border-color .2s ease,box-shadow .2s ease}
.dm-field select{cursor:pointer}
.dm-field textarea{height:92px;min-height:64px;line-height:1.5;resize:vertical}
.dm-field ::placeholder{color:rgba(244,247,251,.35)}
.dm-field input:hover,.dm-field select:hover,.dm-field textarea:hover{border-color:rgba(142,193,235,.38)}
.dm-field input:focus,.dm-field select:focus,.dm-field textarea:focus{outline:none;border-color:#6EC1FF;box-shadow:0 0 0 3px rgba(110,193,255,.18)}
.dm-field [aria-invalid="true"]{border-color:#FF8A7A}
.dm-field [aria-invalid="true"]:focus{box-shadow:0 0 0 3px rgba(255,138,122,.2)}
.dm-msg{font-size:12.5px;font-weight:500;color:#FF9C8F}
.dm-msg:empty{display:none}
.dm-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.dm-error{margin:0;padding:12px 14px;border-radius:12px;border:1px solid rgba(255,138,122,.35);background:rgba(255,100,80,.08);color:#FFC2B8;font-size:14px;line-height:1.5}
.dm-error a{color:#FFFFFF;font-weight:600;text-decoration:underline;text-underline-offset:3px}

.dm-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;margin-top:4px}
.dm-submit{display:inline-flex;align-items:center;gap:12px;height:50px;padding:0 22px 0 26px;border:0;border-radius:999px;background:#FFFFFF;color:#05070D;font:inherit;font-size:15.5px;font-weight:600;cursor:pointer;transition:background-color .2s ease,box-shadow .2s ease,opacity .2s ease}
.dm-submit:hover{background:#DCEEFF;box-shadow:0 0 34px rgba(110,193,255,.45)}
.dm-submit[disabled]{opacity:.75;cursor:progress}
.dm-submit.dm-ghost{padding:0 26px;background:transparent;color:#FFFFFF;border:1.5px solid rgba(244,247,251,.6)}
.dm-submit.dm-ghost:hover{background:rgba(255,255,255,.07);border-color:#FFFFFF;box-shadow:none}
.dm-note{margin:0;font-size:13px;color:rgba(244,247,251,.5)}
.dm-spin{width:16px;height:16px;box-sizing:border-box;border-radius:50%;border:2px solid rgba(5,7,13,.25);border-top-color:#05070D;animation:dm-rot .8s linear infinite}
@keyframes dm-rot{to{transform:rotate(360deg)}}
.dm button:focus-visible,.dm a:focus-visible{outline:2px solid #6EC1FF;outline-offset:3px}

.dm-done{padding:18px 0 6px;text-align:center}
.dm-done .dm-title{margin:20px 0 0}
.dm-done .dm-lede{max-width:420px;margin-left:auto;margin-right:auto}
.dm-done .dm-submit{margin-top:26px}
.dm-done-ic{display:inline-flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;border:1px solid rgba(255,177,61,.45);background:rgba(255,177,61,.12);color:#FFB13D;box-shadow:0 0 40px rgba(255,177,61,.25)}

/* Laptops and desktops: heading on the left, form on the right, so the whole form fits on screen without scrolling */
@media (min-width:861px){
  .dm-form-view{display:grid;grid-template-columns:minmax(0,270px) minmax(0,1fr);grid-template-rows:auto auto auto 1fr;column-gap:40px;align-items:start}
  .dm-form-view > .dm-eyebrow,.dm-form-view > .dm-title,.dm-form-view > .dm-lede{grid-column:1}
  .dm-form-view > .dm-title{margin-right:0}
  .dm-form{grid-column:2;grid-row:1 / span 4;margin-top:10px}
}
/* Short screens: tighter again */
@media (max-height:660px){
  .dm-card{padding:28px 32px 24px}
  .dm-title{font-size:28px}
  .dm-lede{font-size:14.5px}
  .dm-form{gap:10px;margin-top:8px}
  .dm-grid{gap:10px 14px}
  .dm-field{gap:5px;font-size:13px}
  .dm-field input,.dm-field select,.dm-field textarea{min-height:40px;padding:8px 12px;font-size:14.5px}
  .dm-field textarea{height:68px;min-height:56px}
  .dm-submit{height:46px}
}
@media (max-width:560px){
  .dm{width:calc(100% - 20px)}
  .dm-card{padding:24px 18px 20px;border-radius:20px}
  .dm-title{font-size:26px}
  .dm-lede{margin-top:8px;font-size:14.5px;line-height:1.5}
  .dm-form,.dm-grid{gap:10px}
  .dm-form{margin-top:16px}
  .dm-field{gap:5px}
  .dm-field input,.dm-field select{min-height:42px;padding:9px 12px}
  .dm-field textarea{height:72px}
  .dm-grid{grid-template-columns:1fr}
  .dm-submit[type="submit"]{width:100%;justify-content:center}
}
@media (prefers-reduced-motion:reduce){
  .dm[open],.dm[open]::backdrop{animation:none}
  .dm-spin{animation-duration:2.4s}
}
