/* TEI Kontakt - formularerne på hjemmesiden
   Samme designsprog som thyerhvervsinvest.dk: Schibsted Grotesk til overskrifter, Albert Sans til tekst,
   runde hjørner, mørk knap med orange prik og orange som accent. Alt er låst under .tei-kf,
   så hverken temaet (Hello Elementor) eller Elementor kan påvirke felter og knapper. */
.tei-kf{
  --kf-ink:#16212C;--kf-txt:#1E2833;--kf-muted:rgba(22,33,44,.62);--kf-line:rgba(22,33,44,.2);--kf-line-2:rgba(22,33,44,.32);
  --kf-blue:#2C5F99;--kf-orange:#F08A00;--kf-red:#B3261E;--kf-card:#FBF9F5;--kf-field:#fff;
  --kf-display:"Schibsted Grotesk","Helvetica Neue",Arial,sans-serif;
  --kf-sans:"Albert Sans","Helvetica Neue",Arial,sans-serif;
  --kf-ease:cubic-bezier(.23,1,.32,1);
  position:relative;width:100%;padding:clamp(24px,3vw,44px);border-radius:22px;background:var(--kf-card);
  box-shadow:0 1px 0 rgba(22,33,44,.04),0 24px 60px -32px rgba(22,33,44,.35);
  color:var(--kf-txt);font-family:var(--kf-sans);font-size:16.5px;line-height:1.55;font-weight:400;text-align:left;-webkit-font-smoothing:antialiased
}
.tei-kf,.tei-kf *,.tei-kf *::before,.tei-kf *::after{box-sizing:border-box}
.tei-kf p,.tei-kf h2{margin:0;padding:0;text-transform:none}
.tei-kf fieldset{margin:0;padding:0;border:0;min-width:0}
.tei-kf legend{padding:0;float:left;width:100%}
.tei-kf legend + *{clear:both}
/* p a: stærkere end sidernes egen ".tei a", der fjerner understregningen */
.tei-kf p a{color:var(--kf-blue);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;box-shadow:none}
.tei-kf p a:hover{color:var(--kf-ink);text-decoration:underline}
.tei-kf [hidden]{display:none !important}

/* overskrift og intro */
.tei-kf .tei-kf-head{display:grid;gap:8px;margin-bottom:24px}
.tei-kf .tei-kf-title{font-family:var(--kf-display);font-weight:500;font-size:clamp(24px,1rem + .9vw,32px);line-height:1.1;letter-spacing:-.03em;color:var(--kf-ink)}
.tei-kf .tei-kf-intro{color:var(--kf-muted);max-width:36em}

/* casen, man kommer fra */
.tei-kf .tei-kf-case{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-bottom:22px;padding:12px 16px;border-radius:14px;background:rgba(240,138,0,.1);box-shadow:inset 0 0 0 1px rgba(240,138,0,.35);font-size:15.5px}
.tei-kf .tei-kf-case span{color:var(--kf-muted)}
.tei-kf p.tei-kf-case a{font-weight:600;color:var(--kf-ink)}

/* fejl samlet øverst */
.tei-kf .tei-kf-summary{margin-bottom:20px;padding:12px 16px;border-radius:14px;background:rgba(179,38,30,.07);box-shadow:inset 0 0 0 1px rgba(179,38,30,.35);color:var(--kf-red);font-weight:600;font-size:15.5px}

/* felterne: to kolonner på store skærme */
.tei-kf .tei-kf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px}
.tei-kf .tei-kf-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.tei-kf .tei-kf-field.is-full{grid-column:1 / -1}
.tei-kf .tei-kf-label{display:block;font-weight:600;font-size:15.5px;line-height:1.3;color:var(--kf-ink)}
.tei-kf .tei-kf-req{color:var(--kf-orange);margin-left:3px}
.tei-kf .tei-kf-hint{display:block;margin-top:-3px;font-size:14px;line-height:1.4;color:var(--kf-muted)}
.tei-kf .tei-kf-choice .tei-kf-label{margin-bottom:7px}
.tei-kf .tei-kf-choice .tei-kf-hint{margin:-4px 0 7px}

.tei-kf input.tei-kf-input,.tei-kf textarea.tei-kf-input{
  display:block;width:100%;min-height:54px;margin:0;padding:14px 16px;border:0;border-radius:14px;outline:0;
  background:var(--kf-field);box-shadow:inset 0 0 0 1px var(--kf-line-2);
  color:var(--kf-ink);font-family:var(--kf-sans);font-size:17px;line-height:1.4;font-weight:400;letter-spacing:normal;
  -webkit-appearance:none;appearance:none;transition:box-shadow .25s var(--kf-ease)
}
.tei-kf textarea.tei-kf-area{min-height:140px;resize:vertical}
.tei-kf input.tei-kf-input:hover,.tei-kf textarea.tei-kf-input:hover{box-shadow:inset 0 0 0 1px rgba(22,33,44,.5)}
.tei-kf input.tei-kf-input:focus,.tei-kf textarea.tei-kf-input:focus{box-shadow:inset 0 0 0 1.5px var(--kf-ink),0 0 0 4px rgba(240,138,0,.28)}
.tei-kf .has-error input.tei-kf-input,.tei-kf .has-error textarea.tei-kf-input{box-shadow:inset 0 0 0 1.5px var(--kf-red)}
.tei-kf .has-error input.tei-kf-input:focus,.tei-kf .has-error textarea.tei-kf-input:focus{box-shadow:inset 0 0 0 1.5px var(--kf-red),0 0 0 4px rgba(179,38,30,.18)}
.tei-kf .tei-kf-err{font-size:14.5px;line-height:1.4;font-weight:600;color:var(--kf-red)}

