/* "Are you in?" page: the interest form, on a poster sheet. Builds on site.css. */

.join-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  box-sizing: border-box;
  padding: clamp(20px, 4vw, 48px) 16px clamp(48px, 8vw, 96px);
}
.join-page { padding-top: 76px; }
@media (max-width: 720px) { .join-page { padding-top: 104px; } }
/* "Home" button in the top bar (the form page's way back) */
.tb-home {
  font-size: 11.5px; padding: 8px 14px 7px; color: var(--navy); text-decoration: none; white-space: nowrap;
  border: 1.5px solid var(--navy); transition: transform .25s var(--spring);
}
.tb-home:hover { transform: rotate(-2deg); color: var(--red); border-color: var(--red); }
@media (max-width: 720px) { .tb-home { margin-left: auto; } }

/* ---------- page drawings ---------- */
.j-tent  { left: clamp(4px, 6vw, 120px); bottom: clamp(30px, 8vh, 110px); width: clamp(90px, 10vw, 150px); animation: kt-breeze 6s ease-in-out infinite; transform-origin: 50% 100%; }
.j-coupe { right: clamp(4px, 7vw, 130px); top: clamp(90px, 16vh, 180px); width: clamp(56px, 6vw, 88px); animation: kt-hover 5s ease-in-out infinite; }
.j-star1 { left: clamp(30px, 12vw, 230px); top: clamp(120px, 22vh, 240px); width: clamp(18px, 2vw, 26px); }
.j-star2 { right: clamp(24px, 12vw, 240px); bottom: clamp(120px, 26vh, 300px); width: clamp(16px, 1.8vw, 24px); }
@media (max-width: 860px) { .join-page .m { display: none; } }

/* ---------- the sheet ---------- */
.sheet {
  position: relative;
  box-sizing: border-box;
  width: min(600px, 100%);
  margin: clamp(28px, 5vh, 56px) auto 0;
  padding: clamp(40px, 7vw, 64px) clamp(20px, 6vw, 56px) clamp(32px, 6vw, 56px);
  background: var(--cream);
  border: 1.5px solid var(--navy);
  box-shadow: 0 1px 0 var(--card), 12px 14px 0 -2px var(--card);
  animation: kt-fade .8s ease-out both;
}
.bunting { position: absolute; left: 6%; right: 6%; top: -2px; width: 88%; height: auto; pointer-events: none; }

.intro { text-align: center; display: grid; justify-items: center; gap: 8px; margin-bottom: clamp(28px, 5vw, 40px); }
.intro h1 { font-size: clamp(54px, 13vw, 92px); margin: clamp(30px, 6vw, 44px) 0 12px; }
.intro .when  { font: 500 13px/1 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.intro .where { font: italic 400 clamp(17px, 3.4vw, 21px)/1.2 var(--text); color: var(--red); }
.intro .blurb { margin-top: 14px; max-width: 30em; font: 400 15px/1.6 var(--text); text-wrap: pretty; }

/* ---------- questions ---------- */
.interest { display: grid; gap: clamp(22px, 4vw, 30px); }
.q { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 8px; }
.ql {
  padding: 0;
  font: 500 12.5px/1.45 var(--caps); letter-spacing: .12em; text-transform: uppercase;
}
.ql::after { content: " *"; color: var(--red); }
.help { font: italic 400 14px/1.5 var(--text); color: color-mix(in srgb, var(--navy) 78%, var(--cream)); }

.interest input[type=email],
.interest textarea {
  box-sizing: border-box; width: 100%;
  font: 400 16px/1.5 var(--text); color: var(--navy);
  background: color-mix(in srgb, var(--cream) 55%, #fff);
  border: 1.5px solid var(--navy); border-radius: 0;
  padding: 10px 12px;
  box-shadow: 4px 5px 0 -1px var(--card);
  -webkit-appearance: none; appearance: none;
}
.interest textarea { resize: vertical; min-height: 4.6em; }
.interest ::placeholder { color: color-mix(in srgb, var(--navy) 45%, var(--cream)); font-style: italic; }
.interest input:focus-visible, .interest textarea:focus-visible { outline: 2px dashed var(--red); outline-offset: 3px; }

/* The confidence scale: one stamp per answer. */
.scale { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.scale label { position: relative; display: flex; cursor: pointer; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; left: 50%; top: 50%; pointer-events: none; }
.scale span {
  flex: 1; display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; box-sizing: border-box; padding: 8px 10px;
  font: italic 400 15px/1.3 var(--text);
  border: 1.5px solid var(--navy);
  background: var(--cream);
  transition: background .15s, color .15s, transform .25s var(--spring);
}
.scale .yes { grid-column: 1 / -1; }
.scale .yes span { font: 500 14px/1.2 var(--caps); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--red); border-color: var(--red); min-height: 54px; }
.scale label:hover span { transform: rotate(-1deg) translateY(-1px); }
.scale input:checked + span { background: var(--navy); color: var(--cream); transform: rotate(-1.2deg); }
.scale .yes input:checked + span { background: var(--red); color: var(--cream); }
.scale .yes input:checked + span::before, .scale .yes input:checked + span::after { content: "★"; margin: 0 .6em; }
.scale input:focus-visible + span { outline: 2px dashed var(--red); outline-offset: 3px; }

/* Errors show only after a send attempt. */
.err { display: none; font: italic 400 14px/1.4 var(--text); color: var(--red); }
.q.bad .err { display: block; }
.q.bad input[type=email], .q.bad textarea { border-color: var(--red); }

/* ---------- send ---------- */
.send { display: grid; justify-items: center; gap: 12px; margin-top: 6px; }
.send button {
  font-size: 14px; color: var(--cream); background: var(--red);
  border: 1.5px solid var(--red); border-radius: 0;
  padding: 15px 34px 14px;
  box-shadow: 5px 6px 0 -1px var(--card);
  cursor: pointer;
  transition: transform .25s var(--spring), background .15s;
}
.send button:hover { transform: rotate(-1.5deg) translateY(-1px); }
.send button:active { transform: translateY(1px); }
.send button:focus-visible { outline: 2px dashed var(--navy); outline-offset: 4px; }
.send button[disabled] { opacity: .6; cursor: progress; transform: none; }
.fail { font: italic 400 14px/1.4 var(--text); color: var(--red); text-align: center; }

/* ---------- thank you ---------- */
.sheet [hidden] { display: none !important; }
.thanks { text-align: center; display: grid; justify-items: center; gap: 14px; padding: 8px 0 4px; outline: none; }
.thanks h2 { font-size: clamp(56px, 12vw, 84px); color: var(--red); margin-bottom: 10px; }
.thanks-line { font: italic 400 18px/1.5 var(--text); max-width: 26em; text-wrap: pretty; }
.again a { font: 500 12.5px/1 var(--caps); letter-spacing: .14em; text-transform: uppercase; color: var(--navy); }
.preview-note { font: italic 400 13px/1.4 var(--text); color: color-mix(in srgb, var(--navy) 60%, var(--cream)); }

@media (max-width: 420px) {
  .scale { grid-template-columns: 1fr; }
}
