:root {
  --ink: #1a1a1a;
  --paper: #faf7f2;
  --card: #ffffff;
  --accent: #c1440e;
  --accent-soft: #ffe8da;
  --line: #e8e1d6;
  --muted: #6b6459;
  --ok: #1a7a4c;
  --warn: #b8860b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 24px 20px 80px; }

.hero {
  padding: 56px 0 32px;
  text-align: center;
}
.hero.small { padding: 32px 0 16px; }
.hero .logo { max-height: 48px; max-width: 220px; margin: 0 auto 16px; display: block; }
.hero h1 { font-size: 2rem; margin: 0 0 8px; }
.hero .sub { color: var(--muted); font-size: 1.05rem; margin: 0; }
.hero .dates { color: var(--accent); font-weight: 600; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 20px;
}
.card.highlight { border-color: var(--accent); background: var(--accent-soft); }
.card h2 { margin-top: 0; font-size: 1.15rem; }

.callout {
  background: #fff3e6;
  border: 2px solid var(--accent);
  border-radius: 14px;
  padding: 24px;
  margin: 24px 0;
}
.callout h2 { color: var(--accent); margin-top: 0; }
.callout a.btn { display: inline-block; margin-top: 8px; }

.btn, button, input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.btn:hover, button:hover { opacity: 0.92; }
.btn.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); padding: 10px 22px; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  padding: 0;
  font-size: 0.95rem;
  cursor: pointer;
}

.status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  background: var(--line);
}
.status-pending { background: #fff3d6; color: var(--warn); }
.status-approved { background: #dff5e6; color: var(--ok); }
.status-deposit_paid { background: #dff5e6; color: var(--ok); }
.status-paid_full { background: #d6f0e0; color: var(--ok); }
.status-cancelled { background: #f5d6d6; color: #a33; }

dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
dt { color: var(--muted); font-weight: 600; }
dd { margin: 0; }

form { display: flex; flex-direction: column; gap: 6px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 20px; }
legend { font-weight: 700; padding: 0 8px; }
label { font-size: 0.9rem; color: var(--muted); margin-top: 10px; display: block; }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  margin-top: 4px;
}
textarea { min-height: 80px; }

.agreement { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 14px; }
.agreement summary { cursor: pointer; font-weight: 600; }
.agreement .checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; }
.agreement .checkbox-row input { width: auto; margin: 4px 0 0; }
.agreement-body { white-space: pre-line; font-size: 0.92rem; color: var(--muted); margin-top: 10px; }

.hidden { display: none !important; }

.error { color: #a33; font-size: 0.9rem; margin-top: 8px; }
.success { color: var(--ok); font-size: 0.95rem; margin-top: 8px; }
.note { color: var(--muted); font-style: italic; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

.totals { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.totals .stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; text-align: center; min-width: 110px; }
.totals .stat .num { font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.totals .stat .label { font-size: 0.8rem; color: var(--muted); }

footer.site { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 40px 0; }
