/* Arcalea AEO Index intake flow  shared visual system.
   Used by both the marketing-page modal and the booth kiosk shell.
   Colors/spacing pulled directly from the live arcalea.com "Ask AI" drawer. */

.flow-card{background:#fff;border-radius:16px;overflow:hidden;display:flex;flex-direction:column;font-family:"Avenir LT Std",Avenir,-apple-system,"system-ui","Segoe UI",Roboto,sans-serif}

.flow-hd{background:#101730;padding:20px 24px 18px;position:relative}
.flow-hd-top{display:flex;justify-content:space-between;align-items:flex-start}
.flow-hd .brand{display:flex;align-items:center;gap:8px}
.flow-hd .brand .star{color:#E79430;font-size:15px}
.flow-hd .brand span{font-family:Gilroy,sans-serif;font-weight:700;font-size:16px;color:#fff}
.flow-hd .close,.flow-hd-close{background:none;border:none;color:#aab4cf;font-size:20px;cursor:pointer;line-height:1;padding:0}
.flow-hd .close:hover,.flow-hd-close:hover{color:#fff}
.flow-hd .sub{font-size:12px;color:#8f9bc0;margin:6px 0 0}

.flow-body{flex:1;overflow-y:auto;padding:22px 24px 24px}

.flow-eyebrow{font-size:10.5px;font-weight:800;letter-spacing:.10em;color:#E79430;text-transform:uppercase;margin:0 0 8px;font-family:Gilroy,sans-serif}
.flow-h1{font-family:Gilroy,sans-serif;font-weight:700;font-size:20px;line-height:1.3;color:#1A2340;margin:0 0 10px}
.flow-hint{font-size:12.5px;line-height:1.6;color:#5D6C88;margin:0 0 20px}

.flow-body label{display:block;font-size:11px;font-weight:700;letter-spacing:.04em;color:#8892a8;text-transform:uppercase;margin:0 0 7px}
.flow-body input[type=text],.flow-body input[type=email]{width:100%;background:#fff;border:1px solid #E79431;border-radius:8px;padding:11px 13px;font-size:14.5px;color:#1A2340;margin-bottom:16px;outline:none;font-family:"Avenir LT Std",sans-serif;box-sizing:border-box}
.flow-body input::placeholder{color:#a7afc2}
.flow-body input:focus{border-color:#273673;box-shadow:0 0 0 3px rgba(39,54,115,.12)}
.flow-body input.invalid{border-color:#d94f4f;background:#fffafa}

.flow-btn{display:block;width:100%;text-align:center;background:#E79430;color:#273673;font-family:Gilroy,sans-serif;font-weight:800;font-size:14px;padding:13px;border-radius:8px;border:none;cursor:pointer;text-decoration:none;box-sizing:border-box}
.flow-btn:hover{background:#d9871f}
.flow-btn.ghost{background:#fff;color:#5D6C88;border:1px solid #E1E8F0;font-weight:700}
.flow-btn.ghost:hover{background:#FAFBFD}
.flow-btn[disabled]{opacity:.6;cursor:default}

.flow-spinner-wrap{text-align:center;padding:50px 10px}
.flow-spinner{width:38px;height:38px;border-radius:50%;border:3px solid #E1E8F0;border-top-color:#E79431;margin:0 auto 18px;animation:flow-spin .9s linear infinite}
@keyframes flow-spin{to{transform:rotate(360deg)}}
.flow-spin-text{color:#5D6C88;font-size:13px}

.flow-ai-badge{display:inline-flex;align-items:center;gap:6px;background:#eef6fc;color:#2f7fb0;font-size:10.5px;font-weight:700;padding:5px 10px;border-radius:20px;margin-bottom:14px}
.flow-ai-badge .dot{width:5px;height:5px;border-radius:50%;background:#56AEE3}
/* Shown when the site could not be read, so the panel never implies an AI guess it did not make. */
.flow-ai-badge.warn{background:#fdf3e6;color:#b06a12}
.flow-ai-badge.warn .dot{background:#E79430}

.flow-lookup-note{font-size:12px;line-height:1.55;color:#b06a12;background:#fdf3e6;border:1px solid #f5ddb8;border-radius:8px;padding:9px 12px;margin:0 0 14px}

.flow-guess-card{background:#FAFBFD;border:1px solid #E1E8F0;border-radius:10px;padding:14px 15px;margin-bottom:12px}
.flow-guess-card .gl{font-size:10.5px;font-weight:700;letter-spacing:.05em;color:#8892a8;text-transform:uppercase;margin:0 0 4px}
.flow-guess-card .gv{font-size:14.5px;font-weight:700;color:#1A2340;margin:0 0 10px}
.flow-guess-card .gv.empty{color:#a7afc2;font-weight:400;font-style:italic}
.flow-guess-actions{display:flex;gap:7px}
.flow-chip{flex:1;text-align:center;font-size:11.5px;font-weight:700;padding:8px 0;border-radius:16px;cursor:pointer;border:1px solid #E1E8F0;background:#FAFBFD;color:#1A2340}
.flow-chip:hover{background:#f1f5fa}
.flow-chip.yes.selected{background:#2ec785;color:#fff;border-color:#2ec785}
.flow-chip.edit.selected{background:#fdf3e6;color:#b06a12;border-color:#f5ddb8}
.flow-edit-field{margin-top:9px;display:none}
.flow-edit-field.show{display:block}
.flow-edit-field input{margin-bottom:0}

/* Inline validation copy. */
.flow-err,.flow-card-err{display:none;font-size:11.5px;color:#d94f4f;margin:-10px 0 14px;line-height:1.45}
.flow-card-err{margin:9px 0 0}

.flow-step{display:none}
.flow-step.active{display:block;animation:flow-fade .3s ease}
@keyframes flow-fade{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}

/* Consent row: checkbox beside its label, not stacked under an uppercase heading. */
.flow-consent{display:flex;align-items:flex-start;gap:9px;margin:2px 0 16px}
.flow-consent input{width:auto;margin:2px 0 0;flex:0 0 auto;border-color:#E1E8F0}
.flow-consent span{font-size:12px;line-height:1.5;color:#5D6C88}

.flow-scheduler-frame{width:100%;height:400px;border:1px solid #E1E8F0;border-radius:10px;overflow:hidden;margin-bottom:14px;background:#FAFBFD}
.flow-scheduler-frame iframe{width:100%;height:100%;border:0;display:block}
.flow-notice{background:#eef6fc;border:1px solid #d7ecf9;border-radius:8px;padding:10px 13px;font-size:12px;color:#2f6690;line-height:1.5;margin-bottom:16px}
.flow-booked-note{display:none;background:#eafaf2;border:1px solid #bfe9d4;border-radius:8px;padding:10px 13px;font-size:12px;color:#1e7a52;line-height:1.5;margin-bottom:14px}

/* Offline / failed-submit safety net. A booth loses wifi; a lead should not be lost with it. */
.flow-fallback{display:none;background:#fdf3e6;border:1px solid #f5ddb8;border-radius:10px;padding:12px 14px;margin:0 0 16px}
.flow-fallback p{font-size:12px;line-height:1.55;color:#b06a12;margin:0 0 9px}
.flow-fallback pre{background:#fff;border:1px solid #f0e0c4;border-radius:6px;padding:10px;font-size:11px;line-height:1.5;color:#5D6C88;white-space:pre-wrap;word-break:break-word;max-height:150px;overflow:auto;margin:0 0 9px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.flow-fallback a{color:#b06a12;font-weight:700;font-size:12px}

.flow-check-hero{width:56px;height:56px;border-radius:50%;background:#E79430;display:flex;align-items:center;justify-content:center;margin:6px auto 18px}
.flow-check-hero svg{width:28px;height:28px}
.flow-center{text-align:center}
.flow-dim{color:#5D6C88;font-size:13.5px;line-height:1.65}
.flow-dim b{color:#1A2340}

/* Progress track. The inactive segment must read as an empty track on the white body:
   a dark navy fill here made all six steps look complete. */
.flow-dots{display:flex;gap:5px;margin-bottom:14px}
.flow-dots div{height:3px;flex:1;background:#E1E8F0;border-radius:3px}
.flow-dots div.on{background:#E79430}

/* ===== injected shells =====
   The script self-injects one of these two hosts, so a page needs only a script tag.
   Namespaced with an aeo- prefix: the arcalea-2026 theme styles bare class names like .nav,
   so anything generic here would collide with the site chrome. */

.aeo-intake-scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(10,15,30,.5);opacity:0;visibility:hidden;transition:opacity .25s;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:24px}
.aeo-intake-scrim.open{opacity:1;visibility:visible}
.aeo-intake-card{width:520px;max-width:100%;max-height:88vh;transform:scale(.96);opacity:0;transition:transform .25s,opacity .25s;box-shadow:0 40px 90px -20px rgba(0,0,0,.5)}
.aeo-intake-scrim.open .aeo-intake-card{transform:scale(1);opacity:1}

.aeo-kiosk-host{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(160deg,#0C1428,#162050 55%,#273673)}
.aeo-kiosk-host .kiosk-card{width:460px;max-width:100%;min-height:620px;box-shadow:0 40px 100px -20px rgba(0,0,0,.5)}
.aeo-staff-reset{position:fixed;top:14px;right:14px;background:rgba(255,255,255,.08);color:#8f9bc0;border:1px solid rgba(255,255,255,.15);font-size:11px;font-family:Gilroy,sans-serif;font-weight:700;padding:7px 13px;border-radius:20px;cursor:pointer;letter-spacing:.03em}
.aeo-staff-reset:hover{background:rgba(255,255,255,.14)}

@media (max-width:560px){
  .aeo-intake-scrim{padding:0}
  .aeo-intake-card{max-height:100vh;border-radius:0;height:100vh}
}

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion:reduce){
  .flow-step.active{animation:none}
  .flow-spinner{animation-duration:2s}
}

/* Narrow screens: the modal should use the room it has. */
@media (max-width:560px){
  .flow-body{padding:18px 17px 20px}
  .flow-h1{font-size:18px}
  .flow-scheduler-frame{height:330px}
  .flow-guess-actions{flex-direction:column}
}
