/* Trial request pages (trial.html, trial-zh.html, trial-reply.html).
   Base rules mirror register.html so the pages look like part of the same site. */
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-page); color: var(--ink); font-family: var(--font-serif), Georgia, serif; }
body.zh { font-family: var(--font-sc), 'Noto Serif SC', var(--font-serif), serif; }
a { color: var(--ink); }
a:hover { opacity: 0.75; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }

.site-header {
  position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center;
  gap: 0.8rem 2rem; flex-wrap: wrap; padding: 1rem clamp(1.2rem, 4vw, 3rem);
  border-bottom: 0.5px solid var(--border-hair); background: rgba(251, 247, 238, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.site-header .brand { font-size: 19px; text-decoration: none; }
.site-header .brand img { height: 34px; width: auto; vertical-align: middle; margin: -6px 6px -4px 0; }
.site-header nav { display: flex; gap: 0.6rem clamp(0.9rem, 2.2vw, 1.9rem); align-items: center; flex-wrap: wrap; font-size: 15px; }
.site-header nav a { text-decoration: none; }
.site-header nav .here { color: var(--terracotta); font-weight: 500; }
@media (max-width: 640px) {
  .site-header { padding: 0.6rem 1rem; gap: 0.4rem 1rem; }
  .site-header nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 1.1rem; font-size: 14px; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  .site-header nav > * { flex: 0 0 auto; white-space: nowrap; }
}

.wrap { max-width: var(--container-narrow); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem) 6rem; }

/* Top of the trial form: headline, a small collage of student work, and the three steps */
.trial-hero {
  position: relative; overflow: hidden; background: var(--cream); border-bottom: 1px solid var(--ink);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.2rem, 4vw, 3rem) clamp(2.2rem, 4vw, 3rem);
}
.trial-hero .paper {
  position: absolute; inset: 0; background: url('../assets/textures/paper-texture.jpg'); background-size: 800px auto;
  mix-blend-mode: multiply; opacity: 0.35; pointer-events: none;
}
.trial-hero .ink { position: absolute; right: -60px; top: -40px; width: 420px; opacity: 0.22; pointer-events: none; }
.hero-inner {
  position: relative; z-index: 2; max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.trial-hero h1.page-title { font-size: clamp(42px, 7vw, 78px); margin-bottom: 1.2rem; }
.trial-hero p.lede { margin-bottom: 0; max-width: 34em; }
.perks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.perks li {
  font-family: 'Special Elite', monospace; font-size: 13px; letter-spacing: 0.03em; background: var(--cream);
  border: 1px solid var(--ink); border-radius: 2px 14px 14px 14px; padding: 0.4rem 0.85rem;
  box-shadow: 3px 3px 0 0 var(--c, #BFB33B);
}
body.zh .perks li { font-family: var(--font-sc), 'Noto Serif SC', serif; font-size: 14px; letter-spacing: 0.04em; }
.perks li:nth-child(1) { --c: #E7A43C; transform: rotate(-1.5deg); }
.perks li:nth-child(2) { --c: #74A8A0; transform: rotate(1deg); }
.perks li:nth-child(3) { --c: #E89B7E; transform: rotate(-0.5deg); }

.collage { position: relative; aspect-ratio: 1 / 0.86; }
.collage figure { position: absolute; margin: 0; border: 1px solid var(--ink); background: var(--bone); box-shadow: 6px 6px 0 0 #BFB33B; }
.collage figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { left: 0; top: 6%; width: 60%; aspect-ratio: 3 / 2; transform: rotate(-3deg); z-index: 1; }
.collage .c2 { right: 3%; top: 0; width: 36%; aspect-ratio: 3 / 4; transform: rotate(4deg); z-index: 2; }
.collage .c3 { right: 0; bottom: 4%; width: 58%; aspect-ratio: 4 / 3; transform: rotate(2deg); z-index: 3; }
.collage .moose { position: absolute; left: 6%; bottom: 3%; width: 21%; z-index: 4; transform-origin: 50% 100%; animation: moose-nod 4s ease-in-out infinite; }
@keyframes moose-nod { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(3deg); } }
.collage .tag {
  position: absolute; left: 22%; bottom: 25%; z-index: 5; background: #E8D1EB; border: 1px solid var(--ink);
  border-radius: 14px 14px 14px 2px; padding: 0.35rem 0.8rem; font-family: 'Special Elite', monospace; font-size: 12.5px;
  transform: rotate(-3deg); box-shadow: 3px 3px 0 0 #BFB33B; white-space: nowrap;
}
body.zh .collage .tag { font-family: var(--font-sc), 'Noto Serif SC', serif; font-size: 13px; }

.how {
  position: relative; z-index: 2; list-style: none; max-width: 1080px; margin: clamp(2.4rem, 5vw, 3.4rem) auto 0; padding: 1.6rem 0 0;
  border-top: 1px dashed var(--line-ink-strong); display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem 2rem;
}
.how li { display: flex; gap: 0.9rem; align-items: flex-start; }
.how b {
  flex: 0 0 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center;
  font-family: 'Special Elite', monospace; font-weight: 400; font-size: 17px;
}
.how li:nth-child(1) b { background: #F3D3A0; }
.how li:nth-child(2) b { background: #BFD8D3; }
.how li:nth-child(3) b { background: #F4C9B8; }
.how span { font-size: 14px; font-weight: 300; color: var(--text-muted); line-height: 1.55; }
.how strong { display: block; font-size: 16px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .collage { max-width: 460px; width: 100%; margin: 0 auto; }
  .how { grid-template-columns: 1fr; }
  .trial-hero .ink { width: 260px; right: -80px; top: -30px; opacity: 0.12; }
}
@media (prefers-reduced-motion: reduce) { .collage .moose { animation: none; } }
.eyebrow { font-family: 'Special Elite', monospace; font-size: 12px; color: var(--ink-light); letter-spacing: 0.2em; margin: 0 0 1.1rem; }
h1.page-title { font-size: clamp(32px, 5.4vw, 54px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 1rem; font-variation-settings: 'opsz' 144; }
body.zh h1.page-title { letter-spacing: 0.01em; line-height: 1.25; }
p.lede { font-size: 17px; font-weight: 300; font-style: italic; color: var(--text-body); margin: 0 0 2.4rem; line-height: 1.7; }
body.zh p.lede { font-style: normal; }

.card {
  --accent: #BFB33B; --accent-soft: #EFECCB;
  background: var(--cream); border: 1px solid var(--ink); box-shadow: 6px 6px 0 0 var(--accent);
  padding: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 2.2rem;
}
#trial-form .card:nth-of-type(1) { --accent: #E7A43C; --accent-soft: #FBEBD0; }
#trial-form .card:nth-of-type(2) { --accent: #74A8A0; --accent-soft: #DCEBE8; }
#trial-form .card:nth-of-type(3) { --accent: #BFB33B; --accent-soft: #EFECCB; }
#trial-form .card:nth-of-type(4) { --accent: #E89B7E; --accent-soft: #F9E1D8; }
.card h2 { font-size: var(--text-title); font-weight: 400; margin: 0 0 1.3rem; padding-left: 0.9rem; border-left: var(--border-accent-width) solid var(--terracotta); }
.card h2:has(.num) { display: flex; align-items: center; gap: 0.8rem; padding-left: 0; border-left: none; }
.card h2 .num {
  flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--accent); border: 1px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center; font-family: 'Special Elite', monospace; font-size: 17px;
}

label, .label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; color: var(--text-strong); }
.hint { font-weight: 300; color: var(--ink-light); font-size: 12px; }
.help { font-size: 13px; font-weight: 300; color: var(--text-muted); margin: -4px 0 12px; line-height: 1.6; }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"], textarea {
  width: 100%; padding: 10px 12px; border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius-none); font-size: 15px; margin-bottom: 14px; background: var(--cream);
  color: var(--ink); font-family: inherit;
}
textarea { resize: vertical; min-height: 64px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 200px; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.choices label {
  display: flex; align-items: center; gap: 8px; font-weight: 300; border: var(--border-width) solid var(--border-hair);
  padding: 8px 12px; cursor: pointer; margin-bottom: 0; background: var(--cream); flex: 0 1 auto;
}
.choices label { border-radius: 2px 12px 12px 12px; transition: transform 0.15s ease, border-color 0.15s ease; }
.choices label:hover { transform: translateY(-1px); border-color: var(--ink); }
.choices label:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); box-shadow: 2px 2px 0 0 var(--accent); }
.choices input { width: auto; margin: 0; accent-color: var(--ink); }

.slots { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.slots label {
  display: flex; align-items: center; gap: 10px; font-weight: 300; border: var(--border-width) solid var(--border-hair);
  padding: 10px 12px; cursor: pointer; margin: 0; background: var(--cream);
}
.slots label:hover { border-color: var(--ink); }
.slots label:has(input:checked) { border-color: var(--ink); background: var(--accent-soft); box-shadow: 3px 3px 0 0 var(--accent); }
.slots input { width: auto; margin: 0; accent-color: var(--ink); }
.slots .when { font-weight: 500; }
.slots .meta { font-size: 13px; color: var(--text-muted); }
.slots .seats { margin-left: auto; font-size: 12px; color: var(--ink-light); white-space: nowrap; }

.check { display: flex; align-items: center; gap: 8px; font-weight: 300; font-size: 14px; cursor: pointer; margin: 4px 0 10px; }
.check input { width: auto; margin: 0; accent-color: var(--terracotta); }

.photos { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.thumb { position: relative; width: 104px; height: 104px; border: 1px solid var(--ink); background: var(--cream) center/cover no-repeat; box-shadow: 3px 3px 0 0 var(--accent); }
.thumb:nth-child(odd) { transform: rotate(-2deg); }
.thumb:nth-child(even) { transform: rotate(2deg); }
.thumb button {
  position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: none;
  background: var(--ink); color: var(--cream); font-size: 14px; line-height: 24px; padding: 0; cursor: pointer;
}
.add-photo {
  width: 104px; height: 104px; border: 1.5px dashed var(--accent); background: var(--accent-soft); color: var(--ink-muted);
  font-family: inherit; font-size: 13px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.add-photo span { font-size: 26px; line-height: 1; }

.note { background: #eef2e6; border-left: 3px solid #8fae5f; padding: 12px 14px; font-size: 14px; line-height: 1.7; color: #3f5a25; margin-top: 8px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; font-size: 15px; font-weight: 300; line-height: 1.7; }
.steps li::before {
  content: counter(step); flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--terracotta); color: var(--cream);
  font-size: 13px; display: flex; align-items: center; justify-content: center; margin-top: 2px;
}

button, .btn {
  display: inline-block; background: var(--button-bg); color: var(--button-text); border: none;
  padding: 12px 22px; border-radius: var(--radius-xs); font-size: 15px; font-family: inherit;
  letter-spacing: var(--tracking-wide); cursor: pointer; text-decoration: none;
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary, .btn.secondary { background: transparent; color: var(--ink); border: var(--border-width) solid var(--border-strong); }
.submit-row button {
  width: 100%; padding: 17px; font-size: 18px; background: var(--terracotta); color: var(--cream); border: 1px solid var(--ink);
  border-radius: 2px; box-shadow: 5px 5px 0 0 var(--paynes); transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.submit-row button:hover:not(:disabled) { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 0 var(--paynes); }
.submit-row button:active:not(:disabled) { transform: translate(2px, 2px); box-shadow: 2px 2px 0 0 var(--paynes); }
.done-moose { display: block; width: 90px; margin: 0 0 1rem; }

.message { padding: 14px 16px; margin-bottom: 20px; border: var(--border-width) solid var(--border-hair); font-size: 15px; line-height: 1.6; }
.message.error { background: rgba(200, 90, 60, 0.12); color: var(--coral-deep); }
.message.success { background: rgba(143, 174, 95, 0.15); color: #4c6b2e; }

.contact-box { border-top: 0.5px solid var(--border-hair); margin-top: 1.4rem; padding-top: 1.2rem; font-size: 15px; font-weight: 300; line-height: 1.9; }
.contact-box img { width: 150px; display: block; margin-top: 8px; border: 1px solid var(--ink); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

footer.site-footer { background: var(--paynes); color: var(--cream); padding: 3rem clamp(1.2rem, 4vw, 3rem); }
footer.site-footer .inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; flex-wrap: wrap; }
footer.site-footer a { color: var(--text-on-dark-muted); font-size: 14px; text-decoration: none; }
