/* =========================================================
   HealthPilot.AI — Vision Pro / Apple Health Glass UI
   ✅ FIXED (per latest screenshot):
   - The BIG Follow-Up container (.hp-followups) gets a LIGHT/WHITISH glass background
   - The INNER question cards (.hp-q) are NOT white (kept dark/glass)
========================================================= */

:root{
  --glass-bg: rgba(255,255,255,0.10);
  --glass-bd: rgba(255,255,255,0.24);
  --glass-tx: rgba(255,255,255,0.94);
  --glass-ph: rgba(255,255,255,0.62);

  --glow: rgba(120,205,255,0.18);
  --glow-strong: rgba(120,205,255,0.48);

  --shadow: 0 18px 44px rgba(0,0,0,0.22);
  --shadow-strong: 0 24px 60px rgba(0,0,0,0.30);
}

.hidden{ display:none !important; }

html, body{
  background: transparent !important;
  overflow-x: hidden;
}

/* =========================================================
   BACKGROUND
========================================================= */

.hp-bg{
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background:
    radial-gradient(1100px 650px at 18% 18%, rgba(60,140,255,0.32), transparent 60%),
    radial-gradient(900px 600px at 85% 22%, rgba(90,220,210,0.14), transparent 60%),
    radial-gradient(900px 600px at 45% 85%, rgba(120,150,255,0.12), transparent 62%),
    linear-gradient(180deg, #050e1d 0%, #081c36 45%, #0a2448 100%);
}

.hp-overlay{
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(850px 520px at 72% 30%, rgba(97, 215, 243, 0.12), transparent 66%),
    radial-gradient(760px 480px at 82% 74%, rgba(88, 144, 255, 0.10), transparent 68%);
  opacity: 0.75;
}

.hp-vignette{
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.30) 45%,
      rgba(0,0,0,0.65) 100%);
}

.hero-shell::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 30% 28%, rgba(255,255,255,0.035), transparent 60%),
    radial-gradient(700px 420px at 72% 26%, rgba(120,200,255,0.06), transparent 60%);
}

/* =========================================================
   LAYOUT.
========================================================= */

.hero-shell{ margin-top: 18px; }
.hero-wrap{
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.screen{ display:none; width:100%; }
.screen.is-active{ display:block; }

/* =========================================================
   TOP TABS
========================================================= */

.stepper-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

#steps{
  flex: 1;
  display:flex;
  justify-content:center;
}

.hp-tabs{
  display:flex;
  align-items:center;
  gap: 12px;
  width: fit-content;
}

.hp-tab{
  appearance:none;
  -webkit-appearance:none;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor:pointer;
  box-shadow:
    0 10px 24px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.hp-tab:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.30);
}
.hp-tab:active{ transform: translateY(1px); }

.hp-tab.is-active{
  background: rgba(120,205,255,0.20);
  border-color: rgba(140,220,255,0.38);
  box-shadow:
    0 14px 32px rgba(0,0,0,0.25),
    0 0 18px rgba(120,205,255,0.22),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

.hp-tab:focus-visible{
  outline: none;
  box-shadow:
    0 14px 32px rgba(0,0,0,0.25),
    0 0 0 3px rgba(120,205,255,0.22),
    inset 0 1px 0 rgba(255,255,255,0.16);
}

/* =========================================================
   STEP 1 HERO
========================================================= */

.hp-hero{
  width: min(1040px, 100%);
  max-width: 1040px;
  padding: 22px 8px;
}

.hp-h1{
  margin: 0;
  font-weight: 980;
  letter-spacing: -0.03em;
  color: rgba(255,255,255,0.94);
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.02;
}

.hp-sub{
  margin-top: 12px;
  font-size: 18px;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}

.hp-disclaimer{
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.60);
}

.hp-label{
  display: block;
  margin-top: 18px;
  margin-bottom: 12px;
  font-weight: 850;
  color: rgba(255,255,255,0.86);
}

.hp-tip{
  font-size: 13px;
  color: rgba(255,255,255,0.62);
}

/* =========================================================
   TEXTAREA
========================================================= */

#symptoms{
  width: 78%;
  max-width: 820px;
  min-height: 96px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  color: var(--glass-tx);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.14);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  resize: none;
  outline: none;
  overflow: hidden;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

#symptoms::placeholder{ color: var(--glass-ph); }

body.hp-focus #symptoms,
#symptoms:focus{
  border-color: var(--glow-strong);
  box-shadow: var(--shadow-strong), 0 0 28px var(--glow), inset 0 1px 0 rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

/* =========================================================
   CONTROLS
========================================================= */

.hp-controls{
  margin-top: 16px;
  width: 78%;
  max-width: 820px;
  display:flex;
  flex-direction: column;
  gap: 12px;
  align-items:flex-start;
}

.hp-row{
  display:flex;
  align-items:center;
  gap: 14px;
  flex-wrap: wrap;
}

