:root {
  --red-deep: #5c0e18;
  --red-mid: #7d1220;
  --red-bright: #9c1a2b;
  --cream: #fbf3e2;
  --cream-2: #f2e4c8;
  --ink: #2b1710;
  --ink-soft: #5a4436;
  --gold: #b8892b;
  --gold-light: #d9b463;
  --pine: #16412e;
  --pine-light: #1f5b40;
  --error: #8f2b2b;
  --radius: 6px;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--red-deep);
  color: var(--ink);
  font-family: var(--sans);
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,0.06), transparent 45%),
    linear-gradient(160deg, var(--red-deep) 0%, var(--red-mid) 55%, var(--red-bright) 100%);
  padding: 48px 16px 80px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
}

/* --- Hero --- */
.hero {
  position: relative;
  text-align: center;
  color: var(--cream);
  padding: 8px 12px 34px;
  overflow: visible;
}

.hero .flake {
  position: absolute;
  opacity: 0.55;
  color: var(--gold-light);
}

.hero .eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold-light);
  margin: 0 0 6px;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 46px);
  line-height: 1.08;
  margin: 0 0 10px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}

.hero p.sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--cream-2);
  margin: 0;
}

/* --- Card --- */
.card {
  background: var(--cream);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  padding: 34px 34px 30px;
}

@media (max-width: 560px) {
  .card { padding: 24px 18px 22px; }
}

section.block {
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--cream-2);
}
section.block:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

h2.block-title {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--pine);
  margin: 0 0 4px;
}

p.block-hint {
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

/* --- Fields --- */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) {
  .field-row, .field-row.three { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
label .opt {
  font-weight: 400;
  color: var(--ink-soft);
  font-style: italic;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8c7a3;
  border-radius: 4px;
  padding: 10px 11px;
  width: 100%;
}

textarea { resize: vertical; min-height: 70px; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--pine);
  box-shadow: 0 0 0 3px rgba(22,65,46,0.15);
}

/* --- Guest cards --- */
#guestList { display: flex; flex-direction: column; gap: 14px; }

.guest-card {
  background: var(--cream-2);
  border: 1px solid #e2cf9f;
  border-radius: var(--radius);
  padding: 16px 18px;
}

.guest-card .guest-heading {
  font-family: var(--serif);
  font-size: 15.5px;
  color: var(--pine);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-card .guest-heading .tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--pine);
  background: rgba(22,65,46,0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.empty-note {
  font-size: 13.5px;
  color: var(--ink-soft);
  font-style: italic;
}

/* --- Notice banners --- */
.notice {
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
  display: none;
}
.notice.show { display: block; }
.notice.warn {
  background: #f6e6c8;
  border: 1px solid var(--gold);
  color: #6b4a12;
}
.notice.error {
  background: #f5dede;
  border: 1px solid var(--error);
  color: var(--error);
}
.notice.success {
  background: #e2ede5;
  border: 1px solid var(--pine);
  color: var(--pine);
}

/* --- Submit --- */
.submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

button.btn-submit {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--cream);
  background: var(--pine);
  border: none;
  border-radius: 999px;
  padding: 13px 30px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
button.btn-submit:hover { background: var(--pine-light); }
button.btn-submit:active { transform: translateY(1px); }
button.btn-submit:disabled {
  background: #9aa8a1;
  cursor: not-allowed;
}

.status-line {
  font-size: 13.5px;
  color: var(--ink-soft);
}

.deposit-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.5;
}

footer.pagefoot {
  text-align: center;
  color: var(--cream-2);
  font-size: 12.5px;
  margin-top: 26px;
  line-height: 1.7;
}
footer.pagefoot a { color: var(--gold-light); }
