:root {
  --bg: rgb(250, 251, 252);
  --surface: #fff;
  --accent: #ff5251;
  --text: #1f2328;
  --muted: #6b7280;
  --border: #e6e8eb;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

.container {
  width: min(100% - 24px, 980px);
  margin-inline: auto;
}

.site-header,
.site-footer {
  padding: 12px 0;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo,
.admin-link,
.link-accent {
  text-decoration: none;
}

.logo {
  color: var(--text);
  font-weight: 700;
}

.admin-link {
  color: var(--muted);
  font-size: 14px;
}

main.container {
  padding-bottom: 32px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}

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

.a-wrapper:any-link {
  color: inherit;
  text-decoration: none;
  cursor: auto;
}

.hero h1 {
  font-size: 20px;
  margin-bottom: 8px;
}

h2 {
  font-size: 16px;
}

.muted {
  color: var(--muted);
}

.contact-actions,
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn,
.btn-accent {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.btn-accent {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.link-accent {
  color: var(--accent);
}

.doctor-grid {
  display: grid;
  gap: 10px;
}

.doctor-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.doctor-photo {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  max-height: 360px;
  margin: 10px 0 14px;
}

.form {
  display: grid;
  gap: 10px;
}

.form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  background: #fff;
}

.checkbox-row {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.checkbox-row input {
  width: auto;
}

.list {
  display: grid;
  gap: 10px;
}

.list-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-list {
  margin-bottom: 12px;
}

.flash {
  padding: 10px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 8px;
}

.flash.success {
  background: #ecfdf3;
  color: #086045;
}

.flash.error {
  background: #fff1f1;
  color: #a11a1a;
}

.site-footer {
  color: var(--muted);
  font-size: 13px;
}

.narrow {
  max-width: 460px;
  margin-inline: auto;
}

@media (min-width: 760px) {
  .card {
    padding: 22px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .doctor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
