/* Demo: the form is the page. The deep top holds the heading and the form side by side, as the product pages' demo
   lies on its deep frame, and under the heading how it goes and who you talk to. On a phone the form comes right
   after the heading and the steps after it */
.dm{--roed:#B8342A;--roed-kant:#EDB4AD;--roed-bg:#FCF1F0;--groen:#17704A;padding-bottom:clamp(56px,6vw,96px)}
.dm__g{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);grid-template-rows:auto 1fr;grid-template-areas:"intro form" "mere form";column-gap:clamp(40px,5.4vw,96px);align-items:start}
.dm__intro{grid-area:intro}
.dm__form{grid-area:form}
.dm__mere{grid-area:mere}
.dm h1{font-size:clamp(36px,3.9vw,58px);max-width:11.5em}
.dm .u-top__ingress{max-width:30em}

/* How it goes: four steps in two columns, white on the deep top */
.dm__mere{margin-top:clamp(36px,3.6vw,52px);padding-top:clamp(28px,2.8vw,40px);border-top:1px solid rgba(255,255,255,.14)}
.dm .dm__trin-titel{font-size:14px;font-weight:600;line-height:1.3;letter-spacing:0;color:rgba(255,255,255,.62);max-width:none}
.dm-trin{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 28px;margin-top:20px}
.dm-trin li{display:grid;grid-template-columns:36px minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:14px;align-items:start}
.dm-ik{grid-row:1/3;display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:rgba(255,255,255,.07);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);color:#fff}
.dm-ik svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.dm-trin b{font-size:16px;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:#fff}
.dm-trin li>span:last-child{margin-top:4px;font-size:14.5px;line-height:1.45;color:rgba(255,255,255,.7);text-wrap:pretty}
.dm-hold{margin-top:clamp(28px,2.8vw,40px);padding-top:clamp(22px,2.4vw,30px);border-top:1px solid rgba(255,255,255,.14);max-width:36em;font-size:14.5px;line-height:1.55;color:rgba(255,255,255,.7);text-wrap:pretty}
.dm-hold b{display:block;margin-bottom:4px;font-size:16px;font-weight:600;letter-spacing:-.01em;color:#fff}
.dm-hold a{color:#fff;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.22em;text-decoration-color:rgba(255,255,255,.4);white-space:nowrap}
.dm-hold a:hover{text-decoration-color:#fff}

/* The card */
.bd__vagt{padding:clamp(22px,2.4vw,36px);border-radius:var(--nf-r);background:#fff;color:var(--nat);box-shadow:0 40px 90px -40px rgba(0,0,0,.6)}
.bd__hoved{display:flex;align-items:center;gap:14px;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--linje)}
.bd__hoved p{display:grid;gap:2px;font-size:var(--t-lille);line-height:1.4;color:var(--daempet)}
.bd__hoved b{font-size:var(--t-broed);font-weight:600;color:var(--nat)}
.dm-ansigter{display:flex;flex:none}
.dm-ansigter img{width:40px;height:40px;border-radius:50%;object-fit:cover;object-position:50% 18%;background:var(--plint);box-shadow:0 0 0 2px #fff}
.dm-ansigter img+img{margin-left:-10px}
.dm .demo-f{display:block}

/* The fields: the label always stands, the message comes under the field and never replaces it */
.bd__felter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px}
.bd__bred{grid-column:1/-1}
.bd__felter label{display:block;font-size:14.5px;font-weight:600;color:var(--nat)}
.bd__felter small{font-size:inherit;font-weight:500;color:var(--daempet)}
.bd__felter input,.bd__felter textarea{display:block;width:100%;min-height:48px;margin-top:6px;padding:11px 13px;border:0;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px rgba(13,23,54,.2);outline:0;font:inherit;font-size:16px;font-weight:500;line-height:1.4;color:var(--nat);transition:box-shadow .14s}
.bd__felter textarea{resize:vertical;min-height:48px;field-sizing:content}
.bd__felter input:hover,.bd__felter textarea:hover{box-shadow:inset 0 0 0 1px rgba(13,23,54,.36)}
.bd__felter input:focus,.bd__felter textarea:focus{box-shadow:inset 0 0 0 1.5px var(--kobolt),0 0 0 4px rgba(47,91,255,.16)}
.bd__felter input[aria-invalid=true]{box-shadow:inset 0 0 0 1.5px var(--roed)}
.bd__felter input[aria-invalid=true]:focus{box-shadow:inset 0 0 0 1.5px var(--roed),0 0 0 4px rgba(184,52,42,.14)}
.bd__felter input:-webkit-autofill{-webkit-text-fill-color:var(--nat);box-shadow:inset 0 0 0 1px rgba(13,23,54,.2),inset 0 0 0 200px #fff}
.demo-msg{display:block;margin-top:6px;font-style:normal;font-size:14px;line-height:1.35;font-weight:600;color:var(--roed)}

/* What they would like to see: checkboxes as chips, as many as they like. A plus turns into a tick, in the same width, so the row never jumps */
.demo-valg{min-width:0;margin:0;padding:0;border:0}
.demo-valg legend{float:left;width:100%;margin-bottom:8px;padding:0;font-size:14.5px;font-weight:600;color:var(--nat)}
.demo-valg__liste{clear:both;display:flex;flex-wrap:wrap;gap:8px}
.bd__felter .demo-valg label{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 14px;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px rgba(13,23,54,.2);font-size:14.5px;font-weight:500;line-height:1.25;color:var(--nat);cursor:pointer;transition:box-shadow .14s,background-color .14s,color .14s}
.bd__felter .demo-valg label:hover{box-shadow:inset 0 0 0 1px rgba(13,23,54,.4)}
.bd__felter .demo-valg label:has(input:checked){background:var(--nat);color:#fff;box-shadow:none}
.bd__felter .demo-valg label::before{content:"";box-sizing:border-box;flex:none;width:10px;height:10px;background:linear-gradient(currentColor,currentColor) center/10px 1.5px no-repeat,linear-gradient(currentColor,currentColor) center/1.5px 10px no-repeat;opacity:.5}
.bd__felter .demo-valg label:has(input:checked)::before{height:6px;margin-top:-4px;background:none;border-left:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);opacity:1}
.bd__felter .demo-valg input{position:absolute;inset:0;width:100%;height:100%;min-height:0;margin:0;padding:0;opacity:0;cursor:pointer}
.bd__felter .demo-valg label:has(input:focus-visible){outline:2px solid var(--kobolt);outline-offset:3px}

/* Times, when Admin has any to offer. Hidden while it has none */
.demo-tid{border:0;margin-top:18px;padding:0}
.demo-tid legend{float:left;width:100%;margin-bottom:8px;font-size:14.5px;font-weight:600}
.demo-tid small{font-size:inherit;font-weight:500;color:var(--daempet)}
.demo-dage,.demo-tider{clear:both;display:flex;flex-wrap:wrap;gap:8px}
.demo-tider{margin-top:10px}
.demo-dage button,.demo-tider label{position:relative;display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:0;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1px rgba(13,23,54,.2);font:inherit;font-size:14.5px;color:var(--nat);cursor:pointer;transition:box-shadow .14s,background-color .14s,color .14s}
.demo-dage button:hover,.demo-tider label:hover{box-shadow:inset 0 0 0 1px rgba(13,23,54,.4)}
.demo-dage button[aria-pressed=true],.demo-tider label:has(input:checked){background:var(--nat);color:#fff;box-shadow:none}
.demo-tider input{position:absolute;inset:0;margin:0;opacity:0;cursor:pointer}
.demo-tider label:has(input:focus-visible){outline:2px solid var(--kobolt);outline-offset:3px}

/* The yes to mails: unticked until the visitor ticks it, and only that yes lets the follow-up mails go (BEM-2730) */
.demo-ja{display:flex;align-items:flex-start;gap:12px;margin-top:20px;font-size:14.5px;font-weight:600;line-height:1.4;cursor:pointer}
.demo-ja input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--kobolt)}
.demo-ja input:focus-visible{outline:2px solid var(--kobolt);outline-offset:3px}
.demo-ja small{font-size:inherit;font-weight:500;color:var(--daempet)}
.demo-ja em{display:block;margin-top:2px;font-style:normal;font-size:14px;font-weight:400;color:var(--daempet);text-wrap:pretty}
.demo-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.demo-err{margin-top:16px;padding:12px 14px;border-radius:8px;background:var(--roed-bg);box-shadow:inset 0 0 0 1px var(--roed-kant);color:var(--roed);font-size:14.5px;font-weight:600;line-height:1.45;outline:0}
.demo-send{margin-top:20px}
.demo-send .knap{width:100%;height:50px;font-size:16px}
.demo-send .knap:disabled{opacity:.7;cursor:progress}
.demo-send p{margin-top:12px;font-size:12.5px;line-height:1.5;color:var(--daempet);text-wrap:pretty}
.demo-send a,.demo-ok a,.demo-uden a:not(.knap){color:var(--kobolt-dyb);text-decoration:underline;text-underline-offset:.2em;text-decoration-thickness:1px}
.demo-uden p{font-size:var(--t-broed);line-height:1.5;color:var(--daempet);margin-bottom:16px}
.dm .bd__vagt .knap:not(.knap--rolig){background:var(--kobolt);color:#fff;box-shadow:none}
.dm .bd__vagt .knap:not(.knap--rolig):hover{background:var(--kobolt-dyb)}

/* Sent: the name stands booked, in the product's green, and the form gives way to the answer */
.demo-ok{outline:0}
.bd__besat{display:inline-flex;align-items:center;gap:10px;max-width:100%;padding:10px 16px 10px 12px;border-radius:8px;background:var(--is);color:var(--nat);font-size:var(--t-broed);font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.bd__besat::before{content:"";flex:none;width:22px;height:22px;border-radius:50%;background:var(--groen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat}
.bd__besat:empty{display:none}
.demo-ok h2{margin-top:20px;font-size:var(--t-h3);font-weight:600;letter-spacing:-.022em;line-height:1.2;color:var(--nat);max-width:none}
.demo-ok p:not(.bd__besat){margin-top:10px;font-size:var(--t-broed);line-height:1.5;color:var(--daempet);max-width:32em}
.demo-ok .demo-ok-tid{color:var(--nat)}

/* What the demo shows: four tiles */
.pt-fliser__l.dm-vis{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:999px){.pt-fliser__l.dm-vis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.pt-fliser__l.dm-vis{grid-template-columns:minmax(0,1fr)}}

@media (max-width:999px){
  .dm__g{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"intro" "mere" "form"}
  .dm__form{margin-top:clamp(28px,4vw,40px)}
  .dm__mere{margin-top:clamp(36px,6vw,52px)}
  .dm h1{font-size:clamp(32px,6.4vw,52px)}
}
@media (max-width:640px){
  .bd__felter{grid-template-columns:minmax(0,1fr)}
  .dm h1{font-size:clamp(32px,8.6vw,40px)}
  .dm-ansigter img{width:34px;height:34px}
  .bd__hoved{gap:12px}
}
@media (max-width:520px){.dm-trin{grid-template-columns:minmax(0,1fr);gap:20px}}
