/* WellHeart London — voice enquiry page. Reuses the design tokens/buttons
   from app.css; adds only the widget, captions, form and safety styles. */

.voice-wrap { max-width: 760px; margin: 0 auto; padding: 120px var(--gutter) var(--section); }
.voice-back {
  display: inline-block; margin-bottom: 28px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--secondary); text-decoration: none;
}
.voice-back:hover { color: var(--primary); text-decoration: underline; }
.voice-head { text-align: center; margin-bottom: 32px; }
.voice-head .brand-logo { height: 52px; width: auto; display: inline-block; margin-bottom: 24px; }
.voice-head .lede { max-width: 52ch; margin: 14px auto 0; }

/* Emergency banner — always visible, never dismissible. */
.emergency {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid #e7c9c9; background: #fbf1f1; color: #6b1f1f;
  border-radius: var(--radius); padding: 14px 16px; margin: 0 0 28px;
  font-size: 14px; line-height: 1.55;
}
.emergency strong { color: #8a1b1b; }
/* [hidden] alone can't hide a flex box, so honour it explicitly: the banner
   stays hidden until voice-page.js un-hides it when the assistant starts. */
.emergency[hidden] { display: none; }

/* Voice widget */
.voice-card {
  border: 1px solid var(--hairline); background: var(--white);
  border-radius: var(--radius); padding: 32px; text-align: center;
}
.voice-mic {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--primary); color: var(--on-primary);
  border: 0; border-radius: var(--radius); cursor: pointer;
  padding: 16px 30px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: background-color .25s ease;
}
.voice-mic:hover { background: var(--primary-container); }
.voice-mic[disabled] { opacity: .5; cursor: default; }
.voice-mic.is-live { background: var(--secondary); }
.voice-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--secondary-fixed); }
.voice-mic.is-live .voice-dot { background: #fff; animation: vpulse 1.6s infinite; }
@keyframes vpulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.voice-status { margin-top: 16px; font-size: 13px; color: var(--on-surface-variant); min-height: 1.2em; }
.voice-fine { margin-top: 14px; font-size: 12px; color: var(--on-surface-variant); }

/* Live captions */
.voice-captions {
  margin-top: 22px; text-align: left; max-height: 220px; overflow-y: auto;
  border-top: 1px solid var(--hairline); padding-top: 16px; display: none;
}
.voice-captions.has-lines { display: block; }
.cap { margin: 0 0 10px; font-size: 15px; line-height: 1.5; }
.cap .who { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); display: block; }
.cap.you .who { color: var(--on-surface-variant); }

/* Callback form */
.callback { margin-top: 40px; border: 1px solid var(--hairline); background: var(--surface-stone); border-radius: var(--radius); padding: 32px; }
.callback h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--primary); margin: 0 0 6px; }
.callback .sub { font-size: 14px; color: var(--on-surface-variant); margin: 0 0 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--on-background);
  background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 12px 14px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--primary); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 22px 0; font-size: 14px; line-height: 1.5; color: var(--on-surface-variant); }
.consent input { margin-top: 3px; flex-shrink: 0; }
.consent a { color: var(--secondary); text-decoration: underline; }
.callback .btn { width: 100%; }
.form-msg { margin-top: 14px; font-size: 14px; }
.form-msg.ok { color: #1f6b3a; }
.form-msg.err { color: var(--error); }

.fees-row { margin-top: 26px; text-align: center; font-size: 14px; color: var(--on-surface-variant); }
.fees-row a { color: var(--secondary); text-decoration: underline; font-weight: 600; }

.voice-unavail { margin-top: 20px; font-size: 13px; color: var(--on-surface-variant); text-align: center; }

@media (max-width: 767px) {
  .voice-wrap { padding-top: 90px; }
}
