:root {
  --bg: #f7f2e8;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-strong: #ffffff;
  --line: rgba(105, 73, 33, 0.15);
  --text: #2d2016;
  --muted: #705a45;
  --brand: #9a5420;
  --brand-dark: #6f3611;
  --brand-soft: rgba(154, 84, 32, 0.1);
  --brand-gold: #d7b06f;
  --pastor-soft: rgba(166, 88, 35, 0.08);
  --finance-soft: rgba(87, 120, 82, 0.1);
  --finance-accent: #4d6a47;
  --success-bg: #eef7f0;
  --success-text: #245434;
  --shadow: 0 22px 60px rgba(60, 35, 7, 0.12);
  font-family: "Manrope", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(215, 176, 111, 0.32), transparent 28%),
    radial-gradient(circle at right 20%, rgba(122, 160, 114, 0.14), transparent 24%),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 100%);
}

body,
input,
select,
textarea,
button {
  font-family: "Manrope", sans-serif;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background:
    linear-gradient(140deg, rgba(255, 250, 242, 1), rgba(246, 234, 214, 0.94)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -80px auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 84, 32, 0.15), transparent 65%);
  pointer-events: none;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-brand img {
  width: 74px;
  height: 74px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
}

.hero-text {
  position: relative;
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.form-card {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.section-block + .section-block {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.28rem;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.leadership-grid,
.grid {
  display: grid;
  gap: 18px;
}

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

.person-card,
.section-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.84));
  box-shadow: 0 18px 36px rgba(60, 35, 7, 0.08);
}

.pastor-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(255, 245, 236, 0.95)),
    var(--pastor-soft);
}

.finance-card {
  background:
    linear-gradient(180deg, rgba(249, 253, 248, 0.98), rgba(239, 247, 236, 0.96)),
    var(--finance-soft);
}

.person-card-header {
  margin-bottom: 16px;
}

.person-card-header h3 {
  margin: 6px 0 0;
  font-size: 1.1rem;
}

.person-tag {
  display: inline-flex;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pastor-card .person-tag {
  color: var(--brand-dark);
  background: rgba(154, 84, 32, 0.12);
}

.finance-card .person-tag {
  color: var(--finance-accent);
  background: rgba(77, 106, 71, 0.14);
}

.field,
.field-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field span,
.field-group legend {
  font-size: 0.95rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(96, 72, 42, 0.18);
  border-radius: 16px;
  background: var(--surface-strong);
  color: var(--text);
  font-size: 0.98rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input[type="file"] {
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(250, 245, 238, 0.95));
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(154, 84, 32, 0.55);
  box-shadow: 0 0 0 4px rgba(154, 84, 32, 0.12);
}

.field input:required,
.field select:required,
.field textarea:required {
  background-image: linear-gradient(0deg, rgba(215, 176, 111, 0.06), rgba(215, 176, 111, 0.06));
}

.field-span-2 {
  grid-column: 1 / -1;
}

.helper-text {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.selected-address {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(154, 84, 32, 0.2);
  background: linear-gradient(180deg, rgba(255, 248, 240, 0.98), rgba(255, 242, 227, 0.95));
  line-height: 1.7;
}

.structure-box {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.96), rgba(255, 246, 235, 0.9));
  border: 1px solid var(--line);
}

.structure-box h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

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

.check-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-strong);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.check-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(154, 84, 32, 0.24);
  box-shadow: 0 12px 24px rgba(60, 35, 7, 0.06);
}

.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(96, 72, 42, 0.18);
  border-radius: 16px;
  background: var(--surface-strong);
}

.field-group {
  margin: 0;
  border: 0;
}

.field-group legend {
  margin-bottom: 10px;
  padding: 0;
}

.inline-field {
  margin-top: 12px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  box-shadow: 0 12px 24px rgba(103, 49, 15, 0.22);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  border: 1px solid var(--line);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.status-message {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--success-bg);
  color: var(--success-text);
  font-weight: 700;
}

.hidden {
  display: none;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 18px;
  }

  .hero,
  .form-card {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-brand {
    align-items: flex-start;
  }

  .grid-2,
  .leadership-grid {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: auto;
  }

  .actions {
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
