/* Waiver form (/waiver-form) and its confirmation page.
   Follows booking-form.css: brand green #5CF0BA with dark text, since white on
   that mint fails contrast. */

:root {
  --wv-text: #1c1c1c;
  --wv-muted: #6d6d6d;
  --wv-line: #cfcfcf;
  --wv-hair: #ececec;
  --wv-accent: #5cf0ba;
  --wv-accent-dark: #33d99b;
  --wv-error: #b33a3a;
}

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: var(--wv-text);
  font-family: "helvetica-w01-roman", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wv-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 28px 96px;
}

.wv-head { margin-bottom: 26px; }
.wv-h1 {
  font-size: 27px;
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 6px;
}
.wv-sub { margin: 0; color: var(--wv-muted); font-size: 16px; }

.wv-notice {
  background: #f2fdf8;
  border: 1px solid var(--wv-accent);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 26px;
  font-size: 15px;
  line-height: 1.5;
}

.wv-section {
  padding: 26px 0;
  border-top: 1px solid var(--wv-hair);
}
.wv-section:first-of-type { border-top: 0; padding-top: 0; }

.wv-h2 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
.wv-help {
  margin: 0 0 14px;
  color: var(--wv-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* --- fields ----------------------------------------------------------- */

.wv-field { display: block; margin-bottom: 16px; }
.wv-field-narrow { max-width: 260px; }

.wv-label {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: var(--wv-text);
}
.wv-req {
  font-style: normal;
  color: var(--wv-muted);
  font-size: 12px;
  margin-left: 4px;
}

.wv-field input[type="text"],
.wv-field input[type="email"],
.wv-field input[type="tel"],
.wv-field input[type="date"],
.wv-field select,
.wv-field textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 16px; /* below 16px iOS zooms the viewport on focus */
  color: var(--wv-text);
  background: #fff;
  border: 1px solid var(--wv-line);
  border-radius: 4px;
  padding: 11px 12px;
}
.wv-field textarea { resize: vertical; line-height: 1.5; }
.wv-field input:focus,
.wv-field select:focus,
.wv-field textarea:focus {
  outline: 2px solid var(--wv-accent-dark);
  outline-offset: 1px;
  border-color: var(--wv-accent-dark);
}
.wv-field.is-invalid input,
.wv-field.is-invalid select,
.wv-field.is-invalid textarea { border-color: var(--wv-error); }

.wv-row { display: flex; gap: 16px; }
.wv-row > .wv-field { flex: 1; }
.wv-row-phone > .wv-field-code { flex: 0 0 110px; }

/* --- radios and checkboxes -------------------------------------------- */

.wv-fieldset {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
}
.wv-legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.wv-choice,
.wv-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 9px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}
.wv-choice input,
.wv-check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--wv-accent-dark);
}
.wv-fieldset.is-invalid .wv-legend,
.wv-check.is-invalid span { color: var(--wv-error); }

.wv-check-terms { font-weight: 600; margin-top: 16px; }

.wv-fineprint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--wv-muted);
  line-height: 1.5;
}
.wv-fineprint a { color: #0f8a63; }

/* --- terms ------------------------------------------------------------ */

.wv-terms-wrap {
  border: 1px solid var(--wv-hair);
  border-radius: 8px;
  padding: 16px 18px;
  background: #fafafa;
}
.wv-terms-toggle { cursor: pointer; list-style: none; }
.wv-terms-toggle::-webkit-details-marker { display: none; }
.wv-terms-lede {
  display: block;
  font-size: 14px;
  line-height: 1.6;
  color: var(--wv-text);
}
.wv-terms-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 14px;
  color: #0f8a63;
  text-decoration: underline;
}
details[open] .wv-terms-more::after { content: " (hide)"; }

.wv-terms-body {
  margin-top: 18px;
  max-height: 460px;
  overflow-y: auto;
  border-top: 1px solid var(--wv-hair);
  padding-top: 16px;
}
.wv-terms { margin-bottom: 26px; }
.wv-terms-h { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.wv-terms p,
.wv-terms li {
  font-size: 13.5px;
  line-height: 1.62;
  color: #333;
}
.wv-terms-list { padding-left: 20px; margin: 0; }
.wv-terms-list li { margin-bottom: 14px; }

/* --- signature -------------------------------------------------------- */

.wv-sigpad {
  display: block;
  width: 100%;
  height: 200px;
  background: #fff;
  border: 1px solid var(--wv-line);
  border-radius: 4px;
  /* Scroll suppression has to be CSS: a touchmove preventDefault is registered
     passive by default and silently does nothing. */
  touch-action: none;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none; /* kills iOS long-press "Save Image" */
  cursor: crosshair;
}
.wv-sig.is-invalid .wv-sigpad { border-color: var(--wv-error); }

.wv-sig-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}
.wv-btn-quiet {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 14px;
  color: #0f8a63;
  text-decoration: underline;
  cursor: pointer;
}
.wv-btn-quiet:hover { color: var(--wv-accent-dark); }

.wv-sig-typed { margin-top: 4px; }

/* --- submit ----------------------------------------------------------- */

.wv-error {
  margin: 0 0 16px;
  color: var(--wv-error);
  font-size: 15px;
  line-height: 1.5;
}

.wv-submit {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--wv-accent);
  color: #181818;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 44px;
  cursor: pointer;
  min-width: 180px;
}
.wv-submit:hover { background: var(--wv-accent-dark); }
.wv-submit[disabled] { opacity: 0.55; cursor: default; }
.wv-submit.is-loading { color: transparent; position: relative; }
.wv-submit.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(24, 24, 24, 0.3);
  border-top-color: #181818;
  border-radius: 50%;
  animation: wv-spin 0.7s linear infinite;
}
@keyframes wv-spin { to { transform: rotate(360deg); } }

/* Off-screen rather than display:none — the better bots skip hidden fields. */
.wv-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wv-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- confirmation page ------------------------------------------------ */

.wv-done { max-width: 620px; margin: 0 auto; padding: 72px 28px 96px; }
.wv-done h1 { font-size: 30px; font-weight: 400; margin: 0 0 14px; }
.wv-done p { font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.wv-done .wv-done-ref { color: var(--wv-muted); font-size: 14px; }
.wv-done .wv-cta {
  display: inline-block;
  margin-top: 16px;
  background: var(--wv-accent);
  color: #181818;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  padding: 14px 34px;
}
.wv-done .wv-cta:hover { background: var(--wv-accent-dark); }

@media (max-width: 620px) {
  .wv-shell { padding: 28px 20px 80px; }
  .wv-h1 { font-size: 22px; }
  .wv-row { display: block; }
  .wv-row-phone { display: flex; }
  .wv-field-narrow { max-width: none; }
  .wv-terms-body { max-height: 340px; }
  .wv-submit { width: 100%; }
}
