* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --wine: #6B1E2E;
  --wine-deep: #3D0F1A;
  --gold: #C4973B;
  --gold-access: #9E751E;
  --gold-light: #D9B870;
  --gold-tint: #FBF4E6;
  --cream: #F9F4EE;
  --cream-mid: #EDE5D8;
  --text-dark: #1A1008;
  --text-mid: #4A3728;
  --text-light: #5E4A3C;
  --text-ghost: #8C7A6B;
  --surface: #FFFFFF;
  --border: rgba(107, 30, 46, 0.14);
  --border-gold: rgba(196, 151, 59, 0.3);
  --green: #1A6B3A;
  --red: #8A1A1A;
  --font-d: 'Cormorant Garamond', Georgia, serif;
  --font-b: 'DM Sans', sans-serif;
  --r-sm: 3px;
  --r-md: 6px;
  --r-lg: 10px;
}

body {
  font-family: var(--font-b);
  background: var(--cream-mid);
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Focus ring ── */
:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ── Header ── */
.head {
  background: var(--wine-deep);
  color: #fff;
  text-align: center;
  padding: 40px 20px 36px;
}
.head .eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 10px;
}
.head h1 {
  font-family: var(--font-d);
  font-size: 2.6rem;
  font-weight: 300;
}
.head h1 em { font-style: italic; color: var(--gold-light); }

/* ── Wrapper ── */
.wrapper { padding: 32px 20px 8px; }

/* ── Card ── */
.card {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 36px 36px;
}
.card-intro h2 {
  font-family: var(--font-d);
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--wine-deep);
}
.card-intro p { font-size: 13px; color: var(--text-light); margin-top: 6px; }

/* ── Form groups ── */
.group { margin-top: 26px; }
.group-h {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-access);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-gold);
  margin-bottom: 16px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.row.one { grid-template-columns: 1fr; }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-mid);
  margin-bottom: 5px;
}
.field label .req { color: var(--wine); }
.field label .opt { color: var(--text-ghost); font-weight: 400; }

/* ── Inputs ── */
.inp, .sel, .ta {
  width: 100%;
  font-family: var(--font-b);
  font-size: 13px;
  color: var(--text-dark);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 9px 11px;
  outline: none;
}
.inp:focus, .sel:focus, .ta:focus {
  border-color: var(--wine);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(107, 30, 46, 0.07);
}
.sel {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6'><path d='M0 0l5 6 5-6z' fill='%238C7A6B'/></svg>");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 28px;
}
.ta { resize: vertical; min-height: 84px; line-height: 1.5; }

/* ── Field errors ── */
.field-error {
  font-size: 11px;
  color: var(--red);
  margin-top: 4px;
  display: none;
}
.field-error.visible { display: block; }
.inp.invalid, .sel.invalid, .ta.invalid { border-color: var(--red); }

/* ── Consent ── */
.consent {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.chk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--text-mid);
  cursor: pointer;
}
.chk input {
  margin-top: 2px;
  accent-color: var(--wine);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.chk a { color: var(--wine); }
.chk .req { color: var(--wine); }

/* ── Submit ── */
.actions { margin-top: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-b);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--wine);
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 13px 32px;
  cursor: pointer;
}
.btn:hover { background: var(--wine-deep); }
.btn:disabled { background: var(--text-ghost); cursor: default; }
.after { font-size: 11.5px; color: var(--text-ghost); margin-top: 12px; }

/* ── General error banner ── */
.form-error {
  display: none;
  margin-top: 14px;
  padding: 10px 14px;
  background: #fde8e8;
  border: 1px solid var(--red);
  border-radius: var(--r-sm);
  font-size: 12px;
  color: var(--red);
}
.form-error.visible { display: block; }

/* ── Confirmation panel ── */
.confirm {
  max-width: 620px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 44px 36px;
  text-align: center;
  display: none;
}
.confirm.visible { display: block; }
.confirm .glass { margin: 0 auto 16px; }
.confirm h2 {
  font-family: var(--font-d);
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--wine-deep);
}
.confirm p { font-size: 13px; color: var(--text-light); margin-top: 10px; max-width: 420px; margin-left: auto; margin-right: auto; }
.confirm .ref { font-size: 11px; color: var(--text-ghost); margin-top: 16px; }

/* ── Footer note ── */
.note {
  max-width: 620px;
  margin: 8px auto 0;
  font-size: 11px;
  color: var(--text-ghost);
  font-style: italic;
  padding: 0 20px;
}
.foot {
  max-width: 620px;
  margin: 24px auto 50px;
  text-align: center;
  font-size: 10px;
  color: var(--text-ghost);
  padding: 0 20px;
}