.hp-btn{
  border-radius: 14px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.88);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background .18s ease, border-color .18s ease, transform .12s ease;
}
.hp-btn:hover{ background: rgba(255,255,255,0.12); }
.hp-btn:active{ transform: translateY(1px); }

.hp-btn-primary{
  border-radius: 999px;
  padding: 14px 26px;
  font-weight: 950;
  background: linear-gradient(180deg, #4baaff, #236eff);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 46px rgba(40,130,255,0.45), 0 0 26px rgba(70,180,255,0.70);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.hp-btn-primary:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 22px 54px rgba(40,130,255,0.55), 0 0 30px rgba(70,180,255,0.82);
}

#btnVoice, #btnStopVoice{
  height: 46px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 850;
  font-size: 15px;
  letter-spacing: -0.01em;
}

#btnVoice{
  min-width: 170px;
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.24);
}

#btnStopVoice{
  min-width: 120px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.70);
}
#btnStopVoice:disabled{ opacity: 0.55; cursor: not-allowed; }

/* =========================================================
   SHIMMER
========================================================= */

.hp-ai-shimmer{
  position: relative;
  overflow: hidden;
}

@keyframes hpShimmer{
  from{ background-position: -200% 0; }
  to{ background-position: 200% 0; }
}

body.is-analyzing .hp-ai-shimmer::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.12) 45%,
    rgba(120,210,255,0.16) 55%,
    rgba(255,255,255,0) 100%
  );
  background-size: 200% 100%;
  animation: hpShimmer 1.1s linear infinite;
  pointer-events:none;
  mix-blend-mode: screen;
}

/* =========================================================
   ✅ FOLLOW-UP QUESTIONS UI (LATEST FIX)
   - BIG container gets LIGHT/WHITE glass background
   - inner cards stay DARK (not white)
========================================================= */



.hp-followups-title{
  font-weight: 950;
  color: rgba(255,255,255,0.92);
  font-size: 18px;
}

.hp-followups .hp-muted{
  color: rgba(255,255,255,0.65) !important;
}


.hp-q-title{
  margin-bottom: 8px;   /* was bigger */
  font-size: 15px;
}



.hp-q-options{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* chips on dark */
.hp-chip{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.90);
  border-radius: 999px;
  padding: 10px 12px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.hp-chip:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(40,130,255,0.35);
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
  transform: translateY(-1px);
}

