/* drdoctors.in — shared styles */

:root {
  --bg: #f5f8f8;
  --surface: #ffffff;
  --ink: #0f2b2b;
  --ink-soft: #4d6363;
  --brand: #0e7490;
  --brand-dark: #0a5560;
  --brand-tint: #e6f2f4;
  --line: #e2e9e9;
  --verified: #15a34a;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 43, 43, .06), 0 8px 24px rgba(15, 43, 43, .07);
  --maxw: 760px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--brand-dark); }

img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  font-size: 18px;
}
.logo .mark {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
}
.topbar nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-left: 18px;
}
.topbar nav a:hover { color: var(--brand-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .04s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: var(--surface); color: var(--brand-dark); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-block { width: 100%; }

/* ---------- profile header ---------- */
.phead {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  padding: 34px 0 64px;
}
.phead h1 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
.phead .creds { margin: 6px 0 0; opacity: .92; font-size: 14px; font-weight: 600; }
.phead .role { margin: 12px 0 0; font-size: 15px; opacity: .95; }

.avatar-row {
  max-width: var(--maxw);
  margin: -46px auto 0;
  padding: 0 18px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.avatar {
  width: 92px; height: 92px;
  border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 800;
  color: var(--brand);
  flex-shrink: 0;
}
.verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eafaf0;
  color: var(--verified);
  border: 1px solid #bde9cc;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin: 16px 0;
}
.card h2 {
  margin: 0 0 12px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
}
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-radius: 8px;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 600;
}

.kv { margin: 0; }
.kv div { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--ink-soft); min-width: 130px; font-weight: 600; }
.kv dd { margin: 0; }

.loc { padding: 14px 0; border-bottom: 1px solid var(--line); }
.loc:first-of-type { padding-top: 0; }
.loc:last-child { border-bottom: 0; padding-bottom: 0; }
.loc h3 { margin: 0 0 3px; font-size: 15.5px; }
.loc p { margin: 2px 0; color: var(--ink-soft); font-size: 14.5px; }
.loc .maplink { font-size: 13.5px; font-weight: 700; text-decoration: none; }

.callbar {
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 10px 0;
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.callbar .wrap { display: flex; gap: 10px; width: 100%; }

.share { display: flex; flex-wrap: wrap; gap: 10px; }
.share a {
  flex: 1 1 140px;
  text-align: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-dark);
  background: var(--surface);
}
.share a:hover { border-color: var(--brand); }

.disclaimer {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  padding: 22px 18px 34px;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* ---------- landing ---------- */
.hero { text-align: center; padding: 54px 0 26px; }
.hero h1 { font-size: 30px; margin: 0 0 12px; letter-spacing: -.02em; }
.hero p { font-size: 17px; color: var(--ink-soft); max-width: 520px; margin: 0 auto 22px; }
.hero .btn { margin: 6px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 28px 0;
}
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- forms ---------- */
.field { margin: 14px 0; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--surface);
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
  border-color: var(--brand);
}
.field .hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 4px; }
.note {
  background: var(--brand-tint);
  border: 1px solid #cfe6ea;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--brand-dark);
  margin: 16px 0;
}
.success {
  background: #eafaf0;
  border: 1px solid #bde9cc;
  color: #10693a;
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
}
.steps { padding-left: 18px; margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.steps li { margin: 5px 0; }

footer.site {
  text-align: center;
  padding: 26px 18px;
  font-size: 13px;
  color: var(--ink-soft);
}

@media (max-width: 520px) {
  .phead h1 { font-size: 22px; }
  .hero h1 { font-size: 25px; }
  .avatar-row { flex-direction: column; align-items: flex-start; }
}
