[hidden] { display: none !important; }
:root {
  --brand: #c8102e; --brand-dark: #9f0d25; --ink: #0f172a; --muted: #64748b;
  --line: #e2e8f0; --bg: #f1f5f9; --card: #fff; --ok: #16a34a; --err: #dc2626;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
body.embed { background: transparent; }
.wrap { max-width: 560px; margin: 40px auto; padding: 0 16px; }
.wrap.wide { max-width: 760px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: 0 1px 3px rgba(15, 23, 42, .06); }
h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.01em; }
h2 { font-size: 18px; margin: 24px 0 10px; }
p.sub { color: var(--muted); margin: 0 0 22px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 14px 0 6px; }
input, textarea, select { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; background: #fff; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: -1px; border-color: transparent; }
textarea { min-height: 96px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--muted); }
.check input { width: auto; margin-top: 3px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 10px; border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.block { width: 100%; margin-top: 20px; }
.btn.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.hp { position: absolute; left: -9999px; }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: 9px; font-size: 14px; }
.msg.err { background: #fef2f2; color: var(--err); }
.msg.ok { background: #f0fdf4; color: var(--ok); }
.center { text-align: center; }
.big-check { width: 56px; height: 56px; border-radius: 50%; background: #dcfce7; color: var(--ok); display: grid; place-items: center; font-size: 28px; margin: 0 auto 14px; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.day { flex: 0 0 auto; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; font-weight: 600; font-size: 14px; }
.day.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 16px; }
.slot { padding: 11px; border: 1px solid var(--brand); color: var(--brand); background: #fff; border-radius: 9px; cursor: pointer; font: inherit; font-weight: 600; }
.slot.on, .slot:hover { background: var(--brand); color: #fff; }
.muted { color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 10px 6px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; }
td.num, th.num { text-align: right; }
.total { font-size: 22px; font-weight: 700; text-align: right; margin-top: 14px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #fdeef0; color: #9f0d25; }
.badge.accepted { background: #dcfce7; color: #166534; }
.badge.declined { background: #fee2e2; color: #991b1b; }
.quote-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 18px; }
.logo { display: block; max-height: 56px; max-width: 220px; margin: 0 auto 18px; }
.brandbar { text-align: center; font-weight: 800; font-size: 18px; margin-bottom: 16px; color: var(--brand); }
code { background: #f1f5f9; padding: 1px 5px; border-radius: 5px; }

.brandbar .brand-co { display: block; font-size: 22px; color: var(--ink); letter-spacing: -.01em; text-transform: none; margin-bottom: 2px; }
.brandbar { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.brandbar .brand-logo { display: block; height: 34px; width: auto; max-width: 100%; margin: 0 auto 10px; }
/* V4.8: quote signature */
.sig-pad { display: block; width: 100%; height: 160px; border: 1.5px dashed var(--line); border-radius: 12px; background: #fff; touch-action: none; cursor: crosshair; }
.linkbtn { background: none; border: 0; color: var(--brand); font: inherit; font-size: 13px; cursor: pointer; padding: 0; text-transform: none; letter-spacing: 0; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 400; margin: 12px 0 4px; text-transform: none; letter-spacing: 0; color: inherit; }
.agree input { width: auto; margin-top: 3px; }
.sig-done { margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sig-done img { max-width: 300px; width: 100%; border-bottom: 1px solid var(--line); }
.sig-done span { font-size: 13px; color: var(--muted); }