.hp-chip input{ accent-color: #4baaff; }

/* inputs on dark */
.hp-q input[type="text"],
.hp-q input[type="number"]{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
  width: min(520px, 100%);
  height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.hp-q input[type="text"]::placeholder,
.hp-q input[type="number"]::placeholder{
  color: rgba(255,255,255,0.55);
}



/* =========================================================
   HP RATING BARS (1–10)
========================================================= */

.hp-rating{
  width: min(560px, 100%);
  user-select: none;
}

.hp-rating-top{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hp-rating-label{
  font-weight: 800;
  color: rgba(255,255,255,0.86);
  font-size: 13px;
  opacity: 0.9;
}

.hp-rating-value{
  display:flex;
  align-items:center;
  gap: 10px;
}

.hp-rating-pill{
  min-width: 44px;
  height: 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(120,205,255,0.16);
  border: 1px solid rgba(140,220,255,0.28);
  box-shadow: 0 12px 26px rgba(0,0,0,0.22), 0 0 18px rgba(120,205,255,0.10);
  color: rgba(255,255,255,0.92);
  font-weight: 950;
  letter-spacing: -0.02em;
}

.hp-rating-hint{
  font-size: 12px;
  color: rgba(255,255,255,0.62);
}

.hp-rating-track{
  position: relative;
  height: 18px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10);
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hp-rating-fill{
  position:absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(75,170,255,0.35), rgba(35,110,255,0.75));
  box-shadow: 0 0 16px rgba(70,180,255,0.30);
  transition: width 160ms ease;
}

.hp-rating-segs{
  position: relative;
  z-index: 2;
  height: 100%;
  display:grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}

.hp-rating-seg{
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: transform 120ms ease, background 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.hp-rating-seg:hover{
  background: rgba(255,255,255,0.14);
  border-color: rgba(140,220,255,0.22);
  transform: translateY(-1px);
}

.hp-rating.is-dragging .hp-rating-seg{
  transition: none;
}

.hp-rating-seg.is-active{
  background: rgba(120,205,255,0.22);
  border-color: rgba(140,220,255,0.34);
  box-shadow: 0 0 14px rgba(120,205,255,0.14);
}

.hp-rating:focus-within .hp-rating-track{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 0 0 3px rgba(120,205,255,0.18);
  border-color: rgba(140,220,255,0.32);
}

.hp-rating-hidden{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 900px){
  #symptoms,
  .hp-controls{
    width: 94%;
    max-width: 94%;
  }
  .hp-h1{
    font-size: clamp(32px, 7vw, 50px);
  }
}

@media (max-width: 560px){
  .stepper-inner{
    flex-direction: column;
    align-items:flex-start;
    gap: 12px;
  }

  #steps{
    justify-content:flex-start;
    width:100%;
    overflow-x:auto;
  }

  .hp-tabs{
    gap: 10px;
    padding-bottom: 6px;
  }

  #btnAnalyze, #btnVoice, #btnStopVoice{
    width:100%;
  }

  .hp-row{
    width: 100%;
  }

  .hp-followups-actions{
    flex-direction: column;
  }

  .hp-rating-top{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Location suggestions dropdown */
.hp-suggest {
  position: relative;
  margin-top: 8px;
  display: none;
}

.hp-suggest.is-open {
  display: block;
}

.hp-suggest-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10, 14, 20, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,0.92);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  margin-bottom: 8px;
}

.hp-suggest-item:hover {
  border-color: rgba(120,190,255,0.35);
  background: rgba(20, 26, 38, 0.65);
}

.hp-suggest-main {
  font-weight: 600;
  font-size: 14px;
}

.hp-suggest-sub {
  margin-top: 4px;
  font-size: 12px;
  opacity: 0.75;
}

/* ================================
   FIX: Background blocking clicks
================================ */

/* Any decorative background MUST NOT catch clicks */
.hp-bg,
.hp-overlay,
.hp-vignette,
.hp-ai-bg,
.hp-hero-bg {
  pointer-events: none !important;
}

/* Main UI containers must be clickable */
.page,
.hero-shell,
.hero-wrap,
.hp-hero,
.hp-card,
#screen1,
#screen2,
#screen3,
#screen4 {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

/* Ensure buttons are above everything */
button,
.hp-btn,
#btnAnalyze {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}

/* =========================================================
   FOLLOW-UP QUESTIONS — ONE BY ONE (Wizard UI)
========================================================= */

.hp-followups{
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-radius: 16px;

  width: min(860px, 100%);
  max-width: 860px;
  margin-right: auto;

  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow: 0 14px 32px rgba(0,0,0,0.20), inset 0 1px 0 rgba(255,255,255,0.14);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.hp-followups-title{
  font-weight: 950;
  color: rgba(255,255,255,0.92);
  font-size: 18px;
  margin-bottom: 2px;
}

.hp-followups .hp-muted{
  color: rgba(255,255,255,0.65) !important;
  margin-bottom: 12px;
}

/* Progress row */
.hp-fu-progress{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 14px;
}

.hp-fu-count{
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  font-weight: 750;
}

.hp-fu-bar{
  flex: 1;
  height: 10px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  overflow: hidden;
}

.hp-fu-bar > div{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(75,170,255,0.35), rgba(35,110,255,0.75));
  box-shadow: 0 0 14px rgba(70,180,255,0.20);
  transition: width 180ms ease;
}

/* Only ONE question visible */
.hp-followups-panel{
  display: grid;
  gap: 0;
}

/* Default hidden */
.hp-q{
  display: none;
  padding: 16px;
  border-radius: 18px;

  /* Question card stays DARK glass */
  background: rgba(10, 14, 22, 0.34);
  border: 1px solid rgba(255,255,255,0.16);
  box-shadow: 0 16px 34px rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Active question */
.hp-q.is-active{
  display: block;
}

.hp-q-title{
  font-weight: 900;
  color: rgba(255,255,255,0.94);
  margin-bottom: 12px;
  line-height: 1.25;
}

/* Options */
.hp-q-options{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hp-chip{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.90);
  border-radius: 999px;
  padding: 10px 12px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.hp-chip:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(40,130,255,0.35);
  box-shadow: 0 10px 22px rgba(0,0,0,0.16);
  transform: translateY(-1px);
}

.hp-chip input{ accent-color: #4baaff; }

/* Inputs */
.hp-q input[type="text"],
.hp-q input[type="number"]{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
  width: min(560px, 100%);
  height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Inputs */
.hp-q input[type="text"],
.hp-q input[type="number"]{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
  width: min(560px, 100%);
  height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ✅ ADD THIS HERE (mic styles) */
.hp-q-inputrow{
  display:flex;
  align-items:center;
  gap:10px;
  width: min(560px, 100%);
}

.hp-q-mic{
  width:44px;
  height:44px;
  border-radius: 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hp-q-mic:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(140,220,255,0.28);
}

.hp-q-mic.is-recording{
  border-color: rgba(255,80,80,0.45);
  box-shadow: 0 0 18px rgba(255,80,80,0.25), 0 10px 22px rgba(0,0,0,0.18);
}


.hp-q input::placeholder{
  color: rgba(255,255,255,0.55);
}

/* Actions OUTSIDE the question card */
.hp-followups-actions{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.hp-followups-actions .hp-btn{
  height: 44px;
  border-radius: 14px;
}

.hp-followups-actions .hp-btn-primary{
  height: 44px;
  padding: 10px 20px;
}

/* Mobile */
@media (max-width: 560px){
  .hp-followups-actions{
    flex-direction: column;
  }
  .hp-followups-actions .hp-btn,
  .hp-followups-actions .hp-btn-primary{
    width: 100%;
  }
}


@media (max-width: 560px){
  .hp-followups-actions{
    flex-direction: column;
  }
  .hp-followups-actions .hp-btn,
  .hp-followups-actions .hp-btn-primary{
    width: 100%;
  }
}

/* ================================
   STEP 2 header: force readable white
================================ */
.hp-analysis-header .hp-h2{
  color: rgba(255,255,255,0.96) !important;
}

.hp-analysis-header .hp-muted{
  color: rgba(255,255,255,0.78) !important;
}

/* Follow-up cue text (replaces big heading/subtitle) */
.hp-ai-cue{
  color: rgba(255,255,255,0.72);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

/* =========================================================
   FIX: When Follow-Ups are visible, hide the analysis panel
   and the bottom nav so text doesn't "bleed" behind the bar
   (uses :has() — supported on modern Safari/Chrome)
========================================================= */

#screen2 .hp-card:has(#followupsWrap:not(.hidden)) #analysisPanel,
#screen2 .hp-card:has(#followupsWrap:not(.hidden)) .hp-nav{
  display: none !important;
}

/* Optional: make follow-ups feel like the primary content */
#screen2 .hp-card:has(#followupsWrap:not(.hidden)) #followupsWrap{
  margin-top: 14px;
}

/* =========================================
   Remove number input spinner arrows
   (Chrome, Safari, Edge, Firefox)
========================================= */

/* Chrome, Safari, Edge */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button{
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"]{
  -moz-appearance: textfield;
}


/* =========================================================
   STEP 3 — Care Recommendation (screenshot-style glass cards)
========================================================= */

.hp-care{
  padding: 22px 22px 18px;
}

.hp-care-head{
  text-align: center;
  margin-bottom: 18px;
}

.hp-care-title{
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.98);
  text-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.hp-care-sub{
  margin-top: 8px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255,255,255,0.86);
}

.hp-care-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1100px){
  .hp-care-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .hp-care-grid{ grid-template-columns: 1fr; }
}

.hp-care-card{
  position: relative;
  border-radius: 18px;
  padding: 16px 16px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  overflow: hidden;
}

.hp-care-card::before{
  content:"";
  position:absolute;
  inset: -2px;
  background:
    radial-gradient(400px 220px at 20% 10%, rgba(120,205,255,0.20), transparent 55%),
    radial-gradient(380px 220px at 90% 30%, rgba(90,220,210,0.10), transparent 60%);
  pointer-events: none;
}

.hp-care-card-warm::before{
  background:
    radial-gradient(420px 240px at 20% 10%, rgba(255,210,140,0.22), transparent 55%),
    radial-gradient(380px 220px at 90% 30%, rgba(120,205,255,0.10), transparent 60%);
}

.hp-care-top{
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hp-care-icon{
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(0,0,0,0.12);
}

.hp-care-label{
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
}

.hp-care-value{
  position: relative;
  z-index: 1;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin-top: 2px;
}

.hp-care-desc{
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255,255,255,0.78);
}

.hp-care-pill-row{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.hp-care-pill{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.20);
  background: rgba(0,0,0,0.14);
}

.hp-care-pill-strong{
  background: rgba(255,255,255,0.14);
}

.hp-care-meter{
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.16);
  position: relative;
  z-index: 1;
}

.hp-care-meter-fill{
  height: 100%;
  width: 20%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96,165,250,0.90), rgba(34,211,238,0.70));
  box-shadow: 0 0 18px rgba(96,165,250,0.30);
}

