/* small hero with the same 3D picture as the homepage */
.trial-page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(90deg, #ecf6fd 0%, #ecf6fd 50%, #c8e2fa 100%);
}

.trial-hero-art {
  position: absolute;
  top: -20px;
  bottom: -20px;
  right: clamp(-80px, calc((100vw - 1180px) / 2 - 120px), 300px);
  aspect-ratio: 1672 / 941;
  background: url("../../images/hero-wide.webp") center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 35%, #000 85%, transparent 100%), linear-gradient(180deg, #000 75%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 35%, #000 85%, transparent 100%), linear-gradient(180deg, #000 75%, transparent 100%);
  mask-composite: intersect;
}

.trial-hero {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

@media (max-width: 820px) {
  .trial-hero-art { display: none; }
}

.trial-wrap {
  max-width: 820px;
}

.trial-form,
.trial-done {
  padding: clamp(22px, 4vw, 40px);
  border: var(--border);
  border-radius: var(--radius-lg);
  background: var(--canvas);
  box-shadow: var(--shadow-sm);
}

.trial-form fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.trial-form legend {
  margin-bottom: 14px;
  color: var(--navy-950);
  font-size: var(--type-card);
  font-weight: var(--weight-semibold);
}

.trial-form .field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.trial-form .field > span,
.trial-form .q {
  margin: 0;
  color: var(--ink);
  font-weight: var(--weight-medium);
}

.trial-form b {
  color: var(--ocean-600);
}

.trial-form input:not([type="radio"]):not([type="checkbox"]),
.trial-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--canvas);
  font: inherit;
}

.trial-form input:focus-visible,
.trial-form textarea:focus-visible {
  outline: 2px solid #16a34a;
  outline-offset: 0;
}

.trial-form .row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.trial-form .group {
  margin-bottom: 18px;
}

.trial-form .choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.choice {
  position: relative;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: inline-block;
  padding: 10px 16px;
  border: var(--border-strong);
  border-radius: var(--radius-pill);
  background: var(--canvas);
  line-height: 1.4;
}

.choice input:checked + span {
  border-color: var(--ocean-600);
  color: var(--canvas);
  background: var(--ocean-600);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--ocean-600);
  outline-offset: 2px;
}

.trial-form .other {
  margin-top: 10px;
}

.trial-form .other[hidden] {
  display: none;
}

.trial-form .hint {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .9rem;
}

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

.trial-form .consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0 18px;
  cursor: pointer;
}

.trial-form .consent input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--ocean-600);
}

.form-error {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: #8a1c1c;
  background: #fdecec;
}

.trial-submit {
  width: 100%;
  margin-bottom: 12px;
}

.trial-submit[disabled] {
  opacity: .6;
  cursor: wait;
}

.trial-done h2 {
  margin-top: 0;
}

@media (max-width: 640px) {
  .trial-form .row {
    grid-template-columns: 1fr;
  }
}

.trial-form [aria-invalid="true"],
.trial-form .group[aria-invalid="true"] .choice span {
  border-color: #c0392b;
}

.trial-hero h1 {
  font-size: clamp(2.15rem, 4.2vw, 3.5rem);
}

.trial-hero .lead {
  max-width: 520px;
}

.trial-offer {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
}
