@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600&family=Inter+Tight:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --ink: #1c2321;
  --forest: #2f4d3a;
  --moss: #5c7a5f;
  --cream: #f6f3ec;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter Tight", sans-serif;
  line-height: 1.5;
}

h1 {
  font-family: "Fraunces", serif;
  color: var(--forest);
  font-size: 1.8rem;
  margin: 0 0 0.5rem;
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.thanks {
  text-align: center;
  padding-top: 6rem;
}

.sub {
  color: rgba(28, 35, 33, 0.7);
  margin-bottom: 2.5rem;
}

.meta-fields {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.meta-fields .field {
  flex: 1;
}

.meta-fields label {
  display: block;
  font-size: 0.85rem;
  color: rgba(28, 35, 33, 0.6);
  margin-bottom: 0.4rem;
}

.meta-fields input[type="text"] {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid rgba(28, 35, 33, 0.2);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
}

.meta-fields input[type="text"]:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
}

@media (max-width: 480px) {
  .meta-fields {
    flex-direction: column;
    gap: 1.25rem;
  }
}

.section-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--moss);
  margin: 2.5rem 0 1.25rem;
  border-top: 1px solid rgba(28, 35, 33, 0.12);
  padding-top: 1.5rem;
}

.section-label:first-of-type {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.error-msg {
  color: #b3261e;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.review-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid rgba(28, 35, 33, 0.12);
  border-radius: 10px;
  background: rgba(47, 77, 58, 0.05);
}

.review-copy {
  margin: 0 0 1rem;
}

.review-button {
  display: inline-block;
  background: var(--forest);
  color: var(--cream);
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.review-button:hover {
  background: #253f2f;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

legend {
  font-size: 1.05rem;
  margin-bottom: 0.9rem;
  padding: 0;
}

.qnum {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--moss);
  margin-right: 0.4rem;
}

.optional {
  color: rgba(28, 35, 33, 0.4);
  font-size: 0.85rem;
}

.scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.scale input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.scale label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(28, 35, 33, 0.2);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.scale-5 label {
  width: 44px;
  height: 44px;
}

.scale-11 label {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.scale label:hover {
  border-color: var(--forest);
}

.scale input[type="radio"]:checked + label {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(28, 35, 33, 0.2);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
}

textarea:focus, .scale label:focus-within {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
}

button[type="submit"] {
  width: 100%;
  background: var(--forest);
  color: var(--cream);
  border: none;
  border-radius: 6px;
  padding: 0.9rem;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

button[type="submit"]:hover {
  background: #253f2f;
}

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