.hp-care-cta{
  width: min(720px, 100%);
  margin: 18px auto 0;
  display: block;
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.96);
  box-shadow: 0 24px 60px rgba(0,0,0,0.26);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.hp-care-cta:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.13);
  border-color: rgba(255,255,255,0.30);
}


.hp-care-share{
  margin-top: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  padding: 14px;
}
.hp-care-share-title{
  font-weight: 800;
  margin-bottom: 10px;
}
.hp-care-share-block + .hp-care-share-block{
  margin-top: 10px;
}
.hp-care-share-label{
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: .35px;
  margin-bottom: 4px;
}
.hp-care-share-text,
.hp-care-share-list{
  margin: 0;
  color: rgba(255,255,255,0.92);
}
.hp-care-share-list{
  padding-left: 18px;
}
.hp-care-share-list li{
  margin-bottom: 4px;
}

.hp-care-share-note{
  margin-top: 10px;
  color: rgba(255,255,255,0.92);
  line-height: 1.45;
}

.hp-bullets{
  margin: 10px 0 0;
  padding-left: 18px;
  line-height: 1.35;
}
.hp-bullets li{
  margin: 6px 0;
  opacity: 0.95;
}
.hp-note{
  margin-top: 10px;
  opacity: 0.85;
  font-size: 0.95em;
}

