/* The trial: the explainer dialog on the public pages (base.html loads this for anonymous visitors while a trial is
   offered), and the Proberen and confirm pages. The shell, .btn, .small and the page head's .statement/.drift are
   shell.css. */

/* ---------- The dialog: the product screenshot's dialog look (.ratio-search .modal__panel in home.css): raised paper,
   the edge border, radius 8, the same soft shadow. ---------- */
.trial-dialog{width:calc(100% - 32px);max-width:34rem;margin:auto;padding:16px 20px 18px;background:var(--rs-raised);color:var(--rs-ink);border:1px solid var(--rs-edge);border-radius:8px;box-shadow:0 20px 25px -5px #22303d1f,0 8px 10px -6px #22303d1f}
/* The ink at 40%. A literal: older browsers don't pass custom properties into ::backdrop. */
.trial-dialog::backdrop{background:#22303d66}
.trial-dialog h2{font-size:24px;line-height:1.15;padding-right:36px}
.trial-dialog__close{position:absolute;top:8px;right:8px;margin:0}
.trial-dialog__close button{width:32px;height:32px;display:grid;place-items:center;padding:0;background:none;border:0;color:var(--rs-ink);font:inherit;font-size:24px;line-height:1;cursor:pointer}
.trial-dialog__close button:focus-visible{outline:2px solid var(--rs-brass);outline-offset:2px}
.trial-dialog__steps{list-style:decimal;margin-top:10px;padding-left:1.3em;display:flex;flex-direction:column;gap:5px}
.trial-dialog__steps li{font-size:17px;line-height:1.42;padding-left:2px}
.trial-dialog__steps li::marker{font-family:var(--rs-f-mono);font-size:14px;color:var(--rs-brass)}
.trial-dialog__actions{margin-top:16px;display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px}
.trial-dialog__actions form{display:inline;margin:0}
/* The IdP buttons are heftdesk-users' POST forms (local dev mode: links). The primary reads as Ratio's .btn, the
   secondary as a text link, like the masthead's "Inloggen". */
.trial-dialog__primary :is(a,button){display:inline-block;white-space:nowrap;background:var(--rs-ink);color:var(--rs-raised);font-family:var(--rs-f-body);font-weight:600;font-size:18px;line-height:1.2;padding:12px 20px 12px 16px;border:0;border-radius:0;text-decoration:none;cursor:pointer}
.trial-dialog__primary :is(a,button):hover{color:var(--rs-raised);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.trial-dialog__primary :is(a,button):active{box-shadow:inset 0 2px 0 var(--rs-brass);transform:translateY(1px)}
.trial-dialog__secondary :is(a,button){font:inherit;font-size:17px;color:var(--rs-ink);background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
/* heftdesk-users renders every IdP button with class "btn": undo shell.css's .btn hover and press here. */
.trial-dialog__secondary :is(a,button):hover{color:var(--rs-ink);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px}
.trial-dialog__secondary :is(a,button):active{box-shadow:none;transform:none}
.trial-dialog :is(a,button):focus-visible{outline:2px solid var(--rs-brass);outline-offset:3px}

/* ---------- Proberen and its confirmation: one column at the form's measure, groups opened by a pressed line (as the
   account page's blocks); fields as on Contact. ---------- */
.trial-page .page-head{padding-top:18px}
.trial-page .lead{font-size:19px;color:var(--rs-ink-2)}
.trial-form{max-width:36rem;margin:6px 0 40px}
.trial-form fieldset{margin:0;padding:14px 0 4px;border:0;min-width:0;box-shadow:inset 0 1px 0 var(--rs-lip),inset 0 2px 0 var(--rs-raised)}
.trial-form fieldset + fieldset{margin-top:18px}
.trial-form legend{float:left;width:100%;padding:0;margin-bottom:8px;font-family:var(--rs-f-display);font-weight:500;font-size:22px;line-height:1.2}
.trial-form legend + *{clear:left}
.trial-form .field + .field{margin-top:12px}
.trial-form .field label{display:block;font-weight:600;font-size:18px;line-height:1.3}
.trial-form .opt{font-weight:400;color:var(--rs-ink-2)}
.trial-form .help{font-size:16px;line-height:1.4;color:var(--rs-ink-2);margin-top:2px}
.trial-form .field input{display:block;width:100%;min-height:46px;margin-top:6px;padding:9px 12px;background:var(--rs-raised);color:var(--rs-ink);font-family:var(--rs-f-body);font-size:18px;line-height:1.4;border:1px solid var(--rs-edge);border-radius:0;box-shadow:inset 0 2px 0 var(--rs-lip);-webkit-appearance:none;appearance:none}
.trial-form .field input:focus{outline:2px solid var(--rs-ink);outline-offset:2px}
.trial-form .field [aria-invalid="true"]{border-color:var(--rs-cinnabar);box-shadow:inset 0 2px 0 var(--rs-lip),inset 0 0 0 1px var(--rs-cinnabar)}
.trial-form .error{margin-top:3px;font-size:16px;line-height:1.4;color:var(--rs-cinnabar)}
.trial-form .error a{color:var(--rs-cinnabar)}
/* The address: the input and the host suffix on one line; the live answer under it. */
.trial-form .address{display:flex;align-items:baseline;gap:6px}
.trial-form .address input{flex:1 1 auto;min-width:0;font-family:var(--rs-f-mono);font-size:17px}
.trial-form .suffix{flex:none;font-family:var(--rs-f-mono);font-size:15px;color:var(--rs-ink-2)}
#address-status{display:block;min-height:1.4em;margin-top:3px;font-size:16px;line-height:1.4;color:var(--rs-ink-2)}
#address-status [data-address="invalid"],#address-status [data-address="taken"]{color:var(--rs-cinnabar)}
/* Radios and checkboxes: one per line, the price at the right. */
.trial-form .choice{display:flex;align-items:baseline;gap:10px;padding:4px 0;font-size:18px;line-height:1.35;cursor:pointer}
.trial-form .choice input{flex:none;width:18px;height:18px;margin:0;accent-color:var(--rs-ink);transform:translateY(3px)}
.trial-form .choice .price{margin-left:auto;font-variant-numeric:tabular-nums;color:var(--rs-ink-2)}
.trial-form .choices .help{margin:-4px 0 4px}
.trial-form .note{margin-top:16px;font-size:17px;line-height:1.42;color:var(--rs-ink-2)}
.trial-form .accept{margin-top:12px}
.trial-form .send{margin-top:16px}
.trial-form .send button{border:0;cursor:pointer;text-align:left}
.trial-form .send button:focus-visible{outline:2px solid var(--rs-brass);outline-offset:3px}

.trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

@media (max-width:640px){
  .trial-dialog{padding:14px 16px 16px}
  .trial-dialog h2{font-size:22px}
  .trial-page .page-head{padding-top:14px}
  .trial-form .suffix{font-size:13px}
}

/* The optional discount code: collapsed under the choices, like a note, not a field of the form. */
.trial-form .code{margin-top:20px}
.trial-form .code summary{cursor:pointer;font-size:18px;line-height:1.3;text-decoration:underline;text-underline-offset:3px}
.trial-form .code .field{margin-top:10px}
.trial-form s{color:var(--rs-ink-2)}
