/* ============================================================
   DKS Ink — Waiver page
   Mobile-first form. Inherits palette/fonts from styles.css.
   ============================================================ */

.wv-page {
  background: transparent;
  color: var(--white);
  min-height: 100vh;
  padding: 24px 0 64px;
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.55;
  position: relative;
  z-index: 2;
}

.wv-container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 720px) {
  .wv-container { padding: 0 32px; }
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.wv-head {
  padding: 32px 0 24px;
  position: relative;
}

.wv-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fog);
  text-decoration: none;
  padding: 4px 0 7px !important;
  margin: 0 0 44px !important;
  height: auto !important;
  position: relative;
  width: fit-content;
  transition: color 200ms;
}
.wv-back::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 360ms var(--ease-out);
}
.wv-back:hover { color: var(--white); }
.wv-back:hover::after { transform: scaleX(1); }
/* Override the global no-anim freeze so the underline still wipes. */
body.no-anim .wv-back::after { transition: transform 360ms var(--ease-out) !important; }

.wv-brand {
  font-family: var(--font-display);
  font-size: clamp(72px, 18vw, 140px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--white);
}

.wv-head__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 20px;
}

.wv-intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--snow);
  margin: 16px 0 0;
  max-width: 60ch;
}
.wv-intro em {
  font-family: var(--font-serif, "Cormorant Garamond"), Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.wv-intro--dim { color: var(--fog); font-size: 13px; }

/* ------------------------------------------------------------
   Rules
   ------------------------------------------------------------ */
.wv-rule {
  border: 0;
  border-top: 1px solid rgba(240, 240, 240, 0.1);
  margin: 16px 0;
}
.wv-rule--strong {
  border-top-color: rgba(240, 240, 240, 0.32);
  margin: 24px 0;
}

/* ------------------------------------------------------------
   Sections
   ------------------------------------------------------------ */
.wv-section {
  padding: 40px 0;
}
.wv-section--internal {
  background: rgba(240, 240, 240, 0.025);
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
  border-top: 1px solid rgba(240, 240, 240, 0.06);
  border-bottom: 1px solid rgba(240, 240, 240, 0.06);
}
@media (min-width: 720px) {
  .wv-section--internal { margin: 0 -32px; padding-left: 32px; padding-right: 32px; }
}
.wv-section--guardian {
  border-top: 1px solid rgba(240, 240, 240, 0.32);
  margin-top: 8px;
  padding-top: 32px;
}

.wv-sec {
  margin-bottom: 24px;
}
.wv-sec__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 8px;
}
.wv-sec__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(20px, 4vw, 26px);
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--white);
}

/* ------------------------------------------------------------
   Fields
   ------------------------------------------------------------ */
.wv-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.wv-field__label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog);
}
.wv-field__req,
.wv-field__opt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}
.wv-field__opt { color: var(--ash); }

.wv-input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(240, 240, 240, 0.32);
  padding: 14px 0;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;   /* 16px+ prevents iOS auto-zoom */
  color: var(--white);
  width: 100%;
  outline: none;
  transition: border-color 200ms;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
}
.wv-input:focus { border-bottom-color: var(--white); }
.wv-input::placeholder { color: var(--ash); }
.wv-input--dim { color: var(--fog); }

select.wv-input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23b4b4b4' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 24px;
}

.wv-field__hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
}
.wv-field__err {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  font-weight: 500;
}
.wv-field.has-error .wv-input,
.wv-field.has-error select.wv-input {
  border-bottom-width: 2px;
  border-bottom-color: var(--white);
}

/* Rows — collapse on mobile */
.wv-row {
  display: grid;
  gap: 20px;
}
@media (min-width: 560px) {
  .wv-row--2 { grid-template-columns: 1fr 1fr; }
  .wv-row--3 { grid-template-columns: 2fr 1fr 1fr; }
}

/* ------------------------------------------------------------
   Yes/No toggle
   ------------------------------------------------------------ */
.wv-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(240, 240, 240, 0.1);
}
.wv-toggle {
  position: relative;
  width: 120px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(240, 240, 240, 0.32);
  cursor: pointer;
  padding: 0;
  display: block;
  border-radius: 0;
  transition: border-color 240ms var(--ease-out);
}
.wv-toggle:hover { border-color: rgba(240, 240, 240, 0.6); }
.wv-toggle:active { transform: scale(0.97); }
.wv-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  background: var(--white);
  transition: transform 420ms cubic-bezier(0.34, 1.32, 0.5, 1);
}
.wv-toggle.is-on .wv-toggle__thumb { transform: translateX(100%); }
.wv-toggle__labels {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-align: center;
  z-index: 1;
}
.wv-toggle__labels > span {
  transition: color 260ms var(--ease-out);
  color: var(--white);
}
.wv-toggle:not(.is-on) .wv-toggle__labels > span:first-child { color: var(--ink); }
.wv-toggle.is-on .wv-toggle__labels > span:last-child { color: var(--ink); }
/* Re-enable the toggle motion under the form's .no-anim mode (spring thumb +
   label colour crossfade) so Yes/No feels smooth, not instant. */
