@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600&family=Source+Sans+3:wght@300;400;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #eef1f6;
  --card: #ffffff;
  --text: #111c2e;
  --muted: #4f6078;
  --border: rgba(15, 23, 42, 0.12);
  --primary: #0b2b4d;
  --primary-dark: #071d33;
  --accent: #c2a164;
  --accent-soft: rgba(194, 161, 100, 0.18);
  --shadow: 0 28px 60px rgba(15, 30, 60, 0.18);
  --radius: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  background: radial-gradient(circle at top, #ffffff 0%, #eff2f7 50%, #e4e9f2 100%);
  color: var(--text);
  min-height: 100vh;
}

.page::before,
.page::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.65;
  z-index: 0;
}

.page::before {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(194, 161, 100, 0.35) 0%, rgba(194, 161, 100, 0) 70%);
  top: -120px;
  right: 10%;
}

.page::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(11, 43, 77, 0.2) 0%, rgba(11, 43, 77, 0) 68%);
  bottom: -160px;
  left: 5%;
}

.page {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

/* ---------- Header / Trust Name ---------- */
.topbar {
  width: min(1100px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.trust-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--primary);
}

.trust-mark .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(194, 161, 100, 0.35);
}

.trust-mark span {
  font-family: "Cinzel", "Times New Roman", serif;
  letter-spacing: 0.08em;
}

.nav-actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 30, 60, 0.12);
}

/* ---------- Cards & Layout ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  width: min(520px, 100%);
  position: relative;
  z-index: 1;
  animation: liftIn 0.6s ease both;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.stack.tight {
  gap: 10px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}

.title {
  margin: 0;
  font-size: 1.9rem;
  font-family: "Cinzel", "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.badge {
  align-self: flex-start;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #7a5a1d;
  font-weight: 600;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
}

.panel-title {
  margin: 0;
  font-weight: 600;
}

.meta {
  margin: 0;
  display: grid;
  gap: 12px;
}

.meta div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.95rem;
}

.meta dt {
  color: var(--muted);
}

.meta dd {
  margin: 0;
  font-weight: 600;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 2px solid rgba(11, 77, 187, 0.25);
  border-color: var(--primary);
}

.button {
  text-decoration: none;
  text-align: center;
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button.primary {
  background: linear-gradient(135deg, var(--primary) 0%, #123a66 100%);
  color: #ffffff;
  box-shadow: 0 16px 30px rgba(11, 43, 77, 0.25);
}

.button.primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #0a2f56 100%);
  transform: translateY(-1px);
}

.button.ghost {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--primary);
}

.button.ghost:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 30, 60, 0.12);
}

.form-error {
  margin: 0;
  color: #b42318;
  background: #fef3f2;
  border: 1px solid #fecdca;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.success {
  border-radius: 12px;
  padding: 16px;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #0f5132;
}

.subtle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.shell {
  width: min(1100px, 100%);
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  position: relative;
  z-index: 1;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 34ch;
}

.accent-line {
  height: 2px;
  width: 48px;
  background: var(--accent);
}

.lookup-card {
  width: min(520px, 100%);
}

.meta-pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--primary);
  background: rgba(11, 43, 77, 0.08);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.benefactor-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #f7f9fc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefactor-card strong {
  font-size: 1.1rem;
  font-weight: 600;
}

.image-preview {
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.08);
  padding: 12px;
}

.image-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .card {
    padding: 22px;
  }

  .meta div {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .card {
    width: 100%;
  }
}

