:root {
  --moss: #4A6444;
  --fern: #7FA173;
  --sage: #B8CCA8;
  --mist: #EAF0E3;
  --linen: #FAF8F2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--mist);
  color: var(--moss);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.portrait {
  display: block;
  margin: 0 auto 1.25rem;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--sage);
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 2rem;
  margin: 0 0 0.25rem;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 3rem; }
}

.subhead {
  margin: 0;
  color: var(--fern);
  font-size: 1.05rem;
}

.video {
  margin: 0 0 2rem;
}

.video-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 12px;
  overflow: hidden;
  background: var(--sage);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.explainer {
  margin: 0 0 2rem;
  font-size: 1rem;
}

.explainer p {
  margin: 0;
}

.explainer .signoff {
  margin-top: 1rem;
  font-style: italic;
  color: var(--fern);
}

.form-section {
  background: var(--linen);
  border: 1px solid var(--sage);
  border-radius: 12px;
  padding: 1.5rem;
}

.field {
  display: block;
  margin-bottom: 1.25rem;
}

.label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.muted {
  color: var(--fern);
  font-weight: 400;
}

input[type="text"],
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--sage);
  border-radius: 8px;
  background: white;
  color: var(--moss);
  font: inherit;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 8rem;
}

input[type="text"]:focus,
textarea:focus,
input[type="file"]:focus {
  outline: none;
  border-color: var(--fern);
  box-shadow: 0 0 0 2px var(--fern);
}

input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
}

.counter {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: var(--fern);
  margin-top: 0.35rem;
}

.counter.over {
  color: #a84a4a;
}

.photo-preview {
  display: block;
  max-width: 100%;
  max-height: 240px;
  margin-top: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--sage);
  object-fit: cover;
}

.gotcha {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.error {
  color: #a84a4a;
  margin: 0 0 1rem;
}

button[type="submit"] {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--moss);
  color: var(--linen);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  min-height: 48px;
  cursor: pointer;
  transition: opacity 150ms ease;
}

button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (min-width: 640px) {
  button[type="submit"] {
    width: auto;
    min-width: 220px;
    display: block;
    margin: 0 auto;
  }
}

.thankyou {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--linen);
  border: 1px solid var(--sage);
  border-radius: 12px;
  animation: fade 150ms ease-in;
}

.checkmark {
  font-size: 3rem;
  margin: 0 0 0.5rem;
  color: var(--fern);
}

.thankyou-line {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
