@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght,SOFT@0,9..144,300..700,50;1,9..144,300..700,50&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');
:root {
  --ink: #100f0d; --muted: #7a7b7c; --line: #d9d2c5; --bg: #f8f4ec; --card: #fffdf9;
  --brand: #100f0d; --brand-dark: #c9529f; --accent: #e272c0; --ok: #2f7d4e; --warn: #b7791f; --bad: #b5301c;
  --radius: 16px; --gap: 14px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.45 "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--ink); background: var(--bg); background-image: repeating-linear-gradient(0deg, rgba(16,15,13,.05) 0 1px, transparent 1px 11px), repeating-linear-gradient(90deg, rgba(16,15,13,.05) 0 1px, transparent 1px 11px); padding-block: 0 40px; padding-inline: 16px; }
.wrap { max-width: 640px; margin: 0 auto; }
header.top { padding: 18px 0 10px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
header.top h1 { margin: 0; font: 500 28px/1.05 "Fraunces", Georgia, serif; letter-spacing: -0.02em; }
header.top .sub { color: var(--muted); font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: var(--gap); }
.card h2 { margin: 0 0 12px; font: 500 20px/1.1 "Fraunces", Georgia, serif; color: var(--ink); }
label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0 6px; }
label:first-of-type { margin-top: 0; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=search], input[type=password], textarea, select {
  width: 100%; font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
textarea { min-height: 84px; resize: vertical; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 500; font-size: 15px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--brand); color: #fff; border-color: var(--brand); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; margin: 0; font-weight: 500; }
.choice input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.choice small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.choice:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: #f1f8f8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 17px; font-weight: 600; padding: 14px 18px; border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.secondary { background: #fff; color: var(--brand-dark); }
.btn.small { width: auto; padding: 8px 12px; font-size: 14px; border-radius: 9px; }
.btn.danger { background: #fff; color: var(--bad); border-color: var(--bad); }
.help { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.error { background: #fdecea; color: var(--bad); border: 1px solid #f5c6c2; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.notice { background: #fff8e6; color: #7a5a12; border: 1px solid #f1dfae; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.success { background: #eaf7ef; color: #1e5d3b; border: 1px solid #bfe3cd; border-radius: 10px; padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.photo-box { display: flex; gap: 12px; align-items: center; }
.photo-box img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #eee; }
.photo-box .btn { width: auto; }
.consent { background: #f6f9fa; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 14px; color: #33454f; }
#card-element { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #e8eef0; color: #35505c; text-transform: capitalize; }
.pill.open { background: #fbe6f5; color: #c9529f; }
.pill.reserved { background: #fff1dc; color: #8a5a10; }
.pill.received { background: #e7f0ff; color: #2b4f9e; }
.pill.notified { background: #efe6ff; color: #5b3aa1; }
.pill.fulfilled { background: #e5f5ec; color: #23663f; }
.pill.cancelled { background: #f3e2e0; color: #8f2c22; }
.summary { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
footer { color: var(--muted); font-size: 13px; text-align: center; padding: 12px 0; }
footer a { color: var(--brand-dark); }
@media (min-width: 720px) { .wrap.wide { max-width: 1080px; } }