body.no-anim .wv-toggle { transition: border-color 240ms var(--ease-out) !important; }
body.no-anim .wv-toggle__thumb {
  transition: transform 420ms cubic-bezier(0.34, 1.32, 0.5, 1) !important;
}
body.no-anim .wv-toggle__labels > span { transition: color 260ms var(--ease-out) !important; }
@media (prefers-reduced-motion: reduce) {
  body.no-anim .wv-toggle__thumb,
  body.no-anim .wv-toggle__labels > span { transition: none !important; }
}

/* ------------------------------------------------------------
   Clauses
   ------------------------------------------------------------ */
.wv-clauses {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(240, 240, 240, 0.1);
}
.wv-clause {
  padding: 24px 0;
  border-bottom: 1px solid rgba(240, 240, 240, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wv-clause--err {
  background: rgba(240, 240, 240, 0.02);
  margin: 0 -12px;
  padding: 24px 12px;
}

.wv-clause__head {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.wv-clause__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--fog);
  flex-shrink: 0;
  width: 32px;
}
.wv-clause__title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--white);
}
.wv-clause__body {
  margin: 0;
  padding-left: 48px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fog);
}
@media (max-width: 480px) {
  .wv-clause__body { padding-left: 0; }
}

.wv-clause__sign {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0 0 48px;
  cursor: pointer;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .wv-clause__sign { padding-left: 0; }
}
.wv-clause__sign input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(240, 240, 240, 0.32);
  background: transparent;
  cursor: pointer;
  position: relative;
  margin: 0;
  border-radius: 0;
  flex-shrink: 0;
  transition: border-color 200ms, background 200ms;
}
.wv-clause__sign input[type="checkbox"]:checked {
  background: var(--white);
  border-color: var(--white);
}
.wv-clause__sign input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 9px; top: 3px;
  width: 5px; height: 11px;
  border: solid var(--ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transform-origin: center;
  animation: wv-draw 360ms cubic-bezier(0.65, 0, 0.35, 1) both;
}
.wv-clause__sign-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
}
.wv-clause__initials {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(240, 240, 240, 0.32);
  padding: 8px 0;
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  width: 80px;
  margin-left: auto;
  outline: none;
}
.wv-clause__initials:focus { border-bottom-color: var(--white); }
/* Simple checkmark draw — short leg then long leg, like a pen stroke. */
@keyframes wv-draw {
  0%   { width: 0; height: 0; opacity: 0; }
  25%  { width: 0; height: 0; opacity: 1; }
  55%  { width: 5px; height: 0; opacity: 1; }
  100% { width: 5px; height: 11px; opacity: 1; }
}
/* The form runs in .no-anim; re-enable just the checkmark draw with !important. */
body.no-anim .wv-clause__sign input[type="checkbox"]:checked::after {
  animation: wv-draw 360ms cubic-bezier(0.65, 0, 0.35, 1) both !important;
}
@media (prefers-reduced-motion: reduce) {
  body.no-anim .wv-clause__sign input[type="checkbox"]:checked::after { animation: none !important; }
}

.wv-textarea {
  min-height: 120px;
  padding: 14px;
  border: 1px solid rgba(240, 240, 240, 0.32);
  resize: vertical;
  line-height: 1.55;
  font-family: var(--font-body);
}
.wv-textarea:focus { border-color: var(--white); border-bottom-color: var(--white); }

/* Yes/No segmented for photo consent */
.wv-yn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  padding-left: 48px;
}
@media (max-width: 480px) { .wv-yn { padding-left: 0; } }
.wv-yn__opt {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  --ink-fill: var(--white);
  background: transparent;
  border: 1px solid rgba(240, 240, 240, 0.32);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 12px;
  min-height: 56px;
  cursor: pointer;
  border-radius: 0;
  transition: color 280ms var(--ease-out), border-color 200ms var(--ease-out);
}
.wv-yn__label { position: relative; z-index: 2; }
.wv-yn__opt:hover { border-color: var(--white); color: var(--ink); }
.wv-yn__opt:hover .wv-yn__label { color: var(--ink); }
/* Selected option: the shared homepage ink-fill rises to fill it, label flips. */
.wv-yn__opt.is-on { color: var(--ink); border-color: var(--white); }
.wv-yn__opt.is-on .wv-yn__label { color: var(--ink); }
.wv-yn__opt.is-on .ink-fill { transform: translateY(0); }
.wv-yn__opt.is-on .ink-fill::before { animation: ink-wave 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  .wv-yn__opt.is-on .ink-fill::before { animation: none; }
}

/* ------------------------------------------------------------
   Signature pad
   ------------------------------------------------------------ */
