/* ============================================================================
   /online-consultation — form-first hero, voice guide, SEO prose.
   The page's older rules stay in its inline <style>; these come after them.
   Voice-guide look follows css/gj-appt.css (the /appointment guide).
   ========================================================================== */

/* ---------- hero: headline + voice beside the form ---------------------------- */
.oc-hero { padding: 118px 0 56px; }
.oc-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "head form" "lede form" "voice form" "info form" ". form";
    column-gap: 44px;
    align-items: start;
}
.oc-h-head { grid-area: head; }
.oc-h-lede { grid-area: lede; }
.oc-h-voice { grid-area: voice; }
.oc-h-form { grid-area: form; }
.oc-h-info { grid-area: info; }
.oc-hero h1 { font-size: clamp(1.75rem, 3.6vw, 2.7rem); max-width: 18ch; margin-bottom: 14px; }
.oc-hero .lede { font-size: 1.04rem; margin-bottom: 22px; }
.oc-h-voice .oc-langbar { margin-top: 14px; }

.oc-h-form .oc-form-card { max-width: none; margin: 0; padding: 28px; box-shadow: 0 30px 60px -28px rgba(15,23,42,.55); }
.oc-form-h { font-family: 'Playfair Display', serif; font-size: 1.45rem; color: var(--oc-ink); margin: 0 0 4px; }
.oc-form-sub { color: var(--oc-muted); font-size: .9rem; line-height: 1.55; margin: 0 0 20px; }
.oc-h-form .oc-danger { margin-top: 16px; font-size: .86rem; }

