:root {
  --brand: #0b5cab;
  --brand-dark: #084a8a;
  --accent: #00a3a3;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7a;
  --border: #d8e0ea;
  --danger: #c0392b;
  --success: #1e8449;
  --shadow: 0 8px 24px rgba(11, 92, 171, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 0 1.5rem;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
}

.site-nav a.active {
  font-weight: 700;
  border-bottom: 2px solid #fff;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
}

.hero p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.form-panel {
  max-width: 420px;
  margin: 2rem auto;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

button,
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  font-weight: 600;
}

button:hover,
.btn:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: #e8eef5;
  color: var(--text);
}

.phi-block {
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: #fbfdff;
}

.phi-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #edf2f7;
}

.phi-row:last-child {
  border-bottom: none;
}

.phi-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.phi-value {
  font-weight: 600;
}

.status-pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-pill.high {
  background: #fdecea;
  color: var(--danger);
}

.status-pill.low {
  background: #fff4e5;
  color: #b45f06;
}

.status-pill.normal {
  background: #e8f8ef;
  color: var(--success);
}

.chat-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  min-height: 260px;
  max-height: 360px;
  overflow-y: auto;
  padding: 1rem;
  margin-bottom: 1rem;
}

.chat-message {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  max-width: 85%;
}

.chat-message.system {
  background: #eef4fb;
  color: var(--muted);
}

.chat-message.user {
  background: var(--brand);
  color: #fff;
  margin-left: auto;
}

.chat-message.doctor {
  background: #e8f8ef;
}

.hidden-iframe-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0.01;
  pointer-events: none;
}

.video-panel {
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.article-content {
  background: var(--surface);
  border-radius: 14px;
  padding: 1.5rem;
  border: 1px solid var(--border);
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 2rem 1rem;
}

.hero-banner {
  position: relative;
  max-width: 1100px;
  margin: 1.5rem auto 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-banner img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.hero-banner-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  background: linear-gradient(180deg, rgba(8, 30, 60, 0.05) 20%, rgba(8, 30, 60, 0.72) 100%);
  color: #fff;
}

.hero-banner-copy h1 {
  margin: 0 0 0.35rem;
  font-size: 2rem;
}

.hero-banner-copy p {
  margin: 0;
  max-width: 620px;
}

.provider-card .select-provider-btn {
  margin-top: 0.75rem;
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
  }
}
