:root {
  --green: #17432c;
  --coral: #f07575;
  --orange: #e27505;
  --text: #222;
  --muted: #6b6b6b;
  --line: #e6e6e6;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}

/* ---------- header ---------- */
.site-header {
  text-align: center;
  padding: 28px 16px 22px;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-weight: 200;
  font-size: 30px;
  letter-spacing: 0.14em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}
.wordmark { display: inline-block; line-height: 0; }
.wordmark img { height: 84px; width: auto; max-width: 80vw; display: block; }
@media (max-width: 520px) {
  .wordmark img { height: 64px; }
}

/* ---------- hero ---------- */
.hero {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 44px 20px 60px;
}
.hero-photo {
  max-width: 1040px;
  margin: 0 auto 44px;
}
.hero-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 30%;
}
@media (max-width: 520px) {
  .hero { padding-top: 24px; }
  .hero-photo { margin-bottom: 30px; }
  .hero-photo img { aspect-ratio: 4 / 3; }
}
.hero h1 {
  margin: 0 0 14px;
  font-weight: 300;
  font-size: clamp(30px, 6vw, 48px);
  text-transform: lowercase;
  letter-spacing: 0.02em;
}
.hero p {
  max-width: 560px;
  margin: 0 auto;
  font-size: 16px;
}

/* ---------- form ---------- */
.wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

fieldset.q {
  border: 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 0 0 30px;
}
fieldset.q:last-of-type { border-bottom: 0; }

legend {
  padding: 34px 0 0;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.4;
  display: flex;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 6px;
}
legend .n {
  color: var(--orange);
  font-weight: 300;
  font-size: 26px;
  min-width: 26px;
}

.hint {
  margin: 0 0 14px 40px;
  font-size: 13px;
  color: var(--muted);
}

.opts { margin-left: 40px; }

.opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  font-size: 16px;
}
.opt input {
  width: 19px;
  height: 19px;
  accent-color: var(--green);
  flex: none;
  cursor: pointer;
}

.other,
textarea {
  display: block;
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
}
.other { margin: 4px 0 8px 31px; width: calc(100% - 31px); }
.other[hidden] { display: none; }
.other:focus,
textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; }

textarea { min-height: 120px; resize: vertical; margin-left: 40px; width: calc(100% - 40px); }

/* ---------- flower rating ---------- */
.rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 6px;
  margin-left: 40px;
}
.rating input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.rating label { cursor: pointer; line-height: 0; }
.flower {
  width: 46px;
  height: 46px;
  fill: transparent;
  stroke: var(--coral);
  stroke-width: 1.1;
  transition: fill 0.15s ease, transform 0.15s ease;
}
.rating label:hover .flower,
.rating label:hover ~ label .flower,
.rating input:checked ~ label .flower {
  fill: var(--coral);
}
.rating label:hover .flower { transform: scale(1.1); }
.rating input:focus-visible + label .flower { outline: 2px solid var(--green); outline-offset: 2px; }
.scale-note {
  margin: 8px 0 0 40px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- submit ---------- */
.submit-row {
  background: var(--coral);
  text-align: center;
  padding: 56px 20px 60px;
}

.btn {
  display: inline-block;
  font: inherit;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 16px 44px;
  background: var(--green);
  color: #fff;
  border: 1px solid var(--green);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn:hover { background: #fff; color: var(--green); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn.outline { background: #fff; color: var(--text); border-color: var(--text); }
.btn.outline:hover { background: var(--text); color: #fff; }

.msg {
  margin: 18px auto 0;
  max-width: 480px;
  font-size: 14px;
  color: #3b0a0a;
  font-weight: 600;
}
.msg[hidden] { display: none; }

.privacy {
  margin: 22px auto 0;
  max-width: 480px;
  font-size: 12px;
  color: var(--text);
  text-align: center;
}

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

/* ---------- thank you page ---------- */
.thanks {
  text-align: center;
  padding: 90px 20px 100px;
}
.thanks .flower-big { width: 90px; height: 90px; fill: var(--coral); stroke: var(--coral); margin-bottom: 18px; }
.thanks h1 {
  margin: 0 0 18px;
  font-weight: 300;
  font-size: clamp(34px, 7vw, 56px);
  text-transform: lowercase;
}
.thanks p {
  max-width: 520px;
  margin: 0 auto 34px;
  font-size: 17px;
}

/* ---------- video (vertical YouTube Short) ---------- */
.video {
  max-width: 360px;
  margin: 48px auto 0;
  aspect-ratio: 9 / 16;
  background: var(--green);
}
.video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--green);
  color: #fff;
  text-align: center;
  padding: 36px 16px;
}
.site-footer strong { letter-spacing: 0.08em; font-weight: 600; }
.site-footer span { display: block; font-size: 13px; font-weight: 300; margin-top: 4px; }

@media (max-width: 520px) {
  .hint, .opts, .rating, .scale-note { margin-left: 0; }
  textarea { margin-left: 0; width: 100%; }
  .other { margin-left: 31px; }
  .flower { width: 42px; height: 42px; }
  legend .n { font-size: 22px; min-width: 20px; }
}
