/* ============================================================
   "Ask the Hakeem" symptom quiz modal
   Uses the parent design tokens so it looks native.
   ============================================================ */

/* Hero primary CTA icon wrapper */
.btn-glyph { display: inline-flex; align-items: center; line-height: 0; }
.hero-actions .btn { display: inline-flex; align-items: center; gap: 8px; }

/* Footer quiz link (looks like a normal footer link) */
.footer-quiz-link {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}
.footer-quiz-link:hover { text-decoration: underline; }

/* Mobile drawer quiz trigger */
.drawer-quiz {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 12px 16px;
  border: 1.5px solid var(--herbal, #2d6a4f);
  background: var(--herbal, #2d6a4f);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 16px;
  border-radius: var(--r-md, 24px);
  cursor: pointer;
}
.drawer-quiz-icon { display: inline-flex; align-items: center; line-height: 0; }
.drawer-quiz:hover { background: var(--herbal-deep, #1b4332); }

.hakeem-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  font-family: var(--font-ui, 'Inter', Arial, sans-serif);
}
.hakeem-modal.open { display: flex; }

.hakeem-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(2px);
}

.hakeem-sheet {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas, #fff);
  border-radius: var(--r-md, 24px) var(--r-md, 24px) 0 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

/* Header */
.hakeem-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--hairline-soft, #e5e5e5);
}
.hakeem-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--herbal, #2d6a4f);
  font-weight: 700;
}
.hakeem-head-text strong {
  display: block;
  font-family: var(--font-display, 'Bebas Neue', sans-serif);
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--ink, #111);
}
.hakeem-close {
  border: 0;
  background: var(--soft-cloud, #f5f5f5);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--ink, #111);
  cursor: pointer;
  line-height: 1;
}
.hakeem-close:hover { background: var(--hairline, #cacacb); }

/* Progress */
.hakeem-progress {
  height: 4px;
  background: var(--hairline-soft, #e5e5e5);
}
.hakeem-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--herbal, #2d6a4f);
  transition: width 0.3s ease;
}
.hakeem-step-label {
  padding: 10px 18px 0;
  font-size: 12px;
  color: var(--mute, #707072);
  font-weight: 600;
}

/* Body */
.hakeem-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  -webkit-overflow-scrolling: touch;
}
.hakeem-body.fade-in { animation: hakeemFade 0.28s ease; }
@keyframes hakeemFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hakeem-q {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink, #111);
  margin: 4px 0 16px;
  line-height: 1.3;
}

/* Option buttons */
.hakeem-opts { display: flex; flex-direction: column; gap: 10px; }
.hakeem-opts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.hakeem-opt {
  text-align: left;
  border: 1.5px solid var(--hairline, #cacacb);
  border-radius: var(--r-md, 24px);
  background: #fff;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}
.hakeem-opt:hover { border-color: var(--herbal, #2d6a4f); }
.hakeem-opt.is-selected {
  border-color: var(--herbal, #2d6a4f);
  background: var(--herbal-soft, #d8f3dc);
}
.hakeem-opt-label { display: block; font-size: 15px; font-weight: 600; color: var(--ink, #111); }
.hakeem-opt-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--mute, #707072); }

/* Contact form */
.hakeem-form { display: flex; flex-direction: column; gap: 14px; }
.hakeem-field span { display: block; font-size: 13px; font-weight: 600; color: var(--charcoal, #39393b); margin-bottom: 6px; }
.hakeem-field em { color: var(--stone, #9e9ea0); font-weight: 400; }
.hakeem-field input {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--hairline, #cacacb);
  border-radius: var(--r-md, 24px);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink, #111);
}
.hakeem-field input:focus { outline: none; border-color: var(--herbal, #2d6a4f); }
.hakeem-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ash, #4b4b4d);
  cursor: pointer;
}
.hakeem-consent input { margin-top: 2px; width: 16px; height: 16px; }
.hakeem-submit {
  border: 0;
  border-radius: var(--r-full, 9999px);
  background: var(--herbal, #2d6a4f);
  color: var(--on-primary, #fff);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  padding: 14px;
  cursor: pointer;
}
.hakeem-submit:hover { background: var(--herbal-deep, #1b4332); }
.hakeem-submit:disabled { opacity: 0.7; cursor: default; }
.hakeem-note { margin: 0; font-size: 12px; color: var(--mute, #707072); text-align: center; }

/* Result */
.hakeem-result { display: flex; flex-direction: column; gap: 12px; }
.hakeem-result-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--herbal-soft, #d8f3dc);
  color: var(--herbal, #2d6a4f);
  font-size: 24px;
}
.hakeem-result-title { font-size: 20px; font-weight: 800; color: var(--ink, #111); margin: 4px 0 0; }
.hakeem-result p { color: var(--ash, #4b4b4d); line-height: 1.5; }

.hakeem-card {
  display: flex;
  gap: 14px;
  border: 1px solid var(--hairline, #cacacb);
  border-radius: var(--r-md, 24px);
  padding: 14px;
  position: relative;
}
.hakeem-card.is-primary { border-color: var(--herbal, #2d6a4f); box-shadow: 0 0 0 1px var(--herbal, #2d6a4f); }
.hakeem-card-badge {
  position: absolute;
  top: -9px;
  left: 14px;
  background: var(--herbal, #2d6a4f);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full, 9999px);
}
.hakeem-card-media {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--soft-cloud, #f5f5f5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hakeem-card-media img { width: 100%; height: 100%; object-fit: contain; }
.hakeem-card-body { flex: 1; display: flex; flex-direction: column; }
.hakeem-card h4 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ink, #111); }
.hakeem-card-why { margin: 0 0 10px; font-size: 12px; color: var(--mute, #707072); line-height: 1.4; }
.hakeem-card-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hakeem-card-price { font-size: 15px; font-weight: 700; color: var(--herbal-deep, #1b4332); }
.hakeem-atc {
  border: 0;
  border-radius: var(--r-full, 9999px);
  background: var(--herbal, #2d6a4f);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 16px;
  cursor: pointer;
  white-space: nowrap;
}
.hakeem-atc:hover { background: var(--herbal-deep, #1b4332); }
.hakeem-atc:disabled { opacity: 0.7; }

.hakeem-wa-btn {
  display: block;
  text-align: center;
  border-radius: var(--r-full, 9999px);
  background: var(--success-bright, #1eaa52);
  color: #fff;
  font-weight: 700;
  padding: 13px;
  text-decoration: none;
}
.hakeem-wa-btn:hover { background: #1eb85a; color: #fff; }

.hakeem-help { font-size: 13px; color: var(--ash, #4b4b4d); text-align: center; }
.hakeem-help a { color: var(--herbal, #2d6a4f); font-weight: 600; }
.hakeem-tabeeb {
  display: inline-block;
  margin-top: 4px;
  text-align: center;
  border: 1.5px solid var(--herbal, #2d6a4f);
  color: var(--herbal, #2d6a4f);
  border-radius: var(--r-full, 9999px);
  padding: 12px 18px;
  font-weight: 700;
  text-decoration: none;
}
.hakeem-retake {
  border: 0;
  background: none;
  color: var(--mute, #707072);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}

/* Foot */
.hakeem-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px 14px;
  border-top: 1px solid var(--hairline-soft, #e5e5e5);
}
.hakeem-back {
  border: 0;
  background: none;
  color: var(--herbal, #2d6a4f);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
}
.hakeem-back.is-hidden { visibility: hidden; }
.hakeem-foot-note { font-size: 11px; color: var(--stone, #9e9ea0); }

/* Desktop: center the sheet as a dialog */
@media (min-width: 600px) {
  .hakeem-modal { align-items: center; }
  .hakeem-sheet { border-radius: var(--r-md, 24px); max-height: 88vh; }
}
