/* Alive Church brand for the public referral pages.
   Tokens and components follow the Alive brand system (same look as the referral agreement PDF). */


:root {
  --pink: #eb008b;
  --pink-bright: #ff2aa0;
  --pink-dark: #c00074;
  --purple: #4b2679;
  --blue: #125b9a;
  --ink: #1e1a2b;
  --off-white: #f6f6f8;
  --white: #fff;
  --muted: rgba(30, 26, 43, .64);
  --muted-inv: rgba(255, 255, 255, .78);
  --line: rgba(30, 26, 43, .14);
  --radius: 14px;
  --glow: 0 0 2px rgba(255, 92, 183, .85), 0 0 14px rgba(255, 42, 160, .55), 0 0 32px rgba(235, 0, 139, .35);
  --wrap: 1080px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--off-white);
}
a { color: var(--pink); }
a:hover { color: var(--pink-dark); }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Grounds ---- */
.plate-dark {
  background: var(--ink) url("../imgs/plate-hero.jpg") center / cover no-repeat;
  color: var(--white);
}
.plate-pale {
  background:
    radial-gradient(1200px 600px at 100% 0, rgba(235, 0, 139, .07), transparent 60%),
    radial-gradient(900px 600px at 0 40%, rgba(75, 38, 121, .06), transparent 60%),
    var(--off-white);
}

/* ---- Site bar & footer ---- */
.site-bar { background: var(--ink); color: var(--white); }
.site-bar--overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; z-index: 2; }
.site-bar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 16px; }
.site-bar img { height: 34px; width: auto; display: block; }
.site-bar__tag { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-inv); }

.site-footer { padding: 48px 0 40px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; }
.site-footer img { height: 34px; width: auto; display: block; margin-bottom: 14px; }
.site-footer p { margin: 0; font-size: 14px; color: var(--muted-inv); }
.site-footer a { color: var(--white); font-weight: 600; }
.site-footer a:hover { color: var(--pink-bright); }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; }

/* ---- Type ---- */
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; white-space: nowrap;
}
.kicker::after { content: ""; width: 32px; height: 2px; background: var(--pink); flex: none; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--pink); }
.display {
  margin: 18px 0 0;
  font-size: clamp(42px, 8.4vw, 92px); font-weight: 900; line-height: .98; letter-spacing: -.01em; text-transform: uppercase;
}
.headline { margin: 6px 0 0; font-size: clamp(26px, 4vw, 38px); font-weight: 900; line-height: 1.04; text-transform: uppercase; }
.accent { color: var(--pink-bright); text-shadow: var(--glow); }
.accent-flat { color: var(--pink); }
.script { font-family: "Mayonice", cursive; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.2; color: var(--pink-bright); margin-top: 8px; }
.lede { font-size: clamp(17px, 2vw, 19px); font-weight: 600; line-height: 1.55; }
.muted { color: var(--muted); }
.plate-dark .muted { color: var(--muted-inv); }
.rule { width: 56px; height: 3px; background: var(--pink); border: 0; margin: 18px 0 0; }

/* ---- Pills & buttons ---- */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-block; padding: 7px 16px; border-radius: 999px; border: 2px solid var(--pink);
  background: var(--pink); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.pill--outline { background: transparent; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid var(--pink);
  background: var(--pink); color: var(--white);
  font: 800 14px/1 "Montserrat", sans-serif; letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover { background: var(--pink-dark); border-color: var(--pink-dark); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--pink); }
.btn--ghost:hover { background: var(--pink); color: var(--white); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--ink); }
.btn--white:hover { background: transparent; color: var(--white); border-color: var(--white); }
.btn--lg { padding: 19px 36px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 3px solid var(--pink-bright); outline-offset: 3px; }

