/* Client portal, styled after yardguardllc.com (dark teal page, light cards, DynaPuff headings, gold pill buttons) */
@font-face { font-family: 'Riffic'; src: url('/fonts/riffic-bold.woff2') format('woff2'), url('/fonts/riffic-bold.woff') format('woff'); font-weight: 400 900; font-display: swap; }
:root {
  --page: #062e34; --ink: #032b3a; --green: #062e34; --green-2: #0d4a52; --mint: #e6eeee; --gold: #f9b233; --gold-2: #e19b23; --gold-3: #fff3da;
  --card: #f2f2f2; --white: #fff; --text: #333; --muted: #5d6b69; --line: #dcdcdc; --red: #b42318; --red-bg: #fde8e6; --ok: #1d7a46;
  --head: 'DynaPuff', 'Riffic', system-ui, sans-serif; --body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif; --btn: 'Poppins', system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { font-family: var(--body); background: var(--page); color: var(--text); line-height: 1.5; font-size: 16px; min-height: 100vh; }
a { color: var(--green-2); }
button, input, select, textarea { font: inherit; color: inherit; }
.pbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; flex-wrap: wrap; max-width: 960px; margin: 0 auto; }
.pbrand { display: flex; align-items: center; text-decoration: none; }
.pbrand img { width: 150px; height: auto; }
#pnav { display: flex; gap: 4px; flex-wrap: wrap; }
#pnav a { color: #fff; text-decoration: none; padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: 15px; }
#pnav a.on { background: var(--gold); color: var(--ink); }
#pnav a:hover:not(.on) { background: rgba(255,255,255,.12); }
.ptest { background: var(--gold); color: var(--ink); text-align: center; font-weight: 700; padding: 6px; font-size: 14px; }
main { max-width: 760px; margin: 0 auto; padding: 12px 16px 30px; }
h1 { font-family: var(--head); font-weight: 600; color: #fff; font-size: 34px; margin: 10px 0 16px; line-height: 1.15; }
h2 { font-family: var(--head); font-weight: 600; color: var(--ink); font-size: 22px; margin: 0 0 10px; }
h3 { font-family: var(--head); color: var(--ink); }
.pcard { background: var(--card); border-radius: 15px; padding: 20px 22px; margin: 0 0 16px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.pcard.gold { background: var(--gold-3); border: 2px solid var(--gold); }
.pcard.red { background: var(--red-bg); border: 2px solid #f3b8b2; }
.pgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.pgrid .pcard { margin: 0; }
.pmuted { color: var(--muted); }
main > .pmuted, main > p.pmuted { color: rgba(255,255,255,.8); }
main > p.pmuted a { color: var(--gold); }
.small { font-size: 14px; }
.big { font-size: 30px; font-weight: 700; color: var(--ink); font-family: var(--head); }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.row:last-child { border-bottom: 0; }
.row.total { font-weight: 700; font-size: 18px; color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 24px; border-radius: 99px; border: 0;
  background: var(--gold-2); color: #fff; font-family: var(--btn); font-weight: 800; text-transform: uppercase; letter-spacing: .3px; cursor: pointer; text-decoration: none;
  box-shadow: 0 6px 16px rgba(225,155,35,.3); }
.btn:hover { filter: brightness(1.05); }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.ghost { background: var(--white); color: var(--ink); border: 2px solid var(--gold-2); box-shadow: none; }
.btn.red { background: var(--red); box-shadow: none; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .55; cursor: default; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
main > .btns .btn.ghost { border-color: var(--gold); }
label { display: block; font-weight: 700; color: var(--green); margin: 12px 0 6px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #d0d0d0; border-radius: 8px; background: #fff; color: var(--green); font-family: var(--body); }
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(249,178,51,.6); border-color: var(--gold-2); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; margin: 12px 0; color: var(--text); }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--gold-2); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.choice { border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; text-align: left; font-family: var(--body); font-size: 14px; color: #444; }
.choice.on { border-color: var(--gold-2); background: #fff8ea; box-shadow: 0 0 0 2px rgba(249,178,51,.35); }
.choice b { display: block; color: var(--ink); font-size: 15px; }
.tag { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--mint); color: var(--green); }
.tag.ok { background: #dff3e6; color: var(--ok); }
.tag.red { background: var(--red-bg); color: var(--red); }
.tag.gold { background: var(--gold-3); color: #7a5200; }
.err { color: var(--red); font-weight: 600; min-height: 1.2em; margin-top: 8px; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.photos img { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: zoom-in; }
.visit { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.visit:last-child { border-bottom: 0; }
.pfoot { text-align: center; color: rgba(255,255,255,.75); font-size: 14px; padding: 10px 16px 40px; }
.pfoot a { color: var(--gold); }
.ptoast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 20; max-width: 90vw; }
.ptoast.bad { background: var(--red); }
#card-element { padding: 4px 0; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; align-items: center; justify-content: center; z-index: 30; }
.lightbox img { max-width: 94vw; max-height: 90vh; border-radius: 10px; }
@media (max-width: 560px) { h1 { font-size: 27px; } .pbrand img { width: 120px; } #pnav a { padding: 7px 10px; font-size: 14px; } .pcard { padding: 18px 16px; } }
@media print { body { background: #fff; } h1 { color: var(--ink); } .pbar, .pfoot, .btns { display: none; } .pcard { box-shadow: none; } }
