/* Website forms (assets/js/forms.js): fields, errors, busy and sent states.
 * The form itself is the white .nx-form card in both themes, so the states
 * inside it use fixed ink colours; only the card edge changes with the theme. */

.oii-form{color-scheme:light;--oii-ink:#14171B;--oii-ink2:#3B4250;--oii-mute:#5B6270;--oii-navy:#3B3E72;--oii-navy2:#4A4E8C;--oii-bad:#9B2C20;--oii-badbg:#FBF1EF;position:relative}
.oii-form .row{gap:18px 20px}
.oii-form label{color:var(--oii-ink);min-width:0}
.oii-form .oii-lt{display:block;font-size:13px;font-weight:700;letter-spacing:.01em;line-height:1.35}
.oii-form .req{color:var(--oii-navy2);font-weight:800}
.oii-form .opt{font-weight:500;color:var(--oii-mute)}
.oii-form .hint{display:block;font-weight:500;font-size:12.5px;color:var(--oii-mute);margin-top:2px}
.oii-form input:not([type=checkbox]),.oii-form select,.oii-form textarea{width:100%;min-width:0;box-sizing:border-box;min-height:46px;border:1px solid #8B93A1;background-color:#fff;color:var(--oii-ink)}
.oii-form textarea{min-height:130px;line-height:1.5}
.oii-form select{appearance:none;-webkit-appearance:none;padding-right:40px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2314171B' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 14px center;background-size:12px 8px}
.oii-form input::placeholder,.oii-form textarea::placeholder{color:#7A818E;opacity:1}
.oii-form input:focus,.oii-form select:focus,.oii-form textarea:focus{outline:2px solid var(--oii-navy2);outline-offset:0;border-color:var(--oii-navy2)}
.oii-form .chk{flex-direction:row;align-items:flex-start;gap:12px;font-weight:500;font-size:14px;line-height:1.5}
.oii-form .chk .oii-lt{font-weight:600;font-size:14px}
.oii-form .chk input{flex:none;width:20px;height:20px;margin:1px 0 0;accent-color:var(--oii-navy2)}
.oii-form .chk .oii-ferr{flex-basis:100%}
.oii-form .chk.oii-bad{flex-wrap:wrap}
.oii-form .foot{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px 24px;margin-top:22px}
.oii-form .foot p{flex:1 1 280px;margin:0;font-size:13px;line-height:1.55;color:var(--oii-mute);max-width:60ch}
.oii-form .foot p a{color:var(--oii-navy);text-decoration:underline;text-underline-offset:2px}
.oii-form .foot .nx-btn{border:0;cursor:pointer;font-family:inherit;font-weight:800;min-width:150px;justify-content:center;flex:none}

/* Honeypot: off screen for people, still in the form for bots. */
.oii-hp{position:absolute!important;left:-10000px!important;top:auto;width:1px;height:1px;overflow:hidden}

/* Errors */
.oii-form [aria-invalid=true]{border-color:var(--oii-bad)!important;background-color:var(--oii-badbg)!important;box-shadow:inset 3px 0 0 var(--oii-bad)}
.oii-form .chk [aria-invalid=true]{outline:2px solid var(--oii-bad);outline-offset:2px;box-shadow:none}
.oii-ferr{display:block;font-size:13px;font-weight:700;line-height:1.4;color:var(--oii-bad)}
.oii-fsum{margin:0 0 22px;padding:14px 18px 14px 16px;border-left:4px solid var(--oii-bad);background:var(--oii-badbg);color:var(--oii-ink)}
.oii-fsum:focus{outline:2px solid var(--oii-bad);outline-offset:2px}
.oii-fsum-h{margin:0 0 6px;font-weight:800;font-size:15px}
.oii-fsum ul{margin:0;padding-left:18px}
.oii-fsum li{margin:3px 0;font-size:14px}
.oii-fsum a{color:var(--oii-ink);text-decoration:underline;text-underline-offset:2px}
.oii-fnote{margin:16px 0 0;padding:12px 16px;border-left:4px solid var(--oii-bad);background:var(--oii-badbg);color:var(--oii-ink);font-size:14px;line-height:1.55}
.oii-fnote a{color:var(--oii-navy);font-weight:700;text-decoration:underline}

/* Busy button */
.oii-form .nx-btn.is-busy{cursor:progress;opacity:.85}
.oii-form .nx-btn.is-busy::before{content:'';width:14px;height:14px;margin-right:10px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:oii-spin .8s linear infinite;flex:none}
.oii-form .nx-btn:disabled{pointer-events:none}
@keyframes oii-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.oii-form .nx-btn.is-busy::before{animation:none;border-right-color:currentColor;opacity:.6}}

/* Sent panel (replaces the form) */
.oii-done{color-scheme:light;background:#fff;color:#14171B;padding:clamp(24px,3.4vw,40px);max-width:880px;margin:0 auto;border-top:6px solid #3B3E72;box-sizing:border-box;width:100%}
.oii-done:focus{outline:none}
.oii-done:focus-visible{outline:2px solid #4A4E8C;outline-offset:3px}
.oii-done-k{margin:0;font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#3B3E72}
.oii-done-t{margin:10px 0 12px;font-family:var(--nx-disp,ArchivoBlack,Arial,sans-serif);font-weight:400;text-transform:uppercase;font-size:clamp(22px,2.6vw,30px);line-height:1.1;color:#1B1E3F}
.oii-done p{margin:0 0 10px;font-size:16px;line-height:1.6;color:#3B4250;max-width:60ch}
.oii-done .oii-done-ref{font-size:13.5px;color:#5B6270}
.oii-done .oii-done-ref b{color:#14171B;letter-spacing:.03em}
.oii-again{margin-top:8px;padding:0;border:0;background:none;font:inherit;font-weight:700;font-size:14px;color:#3B3E72;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.oii-again:hover{color:#14171B}

html:not([data-theme="light"]) .oii-done{box-shadow:0 40px 80px -48px rgba(0,0,0,.85)}
html[data-theme="light"] .oii-done{box-shadow:0 0 0 1px rgba(20,23,27,.14)}

/* Inside dark bands the site turns buttons and headings white; the card keeps its own ink. */
body.nx main .nx-band .oii-form .nx-btn{background:#3B3E72;color:#fff!important}
body.nx main .nx-band .oii-form .nx-btn:hover{background:#2A2D55}
body.nx .oii-done .oii-done-t{color:#1B1E3F!important}
body.nx .oii-done p{color:#3B4250!important}
body.nx .oii-done .oii-done-k{color:#3B3E72!important}

/* Placement helpers for pages that gained a form */
.oii-formsec .nx-form,.oii-formsec .oii-done{margin-top:clamp(20px,3vw,32px)}
.nx-band .oii-form,.nx-band .oii-done{margin-top:clamp(22px,3vw,34px)}
.oii-form.oii-wide{max-width:none}

@media (max-width:640px){
  .oii-form .row{grid-template-columns:minmax(0,1fr)!important}
  .oii-form .foot .nx-btn{width:100%}
}