/* valgmuligheder som knapper */
.tei-kf .tei-kf-chips{display:flex;flex-wrap:wrap;gap:8px}
.tei-kf .tei-kf-chip{position:relative;display:inline-flex;margin:0;cursor:pointer}
.tei-kf .tei-kf-chip input{position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none}
.tei-kf .tei-kf-chip span{display:inline-flex;align-items:center;min-height:42px;padding:9px 16px;border-radius:999px;background:var(--kf-field);box-shadow:inset 0 0 0 1px var(--kf-line-2);font-size:15.5px;line-height:1.3;font-weight:500;color:var(--kf-ink);transition:background-color .25s var(--kf-ease),box-shadow .25s var(--kf-ease),color .25s}
.tei-kf .tei-kf-chip:hover span{box-shadow:inset 0 0 0 1px var(--kf-ink)}
.tei-kf .tei-kf-chip input:checked + span{background:var(--kf-ink);box-shadow:none;color:#fff}
.tei-kf .tei-kf-chip input:focus-visible + span{outline:2px solid var(--kf-orange);outline-offset:3px}

/* skjult felt mod robotter */
.tei-kf .tei-kf-hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;overflow:hidden}

/* knap og note */
.tei-kf .tei-kf-foot{display:flex;flex-wrap:wrap;align-items:center;gap:16px 24px;margin-top:28px}
.tei-kf button.tei-kf-submit,.tei-kf button.tei-kf-submit:focus,.tei-kf button.tei-kf-submit:hover{
  display:inline-flex;align-items:center;gap:14px;min-height:0;margin:0;padding:7px 7px 7px 24px;border:0;border-radius:999px;
  background:var(--kf-ink);color:#fff;font-family:var(--kf-sans);font-size:16.5px;line-height:1.2;font-weight:600;letter-spacing:normal;text-transform:none;text-decoration:none;
  cursor:pointer;box-shadow:none;transition:background-color .35s
}
.tei-kf button.tei-kf-submit:hover{background:#000}
.tei-kf button.tei-kf-submit:focus-visible{outline:2px solid var(--kf-orange);outline-offset:4px}
.tei-kf .tei-kf-dot{width:42px;height:42px;border-radius:50%;background:var(--kf-orange);color:var(--kf-ink);display:grid;place-items:center;flex:none}
.tei-kf .tei-kf-arrow{width:17px;height:17px;flex:none;transition:transform .5s var(--kf-ease)}
.tei-kf button.tei-kf-submit:hover .tei-kf-arrow{transform:translateX(3px)}
.tei-kf .tei-kf-note{flex:1 1 260px;font-size:14px;line-height:1.45;color:var(--kf-muted)}
/* mens den sendes */
.tei-kf.is-sending button.tei-kf-submit{cursor:progress;background:#2b3742}
.tei-kf.is-sending .tei-kf-dot{animation:tei-kf-pulse 1s ease-in-out infinite}
@keyframes tei-kf-pulse{50%{transform:scale(.82)}}

/* tak */
.tei-kf.is-thanks{display:grid;place-items:start}
.tei-kf .tei-kf-thanks{display:grid;gap:14px;justify-items:start;max-width:34em}
.tei-kf .tei-kf-check{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:var(--kf-orange);color:var(--kf-ink);margin-bottom:6px}
.tei-kf .tei-kf-check svg{width:26px;height:26px}
.tei-kf .tei-kf-thanks-t{font-family:var(--kf-display);font-weight:500;font-size:clamp(28px,1rem + 1.4vw,40px);line-height:1.05;letter-spacing:-.035em;color:var(--kf-ink);outline:0}
.tei-kf .tei-kf-thanks-d{font-size:17.5px;line-height:1.6}
.tei-kf .tei-kf-thanks-links{display:flex;flex-wrap:wrap;gap:10px 26px;margin-top:8px}
.tei-kf a.tei-kf-link{display:inline-flex;align-items:center;gap:8px;font-weight:600;color:var(--kf-blue);text-decoration:none;padding-bottom:3px;background-image:linear-gradient(var(--kf-orange),var(--kf-orange));background-size:0% 2px;background-repeat:no-repeat;background-position:0 100%;transition:background-size .6s var(--kf-ease)}
.tei-kf a.tei-kf-link:hover{background-size:100% 2px;color:var(--kf-blue)}
.tei-kf a.tei-kf-link:hover .tei-kf-arrow{transform:translateX(3px)}

@media (max-width:640px){
  .tei-kf{padding:22px 18px;border-radius:18px}
  .tei-kf .tei-kf-grid{grid-template-columns:1fr;gap:18px}
  .tei-kf .tei-kf-field.is-half{grid-column:1 / -1}
  .tei-kf .tei-kf-chip span{min-height:40px;padding:8px 14px;font-size:15px}
  .tei-kf button.tei-kf-submit{width:100%;justify-content:space-between}
}
@media (prefers-reduced-motion:reduce){
  .tei-kf *{transition:none !important;animation:none !important}
}
