/* Inquiry flow at /inquire/. Built on the shared Alt 1 kit (/css/tokens.css, /css/kit.css):
   .btn, .field and .progress come from the kit unchanged. New here are only the step shell and
   the lettered choice control. Every color, radius, duration and easing is a kit variable. */

/* Inter, self-hosted. The same four files and rules as /css/site.css, which this page does not load. */
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url("/fonts/inter-regular.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/inter-medium.woff2") format("woff2")}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url("/fonts/inter-semibold.woff2") format("woff2")}
@font-face{font-family:"Inter Display";font-style:normal;font-weight:500;font-display:swap;src:url("/fonts/interdisplay-medium.woff2") format("woff2")}

.inq{min-height:100dvh;display:grid;grid-template-rows:auto 1fr}

.inq-top{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);
  padding:0 max(var(--gutter),env(safe-area-inset-right)) 0 max(var(--gutter),env(safe-area-inset-left))}
.inq-brand{display:inline-flex;align-items:center;min-height:44px;border-radius:var(--r-8)}
.inq-brand img{height:22px;width:auto}

.inq-main{display:grid;align-content:start;justify-items:center;
  padding:clamp(24px,8dvh,96px) var(--gutter) calc(96px + env(safe-area-inset-bottom))}
.inq-form{width:100%;max-width:640px;display:grid;gap:24px}
.inq-note{max-width:640px;margin:0;color:var(--text-2)}

/* Honeypot: kept out of sight and out of the tab order; people never fill it. */
.inq-trap{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Step shell. A step change fades the area out in 60 ms and in over 90 ms (150 ms in all). */
.inq-area{transition:opacity 90ms var(--e-out),transform 90ms var(--e-out)}
.inq-area.is-out{opacity:0;transform:translateY(4px);transition-duration:60ms;transition-timing-function:var(--e-ui)}
.inq-step{display:grid;gap:16px}
.inq-step h1{margin:0;font:500 var(--fs-title)/var(--lh-title) var(--font-display);letter-spacing:-.01em;text-wrap:balance;outline:none}
.inq-step h1 label{display:block}
.inq-hint{margin:-8px 0 0;font:400 var(--fs-body)/var(--lh-body) var(--font);color:var(--text-2)}
.inq-lead{margin:-8px 0 8px;font:400 var(--fs-lead)/var(--lh-lead,30px) var(--font);color:var(--text-2)}
.inq-opt{font-weight:400;color:var(--text-2)}

/* Fields: the kit .field at a size that reads as the one question on the screen. */
.inq-fields{display:grid;gap:16px}
.inq-step .field input,.inq-step .field textarea{height:48px;padding:0 14px;font-size:var(--fs-body);line-height:var(--lh-body)}
.inq-step .field textarea{height:auto;min-height:120px;max-height:40dvh;padding:12px 14px;resize:vertical}
.inq-step .field textarea:hover{box-shadow:inset 0 0 0 1px rgba(31, 28, 25, .28)}
.inq-step .field textarea:focus{box-shadow:inset 0 0 0 1px var(--ink),0 0 0 3px var(--wash-3)}
.inq-step .field [aria-invalid=true]{box-shadow:inset 0 0 0 1px var(--error)}

/* Errors: ink text with a mark, never color alone (BI-222). Empty until there is something to say. */
.inq-error{margin:0;font:400 var(--fs-small)/var(--lh-small) var(--font);color:var(--ink)}
.inq-error:empty{display:none}
.inq-error::before,.inq-status::before{content:"!";display:inline-grid;place-items:center;width:16px;height:16px;margin-right:8px;border-radius:50%;
  background:var(--wash-3);font:600 var(--fs-caption)/1 var(--font)}
.inq-status{margin:0;font:400 var(--fs-small)/var(--lh-small) var(--font);color:var(--ink);outline:none}
.inq-status:empty{display:none}

/* Lettered choice control. */
.inq-choices{display:grid;gap:8px}
.inq-choices button{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:12px 16px;border:0;border-radius:var(--r-8);
  background:var(--raised);color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-s);font:400 var(--fs-body)/var(--lh-body) var(--font);
  text-align:left;cursor:pointer;
  transition:background-color var(--d-fast) var(--e-ui),box-shadow var(--d-fast) var(--e-ui),transform var(--d-fast) var(--e-ui)}
.inq-choices button:hover{background:var(--wash-1)}
.inq-choices button:active{transform:scale(.97)}
.inq-choices button[aria-pressed=true]{background:var(--accent-tint);box-shadow:inset 0 0 0 1px var(--ink)}
.inq-key{flex:none;width:20px;font:500 var(--fs-small)/var(--lh-body) var(--font);color:var(--text-2);font-variant-numeric:tabular-nums}
.inq-choices button[aria-pressed=true] .inq-key{color:var(--ink)}
/* Check mark on the chosen option (Lucide check, drawn as a mask so it takes the ink color). */
.inq-choices button::after{content:"";flex:none;width:20px;height:20px;margin-left:auto;background:var(--ink);opacity:0;
  -webkit-mask:url("/inquire/check.svg") center/contain no-repeat;
  mask:url("/inquire/check.svg") center/contain no-repeat;
  transition:opacity var(--d-fast) var(--e-ui)}
.inq-choices button[aria-pressed=true]::after{opacity:1}

/* Attachment row under the project answer. */
.inq-attach{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}
.inq-attach .btn{min-height:44px}
.inq-attach .msg{flex-basis:100%;margin:0;font:400 var(--fs-caption)/var(--lh-caption) var(--font);color:var(--text-2)}
.inq-file{margin:0;min-width:0;font:400 var(--fs-small)/var(--lh-small) var(--font);color:var(--ink);overflow-wrap:anywhere}
.inq-file:empty{display:none}

.inq-challenge{min-height:65px}
.inq-challenge:empty{min-height:0}

/* Actions under the question. */
.inq-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px}
.inq-enter{font:400 var(--fs-small)/var(--lh-small) var(--font);color:var(--text-2)}
.inq-actions #skip{margin-left:auto;min-height:44px}

/* Footer bar: Back, the counter and the progress bar stay in one place on every screen. */
.inq-foot{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:auto auto 1fr;align-items:center;gap:16px;
  padding:12px max(var(--gutter),env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(var(--gutter),env(safe-area-inset-left));
  background:var(--paper);box-shadow:inset 0 1px 0 var(--line-q)}
.inq-foot #back{min-height:44px;min-width:64px}
.inq-count{font:400 var(--fs-small)/var(--lh-small) var(--font);color:var(--text-2);font-variant-numeric:tabular-nums;min-width:48px}
.inq-progress{max-width:none;width:100%}
.inq-progress i{transition:width var(--d-move) var(--e-out)}

@media (max-width:599px){
  .inq-enter{display:none}
  .inq-actions .btn.lg{flex:1 1 auto}
  .inq-actions #skip{margin-left:0}
}
@media (hover:none){.inq-enter{display:none}}

@media (prefers-reduced-motion:reduce){
  .inq-area,.inq-area.is-out{transition:none;transform:none;opacity:1}
  .inq-choices button:active{transform:none}
  .inq-progress i{transition:none}
}
