:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --soft: #eef4fb;
  --ink: #08275a;
  --muted: #65738d;
  --line: #d7e2ef;
  --blue: #1478d4;
  --blue-2: #35a3ed;
  --green: #35be78;
  --teal: #15a6bd;
  --shadow: 0 18px 34px rgba(16, 43, 79, 0.16);
  --card-shadow: 0 2px 8px rgba(16, 43, 79, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: radial-gradient(circle at top, #fbfdff 0, var(--bg) 52%, #edf2f8 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone {
  width: min(100%, 390px);
  min-height: 610px;
  background: linear-gradient(180deg, #f8fbff 0, #eef4fb 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none;
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  flex-shrink: 0;
}

.topbar-light {
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.bluebar {
  color: white;
  justify-content: center;
  background: linear-gradient(135deg, #2f9ceb, #0472ca);
  font-size: 16px;
  font-weight: 700;
}

.brand {
  border: 0;
  background: transparent;
  color: #0072ce;
  font-size: 25px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.brand.centered {
  margin: 0 auto;
  transform: translateX(-16px);
}

.brand-mark {
  width: 27px;
  height: 20px;
  display: inline-block;
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 50%, #fff 0 17%, transparent 18%),
    linear-gradient(135deg, #0eb5b9 0 43%, #0875d6 44% 100%);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  right: 1px;
  top: 4px;
  border: 3px solid #ffffff;
  border-left-color: transparent;
}

.menu-button {
  margin-left: auto;
  width: 52px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #596a85;
  display: grid;
  justify-items: end;
  align-content: center;
  gap: 4px;
}

.menu-button span {
  width: 17px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.back-button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  position: relative;
  flex-shrink: 0;
}

.back-button::before {
  content: "";
  position: absolute;
  width: 13px;
  height: 13px;
  border-left: 2px solid #256ba8;
  border-bottom: 2px solid #256ba8;
  transform: rotate(45deg);
  left: 12px;
  top: 11px;
}

.back-button.light {
  position: absolute;
  left: 18px;
}

.back-button.light::before {
  border-color: #ffffff;
}

.home-content,
.screen-content,
.question-content,
.estimate-content,
.eligibility-content,
.menu-content,
.info-content,
.admin-content,
.lead-content,
.submitted-content {
  padding: 24px 22px;
}

.home-content {
  text-align: center;
  flex: 1;
  overflow-y: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 300px;
  margin: 8px auto 12px;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: 0;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0;
}

.home-content > p,
.lead-content > p,
.submitted-content > p {
  font-size: 14px;
  color: #263a60;
}

.search-box {
  height: 58px;
  margin: 26px 0 30px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid #cfddec;
  border-radius: 9px;
  box-shadow: var(--card-shadow);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 12px;
  background: transparent;
  text-overflow: ellipsis;
}

.icon-search {
  width: 17px;
  height: 17px;
  border: 2px solid #7d8da7;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.icon-search::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #7d8da7;
  transform: rotate(45deg);
  right: -6px;
  bottom: -3px;
  border-radius: 999px;
}

.section-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  color: #2d3f5d;
  font-size: 14px;
  margin-bottom: 22px;
}

.section-title span,
.rule {
  height: 1px;
  background: var(--line);
}

.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.popular-card {
  min-height: 108px;
  border: 1px solid #d8e3ef;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  color: var(--ink);
  padding: 9px 6px;
  display: grid;
  gap: 7px;
  place-items: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.05;
}

.popular-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.05;
}

.popular-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.menu-row {
  width: 100%;
  min-height: 52px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  color: var(--ink);
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 28px 1fr 14px;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.menu-row strong {
  display: block;
  font-size: 14px;
  line-height: 1.15;
}

.menu-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.scheme-card {
  width: 100%;
  min-height: 64px;
  margin-top: 20px;
  border: 1px solid #cfe0ee;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  color: var(--ink);
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 38px 1fr 16px;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.menu-content,
.info-content {
  flex: 1;
}

.menu-content h2,
.info-content h2 {
  margin: 4px 0 20px;
}

.menu-list,
.info-steps {
  display: grid;
  gap: 10px;
}

.menu-row {
  min-height: 70px;
  grid-template-columns: 42px 1fr 16px;
  padding: 14px;
}

.menu-row::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  justify-self: end;
}

.menu-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #35a3ed, #0473cc);
  position: relative;
}

.menu-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 5px;
  background: #ffffff;
}

.menu-icon.scheme {
  background: linear-gradient(135deg, #35be78, #1594d2);
}

.menu-icon.guide {
  background: linear-gradient(135deg, #7aa6ff, #1478d4);
}

.menu-icon.partners {
  background: linear-gradient(135deg, #123064, #20a5ba);
}

.menu-icon.care {
  background: linear-gradient(135deg, #19b7c5, #35be78);
}

.menu-icon.admin {
  background: linear-gradient(135deg, #123064, #1478d4);
}

.info-steps {
  margin-bottom: 18px;
}

.info-steps div {
  min-height: 84px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  padding: 14px 14px 14px 58px;
  position: relative;
}

.info-steps span {
  position: absolute;
  left: 14px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blue);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-weight: 900;
}

.info-steps strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.info-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.partner-content {
  overflow-y: auto;
}

.partner-intro {
  margin: -6px 0 16px;
  color: #314260;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.partner-card {
  min-height: 92px;
  margin-bottom: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  padding: 14px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
}

.partner-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.partner-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.partner-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #20a5ba, #1478d4);
  position: relative;
}

.partner-icon::before,
.partner-icon::after {
  content: "";
  position: absolute;
  background: #ffffff;
}

.partner-icon::before {
  width: 18px;
  height: 18px;
  left: 12px;
  top: 8px;
  border-radius: 50%;
}

.partner-icon::after {
  width: 24px;
  height: 12px;
  left: 9px;
  bottom: 8px;
  border-radius: 999px 999px 5px 5px;
}

.partner-steps {
  margin-bottom: 16px;
}

.scheme-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.2;
}

.scheme-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.scheme-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #35be78, #1594d2);
  position: relative;
}

.scheme-icon::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 20px;
  left: 10px;
  top: 9px;
  border-radius: 5px;
  background: #ffffff;
}

.scheme-icon::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 7px;
  left: 14px;
  top: 15px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

.treatment-art {
  width: 48px;
  height: 44px;
  border-radius: 14px;
  position: relative;
  background: linear-gradient(135deg, #ff756f, #ffbd75);
}

.treatment-art::before,
.treatment-art::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.treatment-art::before {
  width: 32px;
  height: 28px;
  left: 4px;
  bottom: 2px;
  background: rgba(255, 255, 255, 0.28);
  border: 2px solid rgba(255, 255, 255, 0.58);
}

.treatment-art::after {
  width: 14px;
  height: 20px;
  right: 3px;
  top: -2px;
  background: #ffd961;
  box-shadow: 0 14px 0 rgba(255, 255, 255, 0.32);
}

.treatment-art.kidney {
  background: linear-gradient(135deg, #72c8ff, #ee7f82);
}

.treatment-art.hernia {
  background: linear-gradient(135deg, #ff6878, #ffb18c);
}

.treatment-art.delivery {
  background: linear-gradient(135deg, #ff8e6c, #ffd0b8);
}

.treatment-art.kidney::before {
  width: 15px;
  height: 25px;
  left: 8px;
  bottom: 9px;
}

.treatment-art.kidney::after {
  width: 15px;
  height: 25px;
  right: 8px;
  top: 9px;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: none;
}

.treatment-art.hernia::before {
  width: 33px;
  height: 22px;
  left: 7px;
  bottom: 8px;
}

.treatment-art.hernia::after {
  width: 20px;
  height: 12px;
  right: 4px;
  top: 9px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.treatment-art.delivery::before {
  width: 30px;
  height: 30px;
  left: 8px;
  bottom: 7px;
}

.treatment-art.delivery::after {
  width: 23px;
  height: 23px;
  right: 2px;
  top: 8px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}

.trust-strip {
  height: 102px;
  padding: 0 18px;
  border-top: 1px solid var(--line);
  background: #fbfdff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-strip div {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
  color: #263a60;
  font-size: 12px;
  line-height: 1.15;
}

.trust-strip div + div {
  border-left: 1px solid var(--line);
}

.trust-icon,
.card-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #12acc2, #198ad8);
  position: relative;
}

.trust-icon::before,
.card-icon::before {
  content: "";
  width: 18px;
  height: 22px;
  background: #fff;
  border-radius: 4px;
}

.trust-icon.clock::before {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: transparent;
  border: 3px solid #fff;
}

.trust-icon.lock::before {
  height: 16px;
  border-radius: 4px;
}

.trust-icon.document::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  right: 10px;
  bottom: 10px;
  border-radius: 50%;
  background: #fff;
}

.trust-icon.clock::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: #fff;
  left: 21px;
  top: 20px;
  transform-origin: left center;
  transform: rotate(-45deg);
}

.trust-icon.lock::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 10px;
  border: 3px solid #fff;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  left: 13px;
  top: 9px;
}

.screen-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.screen-content h2 {
  margin: 4px 0 16px;
}

.condition-group {
  margin-top: 16px;
}

.condition-group h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: #2e4364;
}

.condition-list {
  display: grid;
  gap: 9px;
}

.condition-row {
  min-height: 54px;
  border: 1px solid #dbe5f0;
  background: var(--surface);
  border-radius: 6px;
  box-shadow: var(--card-shadow);
  color: var(--ink);
  padding: 0 14px;
  display: grid;
  grid-template-columns: 30px 1fr 18px;
  align-items: center;
  text-align: left;
  font-size: 17px;
  font-weight: 800;
}

.condition-row.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(20, 120, 212, 0.14), var(--card-shadow);
}

.condition-icon {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  background: linear-gradient(135deg, #2cb4d9, #4fa3e9);
}

.condition-row:nth-child(2) .condition-icon,
.condition-row[data-name="Hernia"] .condition-icon {
  background: linear-gradient(135deg, #ff6d79, #ff9b8b);
}

.condition-row:nth-child(3) .condition-icon,
.condition-row[data-name="Appendix"] .condition-icon {
  background: linear-gradient(135deg, #ff896e, #ffb58b);
}

.condition-row::after,
.chevron {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  justify-self: end;
  display: inline-block;
  flex-shrink: 0;
}

.primary-button,
.success-button,
.scheme-button,
.whatsapp-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #35a5ee, #0473cc);
  box-shadow: 0 8px 18px rgba(20, 120, 212, 0.2);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}

.scheme-button {
  margin-bottom: 10px;
  border: 1px solid rgba(21, 166, 189, 0.25);
  color: #ffffff;
  background: linear-gradient(135deg, #23b8c8, #1478d4);
}

.primary-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.success-button {
  margin-top: 10px;
  background: linear-gradient(135deg, #5bd486, #21ae67);
}

.estimate-content .success-button + .scheme-button {
  margin-top: 10px;
}

.screen-content > .primary-button {
  margin-top: auto;
}

.question-content {
  flex: 1;
  text-align: center;
}

.progress-track {
  height: 4px;
  background: #d7e5f3;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 32px;
}

.progress-track span {
  display: block;
  width: 25%;
  height: 100%;
  background: var(--blue);
  transition: width 180ms ease;
}

.question-content h2 {
  max-width: 290px;
  min-height: 64px;
  margin: 0 auto 24px;
  font-size: 21px;
  font-weight: 500;
}

.answers {
  display: grid;
  gap: 10px;
  text-align: left;
}

.answer-row {
  min-height: 62px;
  border: 1px solid #d6e1ee;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--card-shadow);
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.radio {
  width: 24px;
  height: 24px;
  border: 2px solid #b9cbe0;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.answer-row.selected .radio {
  border-color: var(--blue);
  background: var(--blue);
}

.answer-row.selected .radio::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.question-footer {
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.estimate-content {
  flex: 1;
}

.admin-phone {
  width: min(100%, 960px);
  min-height: 720px;
}

.admin-content {
  flex: 1;
  overflow-y: auto;
  background: linear-gradient(180deg, #f8fbff 0, #eef4fb 100%);
}

.admin-content h2 {
  margin: 2px 0 0;
  text-align: left;
}

.admin-eyebrow {
  display: block;
  margin-bottom: 2px;
  color: #1478d4;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.admin-metrics div {
  min-height: 70px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  display: grid;
  place-items: center;
  align-content: center;
}

.admin-metrics strong {
  font-size: 21px;
}

.admin-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.admin-tabs {
  display: grid;
  grid-template-columns: repeat(10, minmax(94px, 1fr));
  gap: 6px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
  display: none;
}

.admin-tabs button,
.ghost-button {
  min-height: 38px;
  border: 1px solid #cfddec;
  border-radius: 7px;
  background: #ffffff;
  color: #263a60;
  font-size: 12px;
  font-weight: 900;
}

.admin-tabs button.active {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.hospital-mode [data-admin-tab]:not([data-admin-tab="leads"]),
.hospital-mode [data-admin-panel]:not([data-admin-panel="leads"]) {
  display: none;
}

.hospital-mode .admin-tabs {
  grid-template-columns: 1fr;
}

.hospital-mode #seedLeadButton,
.hospital-mode #clearLeadsButton {
  display: none;
}

.hospital-mode .lead-filters {
  grid-template-columns: 1fr;
}

.admin-panel {
  display: grid;
  gap: 14px;
}

.admin-panel.hidden {
  display: none;
}

.admin-form {
  margin-top: 0;
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.admin-form .primary-button {
  min-height: 42px;
  font-size: 14px;
}

.admin-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
}

.admin-panel-header.compact {
  align-items: center;
}

.admin-panel-header h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 17px;
}

.admin-panel-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.admin-module-card {
  min-height: 118px;
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  color: var(--ink);
  text-align: left;
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-module-card::before {
  content: "";
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #35a3ed, #15a6bd);
}

.admin-module-card strong {
  font-size: 14px;
}

.admin-module-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-form label,
.admin-check {
  display: grid;
  gap: 6px;
  color: #2d3f5d;
  font-size: 12px;
  font-weight: 900;
}

.admin-form label span {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
}

.admin-form input,
.cost-inputs input {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d6e1ee;
  border-radius: 7px;
  padding: 0 11px;
  color: var(--ink);
  outline: 0;
}

.admin-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lead-filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 8px;
}

.lead-filters input,
.lead-filters select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d6e1ee;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 10px;
  outline: 0;
  font-size: 12px;
  font-weight: 800;
}

.admin-check {
  display: flex;
  align-items: center;
}

.admin-check input {
  width: 18px;
  min-height: 18px;
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-item {
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.compact-lead {
  grid-template-columns: 1fr auto;
}

.admin-item strong {
  display: block;
  font-size: 14px;
}

.admin-item span,
.admin-item small,
.admin-note,
.admin-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-item-actions,
.admin-actions,
.cost-inputs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-item-actions button,
.cost-inputs button {
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: #e9f3ff;
  color: #0b5fab;
  font-size: 12px;
  font-weight: 900;
  padding: 0 10px;
}

.cost-item {
  grid-template-columns: 170px 1fr;
}

.cost-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
  align-items: end;
}

.cost-inputs label {
  display: grid;
  gap: 5px;
  color: #2d3f5d;
  font-size: 11px;
  font-weight: 900;
}

.cost-inputs label span {
  color: var(--muted);
}

.cost-inputs input + input {
  margin-top: 4px;
}

.lead-item {
  align-items: start;
}

.admin-session {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

.auth-content {
  flex: 1;
  padding: 28px 22px;
}

.auth-content h2 {
  margin-bottom: 8px;
}

.auth-content > p {
  color: #314260;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.login-error {
  margin: 0;
  color: #c53333;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.demo-credentials {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  display: grid;
  gap: 6px;
  color: #304260;
  font-size: 12px;
}

.demo-credentials strong {
  color: var(--ink);
  font-size: 14px;
}

@media (max-width: 720px) {
  .admin-phone {
    width: min(100%, 390px);
    min-height: 100vh;
  }

  .admin-item,
  .cost-item,
  .compact-lead {
    grid-template-columns: 1fr;
  }

  .admin-metrics,
  .admin-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .admin-tabs {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: visible;
  }

  .admin-panel-header,
  .admin-panel-header.compact {
    display: grid;
  }

  .lead-filters {
    grid-template-columns: 1fr;
  }

  .cost-inputs {
    grid-template-columns: 1fr;
  }

  .admin-item-actions,
  .admin-actions {
    justify-content: stretch;
  }

  .admin-item-actions button,
  .cost-inputs button,
  .ghost-button {
    flex: 1;
  }
}

.estimate-content h2 {
  margin: 2px 0 7px;
  font-size: 19px;
  text-align: left;
}

.price-range {
  margin: 12px 0 4px;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 950;
  text-align: center;
}

.estimate-note {
  min-height: 24px;
  margin: 0 0 12px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
}

.estimate-card {
  min-height: 108px;
  margin-bottom: 10px;
  padding: 14px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  background: var(--surface);
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  box-shadow: var(--card-shadow);
}

.estimate-card h3 {
  margin: 0 0 4px;
  color: #006bd0;
  font-size: 18px;
}

.estimate-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
}

.estimate-card p {
  margin: 4px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
}

.card-icon.procedure {
  background: #0473cc;
}

.card-icon::before {
  width: 20px;
  height: 16px;
  border-radius: 2px;
}

.check {
  width: 13px;
  height: 8px;
  border-left: 3px solid #00a972;
  border-bottom: 3px solid #00a972;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

.compact {
  margin: 14px 0 8px;
  font-size: 18px;
}

.factor-list {
  list-style: none;
  padding: 0 0 10px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.factor-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-size: 15px;
  font-weight: 600;
}

.check-round {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #2a86df;
  position: relative;
}

.check-round::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
  left: 5px;
  top: 5px;
}

.assurance {
  margin: 12px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.eligibility-content {
  flex: 1;
  overflow-y: auto;
}

.eligibility-content h2 {
  margin: 6px 0 8px;
  font-size: 23px;
}

.eligibility-intro {
  margin-bottom: 18px;
  color: #314260;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}

.eligibility-form {
  margin-top: 0;
}

.scheme-step {
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.scheme-step > strong {
  color: var(--blue);
  font-size: 13px;
  text-align: left;
}

.field-label {
  display: grid;
  gap: 7px;
  text-align: left;
  color: #2d3f5d;
  font-size: 13px;
  font-weight: 800;
}

.field-label span {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
}

.field-label small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field-label input,
.field-label select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d6e1ee;
  border-radius: 7px;
  box-shadow: var(--card-shadow);
  padding: 0 13px;
  color: var(--ink);
  background: #ffffff;
  outline: 0;
}

.field-label select:disabled {
  color: #93a1b7;
  background: #f3f7fb;
}

.scheme-hospitals {
  margin-top: 16px;
}

.scheme-hospital-list {
  display: grid;
  gap: 8px;
}

.scheme-hospital-card {
  border: 1px solid #d8e3ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--card-shadow);
  padding: 12px 14px;
  text-align: left;
}

.scheme-hospital-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.scheme-hospital-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.eligibility-result {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(53, 190, 120, 0.28);
  border-radius: 8px;
  background: #f5fff9;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.eligibility-result.review {
  border-color: rgba(20, 120, 212, 0.28);
  background: #f5faff;
}

.result-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--green);
  display: block;
  position: relative;
}

.review .result-icon {
  background: var(--blue);
}

.result-icon::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 8px;
  left: 10px;
  top: 11px;
  border-left: 4px solid #ffffff;
  border-bottom: 4px solid #ffffff;
  transform: rotate(-45deg);
}

.eligibility-result h3 {
  margin-bottom: 6px;
  color: #123064;
  font-size: 18px;
}

.eligibility-result p {
  margin-bottom: 12px;
  color: #304260;
  font-size: 13px;
  line-height: 1.35;
}

.lead-content {
  text-align: center;
  background: #f8fbff;
  flex: 1;
}

.lead-content h2 {
  margin: 0 0 16px;
  font-size: 19px;
}

.big-check {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--blue);
  display: block;
  position: relative;
}

.big-check::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 10px;
  border-left: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(-45deg);
  left: 10px;
  top: 12px;
}

.big-check.green {
  background: var(--green);
}

form {
  display: grid;
  gap: 9px;
  margin-top: 22px;
}

form label span {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
}

.admin-form label span,
.admin-check span {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  overflow: visible;
}

form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d6e1ee;
  border-radius: 7px;
  box-shadow: var(--card-shadow);
  padding: 0 14px;
  color: var(--ink);
  outline: 0;
}

form small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.submitted-phone {
  min-height: 210px;
}

.submitted-content {
  padding-top: 28px;
  text-align: center;
  background: linear-gradient(180deg, #f7fcff, #eef7ff);
}

.submitted-content {
  display: grid;
  gap: 8px;
}

.submitted-content .big-check {
  margin-bottom: 0;
}

.submitted-content h2 {
  margin: 0;
  font-size: 18px;
}

.whatsapp-button {
  width: auto;
  min-width: 252px;
  justify-self: center;
  margin-top: 10px;
  background: linear-gradient(135deg, #2ec4c4, #1592a8);
  font-size: 16px;
}

.skip-button {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px solid #cfddec;
  border-radius: 7px;
  background: #ffffff;
  color: #52627c;
  font-size: 15px;
  font-weight: 900;
}

.wa-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: inline-block;
  position: relative;
}

.wa-dot::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-left: 3px solid #1eaeb5;
  border-bottom: 3px solid #1eaeb5;
  transform: rotate(-30deg);
  left: 7px;
  top: 5px;
}

@media (max-width: 430px) {
  .app-shell {
    padding: 0;
    place-items: stretch;
  }

  .phone {
    width: 100%;
    min-height: 100vh;
    box-shadow: none;
  }

  .popular-grid {
    gap: 7px;
  }

  .popular-card {
    font-size: 11px;
    padding-inline: 4px;
  }
}
