@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700;900&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --brand: #003252;
  --brand-dark: #00233A;
  --brand-tint: #E3EBF1;
  --bg: #F4F7FA;
  --cta: #D8520B;
  --cta-dark: #B9450A;
  --green: #5CB85C;
  --green-ink: #3F8A2A;
  --card: #ffffff;
  --ink: #202124;
  --muted: #5f6368;
  --line: #dadce0;
  --danger: #d93025;
  --ok: #1e8e3e;
  --warn-bg: #fef7e0;
  --warn-ink: #7a5900;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.5 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 64px; }
.wrap.wide { max-width: 1100px; }

.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 2px 12px; font-size: 14px; color: var(--muted); }
.topbar a, .linkbtn { color: var(--brand); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.topbar a:hover, .linkbtn:hover { text-decoration: underline; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 12px 0; }
.card.head { border-top: 10px solid var(--brand); }
.card.head h1 { font-size: 30px; font-weight: 400; margin: 0 0 8px; line-height: 1.25; }
.card.head p { margin: 0; color: var(--ink); }
.card h2 { font-size: 20px; font-weight: 400; margin: 0 0 4px; }
.card h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.section-title { background: var(--brand); color: #fff; border-radius: var(--radius) var(--radius) 0 0; padding: 10px 24px; font-size: 16px; margin: 24px 0 -12px; display: inline-block; }

.q { font-size: 16px; margin: 0 0 4px; }
.q .req { color: var(--danger); margin-left: 4px; }
.note { font-size: 13px; color: var(--muted); margin: 2px 0 12px; }
.small { font-size: 13px; color: var(--muted); }
label.field { display: block; margin: 14px 0 0; }
label.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 2px; }
label.field > span.big-label { font-size: 18px; font-weight: 700; color: var(--ink); }

input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; outline: none; border-radius: 0;
}
input:focus, select:focus, textarea:focus { border-bottom: 2px solid var(--brand); padding-bottom: 7px; }
select { appearance: auto; }
.money { position: relative; }
.money::before { content: '$'; position: absolute; left: 0; top: 8px; color: var(--muted); }
.money input { padding-left: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 0 20px; }
@media (max-width: 560px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

.choices { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 8px 4px; cursor: pointer; border-radius: 6px; }
.choice:hover { background: #f8f9fa; }
.choice input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; flex: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 15px;
  border-radius: 4px; padding: 10px 22px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--brand); text-decoration: none; }
