/* Request form (public/request.js): the dialog on the home page and the /request page. Every rule is
   scoped to .rq-* classes, so this file loads on the home page without touching anything else there.
   Same tokens as index.html (README → 디자인 시스템): navy and yellow, a neutral scale tinted toward
   the navy, yellow only for the primary action and small marks, status colors only for status. */
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url(/fonts/instrument-sans-v1.woff2) format('woff2')}

.rq-dialog,.rq-page{
  --navy:#091C30;--yellow:#FDCB50;--yellow-2:#FFD86E;
  --bg:#FFFFFF;--bg-2:#F7F8FA;--bg-3:#EEF1F5;--line:#E6E9EE;--line-2:#D5DBE3;--line-3:#B8C1CD;--line-ui:#8A949F;
  --ink:#0B1A2A;--ink-2:#364352;--ink-3:#5F6B78;--ink-4:#6A7583;
  --on-navy-2:#B4BDC8;--on-navy-3:#8D99A8;--line-navy:rgba(255,255,255,.1);--line-navy-2:rgba(255,255,255,.18);
  --ok:#18794E;--ok-bg:#E6F4EC;--info:#3451D1;--warn:#9A6100;--warn-bg:#FCF1DC;--bad:#B42318;--bad-bg:#FDECEA;
  --sans:'Instrument Sans',-apple-system,BlinkMacSystemFont,'Segoe UI','Apple SD Gothic Neo','Malgun Gothic','Noto Sans KR',sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
  /* Icons as masks (they take the text color), so they look the same on every OS */
  --rq-arrow:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8h10.2M8.8 4l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --rq-back:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.5 8H3.3M7.2 4l-4 4 4 4' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --rq-x:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --rq-check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.4 8.4l3 3 6.2-6.8' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --rq-alert:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.2v5.6' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='12.3' r='1.35'/%3E%3C/svg%3E");
  /* Tinted backgrounds (not masks): the checkbox tick, the error dot, the "no data needed" tick on navy */
  --rq-tick-white:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8.3l2.9 2.9 5.9-6.4' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --rq-alert-red:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 4.2v4.6' fill='none' stroke='%23B42318' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='11.6' r='1.2' fill='%23B42318'/%3E%3C/svg%3E");
  --rq-tick-green:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.4l2.5 2.5 5.1-5.6' fill='none' stroke='%234CC38A' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.rq,.rq *,.rq *::before,.rq *::after,.rq-page *,.rq-page *::before,.rq-page *::after{box-sizing:border-box;margin:0;padding:0}
.rq [hidden]{display:none!important}
.rq img{display:block;max-width:100%;height:auto}

/* ---------- The component: navy context on the left, the form on the right ---------- */
.rq{position:relative;display:flex;width:100%;background:var(--bg);color:var(--ink-2);font:400 16px/1.55 var(--sans);text-align:left;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-webkit-text-size-adjust:100%}
.rq a,.rq button{-webkit-tap-highlight-color:transparent}
.rq :focus-visible{outline:2px solid var(--info);outline-offset:2px}
.rq-aside :focus-visible{outline-color:var(--yellow)}
/* The close button sits over the white form, or over the navy header on phones: a white halo keeps the blue ring visible on both */
.rq-dialog>.rq-x:focus-visible{outline:2px solid var(--info);outline-offset:2px;box-shadow:0 0 0 2px var(--bg)}
.rq-aside{flex:0 0 37%;display:flex;flex-direction:column;min-width:0;padding:44px 36px 32px;background:radial-gradient(120% 60% at 0% 0%,#15324F 0%,rgba(21,50,79,0) 70%),var(--navy);color:var(--on-navy-2)}
.rq-main{flex:1 1 auto;min-width:0;padding:44px 52px 36px}
.rq-main>*{max-width:560px}

.rq-logo{display:inline-flex;align-self:flex-start;margin-bottom:auto;padding-bottom:48px}
.rq-logo img{width:98px;height:24px}
.rq-label{font:600 12px/1.35 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--yellow)}
.rq-title{margin:14px 0;font:600 clamp(28px,2.6vw,36px)/1.08 var(--sans);letter-spacing:-.032em;color:#fff;text-wrap:balance}
.rq-lede{font-size:16px;line-height:1.55;color:var(--on-navy-2);text-wrap:pretty}
.rq-ctx{margin-top:24px;padding:14px 16px;border:1px solid var(--line-navy-2);border-radius:14px;background:rgba(255,255,255,.04);font-size:14px;line-height:1.45}
.rq-ctx p+p{margin-top:10px}
.rq-ctx-k{display:block;font-size:11.5px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--on-navy-3)}
.rq-ctx-v{display:block;margin-top:2px;font-weight:500;color:#fff}
.rq-ctx .rq-ctx-n{font-size:13px;color:var(--on-navy-3)}
.rq-next-wrap{margin-top:auto;padding-top:36px}
.rq-next-h{margin-bottom:6px;font:600 12px/1.35 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--on-navy-3)}
.rq-next{list-style:none;counter-reset:rq;border-top:1px solid var(--line-navy)}
.rq-next li{counter-increment:rq;display:grid;grid-template-columns:30px minmax(0,1fr);padding:11px 0;border-bottom:1px solid var(--line-navy);font-size:14.5px;line-height:1.45;color:#fff;text-wrap:pretty}
.rq-next li::before{content:counter(rq);display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin-top:1px;border-radius:6px;background:rgba(253,203,80,.14);color:var(--yellow);font-size:12px;font-weight:600}
.rq-note{position:relative;margin-top:16px;padding-left:24px;font-size:13.5px;line-height:1.45;color:var(--on-navy-3)}
.rq-note::before{content:'';position:absolute;left:0;top:1px;width:16px;height:16px;background:var(--rq-tick-green) center/16px no-repeat}
.rq-note.rq-caveat{padding-left:0}
.rq-note.rq-caveat::before{content:none}
.rq-nw{white-space:nowrap}
.rq-aside .rq-next-wrap+.rq-note{margin-top:18px}

/* Narrow layouts show "what happens next" under the form instead of in the navy panel */
.rq-narrow{display:none}
.rq-main .rq-next-wrap{margin-top:32px;padding-top:0}
.rq-main .rq-next-h{color:var(--ink-3)}
.rq-main .rq-next{border-top-color:var(--line)}
.rq-main .rq-next li{border-bottom-color:var(--line);color:var(--ink-2)}
.rq-main .rq-next li::before{background:var(--navy);color:var(--yellow)}

/* ---------- Form ---------- */
.rq-progress{display:flex;align-items:center;gap:12px;min-height:30px;margin-bottom:18px;padding-right:44px}
.rq-back{display:inline-flex;align-items:center;gap:6px;margin:-6px 4px -6px -10px;padding:7px 12px 7px 10px;border:0;border-radius:999px;background:none;font:600 14px/1.2 var(--sans);color:var(--ink-2);cursor:pointer;transition:background-color .15s,color .15s}
.rq-back:hover{background:var(--bg-2);color:var(--ink)}
.rq-count{font-size:13px;font-weight:600;color:var(--ink-3);font-variant-numeric:tabular-nums}
.rq-bars{display:flex;gap:4px}
.rq-bars i{width:24px;height:4px;border-radius:2px;background:var(--line-2);transition:background-color .3s}
.rq-bars i.on{background:var(--navy)}
.rq-step-title{padding-right:44px;font:600 24px/1.2 var(--sans);letter-spacing:-.022em;color:var(--ink);text-wrap:balance}
.rq-step-title:focus,.rq-done-title:focus{outline:none}
.rq-progress+.rq-step-title{padding-right:0}
.rq-step-sub{margin-top:6px;font-size:15px;line-height:1.5;color:var(--ink-3);text-wrap:pretty}
.rq-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 14px;margin-top:22px}
.rq-fields>.rq-field{grid-column:1/-1;min-width:0}
.rq-fields>.rq-half{grid-column:auto}

/* Choices are real radios and checkboxes (keyboard, screen readers, autofill all work); the tile is their label */
.rq-choice{min-width:0;border:0}
.rq-legend{float:left;width:100%;margin-bottom:10px;font-size:15px;font-weight:600;line-height:1.35;color:var(--ink)}
.rq-legend .rq-hint{font-weight:400;color:var(--ink-3)}
.rq-opts{clear:both;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.rq-cols-4 .rq-opts{grid-template-columns:repeat(4,minmax(0,1fr))}
.rq-cols-1 .rq-opts{grid-template-columns:minmax(0,1fr)}
.rq-cols-auto .rq-opts{display:flex;flex-wrap:wrap}
.rq-cols-auto .rq-opt-t{gap:9px;padding:10px 16px 10px 13px}
.rq-opt{position:relative;display:block;min-width:0}
.rq-opt input{position:absolute;inset:0;z-index:1;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.rq-opt-t{display:flex;align-items:center;gap:10px;height:100%;min-height:46px;padding:10px 14px;border:1px solid var(--line-2);border-radius:12px;background:var(--bg);font-size:15px;font-weight:500;line-height:1.3;color:var(--ink);transition:border-color .15s,background-color .15s,box-shadow .15s,transform .15s}
.rq-opt-t::before{content:'';flex-shrink:0;width:18px;height:18px;border:1.5px solid var(--line-ui);border-radius:50%;background:var(--bg);transition:background-color .15s,border-color .15s}
.rq-multi .rq-opt-t::before{border-radius:5px}
@media(hover:hover){.rq-opt:hover .rq-opt-t{border-color:#AEB8C5}}
.rq-opt:active .rq-opt-t{transform:scale(.99)}
.rq-opt input:checked+.rq-opt-t{border-color:var(--navy);box-shadow:inset 0 0 0 1px var(--navy);background:var(--bg-2)}
.rq-opt input:checked+.rq-opt-t::before{border-color:var(--navy);background:radial-gradient(circle,#fff 0 3px,var(--navy) 3.6px)}
.rq-multi .rq-opt input:checked+.rq-opt-t::before{background:var(--navy) var(--rq-tick-white) center/13px no-repeat}
.rq-opt input:focus-visible+.rq-opt-t{outline:2px solid var(--info);outline-offset:2px}
.rq-choice.rq-bad .rq-opt-t{border-color:#E9A79F}

.rq-lab{display:block;margin-bottom:6px;font-size:14.5px;font-weight:600;line-height:1.35;color:var(--ink)}
.rq-optional{font-weight:400;color:var(--ink-3)}
.rq-input{display:block;width:100%;min-height:48px;padding:11px 14px;border:1px solid var(--line-ui);border-radius:12px;background:var(--bg);font:400 16px/1.4 var(--sans);color:var(--ink);-webkit-appearance:none;appearance:none;transition:border-color .15s,box-shadow .15s}
.rq-input::placeholder{color:var(--ink-4);opacity:1}
@media(hover:hover){.rq-input:hover{border-color:var(--ink-4)}}
.rq-input:focus{outline:none;border-color:var(--info);box-shadow:0 0 0 3px rgba(52,81,209,.15)}
textarea.rq-input{min-height:98px;resize:vertical}
.rq-field>.rq-hint{display:block;margin-top:6px;font-size:13.5px;line-height:1.45;color:var(--ink-3)}
.rq-bad .rq-input{border-color:var(--bad)}
.rq-bad .rq-input:focus{box-shadow:0 0 0 3px rgba(180,35,24,.13)}
.rq-err{display:none;margin-top:7px;font-size:13.5px;font-weight:500;line-height:1.4;color:var(--bad)}
.rq-bad .rq-err{display:flex;align-items:flex-start;gap:6px}
.rq-bad .rq-err::before{content:'';flex-shrink:0;width:16px;height:16px;margin-top:1px;border-radius:50%;background:var(--bad-bg) var(--rq-alert-red) center/13px no-repeat}
.rq-suggest:empty{margin:0;padding:0}
.rq-suggest{margin-top:8px;padding:8px 12px;border-radius:10px;background:var(--warn-bg);font-size:14px;line-height:1.45;color:var(--ink-2);overflow-wrap:anywhere}
.rq-suggest b{font-weight:600;color:var(--ink)}
.rq-hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* ---------- Buttons, links, status ---------- */
.rq-i{display:inline-block;flex-shrink:0;width:16px;height:16px;background:currentColor;-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
.rq-i-arrow{--m:var(--rq-arrow)}.rq-i-back{--m:var(--rq-back)}.rq-i-x{--m:var(--rq-x)}.rq-i-check{--m:var(--rq-check)}.rq-i-alert{--m:var(--rq-alert)}
.rq-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:52px;padding:14px 26px;border:1px solid transparent;border-radius:999px;font:600 16px/1.2 var(--sans);letter-spacing:-.005em;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .18s,border-color .18s,color .18s,box-shadow .18s,transform .18s}
.rq-btn:active{transform:translateY(1px)}
.rq-btn .rq-i-arrow{width:15px;height:15px;transition:transform .2s var(--ease)}
@media(hover:hover){.rq-btn:hover .rq-i-arrow{transform:translateX(2px)}}
.rq-primary{background:var(--yellow);color:var(--navy);box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 1px 2px rgba(9,28,48,.18)}
.rq-primary:hover{background:var(--yellow-2)}
.rq-line{background:var(--bg);border-color:var(--line-2);color:var(--ink);box-shadow:0 1px 2px rgba(11,26,42,.05)}
.rq-line:hover{border-color:var(--line-3);background:var(--bg-2)}
.rq-submit{min-width:min(100%,232px)}
.rq-submit:disabled{cursor:progress}
.rq-submit[aria-busy="true"] .rq-i-arrow{-webkit-mask:none;mask:none;background:none;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:rq-spin .7s linear infinite}
.rq-link{padding:0;border:0;background:none;font:inherit;font-weight:600;color:var(--ink);text-align:left;text-decoration:underline;text-decoration-thickness:1px;text-decoration-color:var(--line-3);text-underline-offset:3px;cursor:pointer}
.rq-link:hover{text-decoration-color:currentColor}
.rq-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:28px}
.rq-status{margin-top:12px;font-size:14px;font-weight:500;line-height:1.45;color:var(--ink-3)}
.rq-status:empty{margin:0}
.rq-fine{margin-top:14px;font-size:13.5px;line-height:1.5;color:var(--ink-3);text-wrap:pretty}
.rq-fine a{color:var(--ink);font-weight:500;text-underline-offset:3px}

/* ---------- Sent, and when nothing got through ---------- */
.rq-mark{display:flex;align-items:center;justify-content:center;width:56px;height:56px;margin-bottom:22px;border-radius:50%}
.rq-mark .rq-i{width:26px;height:26px}
.rq-mark-ok{background:var(--ok-bg);color:var(--ok)}
.rq-mark-warn{background:var(--warn-bg);color:var(--warn)}
.rq-done-title{padding-right:44px;font:600 clamp(26px,2.6vw,32px)/1.12 var(--sans);letter-spacing:-.028em;color:var(--ink);text-wrap:balance}
.rq-done-body{margin-top:12px;font-size:16.5px;line-height:1.55;color:var(--ink-2);text-wrap:pretty}
.rq-done-body b{font-weight:600;color:var(--ink);overflow-wrap:anywhere}
.rq-book{margin-top:24px;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--bg-2)}
.rq-book .rq-fine{margin-top:10px}
.rq-tz{margin-top:16px;font-size:14.5px;line-height:1.5;color:var(--ink-3)}
.rq-more{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.rq-more-h{margin-bottom:12px;font:600 12px/1.35 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3)}
.rq-more-acts{display:flex;flex-wrap:wrap;gap:10px}
.rq-more-acts .rq-btn{min-height:44px;padding:10px 18px;font-size:15px}
.rq-done-foot{display:flex;flex-wrap:wrap;gap:8px 24px;margin-top:28px;font-size:15px}
.rq-fail-acts .rq-btn{min-width:0}
.rq-countdown{flex-basis:100%;margin-top:4px}

/* ---------- Home page: the dialog ---------- */
html.rq-lock{overflow:hidden;scrollbar-gutter:stable}
.rq-dialog{width:min(1060px,calc(100% - 48px));max-width:none;height:fit-content;max-height:none;margin:auto;padding:0;border:0;border-radius:24px;background:transparent;color:inherit;overflow:visible}
.rq-dialog::backdrop{background:rgba(5,14,26,.62);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}
.rq-dialog .rq{max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);border-radius:24px;overflow:hidden;box-shadow:0 40px 120px -30px rgba(3,12,24,.6),0 16px 40px -20px rgba(3,12,24,.45)}
.rq-dialog .rq-aside,.rq-dialog .rq-main{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.rq-dialog>.rq-x{position:absolute;top:16px;right:16px;z-index:3;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:0;border-radius:50%;background:var(--bg-2);color:var(--ink-2);cursor:pointer;transition:background-color .15s,color .15s}
.rq-dialog>.rq-x:hover{background:var(--bg-3);color:var(--ink)}
.rq-dialog>.rq-x .rq-i{width:18px;height:18px}

/* Desktop: one steady height across steps, and the main button stays in view when a step is taller than the screen */
@media(min-width:860px){
  .rq-dialog .rq{min-height:min(736px,calc(100vh - 48px));min-height:min(736px,calc(100dvh - 48px))}
  /* The sheet's bottom spacing lives in the content, not the scroll box, so the pinned button sits flush with its edge */
  .rq-dialog .rq-main{padding-bottom:0}
  .rq-dialog .rq-main>*{padding-bottom:36px}
  .rq-dialog .rq-actions{position:sticky;bottom:0;z-index:2;margin-bottom:-8px;padding:16px 0 22px;background:linear-gradient(rgba(255,255,255,0),var(--bg) 18px)}
}

/* ---------- /request: the form as a page ---------- */
body.rq-page{min-height:100vh;margin:0;background:var(--bg);font-family:var(--sans)}
.rq-page .rq{min-height:100vh;min-height:100dvh}
.rq-page .rq-aside{position:sticky;top:0;align-self:flex-start;height:100vh;height:100dvh;overflow-y:auto;padding:36px 44px 40px}
.rq-page .rq-title{font-size:clamp(32px,3.2vw,44px)}
.rq-page .rq-main{display:flex;flex-direction:column;justify-content:center;padding:clamp(48px,9vh,96px) clamp(24px,5vw,72px)}
.rq-page .rq-main>*{width:100%;margin:0 auto}
/* Before the script runs (or if it can't), a plain way to reach the team; shown only if the form doesn't appear */
.rq-fallback{max-width:560px;margin:0 auto;padding:64px 24px;font:400 17px/1.6 var(--sans);color:var(--ink-2);opacity:0;animation:rq-show 0s 2.5s forwards}
.rq-fallback img{display:block;width:98px;height:24px;margin-bottom:40px}
.rq-fallback h1{margin-bottom:12px;font-size:36px;font-weight:600;line-height:1.1;letter-spacing:-.03em;color:var(--ink)}
.rq-fallback a{color:var(--info)}
@media(scripting:none){.rq-fallback{opacity:1;animation:none}}

/* ---------- Narrow screens ---------- */
@media(max-width:859px){
  .rq-wide{display:none}
  .rq-narrow{display:block}
  .rq{flex-direction:column}
  .rq-aside{flex:0 0 auto;padding:24px 28px 26px}
  .rq-main{padding:28px 28px 34px}
  .rq-main>*{max-width:none}
  .rq-title{margin:8px 0 8px;font-size:clamp(25px,5.4vw,30px)}
  .rq-lede{font-size:15px}
  .rq-ctx{margin-top:16px;padding:12px 14px}
  .rq-ctx p{display:flex;flex-wrap:wrap;gap:2px 8px}
  .rq-ctx-k,.rq-ctx-v{display:inline}
  .rq-ctx .rq-ctx-n{display:none}
  .rq-next-wrap.rq-narrow+.rq-more{border-top:0;padding-top:0}
  /* The dialog becomes one scrolling sheet: the navy header scrolls away and leaves the screen to the form */
  .rq-dialog{width:min(640px,calc(100% - 32px))}
  .rq-dialog .rq{max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain}
  .rq-dialog .rq-aside,.rq-dialog .rq-main{overflow:visible}
  .rq-dialog .rq-aside{padding-right:68px}
  .rq-dialog>.rq-x{top:14px;right:14px;background:var(--bg);color:var(--ink);box-shadow:0 2px 10px rgba(3,12,24,.25)}
  .rq-dialog>.rq-x:focus-visible{box-shadow:0 0 0 2px var(--bg),0 2px 10px rgba(3,12,24,.25)}
  .rq-dialog>.rq-x:hover{background:var(--bg-2)}
  .rq-page .rq{min-height:0}
  .rq-page .rq-aside{position:static;height:auto;overflow:visible;padding:20px 24px 28px}
  .rq-page .rq-logo{margin-bottom:22px;padding-bottom:0}
  .rq-page .rq-title{font-size:clamp(28px,7vw,36px)}
  .rq-page .rq-main{display:block;padding:28px 24px 40px}
}
@media(max-width:600px){
  .rq-dialog{width:100%;height:100%;max-height:100%;margin:0;border-radius:0}
  .rq-dialog .rq{height:100%;max-height:none;border-radius:0}
  .rq-aside{padding:18px 20px 22px}
  .rq-dialog .rq-aside{padding-right:64px;padding-top:max(18px,env(safe-area-inset-top))}
  .rq-main,.rq-page .rq-main{padding:24px 20px calc(32px + env(safe-area-inset-bottom))}
  .rq-step-title{font-size:22px}
  .rq-fields{grid-template-columns:minmax(0,1fr);gap:20px}
  .rq-cols-4 .rq-opts{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* Chips become full-width rows: one tidy column, and every answer is a thumb-sized target */
  .rq-cols-auto .rq-opts{display:grid;grid-template-columns:minmax(0,1fr)}
  .rq-actions .rq-btn,.rq-book .rq-btn{width:100%}
  .rq-more-acts .rq-btn{flex:1 1 100%}
}
@media(max-width:380px){
  .rq-opts{grid-template-columns:minmax(0,1fr)}
  .rq-cols-4 .rq-opts{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ---------- Motion (only when the visitor hasn't asked for less) ---------- */
@keyframes rq-spin{to{transform:rotate(360deg)}}
@keyframes rq-show{to{opacity:1}}
@media(prefers-reduced-motion:no-preference){
  .rq-dialog[open]{animation:rq-in .34s var(--ease)}
  .rq-dialog[open]::backdrop{animation:rq-fade .3s ease}
  .rq-step{animation:rq-rise .36s var(--ease) both}
  @keyframes rq-in{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
  @keyframes rq-fade{from{opacity:0}to{opacity:1}}
  @keyframes rq-rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
  @media(max-width:600px){
    .rq-dialog[open]{animation:rq-up .32s var(--ease)}
    @keyframes rq-up{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
  }
}
@media print{.rq-dialog{display:none!important}}
