/* On-Demand TCM — mockup styles
   One font (Nunito), nature-green accent, rounded UI, white + light greys. */

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,400;0,600;0,700;0,800&display=swap');

:root {
  --green:       #3f8f5b;
  --green-dark:  #2f6d45;
  --green-tint:  #eaf4ee;
  --green-soft:  #f3f9f5;
  --bg:          #f1f3f1;
  --card:        #ffffff;
  --text:        #2a2f2b;
  --muted:       #828a83;
  --border:      #e6e8e6;
  --danger:      #c0492f;
  --danger-tint: #fbeeeb;
  --radius:      22px;
  --radius-sm:   14px;
  --shadow:      0 10px 30px rgba(40, 60, 45, 0.08);
  --shadow-card: 0 3px 12px rgba(40, 60, 45, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 28px 16px 60px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Phone frame */
.phone {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  min-height: 720px;
  display: flex;
  flex-direction: column;
}

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.appbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px 14px;
}
.appbar .back {
  text-decoration: none;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
}
.appbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 16px;
}
.leaf {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--green-tint);
  display: grid;
  place-items: center;
  font-size: 14px;
}

.content {
  padding: 6px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Progress dots */
.steps {
  display: flex;
  gap: 6px;
  padding: 0 22px 14px;
}
.steps span {
  height: 5px;
  flex: 1;
  border-radius: 999px;
  background: var(--border);
}
.steps span.on { background: var(--green); }

/* Typography */
h1 { font-size: 25px; font-weight: 800; line-height: 1.2; letter-spacing: -0.3px; }
h2 { font-size: 18px; font-weight: 800; }
.sub { color: var(--muted); font-size: 15px; margin-top: 8px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 16px;
  padding: 16px;
  border-radius: 999px;
  transition: transform .05s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; }

.spacer { flex: 1; }
.footer-actions { padding-top: 16px; }

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.card + .card { margin-top: 12px; }

/* Inputs */
label.field { display: block; margin-top: 18px; }
.field .lab { font-weight: 700; font-size: 14px; margin-bottom: 8px; display: block; }
.input, .textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
}
.textarea { min-height: 92px; resize: none; }
.input::placeholder, .textarea::placeholder { color: #b3b9b4; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid var(--green-tint);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}

/* Pills / badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 5px 11px;
  border-radius: 999px;
}
.badge-soft {
  background: var(--green-tint);
  color: var(--green-dark);
}

/* Banners */
.banner {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
}
.banner-info { background: var(--green-tint); color: var(--green-dark); }
.banner-warn { background: var(--danger-tint); color: var(--danger); }
.banner .ic { font-size: 16px; }

/* Emergency list */
.flag-list { list-style: none; margin-top: 18px; }
.flag-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}
.flag-list li .dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--danger-tint);
  color: var(--danger);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
}

/* Broadcast / streaming */
.pulse {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--green-tint);
  display: grid; place-items: center;
  margin: 8px auto 0;
  font-size: 34px;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(63,143,91,.28); }
  50%     { box-shadow: 0 0 0 16px rgba(63,143,91,0); }
}
.counter { text-align: center; margin-top: 20px; }
.counter .big { font-size: 40px; font-weight: 800; color: var(--green); }
.counter .lab { color: var(--muted); font-weight: 700; }

.stream { margin-top: 22px; }
.stream-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.stream-item .avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-soft);
  display: grid; place-items: center;
  font-weight: 800; color: var(--green-dark);
  flex-shrink: 0;
}
.stream-item .who { font-weight: 700; font-size: 14.5px; }
.stream-item .meta { color: var(--muted); font-size: 12.5px; }
.stream-item .tick { margin-left: auto; color: var(--green); font-weight: 800; }
.stream-item.pending { opacity: .45; }

/* Clinic choose cards */
.clinic {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.clinic + .clinic { margin-top: 14px; }
.clinic.top { border-color: var(--green); border-width: 1.5px; }
.clinic .row1 { display: flex; align-items: center; gap: 10px; }
.clinic .name { font-weight: 800; font-size: 17px; }
.clinic .stars { color: #e0a52b; font-weight: 800; font-size: 14px; }
.clinic .facts { color: var(--muted); font-size: 13px; margin-top: 4px; font-weight: 600; }
.clinic .offer {
  background: var(--green-soft);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-dark);
  margin-top: 12px;
}
.clinic .note {
  font-size: 13.5px;
  color: var(--text);
  margin-top: 10px;
  font-style: italic;
}
.clinic .actions { display: flex; gap: 8px; margin-top: 14px; }
.clinic .actions .btn { padding: 12px; font-size: 14px; }

/* Chat */
.chat-thread { flex: 1; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.bubble {
  max-width: 80%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 14.5px;
  font-weight: 600;
}
.bubble.them { background: var(--bg); border-bottom-left-radius: 5px; align-self: flex-start; }
.bubble.me { background: var(--green); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.chat-input {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}
.chat-input .input { border-radius: 999px; }
.chat-input .send {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: none;
  font-size: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

/* Handoff / confirmation */
.check-hero {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  font-size: 38px;
  margin: 12px auto 0;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.summary-row:last-child { border-bottom: none; }
.summary-row .k { color: var(--muted); font-weight: 700; }
.summary-row .v { font-weight: 700; text-align: right; }

/* Small helper text */
.fineprint { color: var(--muted); font-size: 12px; text-align: center; margin-top: 14px; }
.mock-tag {
  position: fixed;
  top: 10px; left: 10px;
  background: #2a2f2b;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 999px;
  letter-spacing: .5px;
  opacity: .55;
  text-decoration: none;
}