/* Make the share panel full-width at the bottom */
.hp-care-share--bottom{
  width: 100%;
  margin-top: 16px;
  border-radius: 18px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);

  padding: 16px 18px;

  max-height: 240px;
  overflow: auto;
   display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  align-items: start;
}


.hp-care-share--bottom .hp-care-share-title{
grid-column: 1 / -1;
  margin-bottom: 10px;
}

.hp-care-share--bottom .hp-care-share-block{
  margin: 0;
}

.hp-care-share--bottom,
.hp-care-share--bottom *{
  color: #fff;
}

/* BIG AI Suggestions Card */
.hp-ai-suggestions,
.hp-care-share {
  width: 100%;
  max-width: 100%;
  min-height: 240px;

  padding: 22px 26px;
  margin-top: 18px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;

  border-radius: 18px;

  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.04)
  );

  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 18px 48px rgba(0,0,0,0.35);
}



/* =========================================================
   AI Suggestions — Large Blue Highlight Card
========================================================= */

.hp-card.ai-suggestions {
  grid-column: 1 / -1;              /* ⬅ span full row */
  min-height: 260px;                /* ⬅ bigger height */
  padding: 24px 28px;

  background:
    linear-gradient(
      135deg,
      rgba(40, 130, 255, 0.28),
      rgba(20, 80, 200, 0.38)
    );

  border: 1px solid rgba(120, 190, 255, 0.45);
  box-shadow:
    0 18px 44px rgba(0, 60, 140, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);

  backdrop-filter: blur(16px);
  border-radius: 18px;
}

/* Title */
.hp-card.ai-suggestions h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #eaf4ff;
  margin-bottom: 12px;
}

/* Section headings */
.hp-card.ai-suggestions .section-title {
  color: #cfe8ff;
  font-weight: 600;
  margin-top: 14px;
}

/* Bullet text */
.hp-card.ai-suggestions li {
  color: #e6f2ff;
  line-height: 1.5;
}

/* Disclaimer */
.hp-card.ai-suggestions .disclaimer {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(220, 235, 255, 0.75);
}


/* ✅ Step 3: make AI Suggestions span full width of the grid */
.hp-care-grid .hp-care-card.ai-suggestions{
  grid-column: 1 / -1;   /* full row */
  width: 100%;
  max-width: 100%;
  min-height: 260px;
  padding: 22px 26px;
}

/* Optional: blue highlight background */
.hp-care-grid .hp-care-card.ai-suggestions{
  background: linear-gradient(
    135deg,
    rgba(40,130,255,0.26),
    rgba(20,80,200,0.18)
  );
  border: 1px solid rgba(120,190,255,0.40);
  box-shadow: 0 18px 48px rgba(0,60,140,0.35);
}

/* ✅ FORCE AI Suggestions card to span full grid width */
.hp-care-grid > #careSharePanel{
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* ================================
   STEP 4 readability (Hospitals)
================================ */
#screen4 .hp-card {
  color: rgba(255,255,255,0.92);
}

#screen4 .hp-h2 {
  color: rgba(255,255,255,0.97);
}

#screen4 .hp-muted {
  color: rgba(255,255,255,0.82) !important;
}

#screen4 .hp-hospital-info {
  background: rgba(8, 14, 26, 0.46);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  padding: 14px;
}

#screen4 .hp-places {
  display: grid;
  gap: 10px;
}

#screen4 .hp-place {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(10, 18, 34, 0.45);
  padding: 10px 12px;
}

#screen4 .hp-place-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
}

#screen4 .hp-place-rating {
  white-space: nowrap;
  font-weight: 700;
  text-align: right;
}

#screen4 .hp-place-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 2px;
}

#screen4 .hp-place-directions-btn {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
}

#screen4 .hp-place-route-options {
  margin-top: 14px;
  margin-bottom: 10px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  background: rgba(13, 26, 46, 0.62);
}

#screen4 .hp-route-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

#screen4 .hp-route-option {
  display: grid;
  gap: 8px;
 text-decoration: none;
  color: inherit;
  cursor: pointer;
}

#screen4 .hp-route-option:hover .hp-route-map,
#screen4 .hp-route-option:focus-visible .hp-route-map {
  border-color: rgba(255, 214, 10, 0.75);
  box-shadow: 0 0 0 2px rgba(255, 214, 10, 0.2);
}

#screen4 .hp-route-map {
  min-height: 110px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(29, 78, 216, 0.1)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 8px, rgba(255,255,255,0.02) 8px 16px);
  color: rgba(255,255,255,0.85);
  display: grid;
  place-items: center;
  gap: 6px;
  font-size: 13px;
}