.wv-sig {
  border: 1px solid rgba(240, 240, 240, 0.32);
  background: rgba(240, 240, 240, 0.02);
}
.wv-sig__pad {
  display: block;
  width: 100%;
  height: 180px;
  cursor: crosshair;
  touch-action: none;
  background:
    repeating-linear-gradient(0deg, transparent 0, transparent 35px,
      rgba(240, 240, 240, 0.06) 35px, rgba(240, 240, 240, 0.06) 36px);
}
.wv-sig__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid rgba(240, 240, 240, 0.1);
}
.wv-sig__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog);
}
.wv-sig__clear {
  background: transparent;
  border: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  padding: 8px 12px;
  margin: -8px -12px -8px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 36px;
}

/* ------------------------------------------------------------
   Submit & footer
   ------------------------------------------------------------ */
.wv-submit {
  padding: 32px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.wv-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px 28px;
  border: 1px solid var(--white);
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  min-height: 56px;
  border-radius: 0;
  --ink-fill: var(--white);
  transition: color 200ms;
}
.wv-cta__label { position: relative; z-index: 2; }
.wv-cta:hover { color: var(--ink); }
/* Re-enable the ink-fill pour even though the form body is .no-anim.
   The global `body.no-anim *` rule sets transition/animation: none !important,
   so these overrides must also use !important to win. */
body.no-anim .wv-cta .ink-fill {
  transition: transform 920ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}
body.no-anim .wv-cta:hover .ink-fill::before { animation: ink-wave 1.4s linear infinite !important; }
/* Footer Instagram pill is also inside the .no-anim form — re-enable its
   ink-fill pour + wavy waterline so it animates on hover. */
body.no-anim .footer__ig .ink-fill {
  transition: transform 920ms cubic-bezier(0.4, 0, 0.2, 1) !important;
}
body.no-anim .footer__ig:hover .ink-fill,
body.no-anim .footer__ig:focus-visible .ink-fill { transform: translateY(0) !important; }
body.no-anim .footer__ig:hover .ink-fill::before,
body.no-anim .footer__ig:focus-visible .ink-fill::before { animation: ink-wave 1.4s linear infinite !important; }
.wv-cta__arrow {
  display: inline-block;
  width: 18px; height: 18px;
  position: relative;
}
.wv-cta__arrow::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 4px;
  height: 1px; background: currentColor; transform: translateY(-50%);
}
.wv-cta__arrow::after {
  content: ""; position: absolute; right: 0; top: 4px;
  width: 8px; height: 8px;
  border-top: 1px solid currentColor; border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
.wv-submit__note {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fog);
  text-align: center;
  margin: 0;
}
.wv-submit__note a { color: var(--white); text-underline-offset: 3px; }

.wv-foot {
  padding: 32px 0 0;
  text-align: center;
}
.wv-foot p {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fog);
  margin: 0 0 8px;
}
.wv-foot__copy {
  margin-top: 24px;
  color: var(--ash);
  font-size: 10px;
}

/* Re-add the success-state header before aftercare CSS */
.wv-done {
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.wv-stamp {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog);
}
.wv-done__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 10vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--white);
}
.wv-done p {
  margin: 0;
  color: var(--snow);
  font-size: 15px;
  line-height: 1.6;
  max-width: 52ch;
}
.wv-done a { color: var(--white); text-underline-offset: 3px; }
.wv-done__note { color: var(--fog) !important; font-size: 13px !important; }

/* ------------------------------------------------------------
   Inline aftercare on success screen
   ------------------------------------------------------------ */
.wv-aftercare {
  margin-top: 32px;
  padding-top: 8px;
  align-self: stretch;
}
.wv-aftercare__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 64px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  margin: 4px 0 16px;
}
.wv-aftercare__intro {
  margin: 0 0 24px;
  color: var(--fog) !important;
  font-size: 14px !important;
}
.wv-aftercare__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(240,240,240,0.10);
}
.wv-aftercare__step {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(240,240,240,0.10);
  align-items: baseline;
}
@media (max-width: 540px) {
  .wv-aftercare__step { grid-template-columns: 1fr; gap: 8px; padding: 18px 0; }
}
.wv-aftercare__stamp-col {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.wv-aftercare__num {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.02em;
}
.wv-aftercare__stamp {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fog);
  white-space: nowrap;
}
.wv-aftercare__step-title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--white);
  margin: 0 0 8px;
}
.wv-aftercare__body {
  margin: 0 !important;
  font-size: 13px !important;
  line-height: 1.7;
  color: var(--fog) !important;
  max-width: 60ch;
}

/* Lordish display → 100 weight (brand direction). */
.wv-brand, .wv-done__title, .wv-aftercare__title, .wv-aftercare__num { font-weight: 100; }

/* ------------------------------------------------------------
   Success state
   ------------------------------------------------------------ */
