/* Consultation triage modal — sleek, modern telemedicine styling (accessible fonts, catchy colors, at-a-glance non-scrolling) */

[x-cloak] { display: none !important; }

:root, .vd-modal-overlay {
  --vd-pri: #1d68b2;
  --vd-pri-hover: #1558a0;
  --vd-accent: #07ddff;
  --vd-opt-bg: #f0f7ff;
  --vd-opt-hover: #e0f2fe;
  --vd-opt-border: #bfdbfe;
  --vd-opt-border-left: #1d68b2;
  --vd-badge-bg: #e0f2fe;
  --vd-badge-color: #0284c7;
  --vd-rec-bg: #eff6ff;
  --vd-scrollbar: #e91e8c;
}

/* Modal overlay */
.vd-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--vd-scrollbar) transparent;
}

.vd-modal-overlay::-webkit-scrollbar {
  width: 6px;
}
.vd-modal-overlay::-webkit-scrollbar-thumb {
  background: var(--vd-scrollbar);
  border-radius: 10px;
}
.vd-modal-overlay::-webkit-scrollbar-track {
  background: transparent;
}

.vd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(4px);
}

/* Main Modal Panel */
.vd-modal-panel {
  position: relative;
  background: #FFFFFF;
  border-radius: 18px;
  max-width: 550px;
  width: 100%;
  padding: 22px 24px;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.28);
  border: 1px solid #e2e8f0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #0f172a;
  overflow: hidden;
  max-height: 94vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--vd-scrollbar) transparent;
}

.vd-modal-panel::-webkit-scrollbar {
  width: 6px;
}
.vd-modal-panel::-webkit-scrollbar-thumb {
  background: var(--vd-scrollbar);
  border-radius: 10px;
}
.vd-modal-panel::-webkit-scrollbar-track {
  background: transparent;
}

/* Sleek 3.5px top progress bar */
.vd-modal-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3.5px;
  background: #e2e8f0;
}
.vd-modal-progress-fill {
  height: 100%;
  background: var(--vd-pri);
  transition: width .25s ease;
}

