/* Concord payment pages. Palette and type follow the marketing site. */
:root {
  --leaf: #4a7452;
  --leaf-dark: #3c6043;
  --navy: #1c3350;
  --mint: #eaf1ea;
  --sand: #f8f5ef;
  --line: #e5e9ee;
  --muted: #5d6b7e;
  --error: #b42318;
  --error-bg: #fdf0ee;
  --warn-bg: #fdf6e3;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: linear-gradient(180deg, var(--sand) 0, #fff 420px);
  color: var(--navy);
  font: 16px/1.55 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--leaf); }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.topbar { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.topbar__logo { height: 44px; width: auto; display: block; }
.topbar__phone { font-weight: 600; text-decoration: none; white-space: nowrap; }

.intro { padding: 40px 0 24px; }
.eyebrow { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--leaf); }
h1 { margin: 10px 0 8px; font: 600 clamp(28px, 5vw, 40px)/1.1 "Outfit", system-ui, sans-serif; letter-spacing: -.01em; }
.lede { margin: 0; color: var(--muted); max-width: 560px; }

.alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; font-size: 15px; }
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.alert--error { background: var(--error-bg); color: var(--error); border: 1px solid #f4c7c0; }
.alert--warn { background: var(--warn-bg); border: 1px solid #efd99a; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px -18px rgba(28,51,80,.25); }
form.card { padding: 8px 24px 24px; }

.block { padding: 20px 0 22px; border-bottom: 1px solid var(--line); }
.block__title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 600 19px/1.2 "Outfit", system-ui, sans-serif; }
.block__title span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mint); color: var(--leaf); font-size: 14px; }

.grid { display: grid; gap: 14px 16px; }
.grid + .grid { margin-top: 14px; }
@media (min-width: 620px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: 2fr 1fr 1fr; }
  .grid--card { grid-template-columns: 2fr 1fr 1fr; }
}

.field label, .sig__head label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .cjs, .money {
  width: 100%; height: 46px; border: 1px solid #cfd7e1; border-radius: 10px; background: #fff;
  font: inherit; color: inherit; transition: border-color .15s, box-shadow .15s;
}
.field input, .field select { padding: 0 12px; }
.field input:focus, .field select:focus, .money:focus-within, .cjs:focus-within {
  outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(74,116,82,.18);
}
.money { display: flex; align-items: center; padding-left: 12px; }
.money span { color: var(--muted); font-weight: 600; }
.money input { border: 0; height: 44px; box-shadow: none !important; padding-left: 6px; }
.cjs { overflow: hidden; }
.cjs iframe { width: 100% !important; height: 44px !important; }
.cjs.is-invalid { border-color: var(--error); }

.stubcard { padding: 14px 16px; border: 1px dashed #d8c27a; border-radius: 10px; background: var(--warn-bg); font-size: 14px; }

.hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.hint.is-ok { color: var(--leaf); font-weight: 600; }

.terms { font-size: 14px; color: #3d4c60; background: #fafbfc; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.terms p { margin: 0 0 8px; }
.terms p:last-child { margin: 0; }

.clause { margin: 16px 0; padding: 14px 16px; border-left: 3px solid var(--leaf); background: var(--mint); border-radius: 0 10px 10px 0; font-size: 15px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--leaf); flex: none; }

.sig { margin-top: 18px; }
.sig__head { display: flex; justify-content: space-between; align-items: baseline; }
#signaturePad { display: block; width: 100%; height: 170px; border: 1px solid #cfd7e1; border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.linkbtn { border: 0; background: none; color: var(--leaf); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 0; }

.h-captcha { margin-top: 20px; }

.submit { padding-top: 20px; }
.formmsg { margin: 0 0 12px; color: var(--error); font-weight: 600; font-size: 15px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 52px; padding: 0 24px; border: 0; border-radius: 999px;
  background: var(--leaf); color: #fff; font: 600 17px "Inter", system-ui, sans-serif;
  text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px -12px rgba(74,116,82,.7);
}
.btn:hover { background: var(--navy); }
.btn:disabled { background: #9fb3a4; cursor: not-allowed; box-shadow: none; }
.btn.is-busy::after { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn--ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); box-shadow: none; margin-top: 16px; }
.btn--ghost:hover { background: var(--mint); }
@keyframes spin { to { transform: rotate(360deg); } }

.receipt { padding: 24px; }
.receipt dl { margin: 0; }
.receipt dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-weight: 600; text-align: right; word-break: break-all; }

.foot { padding: 32px 0 40px; font-size: 13px; color: var(--muted); text-align: center; }
.foot a { color: inherit; }
