:root {
  --ink: #f7f3ec;
  --surface: #efe8db;
  --surface-2: #e5dcc9;
  --gold: #b8823a;
  --gold-bright: #d4a24f;
  --plum: #6b2f4c;
  --plum-bright: #8b4468;
  --cream: #211d18;
  --cream-dim: #6b6255;
  --line: #ddd4c2;
  --max: 880px;
  --band-ink: #2c2015;
  --band-surface-2: #453524;
  --band-text: #f7efe0;
  --band-text-dim: #c2b393;
  --error: #a3352f;
  --ok: #3c6b45;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

header.top {
  background: var(--band-ink);
  color: var(--band-text);
  padding: 20px 16px;
}
header.top .wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
header.top .brand {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold-bright);
}
header.top a.back {
  color: var(--band-text-dim);
  text-decoration: none;
  font-size: 0.9rem;
}
header.top a.back:hover { color: var(--gold-bright); }

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 16px 80px;
}

h1 {
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.7rem;
  margin: 0 0 8px;
}
p.lead {
  color: var(--cream-dim);
  margin: 0 0 28px;
  max-width: 640px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  color: var(--cream-dim);
  border-bottom: 3px solid transparent;
  font-family: inherit;
}
.tab-btn.active {
  color: var(--plum);
  border-bottom-color: var(--gold);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  position: relative;
}
.item-card .item-title {
  font-weight: 600;
  color: var(--plum);
  margin-bottom: 12px;
}
.item-card .remove-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: var(--cream-dim);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}
.item-card .remove-btn:hover { color: var(--error); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  align-items: stretch;
}
.grid .full { grid-column: 1 / -1; }
.grid > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

label {
  display: block;
  font-size: 0.82rem;
  color: var(--cream-dim);
  margin-bottom: 4px;
}
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--cream);
  margin-bottom: 0;
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: auto;
  accent-color: var(--plum);
}

input, select, textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--cream);
  font-size: 0.95rem;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--gold-bright);
  outline-offset: 1px;
}

.add-btn {
  background: var(--surface-2);
  border: 1px dashed var(--gold);
  color: var(--plum);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.add-btn:hover { background: var(--gold-bright); color: var(--band-ink); }

fieldset.client {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin: 28px 0;
}
fieldset.client legend {
  font-weight: 600;
  color: var(--plum);
  padding: 0 6px;
}
fieldset.client .grid { margin-top: 4px; }

.submit-btn {
  background: var(--plum);
  color: #fff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.submit-btn:hover { background: var(--plum-bright); }

.empty-note {
  color: var(--cream-dim);
  font-size: 0.9rem;
  font-style: italic;
  margin-bottom: 14px;
}

.thanks-box {
  text-align: center;
  padding: 60px 16px;
  max-width: 560px;
  margin: 0 auto;
}
.thanks-box h1 { margin-bottom: 16px; }
.thanks-box a {
  display: inline-block;
  margin-top: 24px;
  color: var(--plum);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
}