/* Close button */
.vd-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  z-index: 10;
}
.vd-modal-close:hover { background: #e2e8f0; color: #0f172a; }

/* Accessible, clear typography */
.vd-h1 {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.25;
  color: #0f172a;
  margin: 0 36px 3px 0;
}

.vd-lede {
  color: #475569;
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 12px;
  font-weight: 500;
}

.vd-q-title {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 10px;
}

/* Catchy, accessible option cards */
.vd-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vd-opt {
  text-align: left;
  background: var(--vd-opt-bg);
  border: 1.5px solid var(--vd-opt-border);
  border-left: 4px solid var(--vd-opt-border-left);
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: inherit;
  color: #0f172a;
  width: 100%;
  transition: all .15s ease;
}
.vd-opt:hover {
  border-color: var(--vd-pri);
  border-left-color: var(--vd-pri);
  background: var(--vd-opt-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(29, 104, 178, 0.12);
}
.vd-opt-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: var(--vd-pri);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
  transition: all .15s ease;
}
.vd-opt:hover .vd-opt-icon {
  background: var(--vd-pri);
  color: #ffffff;
  border-color: var(--vd-pri);
}
.vd-opt-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vd-opt-label {
  font-weight: 700;
  font-size: 14.5px;
  color: #0f172a;
  line-height: 1.3;
}
.vd-opt-sub {
  font-size: 12px;
  color: #475569;
  line-height: 1.35;
  font-weight: 500;
}

/* Back button */
.vd-back {
  background: none; border: none; color: #475569; font-size: 13px; font-weight: 700;
  cursor: pointer; padding: 0 0 8px; font-family: inherit; display: inline-flex; align-items: center; gap: 4px;
}
.vd-back:hover { color: var(--vd-pri); }

/* Step 3: Recommendation card */
.vd-rec-card {
  background: #FFFFFF;
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 16px 18px;
}
.vd-rec-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.vd-rec-eyebrow {
  color: var(--vd-badge-color);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: var(--vd-badge-bg);
  padding: 3px 9px;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 4px;
}
.vd-rec-name {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}
.vd-rec-price {
  color: var(--vd-pri);
  font-weight: 800;
  font-size: 17px;
  white-space: nowrap;
  text-align: right;
}
.vd-rec-price-sub {
  font-size: 11.5px;
  color: #475569;
  font-weight: 600;
  display: block;
}

.vd-rec-why {
  background: var(--vd-rec-bg);
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  color: #1e40af;
  line-height: 1.5;
  margin-bottom: 12px;
}

.vd-rec-features {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vd-rec-features li {
  font-size: 12.5px;
  color: #334155;
  padding-left: 20px;
  position: relative;
  line-height: 1.45;
  font-weight: 500;
}
.vd-rec-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: #059669;
  font-size: 13px;
}

/* Primary CTA */
.vd-cta {
  background: var(--vd-pri);
  color: #FFFFFF;
  border: none;
  border-radius: 11px;
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  transition: all .15s ease;
}
.vd-cta:hover {
  background: var(--vd-pri-hover);
  transform: translateY(-1px);
}

.vd-see-others {
  display: block;
  text-align: center;
  background: none;
  border: none;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 10px;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}
.vd-see-others:hover { color: var(--vd-pri); text-decoration: underline; }

/* Plan List (if others toggled) */
.vd-plans-title { font-family: 'Poppins', system-ui, -apple-system, sans-serif; font-size: 15.5px; font-weight: 700; margin: 18px 0 2px; color: #0f172a; }
.vd-plans-sub { color: #475569; font-size: 12px; margin: 0 0 10px; }
.vd-plan-list { display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow-y: auto; padding-right: 4px; }
.vd-plan {
  background: #FFFFFF; border: 1.5px solid #bfdbfe; border-left: 4px solid var(--vd-pri);
  border-radius: 11px; padding: 11px 14px; transition: all .15s ease;
}
.vd-plan-rec { border-left-color: var(--vd-pri); background: #f0f7ff; }
.vd-plan-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.vd-plan-name { font-family: 'Poppins', system-ui, -apple-system, sans-serif; font-size: 14.5px; font-weight: 700; color: #0f172a; }
.vd-plan-price { font-size: 13.5px; font-weight: 700; color: var(--vd-pri); white-space: nowrap; }
.vd-plan-tag { display: inline-block; font-size: 10.5px; font-weight: 700; color: var(--vd-badge-color); background: var(--vd-badge-bg); padding: 1px 7px; border-radius: 12px; margin-bottom: 4px; }
.vd-plan-best { font-size: 12px; color: #475569; margin: 0 0 6px; }
.vd-plan-meta { font-size: 11.5px; font-weight: 600; color: #64748b; margin: 0 0 8px; }
.vd-plan-book {
  background: none; border: 1.5px solid var(--vd-pri); color: var(--vd-pri); border-radius: 8px;
  padding: 6px 13px; font-size: 12.5px; font-weight: 700; cursor: pointer; font-family: inherit; transition: all .15s;
}
.vd-plan-rec .vd-plan-book { background: var(--vd-pri); color: #FFFFFF; }
.vd-plan-book:hover { background: var(--vd-pri); color: #FFFFFF; }

/* Nudge Box */
.vd-nudge { margin-top: 10px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; }
.vd-nudge p { font-size: 12px; color: #92400e; line-height: 1.45; margin: 0 0 8px; }
.vd-nudge label { display: flex; gap: 7px; align-items: flex-start; font-size: 12px; color: #78350f; font-weight: 600; margin-bottom: 10px; cursor: pointer; }
.vd-nudge input[type="checkbox"] { margin-top: 2px; }
.vd-confirm-book {
  background: #cbd5e1; color: #FFFFFF; border: none; border-radius: 8px;
  padding: 8px 14px; font-size: 12.5px; font-weight: 700; cursor: not-allowed;
  font-family: inherit; width: 100%; transition: all .15s;
}
.vd-confirm-book-enabled { background: #b45309; cursor: pointer; }

/* Confirmation overlay */
.vd-confirm-panel { text-align: center; padding: 20px 0 4px; }
.vd-confirm-check {
  width: 44px; height: 44px; border-radius: 50%; background: #ecfdf5; color: #059669;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; font-size: 20px; font-weight: 800;
}

/* Mobile responsive rules — high contrast, accessible, at-a-glance */
@media (max-width: 640px) {
  .vd-modal-overlay {
    padding: 10px 8px;
    align-items: center;
  }
  .vd-modal-panel {
    padding: 16px 12px;
    border-radius: 16px;
    max-height: 96vh;
    width: 100%;
  }
  .vd-h1 {
    font-size: 17.5px;
    margin-right: 32px;
    margin-bottom: 3px;
  }
  .vd-lede {
    font-size: 12px;
    margin-bottom: 9px;
    line-height: 1.35;
  }
  .vd-q-title {
    font-size: 14.5px;
    margin-bottom: 8px;
  }
  .vd-options {
    gap: 7px;
  }
  .vd-opt {
    padding: 8px 10px;
    gap: 10px;
  }
  .vd-opt-icon {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-radius: 8px;
  }
  .vd-opt-label {
    font-size: 13.5px;
    line-height: 1.25;
  }
  .vd-opt-sub {
    font-size: 11.5px;
    line-height: 1.35;
  }
  .vd-rec-card {
    padding: 12px 14px;
  }
  .vd-rec-name {
    font-size: 17px;
  }
  .vd-rec-price {
    font-size: 15px;
  }
  .vd-rec-why {
    font-size: 12px;
    padding: 8px 10px;
    margin-bottom: 10px;
  }
  .vd-cta {
    padding: 11px 16px;
    font-size: 14px;
  }
}
