/* The glass seam and inset paper are shared visual details of the tricoma footer. */
html.tri-contact-open {overflow:hidden}
dialog.tri-contact-sheet {
  --paper:#21272d; --ink:#f3f6f5; --muted:#b0bcbf; --line:#465155; --field:#222c31; --accent:var(--tricoma-green,#4cbb0b); --tc-glass:43 49 57;
  --tc-glint:rgb(235 245 255 / .16); --tc-contact:rgb(0 0 0 / .16); --tc-rim:.25px;
  --tc-shadow:0 7px 22px rgb(0 0 0 / .30),0 1px 4px rgb(0 0 0 / .22);
  --tc-radius:var(--shape-surface,27px); --tc-reveal:var(--size-1,4px); --tc-bottom:max(var(--tc-reveal),env(safe-area-inset-bottom,0px));
  --tc-gutter:clamp(8px,1.4vw,24px); --tc-width:calc(100% - 2 * var(--tc-gutter));
  position:fixed; inset:auto 0 var(--tc-bottom); width:var(--tc-width); max-width:none; height:auto; max-height:none;
  margin:0 auto; padding:var(--tc-reveal) 0 0 var(--tc-reveal); box-sizing:border-box;
  border:0; overflow:visible; color:var(--ink); background:transparent; isolation:isolate;
  font:400 15px/1.45 'Open Sans',sans-serif; color-scheme:dark;
}
dialog.tri-contact-sheet::before {
  content:"";position:absolute;inset:0 var(--tc-reveal) var(--tc-reveal) 0;
  z-index:-1;pointer-events:none;border-radius:var(--tc-radius);
  background-color:rgb(var(--tc-glass) / .16);
  background-image:linear-gradient(112deg,color-mix(in srgb,var(--tc-glint) 42%,transparent),transparent 45%,var(--tc-contact));
  backdrop-filter:blur(9px) saturate(135%);-webkit-backdrop-filter:blur(9px) saturate(135%);
  box-shadow:inset 0 var(--tc-rim) 0 var(--tc-glint),0 1px 4px var(--tc-contact),var(--tc-shadow);
}
[data-theme=light] dialog.tri-contact-sheet {
  --paper:#fff; --ink:#172125; --muted:#4d5e60; --line:#bcc8c6; --field:#fff; --tc-glass:237 242 245; --tc-glint:rgb(255 255 255 / .52);
  --tc-contact:rgb(16 24 32 / .08); --tc-rim:.5px;
  --tc-shadow:0 5px 18px rgb(20 35 48 / .10),0 1px 3px rgb(20 35 48 / .08);
  color-scheme:light;
}
dialog.tri-contact-sheet:not([open]),.tri-contact-sheet [hidden] {display:none!important}
dialog.tri-contact-sheet::backdrop {background:rgb(6 13 17 / 0); transition:background-color .34s ease}
dialog.tri-contact-sheet.tc-open::backdrop {background:rgb(6 13 17 / .48)}
.tri-contact-sheet * {box-sizing:border-box}
.tri-contact-sheet .tc-surface {position:relative;border-radius:var(--tc-radius);background:var(--paper)}
.tri-contact-sheet .tc-wrap {position:relative;border-radius:inherit;overflow:clip}
.tri-contact-sheet .tc-scroll {
  display:grid; align-items:center; min-height:min(44vh,420px); min-height:min(44dvh,420px); max-height:68vh; max-height:68dvh; overflow:auto; overscroll-behavior:contain;
  padding:clamp(18px,2.25vw,36px) max(52px,calc((100% - 1510px)/2)) max(24px,env(safe-area-inset-bottom));
}
.tri-contact-sheet .tc-layout {display:grid; grid-template-columns:minmax(250px,.90fr) minmax(0,1.10fr); gap:clamp(25px,3.5vw,65px); align-items:center}
.tri-contact-sheet .tc-close {
  display:grid; place-items:center; position:absolute; z-index:1; right:max(10px,env(safe-area-inset-right)); top:6px; width:44px; height:44px;
  border:0; padding:10px; border-radius:50%; background:var(--paper); color:var(--ink); cursor:pointer
}
.tri-contact-sheet .tc-close:hover {background:var(--field); box-shadow:inset 0 0 0 1px var(--line)}
.tri-contact-sheet .tc-close svg {display:block;width:21px;height:21px}
.tri-contact-sheet .tc-intro {
  position:relative; isolation:isolate; overflow:hidden; align-self:stretch; min-width:0;
  display:grid; grid-template-rows:auto minmax(100px,1fr) auto; align-items:center;
  padding:clamp(20px,2.2vw,34px); border-radius:18px;
  background:#2b3139; color:#f2f5f6;
}
.tri-contact-sheet .tc-intro::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:radial-gradient(circle, rgb(230 244 250 / .22) .8px,transparent 1.2px) 0 0 / 14px 14px;
  mask-image:radial-gradient(ellipse at 78% 57%,black,transparent 73%);
}
.tri-contact-sheet .tc-intro h2,.tri-contact-sheet .tc-thanks h3 {
  margin:0; padding:0; color:inherit; font:650 clamp(38px,4.15vw,66px)/1.04 'Open Sans',sans-serif;
  letter-spacing:-.065em; text-transform:none; text-wrap:balance;
}
.tri-contact-sheet .tc-thanks h3 {font-size:clamp(28px,3.2vw,48px)}
.tri-contact-sheet .tc-intro h2 em {font:inherit;color:var(--accent)}
.tri-contact-sheet .tc-flight {display:block;width:100%;height:clamp(140px,13vw,212px);overflow:visible;pointer-events:none}
.tri-contact-sheet .tc-fold {filter:drop-shadow(0 7px 4px rgb(4 10 15 / .30))}
.tri-contact-sheet .tc-direct {display:flex;flex-wrap:wrap;gap:4px 20px}
.tri-contact-sheet .tc-direct a,.tri-contact-sheet .tc-actions a {color:var(--muted);font-size:13px;text-underline-offset:4px;text-decoration:underline;text-decoration-thickness:1px}
.tri-contact-sheet .tc-direct a {color:#e1e7ea}
@media(prefers-reduced-motion:no-preference) {
  .tri-contact-sheet.tc-open .tc-trace {animation:tc-route-reveal 2.75s cubic-bezier(.26,.04,.18,1) both}
  .tri-contact-sheet.tc-open .tc-fold {animation:tc-plane-bank 2.75s ease-out both}
  @keyframes tc-route-reveal {from{stroke-dasharray:0 700}to{stroke-dasharray:420 700}}
  @keyframes tc-plane-bank {
    0% {transform:rotate(20deg) scale(.20)}
    22% {transform:rotate(-12deg) scale(.38)}
    42% {transform:rotate(-32deg) scale(.48)}
    64% {transform:rotate(11deg) scale(.71)}
    100% {transform:rotate(0) scale(1)}
  }
}

.tri-contact-sheet .tc-content {min-width:0}
.tri-contact-sheet .tc-fields {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 15px;margin:0;padding:0}
.tri-contact-sheet .tc-fields label {display:block;min-width:0;margin:0;padding:0;color:var(--ink);font:600 13px/1.35 'Open Sans',sans-serif}
.tri-contact-sheet .tc-fields small {font:400 12px/1.35 'Open Sans',sans-serif;color:var(--muted)}
.tri-contact-sheet .tc-fields :is(input,textarea) {
  display:block; width:100%; min-width:0; margin:5px 0 0; padding:8px 11px; height:44px;
  border:1px solid var(--line);border-radius:8px; box-shadow:none; background:var(--field); color:var(--ink);
  font:400 16px/1.35 'Open Sans',sans-serif;
}
.tri-contact-sheet .tc-fields textarea {height:72px;min-height:48px;resize:vertical}
.tri-contact-sheet .tc-email {grid-column:span 2}
.tri-contact-sheet .tc-message,.tri-contact-sheet .tc-actions,.tri-contact-sheet .tc-status {grid-column:1/-1}
.tri-contact-sheet .tc-actions {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px 20px;margin-top:2px}
.tri-contact-sheet .tc-actions button {
  display:inline-flex;align-items:center;justify-content:space-between;gap:17px;width:auto;height:auto;
  min-height:42px;margin:0;padding:9px 18px;border:0;border-radius:24px;cursor:pointer;
  color:#fff;background:var(--accent);font:650 14px/1.4 'Open Sans',sans-serif
}
.tri-contact-sheet .tc-actions button:hover {background:var(--tricoma-green-hover,#43a40a)}
.tri-contact-sheet .tc-actions button:disabled {background:var(--tricoma-green-hover,#43a40a);cursor:wait}
.tri-contact-sheet .tc-status,.tri-contact-sheet .tc-thanks p {margin:0;color:var(--muted);font-size:14px}
.tri-contact-sheet .tc-status:empty {display:none}
.tri-contact-sheet .tc-thanks p {margin:14px 0}
.tri-contact-sheet :focus-visible {outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:820px) {
  .tri-contact-sheet .tc-scroll {padding:26px 22px max(26px,env(safe-area-inset-bottom));max-height:80vh;max-height:80dvh}
  .tri-contact-sheet .tc-layout {grid-template-columns:minmax(0,1fr);gap:16px}
  .tri-contact-sheet .tc-intro {display:grid;grid-template: auto / minmax(0,1fr) minmax(82px,.8fr); gap:0;padding:12px 18px;min-height:82px;margin-right:36px;border-radius:13px}
  .tri-contact-sheet .tc-intro h2 {font-size:30px}
  .tri-contact-sheet .tc-flight {width:100%;height:66px} .tri-contact-sheet .tc-direct {display:none}
}
@media(max-width:520px) {
  .tri-contact-sheet .tc-scroll {padding-inline:12px;padding-top:12px}
  .tri-contact-sheet .tc-intro {padding:10px 12px;margin-right:35px}
  .tri-contact-sheet .tc-intro h2 {font-size:clamp(23px,6.2vw,30px)}
  .tri-contact-sheet .tc-fields {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .tri-contact-sheet .tc-email {grid-column:auto}
  .tri-contact-sheet .tc-fields label:has([name=telefon]) {grid-column:1/-1}
  .tri-contact-sheet .tc-actions {align-items:flex-start}
}
@media(max-height:480px) {
  .tri-contact-sheet .tc-scroll {max-height:77vh;max-height:77dvh}
}
@media(prefers-reduced-motion:reduce) {dialog.tri-contact-sheet::backdrop {transition:none}}
@media(forced-colors:active) {.tri-contact-sheet .tc-surface {border-top:1px solid CanvasText}}


@media(prefers-reduced-motion:no-preference) {
  .tri-contact-sheet.tc-delivered .tc-outbound {animation:tc-dispatch .9s cubic-bezier(.42,0,.76,.72) forwards}
  @keyframes tc-dispatch {to{transform:translate(215px,-82px) rotate(-9deg);opacity:0}}
}
@media(prefers-reduced-transparency:reduce) {
  dialog.tri-contact-sheet::before {background:rgb(var(--tc-glass));backdrop-filter:none;-webkit-backdrop-filter:none}
}
@media(forced-colors:active) {
  dialog.tri-contact-sheet::before {background:Canvas;border:1px solid CanvasText}
  .tri-contact-sheet .tc-flight {display:none}
}

/* Rear mesh and folded paper respond independently; the form stays on the inlay. */
.tri-contact-sheet .tc-intro {--tc-depth-x:0;--tc-depth-y:0}
.tri-contact-sheet .tc-intro::before {inset:-12px}
.tri-contact-sheet .tc-pixel-fringe {fill:var(--accent);opacity:.8}
@media(prefers-reduced-motion:no-preference) {
  .tri-contact-sheet .tc-depth-wake {
    transform:translate(calc(var(--tc-depth-x) * -7px),calc(var(--tc-depth-y) * -5px));
    transition:transform .20s ease-out;
  }
  .tri-contact-sheet .tc-depth-plane {
    transform-box:view-box;transform-origin:72% 44%;
    transform:translate(calc(var(--tc-depth-x) * 9px),calc(var(--tc-depth-y) * 7px)) rotate(calc(var(--tc-depth-x) * 2deg));
    transition:transform .20s ease-out;
  }
  .tri-contact-sheet .tc-intro::before {
    transform:translate(calc(var(--tc-depth-x) * -3px),calc(var(--tc-depth-y) * -3px));
    transition:transform .24s ease-out;
  }
  .tri-contact-sheet.tc-open .tc-wake-material {animation:tc-wake-settle 2.75s cubic-bezier(.26,.04,.18,1) both}
  @keyframes tc-wake-settle {from{transform:translate(-9px,5px)}to{transform:none}}
}

