/* Opifex wiring for the Odean site: request form states + website chat widget. Uses the site's own colour tokens. */
.form-err { color: #ff8f8f; font-weight: 600; font-size: 0.92rem; min-height: 1.2em; margin: 0; }
.form-err:empty { min-height: 0; }
.form-ok { text-align: center; padding: 8px 0; }
.form-ok h3 { font-size: 1.4rem; margin-bottom: 8px; }
.form-ok p { color: var(--muted); margin: 6px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.consent input { margin-top: 3px; width: 20px; height: 20px; flex: none; accent-color: var(--blue); }
.book-band { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book-band .quote-form { max-width: 760px; margin: 24px auto 0; }
.legal a { color: var(--muted); }
.legal .legal-links { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 6px; }

.oc-fab { position: fixed; right: 16px; bottom: 16px; z-index: 95; border: 0; border-radius: 999px; min-height: 54px; padding: 0 22px; font: 700 1rem var(--font-body); color: #fff; cursor: pointer; display: flex; align-items: center; gap: 10px; background: linear-gradient(180deg, var(--blue-2), var(--blue) 60%, #1450d1); box-shadow: 0 14px 34px -12px #000, 0 0 0 1px rgba(255,255,255,.2), var(--glow); }
.oc-fab .dot { width: 10px; height: 10px; border-radius: 50%; background: #3be08c; box-shadow: 0 0 0 3px rgba(255,255,255,.35); }
.oc-fab .badge { min-width: 22px; height: 22px; border-radius: 999px; background: #fff; color: #0b1326; font: 800 .78rem/22px var(--font-body); text-align: center; padding: 0 6px; }
.oc-chat { position: fixed; right: 16px; bottom: 82px; z-index: 96; width: min(390px, calc(100vw - 32px)); height: min(580px, calc(100vh - 150px)); background: var(--card); border-radius: 20px; border: 1px solid var(--line-strong); box-shadow: 0 30px 70px -20px #000, var(--glow); display: flex; flex-direction: column; overflow: hidden; }
.oc-chat[hidden] { display: none; }
.oc-top { background: linear-gradient(120deg, #12285a, #1450d1); padding: 12px 12px 12px 16px; display: flex; align-items: center; gap: 12px; }
.oc-top b { display: block; font-family: var(--font-display); font-weight: 400; letter-spacing: .02em; }
.oc-top small { opacity: .9; font-size: .82rem; }
.oc-av { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: #1450d1; display: grid; place-items: center; font: 400 1.25rem var(--font-display); flex: none; }
.oc-top button { margin-left: auto; background: transparent; border: 0; color: #fff; font-size: 1.8rem; cursor: pointer; min-width: 44px; min-height: 44px; }
.oc-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.oc-msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: .97rem; line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; }
.oc-msg.bot { background: #14213f; border-bottom-left-radius: 4px; align-self: flex-start; }
.oc-msg.me { background: linear-gradient(180deg, var(--blue-2), var(--blue)); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 600; }
.oc-msg.owner { background: var(--card-2); box-shadow: inset 0 0 0 1.5px var(--blue-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.oc-msg .who { display: block; font-size: .75rem; color: var(--blue-3); font-weight: 800; }
.oc-msg.typing { display: flex; gap: 4px; padding: 14px; }
.oc-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-3); opacity: .5; animation: oc-b 1s infinite; }
.oc-msg.typing span:nth-child(2) { animation-delay: .15s; } .oc-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes oc-b { 50% { opacity: 1; transform: translateY(-3px); } }
.oc-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 10px; }
.oc-chips:empty { display: none; }
.oc-chips button { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); border: 0; color: var(--text); border-radius: 999px; min-height: 44px; padding: 6px 14px; font: 600 .88rem var(--font-body); cursor: pointer; }
.oc-chips button:disabled, .oc-compose button:disabled { opacity: .5; cursor: default; }
.oc-compose { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.oc-compose input { flex: 1; border-radius: 999px; min-height: 48px; padding: 0 16px; background: #0a1124; border: 1px solid var(--line-strong); color: var(--text); font: 1rem var(--font-body); }
.oc-compose button { background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 0 20px; min-height: 48px; font-weight: 700; cursor: pointer; }
.oc-form input[type=text], .oc-form input[type=tel] { width: 100%; margin-bottom: 6px; min-height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: #0a1124; color: var(--text); padding: 0 12px; font: 1rem var(--font-body); }
.oc-form .row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.oc-form .go { background: var(--blue); color: #fff; border: 0; border-radius: 999px; min-height: 44px; padding: 0 18px; font-weight: 700; cursor: pointer; }
.oc-form .no { background: transparent; border: 0; color: var(--muted); text-decoration: underline; min-height: 44px; cursor: pointer; font: inherit; }
.oc-form .ferr { color: #ff8f8f; font-size: .85rem; margin: 2px 0; }
.oc-form label.sms { display: flex; gap: 8px; font-size: .78rem; color: var(--muted); align-items: flex-start; }
.oc-form label.sms input { margin-top: 2px; flex: none; }
@media (max-width: 760px) {
  .oc-fab { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .oc-chat { right: 8px; width: calc(100vw - 16px); bottom: calc(148px + env(safe-area-inset-bottom)); height: min(560px, calc(100vh - 230px)); }
}
@media (prefers-reduced-motion: reduce) { .oc-msg.typing span { animation: none; } }