.btn:hover { background: #f6fafd; }
.btn.primary { background: var(--cta); color: #fff; border-color: var(--cta); }
.btn.primary:hover { background: var(--cta-dark); }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0 0; }
.actions.spread { justify-content: space-between; }

.err { color: var(--danger); font-size: 14px; margin-top: 10px; }
.err:empty { display: none; }
.ok { color: var(--green-ink); font-size: 14px; margin-top: 10px; }
.ok:empty { display: none; }
.alert { background: var(--warn-bg); color: var(--warn-ink); border-radius: 6px; padding: 12px 14px; font-size: 14px; margin: 12px 0; }
.alert.info { background: var(--brand-tint); color: var(--brand-dark); }
.alert.ok { background: #e6f4ea; color: #0d652d; }

.calc { background: #f8fafb; border: 1px solid var(--line); border-radius: 6px; padding: 4px 16px 12px; margin-top: 12px; }
.calc .row { display: grid; grid-template-columns: 1fr 160px; gap: 16px; align-items: end; }
.calc .total { border-top: 2px solid var(--ink); margin-top: 12px; padding-top: 10px; display: flex; justify-content: space-between; font-weight: 700; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .meta { font-size: 13px; color: var(--muted); }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #f1f3f4; color: var(--muted); white-space: nowrap; }
.pill.approved { background: var(--brand-tint); color: var(--brand-dark); }
.pill.locked { background: var(--warn-bg); color: var(--warn-ink); }
.pill.filed { background: #e6f4ea; color: #0d652d; }

.code-input { font-size: 28px !important; letter-spacing: 10px; text-align: center; max-width: 240px; }
.hidden { display: none !important; }
.banner { background: #fff4e5; border: 1px solid #f5c26b; color: #7a4a00; padding: 8px 14px; border-radius: 6px; font-size: 14px; margin-bottom: 8px; }

/* ----- Tax form previews ----- */
.taxform { background: #fff; border: 2px solid #111; font-family: 'Courier New', Courier, monospace; font-size: 13px; color: #111; margin: 16px 0; }
.taxform .tf-title { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid #111; padding: 6px 10px; font-family: Arial, sans-serif; }
.taxform .tf-title b { font-size: 18px; }
.taxform .tf-grid { display: grid; grid-template-columns: 1fr 1fr; }
.taxform .box { border-right: 1px solid #111; border-bottom: 1px solid #111; padding: 4px 8px 6px; min-height: 46px; }
.taxform .box:nth-child(2n) { border-right: 0; }
.taxform .box.full { grid-column: 1 / -1; border-right: 0; }
.taxform .lbl { display: block; font-family: Arial, sans-serif; font-size: 10px; color: #444; text-transform: none; }
.taxform .val { display: block; font-weight: 700; white-space: pre-line; }
.taxform .amt { text-align: right; }
.taxform .tf-foot { padding: 4px 10px; font-family: Arial, sans-serif; font-size: 11px; color: #444; }

/* ----- Staff tables ----- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .03em; padding: 8px; border-bottom: 2px solid var(--line); }
.tbl td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr.click:hover td { background: #f8fafb; cursor: pointer; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; font: inherit; color: var(--muted); cursor: pointer; }
.tabs button.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.copyrow { display: flex; align-items: center; gap: 10px; font-family: 'Courier New', monospace; font-size: 18px; font-weight: 700; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

@media print {
  body { background: #fff; }
  .no-print, .topbar, .actions, .banner { display: none !important; }
  .card { border: 0; padding: 0; margin: 0; }
  .card.head { border-top: 0; }
  .taxform { page-break-inside: avoid; margin: 0 0 24px; }
}

/* ----- StartCHURCH branding ----- */
h1, h2, h3, .btn, .sc-brand span { font-family: Lato, Arial, sans-serif; }
.card.head { border-top-color: var(--brand); }
.card.head h1 { font-weight: 900; letter-spacing: -0.3px; }
.sc-header { background: #fff; border-bottom: 1px solid #E1E8EE; }
.sc-header-in { max-width: 1120px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sc-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.sc-brand img { height: 28px; width: auto; display: block; }
.sc-brand span { padding-left: 12px; border-left: 1px solid #D3DCE3; font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: 1.2px; text-transform: uppercase; }
.sc-header-right { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--muted); }
.sc-header-right .who { display: none; }
.sc-header-right .linkbtn { color: var(--brand); }
.sc-phone { display: flex; align-items: center; gap: 8px; font-family: Lato, Arial, sans-serif; font-weight: 700; font-size: 14px; color: var(--green-ink); text-decoration: none; }
.sc-phone .ico { width: 40px; height: 40px; border-radius: 50%; background: #EAF5E6; display: flex; align-items: center; justify-content: center; }
.sc-phone .txt { display: none; }
@media (min-width: 760px) {
  .sc-header-in { padding: 16px 24px; }
  .sc-brand img { height: 36px; }
  .sc-brand span { font-size: 14px; }
  .sc-header-right .who { display: inline; }
  .sc-phone .ico { width: auto; height: auto; background: none; }
  .sc-phone .txt { display: inline; }
}

.sc-hero { background: var(--brand); color: #fff; }
.sc-hero-in { max-width: 1120px; margin: 0 auto; padding: 18px 20px 58px; display: flex; flex-direction: column; gap: 8px; }
.sc-hero .eyebrow { display: none; font-family: Lato, Arial, sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: #DCEBF5; }
.sc-hero h1 { margin: 0; font-weight: 900; font-size: 32px; line-height: 1.1; letter-spacing: -0.3px; max-width: 760px; }
.sc-hero h1 span { color: #FFD2B0; }
.sc-hero p { margin: 0; font-size: 17px; color: #F1F7FB; }
.sc-login { max-width: 1120px; margin: -44px auto 0; padding: 0 16px; display: flex; flex-wrap: wrap; gap: 0 48px; align-items: flex-start; }
.sc-card { flex: 1 1 340px; max-width: 480px; background: #fff; border-radius: 10px; box-shadow: 0 10px 30px rgba(20, 50, 75, 0.16); padding: 18px 18px 14px; display: flex; flex-direction: column; gap: 10px; }
.sc-card h2 { margin: 0; font-size: 21px; font-weight: 700; }
.sc-card .sub { margin: -6px 0 0; font-size: 14px; color: #56636D; }
.sc-card label { font-size: 14px; font-weight: 600; }
.sc-card input.in { font: inherit; font-size: 17px; padding: 13px 14px; border: 1.5px solid #C5D2DC; border-radius: 6px; background: #fff; }
.sc-card input.in:focus { border: 1.5px solid var(--brand); padding: 13px 14px; outline: 3px solid var(--brand-tint); }
.sc-card input.code { font-size: 26px; letter-spacing: 10px; text-align: center; }
.sc-cta { font-family: Lato, Arial, sans-serif; font-size: 19px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; color: #fff; background: var(--cta); border: 0; border-radius: 4px; padding: 15px 18px; min-height: 52px; cursor: pointer; }
.sc-cta:hover { background: var(--cta-dark); }
.sc-cta:disabled { opacity: .6; cursor: default; }
.sc-lock { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #56636D; }
.sc-links { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.sc-how { flex: 1 1 320px; padding: 14px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.sc-how h2 { margin: 0 0 2px; font-size: 17px; font-weight: 700; }
.sc-step { display: flex; gap: 12px; align-items: flex-start; line-height: 1.3; }
.sc-step .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff; font-family: Lato, Arial, sans-serif; font-weight: 900; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.sc-step b { display: block; font-size: 15px; font-family: Lato, Arial, sans-serif; }
.sc-step span { font-size: 13px; color: #56636D; }
.sc-foot { max-width: 1120px; margin: 28px auto 0; padding: 18px 20px 24px; border-top: 1px solid #DCE4EA; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; color: #5E6B75; }
@media (min-width: 760px) {
  .sc-hero-in { padding: 52px 24px 120px; gap: 14px; }
  .sc-hero .eyebrow { display: block; }
  .sc-hero h1 { font-size: 52px; line-height: 1.05; }
  .sc-hero p { font-size: 20px; }
  .sc-login { margin-top: -84px; padding: 0 24px; }
  .sc-card { padding: 34px 34px 28px; gap: 14px; }
  .sc-card h2 { font-size: 26px; }
  .sc-how { padding-top: 104px; gap: 18px; }
  .sc-how h2 { font-size: 22px; }
  .sc-step .n { width: 38px; height: 38px; font-size: 17px; }
  .sc-step b { font-size: 18px; }
  .sc-step span { font-size: 16px; }
  .sc-foot { margin-top: 64px; padding: 20px 24px 28px; }
}
.sc-brand span, .sc-header-right .linkbtn { white-space: nowrap; }
.sc-foot a { color: var(--brand); text-decoration: none; font-weight: 600; }
@media (max-width: 759px) {
  .sc-header-in { gap: 8px; }
  .sc-brand { gap: 8px; }
  .sc-brand img { height: 24px; }
  .sc-brand span { padding-left: 8px; font-size: 11px; letter-spacing: 0.8px; }
  .sc-header-right { gap: 10px; font-size: 13px; }
}