/* clinic hours + credentials, as glass on the gradient */
.oc-hours {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 16px;
    padding: 14px 18px;
}
.oc-hours-h { font-weight: 700; font-size: .92rem; white-space: nowrap; }
.oc-hours-h i { color: #fde68a; }
.oc-hours-rows { display: flex; flex-direction: column; gap: 3px; flex: 1 1 220px; }
.oc-hours-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; opacity: .9; }
.oc-hours-row strong { white-space: nowrap; }
.oc-hours-row.you { opacity: 1; color: #fde68a; }
.oc-hours-row[hidden] { display: none; }
ul.oc-trust { list-style: none; margin: 22px 0 0; padding: 18px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
ul.oc-trust li { font-size: .86rem; opacity: .92; }
ul.oc-trust strong { display: block; font-size: 1.1rem; }

/* ---------- the big voice button ------------------------------------------------ */
.oc-voice-start {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    max-width: 420px;
    padding: 12px 18px 12px 12px;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #3730a3;
    text-align: start;
    cursor: pointer;
    font: inherit;
    box-shadow: 0 18px 36px -16px rgba(0,0,0,.45);
    transition: transform .25s ease;
}
.oc-voice-start:hover { transform: translateY(-2px); }
.oc-voice-start-icon {
    position: relative;
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}
.oc-voice-start-icon::before,
.oc-voice-start-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(249,115,22,.55);
    animation: ocVoiceRing 2s ease-out infinite;
}
.oc-voice-start-icon::after { animation-delay: 1s; }
@keyframes ocVoiceRing { from { transform: scale(1); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.oc-voice-start-text strong { display: block; font-size: 1.05rem; }
.oc-voice-start-text small { display: block; color: #64748b; font-size: .8rem; margin-top: 2px; }
.oc-voice-start.is-on .oc-voice-start-icon { background: linear-gradient(135deg, #16a34a, #4ade80); }
.oc-voice-start.is-on .oc-voice-start-icon::before,
.oc-voice-start.is-on .oc-voice-start-icon::after { border-color: rgba(34,197,94,.55); }

/* ---------- floating voice assistant (built by js/oc-voice.js) ------------------ */
.oc-va {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2147483600;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: min(420px, calc(100vw - 100px));
    font-family: 'Poppins', system-ui, sans-serif;
    pointer-events: none;
    direction: ltr;            /* button left, bubble right, even on Arabic/Urdu pages */
}
.oc-va > * { pointer-events: auto; }
.oc-va-face {
    position: relative;
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 12px 26px -10px rgba(194,65,12,.7);
}
.oc-va.is-muted .oc-va-face { background: linear-gradient(135deg, #64748b, #94a3b8); box-shadow: 0 12px 26px -12px rgba(0,0,0,.5); }
.oc-va-bars { display: none; gap: 3px; align-items: center; height: 22px; }
.oc-va-bars i { display: block; width: 4px; border-radius: 2px; background: #fff; animation: ocVaBar .9s ease-in-out infinite; }
.oc-va-bars i:nth-child(2) { animation-delay: -.3s; }
.oc-va-bars i:nth-child(3) { animation-delay: -.6s; }
.oc-va-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes ocVaBar { 0%, 100% { height: 6px; } 50% { height: 22px; } }
.oc-va.is-speaking .oc-va-bars { display: flex; }
.oc-va.is-speaking .oc-va-icon { display: none; }
.oc-va.is-speaking .oc-va-face::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(249,115,22,.5);
    animation: ocVoiceRing 1.6s ease-out infinite;
}
.oc-va-bubble {
    position: relative;
    padding: 12px 26px 10px 14px;
    border-radius: 16px 16px 16px 4px;
    background: #fff;
    color: #1e293b;
    font-size: .9rem;
    line-height: 1.55;
    box-shadow: 0 18px 40px -16px rgba(15,23,42,.45), 0 0 0 1px rgba(15,23,42,.06);
    transform-origin: 0 100%;
    animation: ocVaPop .35s cubic-bezier(.2,1.4,.4,1);
}
.oc-va-bubble[dir=rtl] { padding: 12px 14px 10px 26px; }
.oc-va-bubble[hidden] { display: none; }
@keyframes ocVaPop { from { transform: scale(.7); opacity: 0; } }
.oc-va-title { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: #ea580c; text-transform: uppercase; margin-bottom: 3px; }
.oc-va-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.oc-va-tools button {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    border-radius: 999px;
    padding: 4px 11px;
    font: inherit;
    font-size: .76rem;
    cursor: pointer;
}
.oc-va-tools button:hover { background: #fff7ed; border-color: #fdba74; }
.oc-va-close {
    position: absolute;
    top: 4px;
    inset-inline-end: 6px;
    border: 0;
    background: none;
    color: #94a3b8;
    font-size: 1.05rem;
    cursor: pointer;
}

/* ---------- SEO prose under the hero ------------------------------------------- */
#online-second-opinion { background: linear-gradient(180deg, #eef6ff 0%, #fff 100%); }
.oc-eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #2563eb; background: #dbeafe; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.oc-prose { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 44px; margin-top: 18px; }
.oc-prose h3 { font-size: 1.12rem; color: var(--oc-ink); margin: 18px 0 8px; }
.oc-prose p { color: #475569; line-height: 1.75; margin: 0; font-size: .97rem; }
.oc-mini-steps { margin: 0; padding-inline-start: 1.3em; color: #475569; line-height: 1.7; font-size: .96rem; }
.oc-mini-steps li { margin-bottom: 4px; }
.oc-mini-steps strong { color: var(--oc-ink); }

/* ---------- phones and tablets ------------------------------------------------- */
@media (max-width: 1000px) {
    .oc-hero { padding: 92px 0 36px; }
    .oc-hero-grid { grid-template-columns: 1fr; grid-template-areas: "head" "voice" "form" "lede" "info"; }
    .oc-h-lede { margin-top: 22px; }
    .oc-hero .lede { font-size: .95rem; margin-bottom: 16px; }
    .oc-h-voice { margin-bottom: 18px; }
    .oc-voice-start { max-width: none; }
    .oc-langbar { max-width: none; }
    .oc-prose { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    /* the form has to start near the top of a phone screen */
    .oc-hero { padding-top: 100px; }
    .oc-hero h1 { font-size: 1.42rem; margin-bottom: 12px; max-width: none; }
    .oc-badge { display: none; }
    .oc-h-voice { margin-bottom: 14px; }
    .oc-voice-start { padding: 9px 14px 9px 9px; gap: 12px; border-radius: 16px; }
    .oc-voice-start-icon { width: 42px; height: 42px; font-size: 1.05rem; }
    .oc-voice-start-text strong { font-size: .98rem; }
    .oc-voice-start-text small { font-size: .74rem; }
    .oc-h-voice .oc-langbar { margin-top: 10px; padding: 8px 10px; gap: 8px; border-radius: 14px; }
    .oc-langbar-lbl > span { display: none; }
    .oc-chip { padding: 6px 12px; font-size: .84rem; }
    .oc-more select { font-size: .8rem; padding: 6px 8px; max-width: 132px; }
    .oc-form-h { font-size: 1.25rem; }
    .oc-form-sub { font-size: .84rem; margin-bottom: 14px; }
    .oc-h-form .oc-form-card { padding: 20px 16px; border-radius: 18px; }
    .oc-va { left: 10px; bottom: 10px; }
    .oc-va-face { width: 50px; height: 50px; }
    .oc-va-bubble { font-size: .84rem; line-height: 1.5; }
    .oc-va-tools button { font-size: .72rem; padding: 3px 9px; }
}
@media (prefers-reduced-motion: reduce) {
    .oc-voice-start-icon::before, .oc-voice-start-icon::after,
    .oc-va-bars i, .oc-va.is-speaking .oc-va-face::after { animation: none; }
}

/* ---------- form inside the hero ------------------------------------------------
   The hero sets white text; the card must not inherit it (day buttons and hints
   went invisible). Grid tracks may shrink below the inputs' natural width,
   otherwise Safari lets the boxes spill out of the card. */
.oc-h-form .oc-form-card { color: var(--oc-ink); }
.oc-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.oc-field { min-width: 0; }
.oc-field input, .oc-field select, .oc-field textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.oc-field select {
    -webkit-appearance: none;
    appearance: none;
    padding-inline-end: 38px;
    background: #fff 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 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
}
[dir=rtl] .oc-field select { background-position: left 14px center; }
.oc-phone { grid-template-columns: 96px minmax(0, 1fr); }
.oc-day { color: var(--oc-ink); }
@media (max-width: 700px) { .oc-fields { grid-template-columns: minmax(0, 1fr); } }

/* ---------- guided filling (js/oc-voice.js) ----------------------------------- */
.oc-field.oc-cur, .oc-total.oc-cur {
    background: #fff7ed;
    border-radius: 6px;
    box-shadow: 0 0 0 8px #fff7ed, 0 0 0 10px #fb923c;
    animation: ocCur 1.8s ease-in-out infinite;
}
.oc-total.oc-cur { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
@keyframes ocCur { 50% { box-shadow: 0 0 0 8px #fff7ed, 0 0 0 13px rgba(251,146,60,.4); } }
.oc-field.oc-cur > label::before { content: "👉 "; }
.oc-field.oc-done > label::after { content: " ✓"; color: #16a34a; font-weight: 800; }
.oc-submit.oc-cur { animation: ocGo 1.4s ease-in-out infinite; }
@keyframes ocGo { 50% { box-shadow: 0 0 0 7px rgba(124,58,237,.3); transform: scale(1.015); } }
.oc-next {
    align-self: flex-end;
    margin-top: 10px;
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f97316, #f59e0b);
    box-shadow: 0 8px 18px -8px rgba(194,65,12,.7);
    cursor: pointer;
}
.oc-next:hover { filter: brightness(1.06); }
.oc-shake { animation: ocShake .4s ease; }
@keyframes ocShake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) {
    .oc-field.oc-cur, .oc-submit.oc-cur, .oc-shake { animation: none; }
}

/* ---------- "what happens after I pay?" — spoken, not written -------------- */
.oc-afterlink {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
    border: 1.5px solid #fdba74; background: #fff7ed; color: #c2410c;
    border-radius: 999px; padding: 8px 16px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer;
}
.oc-afterlink:hover { background: #ffedd5; }