#screen4 .hp-route-map-icon {
  font-size: 24px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
}

#screen4 .hp-route-caption {
display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}

#screen4 .hp-route-eta {
  color: #ff3b1f;
  font-weight: 800;
  white-space: nowrap;
}


#screen4 .hp-place-name {
  font-weight: 800;
  line-height: 1.2;
}

#screen4 .hp-place-addr {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.84);
}

#screen4 .hp-place-why {
  margin-top: 8px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 680px) {
  #screen4 .hp-place-head {
    grid-template-columns: 1fr;
  }

  #screen4 .hp-place-rating {
    justify-self: start;
    text-align: left;
  }

  #screen4 .hp-place-actions {
    justify-self: start;
    margin-right: 0;
    flex-wrap: wrap;
  }

  #screen4 .hp-route-options-grid {
    grid-template-columns: 1fr;
  }

  #screen4 .hp-place-actions {
    justify-self: start;
    justify-items: start;
    margin-right: 0;
  }

  #screen4 .hp-route-options-grid {
    grid-template-columns: 1fr;
  }
}

#screen4 .hp-hospital-controls-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-top: 10px;
}

#screen4 .hp-hospital-filter-menu {
  position: relative;
}

#screen4 .hp-hospital-filter-button {
  justify-self: start;
  min-width: 120px;
}

#screen4 .hp-hospital-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 2px;
  margin-bottom: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(120, 185, 255, 0.35);
  background: rgba(8, 26, 56, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: 100%;
}

#screen4 .hp-hospital-filter-group {
  display: grid;
  gap: 6px;
}

#screen4 .hp-hospital-rating-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  padding-bottom: 8px;
}

#screen4 .hp-hospital-filter-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

#screen4 .hp-radius-range {
  width: 100%;
  accent-color: #6ea8ff;
}

#screen4 .hp-radius-caption {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

@media (max-width: 920px) {
#screen4 .hp-hospital-controls-row {
    justify-content: flex-start;
    align-items: stretch;
  }
  #screen4 .hp-hospital-filters {
    width: 100%;
    margin-top: 8px;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  #screen4 .hp-hospital-rating-filter {
    padding-bottom: 0;
  }
}
#screen4 .hp-place-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.2);
}

#screen4 .hp-place-status.is-open {
  color: #d1fae5;
  background: rgba(22, 163, 74, 0.28);
  border-color: rgba(74, 222, 128, 0.5);
}

#screen4 .hp-place-status.is-closed {
  color: #fee2e2;
  background: rgba(185, 28, 28, 0.28);
  border-color: rgba(248, 113, 113, 0.5);
}

#screen4 .hp-place-status.is-unknown {
  color: rgba(255,255,255,0.88);
  background: rgba(148, 163, 184, 0.24);
  border-color: rgba(203, 213, 225, 0.4);
}

#screen4 .hp-hospitals-flow {
  display: grid;
  place-items: center;
  min-height: 380px;
}

#screen4 .hp-hospitals-page {
  width: min(100%, 980px);
}

#screen4 .hp-hospitals-page-search {
  display: grid;
  place-items: center;
}

#screen4 .hp-hospitals-search-card {
  width: min(100%, 920px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(8, 14, 26, 0.52);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 18px 40px rgba(3, 10, 24, 0.32);
}

#screen4 .hp-hospitals-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

#screen4 .hp-hospitals-search-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

#screen4 .hp-hospitals-page-results {
  width: min(100%, 1000px);
}

/*test*/
#screen4 .hp-map-sub {
  margin: 6px 0 10px;
}

#screen4 .hp-map-status {
  margin-bottom: 10px;
}

#screen4 .hp-hospital-map {
  width: 100%;
  min-height: 300px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 20, 35, 0.35);
  overflow: hidden;
}

#screen4 .hp-place.is-selected {
  outline: 2px solid rgba(95, 185, 255, 0.7);
  box-shadow: 0 0 0 2px rgba(95, 185, 255, 0.2);
}

/*test*/

#screen4 .hp-nav-hospitals-inline {
  margin-top: 14px;
  justify-content: flex-start;
}

@media (max-width: 680px) {
  #screen4 .hp-hospitals-input-row {
    grid-template-columns: 1fr;
  }
}

#screen4 .hp-place-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

#screen4 .hp-place-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.2);
}

#screen4 .hp-place-status.is-open {
  color: #d1fae5;
  background: rgba(22, 163, 74, 0.28);
  border-color: rgba(74, 222, 128, 0.5);
}

#screen4 .hp-place-status.is-closed {
  color: #fee2e2;
  background: rgba(185, 28, 28, 0.28);
  border-color: rgba(248, 113, 113, 0.5);
}

#screen4 .hp-place-status.is-unknown {
  color: rgba(255,255,255,0.88);
  background: rgba(148, 163, 184, 0.24);
  border-color: rgba(203, 213, 225, 0.4);
}

