/* Hidden voice credit application. Mobile first. */
.voice-app { max-width: 40rem; margin: 0 auto; padding: 1rem; font-size: 1.05rem; }
.voice-app h1 { font-size: 1.6rem; margin: .25rem 0 .5rem; }
.voice-test-banner, .voice-draft { display: inline-block; background: #fff3cd; color: #7a4b00; border: 1px solid #e0b84c; border-radius: 6px; padding: .2rem .6rem; font-weight: 700; font-size: .85rem; }
.voice-note, .voice-unsupported { color: #555; font-size: .95rem; }
.voice-buttons { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0; }
.voice-btn { flex: 1 1 8rem; min-height: 3rem; font-size: 1.05rem; border-radius: 10px; border: 2px solid #7a1c2e; background: #fff; color: #7a1c2e; font-weight: 700; cursor: pointer; padding: .4rem .8rem; touch-action: manipulation; }
.voice-btn-primary { background: #7a1c2e; color: #fff; }
.voice-btn-small { flex: 0 0 auto; min-height: 2.6rem; font-size: .95rem; }
/* Fixed under the sticky site header (--voice-top set by JS) so it follows the applicant down the form. */
.voice-bar { position: fixed; top: var(--voice-top, 0px); left: 0; right: 0; z-index: 35; background: #fff; border-bottom: 2px solid #7a1c2e; padding: .45rem .7rem .5rem; box-shadow: 0 4px 14px rgba(0,0,0,.15); }
.voice-bar > * { max-width: 40rem; margin-left: auto; margin-right: auto; }
.voice-app.has-bar { padding-top: calc(var(--voice-bar-h, 0px) + .5rem); }
.voice-app.has-bar .voice-field, .voice-app.has-bar .voice-review { scroll-margin-top: calc(var(--voice-top, 0px) + var(--voice-bar-h, 0px) + 12px); }
.voice-controls { display: grid; grid-template-columns: repeat(5, 1fr); gap: .3rem; margin-top: .35rem; }
.voice-controls .voice-btn { min-height: 2.6rem; font-size: .85rem; padding: .2rem .15rem; border-radius: 8px; flex: none; }
.voice-hint { margin: .15rem 0 0; font-size: .8rem; color: #555; }
@media (min-width: 640px) { .voice-controls .voice-btn { font-size: 1rem; } }
.voice-question { font-size: 1.05rem; font-weight: 700; margin: 0 0 .3rem; }
.voice-heard { min-height: 1.3em; color: #1d5e2b; margin: 0; }
.voice-app.is-listening .voice-question::before { content: "🎤 "; }
.voice-form { display: grid; gap: .8rem; }
.voice-field { display: grid; gap: .3rem; padding: .5rem; border-radius: 10px; border: 2px solid transparent; }
.voice-field.is-current { border-color: #7a1c2e; background: #fdf3f5; }
.voice-field label, .voice-review > label { font-weight: 700; }
.voice-typed { font-weight: 400; font-size: .8rem; color: #555; }
.voice-form input[type=text], .voice-form input[type=tel], .voice-form input[type=email], .voice-form input[type=password], .voice-form select {
  width: 100%; box-sizing: border-box; min-height: 3rem; font-size: 1.1rem; padding: .4rem .6rem; border: 1px solid #999; border-radius: 8px; }
.voice-ssn { display: flex; gap: .5rem; }
.voice-review { display: grid; gap: .6rem; margin-top: 1rem; padding-top: .5rem; border-top: 2px solid #ddd; }
.voice-consent { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; }
.voice-consent input { width: 1.6rem; height: 1.6rem; flex: 0 0 auto; }
.voice-signature { width: 100%; height: 180px; border: 2px dashed #7a1c2e; border-radius: 10px; background: #fff; touch-action: none; }
.voice-sign-label { margin: 0; font-weight: 700; }
.voice-submit { width: 100%; min-height: 3.4rem; font-size: 1.2rem; }
.voice-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.required { color: #b00020; }
.voice-consent-ask { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: .4rem; }
.voice-consent-ask[hidden], .voice-app.is-consent .voice-controls, .voice-app.is-consent .voice-hint { display: none; }
.voice-ai-type { display: flex; gap: .4rem; margin-top: .4rem; }
.voice-ai-type[hidden] { display: none; }
.voice-ai-type input { flex: 1; min-width: 0; font-size: 1rem; padding: .5rem .6rem; border: 1px solid #c8ccd2; border-radius: 6px; }
.voice-app.is-interview #voice-back { display: none; }
.voice-app.is-thinking [data-voice-question] { opacity: .6; }
.voice-field.is-filled { outline: 3px solid #2e9e5b; transition: outline-color 1s; }

.voice-review .sms-consent { margin: .75rem 0; padding: .8rem; background: #fffaf8; border: 1px solid #f0c2c1; border-radius: 8px; }
.voice-review .sms-consent.is-error { border-color: #b91c1c; background: #fef2f2; }
.voice-review .sms-consent-error { display: block; color: #b91c1c; font-weight: 700; margin: .45rem 0 0; }
.voice-review .sms-consent-error:empty { display: none; }
