/* The trial page (/trial). Every rule is scoped under .trial-page; the colors,
   the font and the button family come from home.css, loaded on every page. */
.trial-page { background: var(--cream); color: var(--body); }
.trial-page .trial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "intro form" "next form"; column-gap: 64px; row-gap: 32px; align-items: start; padding-block: 72px 88px; }
.trial-page .trial-intro { grid-area: intro; max-width: 520px; }
.trial-page .trial-card { grid-area: form; }
.trial-page .trial-next { grid-area: next; max-width: 520px; }

/* The pitch */
.trial-page h1 { font-size: 56px; line-height: 1.06; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.trial-page .trial-benefits { display: flex; flex-direction: column; gap: 14px; margin-top: 32px; }
.trial-page .trial-benefits li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.5; }
.trial-page .trial-benefits li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 13px; height: 7px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }

/* What happens next */
.trial-page .trial-next { border-top: 1px solid var(--line); padding-top: 28px; }
.trial-page .trial-next h2 { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.trial-page .trial-steps { display: flex; flex-direction: column; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }
.trial-page .trial-steps li { display: flex; gap: 14px; align-items: center; font-size: 16px; line-height: 1.5; counter-increment: step; }
.trial-page .trial-steps li::before { content: counter(step); flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; }
.trial-page .trial-price { margin-top: 28px; font-size: 15px; line-height: 1.6; font-weight: 600; color: var(--muted); }
.trial-page .trial-price a { color: var(--navy); text-decoration: underline; }

/* The form card */
.trial-page .trial-card { padding: 40px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(18, 43, 67, .06), 0 12px 32px rgba(18, 43, 67, .06); }
.trial-page .trial-card h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; color: var(--navy); }
.trial-page .trial-hint { margin: 6px 0 28px; font-size: 15px; font-weight: 600; color: var(--muted); }
.trial-page form { display: flex; flex-direction: column; gap: 20px; }
.trial-page .trial-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.trial-page .trial-field { display: flex; flex-direction: column; gap: 8px; }
.trial-page .trial-field-full { grid-column: 1 / -1; }
.trial-page .trial-field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.trial-page .trial-field label span { font-weight: 400; color: var(--muted); }
.trial-page .trial-field input, .trial-page .trial-field textarea { width: 100%; border: 1px solid #C9CBC4; border-radius: 8px; background: var(--white); color: var(--navy); font: 400 16px/1.5 Manrope, system-ui, sans-serif; }
.trial-page .trial-field input { height: 48px; padding: 0 14px; }
.trial-page .trial-field textarea { min-height: 96px; padding: 12px 14px; resize: vertical; }
.trial-page .trial-field input::placeholder, .trial-page .trial-field textarea::placeholder { color: var(--muted); }
.trial-page .trial-field input:focus, .trial-page .trial-field textarea:focus { border-color: var(--teal); outline: 2px solid var(--teal); outline-offset: 2px; }
.trial-page .trial-consent { display: flex; gap: 12px; align-items: flex-start; }
.trial-page .trial-consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.trial-page .trial-consent label { font-size: 13px; line-height: 1.5; font-weight: 400; color: var(--muted); }
.trial-page .trial-consent a { color: var(--navy); text-decoration: underline; }
.trial-page .trial-submit { justify-content: center; width: 100%; height: 56px; border-radius: 8px; font-size: 17px; cursor: pointer; font-family: inherit; }
.trial-page .trial-submit[disabled] { opacity: .7; cursor: wait; }
.trial-page .trial-error { font-size: 15px; font-weight: 600; color: #B3261E; }
.trial-page .trial-error a { color: inherit; text-decoration: underline; }

/* The thank-you message that replaces the form after a successful send */
.trial-page .trial-thanks { display: flex; flex-direction: column; justify-content: center; gap: 20px; min-height: 480px; }
.trial-page .trial-thanks svg { width: 56px; height: 56px; color: var(--teal); }
.trial-page .trial-thanks h2 { font-size: 40px; line-height: 1.15; letter-spacing: -0.02em; }
.trial-page .trial-thanks p { font-size: 24px; line-height: 1.45; font-weight: 600; color: var(--navy); }

/* Tablet and phone: one column, the form between the pitch and the steps. */
@media (max-width: 900px) {
  .trial-page .trial { grid-template-columns: 1fr; grid-template-rows: auto; grid-template-areas: "intro" "form" "next"; row-gap: 40px; padding-block: 48px 64px; }
  .trial-page .trial-intro, .trial-page .trial-next { max-width: none; }
  .trial-page h1 { font-size: 40px; }
}
@media (max-width: 560px) {
  .trial-page h1 { font-size: 34px; }
  .trial-page .trial-card { padding: 28px 20px; }
  .trial-page .trial-fields { grid-template-columns: 1fr; }
  .trial-page .trial-thanks { min-height: 320px; }
  .trial-page .trial-thanks h2 { font-size: 32px; }
  .trial-page .trial-thanks p { font-size: 20px; }
}
