/* Tilmelding – flertrins-formular med kalender, pakkevalg og betalingsplan */
.tm{background:linear-gradient(180deg,#FBF1EE 0%,#fff 38%);padding:26px 0 44px}
.tm-in{width:min(1180px,100% - 28px);margin-inline:auto;display:grid;gap:22px}
@media (min-width:1024px){.tm-in{width:min(1240px,100% - 96px);grid-template-columns:minmax(0,1fr) 380px;gap:36px;align-items:start}}
.tm-card{background:#fff;border-radius:22px;box-shadow:0 10px 34px rgba(20,23,43,.1);padding:22px 18px}
@media (min-width:700px){.tm-card{padding:32px 34px}}
/* fremdrift */
.tm-prog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:26px;position:relative}
.tm-prog li{display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;font-size:14px;font-weight:700;color:#5a5f78;position:relative}
.tm-prog li:not(:last-child)::after{content:"";position:absolute;top:19px;left:calc(50% + 24px);right:calc(-50% + 24px);height:3px;background:#E3D6D2;border-radius:2px}
.tm-prog li.is-done:not(:last-child)::after{background:var(--g-green)}
.tm-prog .n{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;border:2px solid #CBB4B0;font-weight:800;font-size:17px;color:#262B45;position:relative;z-index:1;transition:all .25s}
.tm-prog li.is-active{color:var(--g-navy)}
.tm-prog li.is-active .n{background:var(--g-red);border-color:var(--g-red);color:#fff;box-shadow:0 0 0 6px rgba(216,38,27,.16)}
.tm-prog li.is-done .n{background:var(--g-green);border-color:var(--g-green);color:#fff}
@media (min-width:700px){.tm-prog li{font-size:16px}}
/* trin */
.tm-step{display:none}
.tm-step.is-on{display:block;animation:tm-in .35s ease both}
@keyframes tm-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.tm-step h2{font-size:26px;line-height:1.15;font-weight:800;color:var(--ink);letter-spacing:-.02em}
.tm-step>.tm-lede{margin-top:6px;font-size:16.5px;line-height:1.5;color:#3A3F57}
.tm-err{display:none;margin-top:14px;padding:12px 14px;border-radius:12px;background:#FFE9E6;color:#8B1710;font-weight:700;font-size:16px}
.tm-err.is-on{display:block}
/* pakker */
.tm-pkgs{display:grid;gap:12px;margin-top:18px}
.tm-opt{position:relative;display:block;cursor:pointer}
.tm-opt input{position:absolute;opacity:0;inset:0;width:100%;height:100%;cursor:pointer}
.tm-opt__box{display:grid;grid-template-columns:auto 1fr auto;gap:6px 14px;align-items:center;border:2px solid #E6DAD6;border-radius:18px;padding:16px 16px;background:#fff;transition:border-color .2s,box-shadow .2s,background .2s}
.tm-opt:hover .tm-opt__box{border-color:#CBB4B0}
.tm-opt input:focus-visible+.tm-opt__box{outline:3px solid var(--g-navy);outline-offset:2px}
.tm-opt input:checked+.tm-opt__box{border-color:var(--g-red);background:#FFF6F4;box-shadow:0 6px 20px rgba(216,38,27,.14)}
.tm-radio{width:26px;height:26px;border-radius:50%;border:2px solid #B8A6A1;background:#fff;display:grid;place-items:center;flex:none}
.tm-opt input:checked+.tm-opt__box .tm-radio{border-color:var(--g-red)}
.tm-opt input:checked+.tm-opt__box .tm-radio::after{content:"";width:14px;height:14px;border-radius:50%;background:var(--g-red)}
.tm-opt__t b{display:block;font-size:19px;line-height:1.2;color:var(--ink);font-weight:800}
.tm-opt__t span{display:block;font-size:15.5px;color:#3A3F57;margin-top:2px}
.tm-opt__p{font-size:21px;font-weight:800;color:var(--g-red-deep);white-space:nowrap}
.tm-opt__l{grid-column:2 / -1;display:grid;gap:5px;margin-top:6px;font-size:15.5px;color:#262B45}
.tm-opt__l li{display:flex;gap:8px;align-items:flex-start;line-height:1.35}
.tm-opt__l li::before{content:"✓";color:var(--g-green);font-weight:800}
/* kalender */
.tm-cal{margin-top:18px;border:2px solid #EFE4E0;border-radius:20px;padding:14px 12px 16px;background:#fff}
.tm-cal__head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.tm-cal__head b{font-size:21px;font-weight:800;color:var(--ink);text-transform:capitalize}
.tm-cal__nav{width:46px;height:46px;border-radius:50%;border:2px solid #E3D6D2;background:#fff;display:grid;place-items:center;color:var(--g-navy);cursor:pointer}
.tm-cal__nav:disabled{opacity:.35;cursor:default}
.tm-cal__nav svg{width:20px;height:20px}
.tm-cal__grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.tm-cal__dow{font-size:13.5px;font-weight:700;color:#6a6f88;text-align:center;padding:4px 0}
.tm-day{aspect-ratio:1;display:grid;place-items:center;border-radius:12px;font-size:16px;color:#8a8ea4;background:none;border:0;font-family:inherit}
.tm-day.is-hold{color:#fff;background:var(--g-green);font-weight:800;cursor:pointer;box-shadow:0 4px 12px rgba(31,166,74,.35);transition:transform .15s}
.tm-day.is-hold:hover{transform:scale(1.07)}
.tm-day.is-hold.is-sel{background:var(--g-red);box-shadow:0 0 0 4px rgba(216,38,27,.22),0 4px 12px rgba(216,38,27,.4)}
.tm-day.is-hold:focus-visible{outline:3px solid var(--g-navy);outline-offset:2px}
.tm-day.is-today{border:2px solid #CBB4B0;color:var(--ink)}
.tm-day.is-past{opacity:.45}
.tm-cal__legend{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:12px;font-size:14.5px;color:#3A3F57}
.tm-cal__legend i{display:inline-block;width:14px;height:14px;border-radius:5px;background:var(--g-green);margin-right:6px;vertical-align:-2px}
.tm-cal__legend i.r{background:var(--g-red)}
.tm-holds{display:grid;gap:10px;margin-top:16px}
.tm-hold{display:flex;align-items:center;gap:12px;width:100%;text-align:left;border:2px solid #E6DAD6;border-radius:16px;padding:13px 14px;background:#fff;font-family:inherit;cursor:pointer;transition:all .2s}
.tm-hold b{display:block;font-size:18px;color:var(--ink);font-weight:800}
.tm-hold span{display:block;font-size:15px;color:#3A3F57}
.tm-hold .tm-radio{margin-left:auto}
.tm-hold[aria-pressed=true]{border-color:var(--g-red);background:#FFF6F4}
.tm-hold[aria-pressed=true] .tm-radio{border-color:var(--g-red)}
.tm-hold[aria-pressed=true] .tm-radio::after{content:"";width:14px;height:14px;border-radius:50%;background:var(--g-red)}
.tm-hold[disabled]{opacity:.45;cursor:default}
.tm-hold__ico{width:42px;height:42px;border-radius:12px;background:#E9F7EE;color:var(--g-green);display:grid;place-items:center;flex:none}
.tm-hold__ico svg{width:22px;height:22px}
.tm-undecided{display:flex;gap:12px;align-items:flex-start;margin-top:14px;font-size:16px;color:#262B45;cursor:pointer}
.tm-undecided input{width:24px;height:24px;margin-top:1px;accent-color:var(--g-red);flex:none}
.tm-note{margin-top:14px;font-size:15px;line-height:1.5;color:#3A3F57}
/* felter */
.tm-fields{display:grid;gap:14px;margin-top:18px}
@media (min-width:700px){.tm-fields--2{grid-template-columns:1fr 1fr}}
.tm-fields label{display:block;font-size:16px;font-weight:700;color:var(--ink);margin-bottom:6px}
.tm-fields input,.tm-fields textarea{width:100%;font:inherit;font-size:17px;padding:0 16px;height:54px;border:2px solid #E0D3CF;border-radius:14px;background:#fff;color:var(--ink)}
.tm-fields textarea{height:96px;padding:12px 16px;resize:vertical}
.tm-fields input:focus,.tm-fields textarea:focus{outline:3px solid rgba(21,26,51,.25);border-color:var(--g-navy)}
.tm-fields small{display:block;margin-top:5px;font-size:14px;color:#5a5f78}
.tm-consent{display:flex;gap:12px;align-items:flex-start;margin-top:18px;font-size:15.5px;line-height:1.45;color:#262B45}
.tm-consent input{width:24px;height:24px;margin-top:1px;accent-color:var(--g-red);flex:none}
.tm-consent a{color:var(--g-red-deep);text-decoration:underline}
/* betaling */
.tm-pay{display:grid;gap:12px;margin-top:18px}
.tm-badge{display:inline-block;background:var(--g-yellow);color:#14172B;font-weight:800;font-size:13px;border-radius:999px;padding:3px 10px;margin-left:8px;vertical-align:2px}
.tm-box{margin-top:18px;border-radius:16px;background:#F6F4F7;padding:16px 16px;font-size:15.5px;line-height:1.5;color:#262B45}
.tm-box b{color:var(--ink)}
/* knapper */
.tm-nav{display:flex;gap:12px;margin-top:26px;align-items:center}
.tm-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:56px;padding:0 26px;border-radius:999px;font:inherit;font-size:18px;font-weight:800;cursor:pointer;border:2px solid transparent;transition:transform .15s,box-shadow .2s}
.tm-btn svg{width:20px;height:20px}
.tm-btn--go{flex:1;background:linear-gradient(180deg,#D8261B,#A81A11);color:#fff;box-shadow:0 10px 24px rgba(168,26,17,.34)}
.tm-btn--go:hover{transform:translateY(-1px)}
.tm-btn--back{background:#fff;border-color:#D9CAC6;color:var(--g-navy)}
@media (min-width:700px){.tm-btn--go{flex:none;min-width:260px;margin-left:auto}}
/* oversigt */
.tm-sum{background:var(--g-navy);color:#E3E6F3;border-radius:22px;padding:22px 20px;box-shadow:0 10px 34px rgba(20,23,43,.25)}
@media (min-width:1024px){.tm-sum{position:sticky;top:96px}}
.tm-sum h3{font-size:21px;color:#fff;font-weight:800;margin-bottom:12px}
.tm-sum dl{display:grid;gap:12px}
.tm-sum dt{font-size:13.5px;letter-spacing:.08em;text-transform:uppercase;color:#9aa0c0;font-weight:700}
.tm-sum dd{font-size:17.5px;color:#fff;font-weight:700;margin-top:2px;line-height:1.3}
.tm-sum dd.is-empty{color:#8e94b4;font-weight:500}
.tm-sum__tot{margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.18);display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.tm-sum__tot span{font-size:16px}
.tm-sum__tot b{font-size:28px;color:#fff;font-weight:800}
.tm-sum__help{margin-top:16px;font-size:15.5px;line-height:1.45;color:#C7CBE0}
.tm-sum__help a{color:#fff;font-weight:800;text-decoration:underline}
/* færdig */
.tm-done{display:none;text-align:center;padding:10px 4px}
.tm-done.is-on{display:block}
.tm-done__ico{width:76px;height:76px;border-radius:50%;background:var(--g-green);color:#fff;display:grid;place-items:center;margin:0 auto 16px;box-shadow:0 10px 26px rgba(31,166,74,.4)}
.tm-done__ico svg{width:38px;height:38px}
.tm-done h2{font-size:28px;font-weight:800;color:var(--ink)}
.tm-done p{margin-top:10px;font-size:17px;line-height:1.55;color:#3A3F57}
.tm-done .tm-btn{margin-top:20px}
.tm-wrap-form.is-hidden{display:none}

/* den faste ring/tilmeld-bjælke er overflødig her og dækker knapperne */
body:has(.tm) .g-dock{display:none !important}
body:has(.tm) .m-foot{padding-bottom:32px !important}

@media (min-width:700px){.tm-cal{max-width:520px}.tm-day{aspect-ratio:auto;height:54px}.tm-holds{max-width:520px}}

/* mobil: undgå at gitteret bliver bredere end skærmen */
.tm-in{grid-template-columns:minmax(0,1fr)}
@media (min-width:1024px){.tm-in{grid-template-columns:minmax(0,1fr) 380px}}
.tm-card,.tm-sum{min-width:0}
@media (max-width:380px){
  .tm-card{padding:18px 14px}
  .tm-prog li{font-size:13px;gap:5px}
  .tm-prog .n{width:34px;height:34px;font-size:15px}
  .tm-prog li:not(:last-child)::after{top:17px;left:calc(50% + 20px);right:calc(-50% + 20px)}
  .tm-opt__box{padding:14px 12px;gap:6px 10px}
  .tm-opt__p{font-size:18px}
}
@media (max-width:360px){
  .tm-opt__box{grid-template-columns:auto minmax(0,1fr)}
  .tm-opt__p{grid-column:2;font-size:19px}
  .tm-opt__l{grid-column:2}
}