/* ============================
   AI Help Chat (bottom-right)
   ============================ */

.aihelp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.aihelp-fab {
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(30, 90, 180, 0.85);
  color: #fff;
  padding: 18px 20px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  font-weight: 600;
  font-size: 1.05rem;
}

.aihelp-fab:hover {
  filter: brightness(1.05);
}

.aihelp-panel {
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 480px;
  margin-bottom: 10px;
  border-radius: 18px;
  overflow: hidden;

  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(12, 18, 30, 0.82);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
}

.aihelp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.aihelp-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.aihelp-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(80, 200, 255, 0.95);
  box-shadow: 0 0 16px rgba(80, 200, 255, 0.55);
}

.aihelp-name {
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
}

.aihelp-sub {
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  margin-top: 2px;
}

.aihelp-close {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
}

.aihelp-msgs {
  flex: 1;
  padding: 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.aihelp-bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.aihelp-bubble.user {
  align-self: flex-end;
  background: rgba(40, 120, 230, 0.25);
  border-color: rgba(80, 160, 255, 0.22);
}

.aihelp-bubble.ai {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
}

.aihelp-form {
  display: flex;
  gap: 8px;
  padding: 10px 10px;
  border-top: 1px solid rgba(255,255,255,0.10);
}

.aihelp-input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: rgba(255,255,255,0.92);
  padding: 10px 10px;
  outline: none;
}

.aihelp-input::placeholder {
  color: rgba(255,255,255,0.45);
}

.aihelp-send {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(30, 90, 180, 0.85);
  color: #fff;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
}

.aihelp-disclaimer {
  padding: 8px 12px 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

.aihelp-intro{
  position: fixed;
  right: 28px;
  bottom: 84px; /* above fab */
  max-width: 280px;
  background: rgba(10, 20, 35, 0.92);
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  z-index: 9999;
}
.aihelp-fab-pulse{
  animation: aihelpPulse 1.2s ease-in-out 2;
}
@keyframes aihelpPulse{
  0%{ transform: scale(1); }
  50%{ transform: scale(1.08); }
  100%{ transform: scale(1); }
}

/* AI Help panel visibility */
.aihelp-panel {
  position: fixed;
  bottom: 18px;
  right: 20px;
  width: 420px;
  max-width: calc(100vw - 24px);
  height: 560px;
  max-height: 82vh;
  background: #0b1220;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;

  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 9999;
}

.aihelp-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Respect hidden state so the closed panel never blocks FAB clicks. */
.aihelp-panel[hidden],
.aihelp-intro[hidden] {
  display: none !important;
}

.aihelp-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.aihelp-mic {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 16px;
}

.aihelp-mic:hover {
  background: rgba(255, 255, 255, 0.15);
}

.aihelp-mic:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ===============================
   STEP 4 – Hospital Filter Layout Fix
================================= */

/* Filter left + Sort right on same row */
.hp-hospital-controls-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:14px;
  flex-wrap:wrap;
}

/* Left side (Filter button) */
.hp-hospital-filter-menu{
  display:flex;
  align-items:flex-end;
}

/* Filter button size alignment */
.hp-hospital-filter-button{
  height:44px;
  display:inline-flex;
  align-items:center;
  gap:8px;
}

/* Right side (Sort) */
.hp-hospital-filter-sort{
  display:grid;
  gap:6px;
  min-width:260px;
}

.hp-hospital-filter-sort .input{
  height:44px;
}

/* ==========================================
   STEP 4 – Filter Dropdown Popover Fix
========================================== */

/* Keep filter panel in normal layout so it never covers the result cards. */
.hp-hospital-filter-menu{
  position: static;
  display: grid;
  gap: 8px;
}

/* Position filter panel under button */
#hospitalFiltersPanel.hp-hospital-filters{
  position: static;
  width: min(720px, 100%);
  max-width: 100%;
  margin-top: 0;
  padding: 14px;
  border-radius: 16px;
   z-index: auto;
  backdrop-filter: blur(14px);
}

/* Hidden filter panel must stay collapsed when toggled closed. */
#hospitalFiltersPanel.hp-hospital-filters[hidden]{
  display: none !important;
}

/* Hospital heading + control row spacing/alignment polish */
#screen4 .hp-hospital-info .hp-care-label[data-i18n="hospitals_information"] {
  display: block;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

#screen4 .hp-hospital-controls-row {
  align-items: flex-start;
  margin-top: 8px;
  gap: 10px;
}

#screen4 .hp-hospital-filter-menu,
#screen4 .hp-hospital-filter-sort {
  padding-top: 2px;
}

#screen4 .hp-hospital-filter-button,
#screen4 .hp-hospital-filter-sort .hp-label {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

#screen4 .hp-hospital-filter-sort .hp-label {
  margin: 0 0 8px;
}

