.q-body { background: var(--parchment); }

.q-error {
  margin-top: 18px;
  padding: 14px 18px;
  background: #fbeceb;
  border-left: 3px solid var(--wine);
  color: var(--wine-deep);
  font-size: 0.92rem;
}

.q-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  background: var(--ink);
}
.q-topbar .nav-mark { color: var(--white); text-decoration: none; }
.q-back { color: #cfc7c3; text-decoration: none; font-size: 0.88rem; }
.q-back:hover { color: var(--white); }

.q-main { max-width: 800px; margin: 0 auto; padding: 60px var(--gutter) 100px; }
.q-intro h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin: 14px 0 18px; }
.q-savenote {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--white);
  border-left: 3px solid var(--brass);
  font-size: 0.88rem;
  color: #4c463f;
}

.q-progress {
  height: 3px; background: #e3d8c0; margin: 34px 0 8px; border-radius: 2px; overflow: hidden;
}
.q-progress-bar { height: 100%; width: 0%; background: var(--wine); transition: width 0.3s ease; }

.q-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }

.q-section {
  background: var(--white);
  border: 1px solid #e7ddc9;
  border-radius: 3px;
  padding: 4px 24px;
}
.q-section summary {
  font-family: var(--font-display);
  font-size: 1.1rem;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.q-section summary::-webkit-details-marker { display: none; }
.q-section summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--stone);
}
.q-section[open] summary::after { content: "\2212"; }
.q-section[open] summary { border-bottom: 1px solid #efe7d6; }

.q-fields { padding: 22px 0 26px; display: flex; flex-direction: column; gap: 18px; }
.q-fields label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 0.88rem; color: var(--stone);
}
.q-fields input, .q-fields textarea {
  font-family: var(--font-body); font-size: 1rem;
  padding: 12px 14px; border: 1px solid #d9cfc0; border-radius: 2px;
  background: var(--white); color: var(--ink);
}
.q-fields textarea { resize: vertical; }
.q-hint { font-size: 0.82rem; color: var(--stone); font-style: italic; }
.q-hint-inline { font-weight: 400; font-style: italic; }

.q-timeline-grid, .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) {
  .q-timeline-grid, .form-row { grid-template-columns: 1fr; }
}

.q-dynamic-row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.q-dynamic-row input { flex: 1; }
.q-remove {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #d9cfc0; background: var(--white); color: var(--stone);
  flex-shrink: 0; font-size: 1.1rem; line-height: 1;
}
.q-remove:hover { border-color: var(--wine); color: var(--wine); }
.q-add {
  align-self: flex-start;
  background: none; border: 1px dashed var(--brass);
  color: var(--wine); padding: 9px 16px; border-radius: 2px;
  font-size: 0.88rem; margin-bottom: 18px;
}
.q-add:hover { background: #f4ead9; }

.q-submit-row { display: flex; justify-content: center; padding: 20px 0 0; }