/* ---- Hero ---- */
.hero { position: relative; padding: 140px 0 72px; overflow: hidden; }
.hero .lede { max-width: 640px; margin: 26px 0 0; }
.hero .pill-row { margin-top: 26px; }
.steps { list-style: none; margin: 56px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(255, 255, 255, .18);
         display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.steps li { display: flex; gap: 12px; align-items: baseline; font-size: 14px; color: var(--muted-inv); }
.steps b { display: block; color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.steps .n { font-size: 26px; font-weight: 900; color: var(--pink-bright); line-height: 1; }

/* ---- Form ---- */
.form-area { padding: 56px 0 72px; }
.form-wrap { max-width: 860px; margin: 0 auto; }
.section {
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(30, 26, 43, .06), 0 12px 32px -18px rgba(30, 26, 43, .25);
  padding: clamp(22px, 4vw, 40px); margin-top: 24px;
}
.section__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.section__num { font-size: clamp(34px, 5vw, 46px); font-weight: 900; line-height: .9; color: var(--pink); flex: none; }
.section__head h2 { margin: 0; font-size: clamp(20px, 2.6vw, 25px); font-weight: 900; text-transform: uppercase; line-height: 1.15; }
.section__head p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.section--feature { border-left: 6px solid var(--pink); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 22px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }

.field label, .field .label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.req { color: var(--pink); margin-left: 2px; }
.hint { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.input {
  width: 100%; padding: 13px 15px; border: 2px solid var(--line); border-radius: 10px; background: var(--white);
  font: 500 16px/1.4 "Montserrat", sans-serif; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: rgba(30, 26, 43, .4); }
.input:hover { border-color: rgba(30, 26, 43, .28); }
.input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(235, 0, 139, .15); }
textarea.input { resize: vertical; min-height: 92px; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23eb008b' stroke-width='2.4'/%3E%3C/svg%3E") right 16px center no-repeat;
}
.input--caps { text-transform: uppercase; }

.check { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: 1px 0 0;
  border: 2px solid rgba(30, 26, 43, .35); border-radius: 7px; background: var(--white); cursor: pointer; transition: all .15s; }
.check input:checked { background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' fill='none'%3E%3Cpath d='M1.5 5.5l4 4 7-8' stroke='white' stroke-width='2.6'/%3E%3C/svg%3E") center no-repeat; border-color: var(--pink); }
.check input:focus-visible { outline: 3px solid var(--pink-bright); outline-offset: 2px; }
.check span { font-size: 15px; }

.agreement-box { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-radius: 12px; background: var(--off-white); margin-bottom: 24px; }
.agreement-box ul { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.agreement-box li { position: relative; padding-left: 22px; margin: 4px 0; }
.agreement-box li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 2px; background: var(--pink); }

/* ---- Children ---- */
.child { border: 2px solid var(--line); border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.child__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.child__tag { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-transform: uppercase; font-size: 15px; letter-spacing: .04em; }
.child__tag i { font-style: normal; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--pink); color: var(--white); font-size: 14px; }
.child__remove { background: none; border: 0; color: var(--muted); font: 700 13px "Montserrat", sans-serif;
  text-transform: uppercase; letter-spacing: .1em; cursor: pointer; padding: 6px; }
.child__remove:hover { color: var(--pink); }
.add-child { width: 100%; border-style: dashed; }

/* ---- Messages ---- */
.alert { display: flex; gap: 14px; padding: 18px 20px; border-radius: 12px; font-weight: 600; margin-top: 24px;
  background: #fff0f7; border: 2px solid var(--pink); color: var(--ink); }
.alert svg { flex: none; width: 24px; height: 24px; color: var(--pink); }

.submit-row { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin-top: 28px; }
.submit-row p { margin: 0; font-size: 14px; color: var(--muted); max-width: 420px; }

/* ---- Thank-you ---- */
.refs { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.refs li { padding: 14px 16px; border-radius: 10px; background: var(--off-white); }
.refs b { display: block; font-size: 17px; font-weight: 900; letter-spacing: .02em; color: var(--pink); }
.next { counter-reset: n; list-style: none; padding: 0; margin: 18px 0 0; }
.next li { counter-increment: n; position: relative; padding: 0 0 16px 52px; }
.next li::before { content: "0" counter(n); position: absolute; left: 0; top: -2px; font-size: 24px; font-weight: 900; color: var(--pink); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
