:root {
  --ink: #1e2a2f;
  --muted: #66777b;
  --paper: #f6f9fb;
  --green: #16855b;
  --teal: #0a7480;
  --blue: #1c5f9f;
  --navy: #17324d;
  --red: #b72c1f;
  --coral: #d85d4b;
  --gold: #f0b429;
  --line: #d8e5df;
  --shadow: 0 18px 45px rgba(31, 60, 55, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #e9f4f7 0, #f6f9fb 310px),
    var(--paper);
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.intro {
  min-height: 32vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  padding: 38px 0 26px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

h1 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(2.35rem, 6vw, 4.45rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.call-button,
.ghost-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 11px 15px;
  text-decoration: none;
  font-weight: 700;
}

.call-button {
  color: #ffffff;
  background: var(--red);
}

.ghost-button {
  color: var(--navy);
  background: #ffffff;
  border: 1px solid #b8d1df;
}

.doctor-card,
.search-panel,
.result-area {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d7e3ea;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doctor-card {
  display: grid;
  gap: 16px;
  justify-self: end;
  width: min(100%, 320px);
  padding: 22px;
}

.doctor-card h2 {
  margin-bottom: 6px;
  color: var(--navy);
}

.doctor-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.doctor-avatar {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #e7f5ef;
  border: 1px solid #b5d9ca;
}

.doctor-avatar .face,
.doctor-avatar .coat,
.doctor-avatar .scope {
  position: absolute;
}

.doctor-avatar .face {
  left: 32px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1c9a5;
}

.doctor-avatar .coat {
  left: 22px;
  top: 48px;
  width: 52px;
  height: 34px;
  border-radius: 18px 18px 8px 8px;
  background: #ffffff;
  border: 2px solid #6fa7c9;
}

.doctor-avatar .scope {
  left: 45px;
  top: 58px;
  width: 26px;
  height: 18px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  border-radius: 0 0 0 12px;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--green);
}

.status-row span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 133, 91, 0.13);
}

.search-panel {
  padding: 24px;
  margin-bottom: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.panel-head h2 {
  margin-bottom: 4px;
}

.panel-head p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.45;
}

.search-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  min-width: 0;
  width: 100%;
  border: 1px solid #b9ccc4;
  border-radius: 6px;
  padding: 14px 15px;
  color: var(--ink);
  background: #ffffff;
}

input:focus {
  outline: 3px solid rgba(10, 116, 128, 0.18);
  border-color: var(--teal);
}

button {
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  color: #ffffff;
  background: var(--teal);
  cursor: pointer;
  font-weight: 700;
  transition: transform 160ms ease, background-color 160ms ease;
}

button:hover {
  background: #095e67;
  transform: translateY(-1px);
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.quick-tags button {
  color: var(--ink);
  background: #edf8f4;
  border: 1px solid #bfdbd3;
  padding: 9px 12px;
}

.quick-tags button:hover {
  background: #dff2ec;
}

.hotline-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.hotline-panel article {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #d7e3ea;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 60, 55, 0.08);
}

.hotline-panel span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hotline-panel strong {
  display: block;
  color: var(--navy);
  font-size: 1.05rem;
}

.hotline-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.result-area {
  min-height: 280px;
  padding: 24px;
}

.empty-state {
  min-height: 232px;
  display: grid;
  align-content: center;
  color: var(--muted);
  text-align: center;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.result-title {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.result-title h2 {
  margin-bottom: 6px;
}

.match-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 8px 11px;
  color: #6b4300;
  background: #fff3c8;
  font-size: 0.86rem;
  font-weight: 700;
}

.urgent-title {
  border-bottom-color: #efb1a8;
}

.urgent-pill {
  color: #ffffff;
  background: var(--red);
}

.info-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.info-box h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.info-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.55;
}

.danger {
  border-color: #efb1a8;
  background: #fff1ef;
}

.danger h3 {
  color: #9c2417;
}

.danger p {
  margin-bottom: 0;
  color: #713127;
  font-weight: 700;
  line-height: 1.55;
}

.danger .urgent-list {
  margin-top: 12px;
  color: #713127;
  font-weight: 700;
}

.full-span {
  grid-column: 1 / -1;
}

.notice {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-left: 5px solid var(--gold);
  color: #5a4a16;
  background: #fff9df;
  line-height: 1.5;
}

.no-match {
  max-width: 760px;
  margin: 0 auto;
}

.no-match h2 {
  color: var(--coral);
}

.source-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.source-note a {
  color: var(--teal);
  font-weight: 700;
}

@media (max-width: 900px) {
  .hotline-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 22px, 1120px);
    padding: 18px 0;
  }

  .intro {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 20px;
  }

  .doctor-card {
    justify-self: stretch;
    width: 100%;
  }

  .panel-head,
  .result-title {
    display: block;
  }

  .input-row,
  .result-grid,
  .hotline-panel {
    grid-template-columns: 1fr;
  }

  .match-pill {
    display: inline-block;
    margin-top: 10px;
  }
}