/* Move Docsy.Ai slightly up and right */
#stepperBrand{
  position: relative;
  top: -12px;
  right: -18px;
  z-index: 50;
}

.stepper-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: white;
}

.stepper-brand-logo-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stepper-brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ===== Production polish for Ask Docsy ===== */
.aihelp-panel {
  position: fixed;
  bottom: 18px;
  right: 20px;
  width: 420px;
  max-width: calc(100vw - 24px);
  height: 560px;
  max-height: 82vh;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(160deg, rgba(7, 15, 35, 0.94), rgba(10, 26, 56, 0.88));
  box-shadow: 0 18px 56px rgba(2, 8, 28, 0.55);
  backdrop-filter: blur(14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;

  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all .25s ease;
  z-index: 9999;
}

.aihelp-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, rgba(6, 14, 35, 0.24), rgba(7, 13, 28, 0.68)), url('/images/ai-chat-bg.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.92;
  z-index: -2;
}

.aihelp-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at top right, rgba(59, 130, 246, .15), transparent 45%);
  z-index: -1;
}

.aihelp-head,
.aihelp-msgs,
.aihelp-form,
.aihelp-disclaimer {
  position: relative;
  z-index: 1;
}

.aihelp-head {
  padding: 12px 14px;
  background: linear-gradient(to right, rgba(22, 44, 90, 0.7), rgba(15, 31, 64, 0.45));
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.aihelp-msgs {
  padding: 14px;
  gap: 12px;
}

.aihelp-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.aihelp-row.user {
  align-items: flex-end;
}

.aihelp-row.ai {
  align-items: flex-start;
}

.aihelp-bubble {
  max-width: 82%;
  border-radius: 14px;
  padding: 11px 13px;
  line-height: 1.45;
}

.aihelp-bubble.ai {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.aihelp-bubble.user {
  background: linear-gradient(180deg, rgba(63, 130, 247, 0.4), rgba(47, 99, 190, 0.35));
  border-color: rgba(126, 179, 255, 0.5);
}

.aihelp-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.62);
  padding: 0 4px;
}

.aihelp-list {
  margin: 6px 0 0;
  padding-left: 18px;
}

.aihelp-list li {
  margin: 4px 0;
}

.aihelp-bubble p {
  margin: 0;
}

.aihelp-gap {
  height: 6px;
}

.aihelp-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.aihelp-typing-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: aihelpDots 1s infinite ease-in-out;
}

.aihelp-typing-dots i:nth-child(2) { animation-delay: 0.12s; }
.aihelp-typing-dots i:nth-child(3) { animation-delay: 0.24s; }

@keyframes aihelpDots {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.45; }
  40% { transform: scale(1); opacity: 1; }
}

.aihelp-form {
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  background: rgba(4, 9, 22, 0.45);
}

.aihelp-input {
  background: rgba(3, 10, 26, 0.78);
}

.aihelp-send {
  background: linear-gradient(180deg, #3b82f6, #2667cc);
}

.aihelp-disclaimer {
  background: rgba(2, 8, 23, 0.35);
  border-top: 1px solid rgba(255,255,255,0.1);
}

#screen4 .hp-place-book-btn {
  margin-right: 6px;
}

#screen4 .hp-booking-form {
  margin-top: 10px;
  border: 1px solid rgba(100, 181, 246, 0.35);
  border-radius: 12px;
  padding: 10px;
  background: rgba(5, 17, 42, 0.65);
}

#screen4 .hp-booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#screen4 .hp-booking-grid textarea,
#screen4 .hp-booking-grid .hp-booking-check {
  grid-column: span 2;
}

#screen4 .hp-booking-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#screen4 .hp-booking-field .input {
  width: 100%;
}

#screen4 .hp-booking-field-label {
  font-size: 12px;
  color: rgba(216, 229, 255, 0.9);
}

#screen4 .hp-booking-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

#screen4 .hp-booking-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

#screen4 .hp-booking-result {
  margin-top: 8px;
  color: #a5f3b6;
  font-size: 13px;
}

@media (max-width: 760px) {
  #screen4 .hp-booking-grid {
    grid-template-columns: 1fr;
  }

  #screen4 .hp-booking-grid textarea,
  #screen4 .hp-booking-grid .hp-booking-check {
    grid-column: span 1;
  }
}

.stepper-right{
  display:flex;
  align-items:center;
  justify-content:flex-end;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand img{
  width:48px;
  height:48px;
  border-radius:50%;
  object-fit:contain;
  background:transparent;
}

.brand-text{
  font-size:28px;
  font-weight:700;
  color:rgba(255,255,255,.95);
  letter-spacing:-0.5px;
  position:relative;
}

.brand-accent{
  color:#61c9ff;
}

.brand-text::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:100%;
  height:3px;
  background:linear-gradient(90deg,#61c9ff,#1dd1a1);
  border-radius:2px;
}
