:root {
  --cream: #faf6ef;
  --cream-2: #f4ecda;
  --forest: #133d2e;
  --forest-dark: #0b2419;
  --gold: #cb9f3c;
  --gold-light: #f4dc9c;
  --brass: #8a6a24;
  --ink: #1c2420;
  --border: #e3d9c2;
  --error: #b23b3b;
  --font-display: "Cormorant Garamond", serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
}

.wrap {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */

.nav {
  position: sticky;
  top: 0;
  width: 260px;
  flex: 0 0 260px;
  height: 100vh;
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: var(--cream-2);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
}

.nav-brand { display: flex; flex-direction: column; gap: 2px; }
.nav-brand-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.nav-brand-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 26px;
  color: var(--cream);
}

.nav-progress { display: flex; flex-direction: column; gap: 6px; }
.nav-progress-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(244, 236, 218, 0.18);
  overflow: hidden;
}
.nav-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 100%);
  transition: width 0.25s ease;
}
#progressLabel { font-size: 12px; color: var(--cream-2); opacity: 0.8; }

.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav-list a {
  display: block;
  color: var(--cream-2);
  text-decoration: none;
  font-size: 14.5px;
  padding: 9px 10px;
  border-radius: 8px;
  opacity: 0.82;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.nav-list a:hover { opacity: 1; background: rgba(244, 236, 218, 0.08); }
.nav-list a.active {
  opacity: 1;
  background: rgba(203, 159, 60, 0.18);
  color: var(--gold-light);
  font-weight: 600;
}

.nav-note {
  margin-top: auto;
  font-size: 12px;
  line-height: 1.5;
  color: var(--cream-2);
  opacity: 0.65;
}

/* ---------- Main ---------- */

.main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 48px 56px 120px;
}

.intro { margin-bottom: 36px; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 10px;
  font-weight: 600;
}
.intro h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 48px;
  margin: 0 0 14px;
  color: var(--forest);
}
.lede {
  font-size: 17px;
  max-width: 780px;
  color: #3d443f;
  margin: 0;
}

.card {
  background: #fffdf9;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 26px;
  scroll-margin-top: 24px;
}

.card h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 30px;
  color: var(--forest);
  margin: 0 0 8px;
}

.section-hint {
  font-size: 14.5px;
  color: #6b6355;
  margin: 0 0 24px;
  max-width: 720px;
}

.field-group-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--forest);
  margin: 28px 0 2px;
}

.field { margin-bottom: 20px; }
.field:last-child { margin-bottom: 0; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
  margin-bottom: 5px;
}

.req { color: var(--error); }
.opt { color: #948b78; font-weight: 400; }

.hint {
  font-size: 13px;
  color: #7a7263;
  margin: 0 0 8px;
  line-height: 1.5;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  resize: vertical;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(203, 159, 60, 0.18);
}

input[type="file"] {
  width: 100%;
  font-size: 14px;
  padding: 10px 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.hp-field { position: absolute; left: -9999px; top: -9999px; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.swatch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #5a5344;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px 4px 4px;
}
.swatch-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.1);
  flex: none;
}

.file-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.file-list:empty { display: none; }
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cream-2);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 13px;
  color: #4a4535;
}
.file-list button {
  background: none;
  border: none;
  color: var(--error);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-body);
}

.upload-note {
  font-size: 12.5px;
  color: #948b78;
  margin: 18px 0 0;
}
.upload-note.over-limit { color: var(--error); font-weight: 600; }

.submit-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(0deg, var(--cream) 60%, rgba(250,246,239,0));
  padding: 26px 0 10px;
  text-align: center;
}

#submitBtn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: var(--forest-dark);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  border: none;
  border-radius: 999px;
  padding: 15px 42px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(203, 159, 60, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#submitBtn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(203, 159, 60, 0.45); }
#submitBtn:disabled { opacity: 0.6; cursor: wait; transform: none; }

.submit-note { font-size: 13px; color: #948b78; margin: 12px 0 0; }
.submit-error {
  color: var(--error);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
}

.success-screen {
  text-align: center;
  padding: 100px 20px;
}
.success-screen h2 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 40px;
  color: var(--forest);
  margin: 0 0 14px;
}
.success-screen p { font-size: 16px; color: #4a4535; }

@media (max-width: 880px) {
  .wrap { flex-direction: column; }
  .nav {
    position: relative;
    width: 100%;
    flex: none;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 20px;
  }
  .nav-list { flex-direction: row; flex-wrap: wrap; }
  .nav-note { display: none; }
  .main { padding: 32px 20px 100px; }
  .intro h1 { font-size: 34px; }
  .card { padding: 24px 20px; }
  .grid-2 { grid-template-columns: 1fr; }
}
