/* exploration-form.css — extends the established lsi-form.css identity.
   Palette stays in the NS-government register: navy #003366, gold #C9A227,
   ink #1b2733, paper #ffffff, mist #f4f6f8. The readiness panel is the one
   place we spend any boldness. */

:root {
    --ns-navy: #003366;
    --ns-gold: #c9a227;
    --ink: #1b2733;
    --mist: #f4f6f8;
    --line: #d8dee5;
    --ready: #1f7a4d;
    --approvals: #b5731a;
    --blocked: #a32a2a;
}

.form-root { font-family: Georgia, "Times New Roman", serif; color: var(--ink); background: var(--mist); min-height: 100vh; }

/* Header + hero reuse the established treatment */
.form-header { background: #fff; border-bottom: 3px solid var(--ns-gold); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.gov-wordmark { display: flex; align-items: center; gap: 12px; }
.wordmark-text { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-top { font-size: 12px; letter-spacing: .04em; color: #5a6573; }
.wordmark-bottom { font-size: 16px; font-weight: 700; color: var(--ns-navy); }
.form-ref { font-family: ui-monospace, monospace; font-size: 12px; color: #5a6573; }
.hero-band { background: var(--ns-navy); color: #fff; }
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 28px 24px; }
.hero-title { margin: 0; font-size: 26px; }
.hero-subtitle { margin: 6px 0 0; color: #c5d2e0; font-size: 15px; }

.form-main { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; }

/* Three-column working layout: rail · body · readiness */
.form-grid { display: grid; grid-template-columns: 200px 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 980px) { .form-grid { grid-template-columns: 1fr; } }

/* Step rail */
.step-rail { display: flex; flex-direction: column; gap: 2px; }
.step { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: none; border: none;
        border-left: 3px solid transparent; cursor: pointer; text-align: left; font-family: inherit; color: #5a6573; }
.step--active { border-left-color: var(--ns-gold); color: var(--ns-navy); background: #fff; }
.step--done { color: var(--ready); }
.step-num { width: 24px; height: 24px; border-radius: 50%; background: #e7ecf1; color: inherit;
            display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.step--active .step-num { background: var(--ns-navy); color: #fff; }
.step-label { font-size: 14px; }

/* Readiness status — the "in progress" bar, moved to the top so it's the first
   thing visible instead of buried in the right-hand panel. */
.readiness-top { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--ns-navy);
                  padding: 14px 20px; margin-bottom: 24px; }
.readiness-top--ready { border-left-color: var(--ready); }
.readiness-top--approvals { border-left-color: var(--approvals); }
.readiness-top--blocked { border-left-color: var(--blocked); }
.readiness-top-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.readiness-top-label { font-weight: 700; font-size: 16px; }
.readiness-top--ready .readiness-top-label { color: var(--ready); }
.readiness-top--approvals .readiness-top-label { color: var(--approvals); }
.readiness-top--blocked .readiness-top-label { color: var(--blocked); }
.readiness-top--progress .readiness-top-label { color: #5a6573; }
.readiness-top-pct { font-size: 13px; color: #5a6573; }

/* Body */
.step-body { background: #fff; border: 1px solid var(--line); padding: 24px; }
.step-title { margin: 0 0 16px; font-size: 20px; color: var(--ns-navy); }
.fld { display: block; margin-bottom: 14px; }
.fld > span { display: block; font-size: 13px; color: #44505d; margin-bottom: 5px; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line);
            font-family: inherit; font-size: 15px; background: #fff; }
.fld textarea { resize: vertical; }
.chk { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; font-size: 14px; }
.chk input { margin-top: 3px; }
.activities { border: 1px solid var(--line); padding: 12px 14px; margin: 0 0 14px; }
.activities legend { font-size: 13px; color: #44505d; padding: 0 6px; }
.hint { font-size: 13px; color: #6b7682; font-style: italic; }

.nav-row { display: flex; justify-content: space-between; margin-top: 20px; }
.btn-primary { display: inline-block; background: var(--ns-navy); color: #fff; border: none; padding: 10px 20px;
               font-family: inherit; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn-primary:disabled { background: #9aa6b2; cursor: not-allowed; }
.btn-ghost { background: none; border: 1px solid var(--line); padding: 10px 20px; font-family: inherit;
             font-size: 15px; cursor: pointer; color: var(--ink); }

/* ---- Signature: live permitting-readiness panel (triggers + instruments only —
   the status/percent bar now lives at the top, see .readiness-top) ---- */
.readiness { position: sticky; top: 20px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--ns-navy); padding: 18px; }
.readiness-meter { height: 6px; background: #e7ecf1; margin: 10px 0 0; }
.readiness-meter-fill { height: 100%; background: var(--ns-gold); transition: width .25s ease; }

.readiness-h { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #6b7682;
               border-bottom: 1px solid var(--line); padding-bottom: 5px; margin: 16px 0 8px; }
.readiness-item { display: flex; flex-direction: column; gap: 1px; padding: 7px 0 7px 11px; border-left: 3px solid var(--line); margin-bottom: 6px; }
.readiness-item strong { font-size: 13px; }
.readiness-item span { font-size: 12px; color: #6b7682; }
.readiness-item--required { border-left-color: var(--approvals); }
.readiness-item--blocking { border-left-color: var(--blocked); }
.readiness-item--warning { border-left-color: var(--ns-gold); }
.readiness-item--info { border-left-color: var(--ready); }

/* Confirmation */
.confirm-card { max-width: 560px; margin: 40px auto; background: #fff; border: 1px solid var(--line); padding: 36px; text-align: center; }
.confirm-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ready); color: #fff; font-size: 28px;
                display: grid; place-items: center; margin: 0 auto 16px; }
.confirm-title { color: var(--ns-navy); margin: 0 0 8px; }
.confirm-ref { font-family: ui-monospace, monospace; }
.confirm-body { margin: 0 0 16px; line-height: 1.5; }
.confirm-download { margin-top: 8px; }
.claim-map {
    height: 380px;
    border: 1px solid var(--line);
    margin-bottom: 14px;
}

/* ---- Field help tooltip ---- */
.info-tip { position: relative; display: inline-block; margin-left: 5px; vertical-align: middle; }
.info-tip-icon { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px;
                 border-radius: 50%; background: #e7ecf1; color: #5a6573; font-size: 11px; font-weight: 700;
                 font-family: ui-sans-serif, system-ui, sans-serif; cursor: help; }
.info-tip-bubble {
    position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20;
    width: 260px; background: var(--ns-navy); color: #fff; padding: 10px 12px;
    border-radius: 4px; font-size: 12.5px; font-style: normal; line-height: 1.45;
    font-family: ui-sans-serif, system-ui, sans-serif;
    opacity: 0; visibility: hidden; transform: translateY(4px);
    transition: opacity .15s ease, transform .15s ease;
    pointer-events: none;
}
.info-tip:hover .info-tip-bubble,
.info-tip:focus .info-tip-bubble,
.info-tip:focus-within .info-tip-bubble { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---- Intake help chat widget ---- */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 40;
               font-family: ui-sans-serif, system-ui, sans-serif; }
.chat-toggle { width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--ns-navy);
               color: #fff; font-size: 22px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25);
               display: flex; align-items: center; justify-content: center; margin-left: auto; }
.chat-panel { width: 320px; max-height: 440px; background: #fff; border: 1px solid var(--line);
              border-radius: 8px; box-shadow: 0 8px 28px rgba(0,0,0,.2); margin-bottom: 12px;
              display: flex; flex-direction: column; overflow: hidden; }
.chat-panel-head { background: var(--ns-navy); color: #fff; padding: 10px 14px; font-size: 13px; font-weight: 700;
                    display: flex; align-items: center; justify-content: space-between; }
.chat-close { background: none; border: none; color: #fff; cursor: pointer; font-size: 13px; padding: 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px;
            min-height: 160px; max-height: 300px; }
.chat-hint { font-size: 12.5px; color: #6b7682; font-style: normal; margin: 0; line-height: 1.5; }
.chat-turn { font-size: 13px; line-height: 1.45; padding: 8px 10px; border-radius: 6px; max-width: 90%; }
.chat-turn--user { align-self: flex-end; background: var(--ns-navy); color: #fff; }
.chat-turn--assistant { align-self: flex-start; background: var(--mist); color: var(--ink); }
.chat-turn--thinking { color: #6b7682; font-style: italic; }
.chat-input-row { display: flex; border-top: 1px solid var(--line); }
.chat-input-row input { flex: 1; border: none; padding: 10px 12px; font-family: inherit; font-size: 13px; }
.chat-input-row input:focus { outline: none; }
.chat-input-row .btn-primary { padding: 10px 16px; font-size: 13px; }
