/* contact-v6 / P3 (16.11.2026). Se încarcă DUPĂ tr.css + b.css. Schimbă DOAR formularul din dreapta (zona .tr6-panel din B):
   cardul întunecat din pin-067 („Get in touch”): grilă fină care se stinge în partea de sus, plăcuța cu plic care luminează, etichete
   deasupra câmpurilor, câmpuri închise rotunjite, buton lat deschis cu gradient vertical. Cardul rămâne întunecat în ambele teme:
   jetoanele --tr-* sunt redefinite în card cu valorile temei întunecate din tr.css, ca să meargă și căutarea CUI, alerta și panoul „trimis”. */

/* rutele din fundal care treceau prin spatele coloanei din stânga („Scrieți-ne”) */
body.tr-page .tr-routes :is(.tr-r1, .tr-r3, .tr-rp, .tr-acc),
body.tr-page .tr-routes circle[cx="560"],
body.tr-page .tr-routes circle[cx="1180"] { display: none; }

/* ------------------------------------------------------------------ lumina din spatele cardului (cardul pare luminat de sus) */
body.tr-page .p3-panel { position: relative; }
body.tr-page .p3-panel::before {
  content: ""; position: absolute; z-index: -1; left: 12%; right: 12%; top: -70px; height: 300px; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .95); filter: blur(60px);
}
body.tr-page .p3-panel::after {
  content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: -26px; height: 70px; border-radius: 50%; pointer-events: none;
  background: rgba(10, 14, 22, .30); filter: blur(30px);
}
:root:not([data-theme="light"]) body.tr-page .p3-panel::before { background: rgba(170, 190, 255, .17); }
:root:not([data-theme="light"]) body.tr-page .p3-panel::after { background: rgba(0, 0, 0, .6); }

/* ------------------------------------------------------------------ cardul */
body.tr-page .p3-card {
  --tr-page: #05070b;
  --tr-ink: #ededed; --tr-ink2: #c8c8c8; --tr-mute: #aaacb5; --tr-ph: #8e919c;
  --tr-accent: #ededed; --tr-accent-ink: #05070b; --tr-accent-soft: rgba(237, 237, 237, .12); --tr-ring: rgba(255, 255, 255, .10); --tr-accent-line: 237 237 237;
  --tr-ok: #5ad6b8; --tr-ok-soft: rgba(90, 214, 184, .14);
  --tr-err: #ffb0a6; --tr-err-bg: rgba(255, 140, 128, .12); --tr-err-bd: rgba(255, 140, 128, .55);
  --tr-fld: #1c1d24; --tr-fld-bd: rgba(255, 255, 255, .11); --tr-fld-solid: #1c1d24;
  --tr-panel: rgba(255, 255, 255, .05); --tr-sep: rgba(255, 255, 255, .10);
  position: relative; isolation: isolate; overflow: hidden; color-scheme: dark;
  padding: 0 30px 22px; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .06);
  background: linear-gradient(180deg, #0d1017 0%, #090a0f 55%, #08090d 100%);
  color: var(--tr-ink);
  box-shadow: 0 2px 4px rgba(10, 14, 22, .18), 0 40px 70px -36px rgba(10, 14, 22, .65);
}
body.tr-page .p3-card[hidden] { display: none; }
:root:not([data-theme="light"]) body.tr-page .p3-card {
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, #10131b 0%, #0b0d13 55%, #0a0b10 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .7), 0 0 60px -12px rgba(170, 190, 255, .16), 0 40px 80px -40px rgba(0, 0, 0, .9);
}

/* partea de sus: grilă pătrată fină care se stinge în jos + plăcuța cu plic, la mijloc, cu strălucire albă */
body.tr-page .p3-cap { position: relative; display: grid; place-items: center; height: 76px; margin: 0 -30px 4px; }
body.tr-page .p3-cap::before {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 168px; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 24px 24px; background-position: center -1px;
  mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  -webkit-mask: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
}
body.tr-page .p3-cap::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 38px; width: 260px; height: 150px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0));
}
body.tr-page .p3-tile {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; color: #f4f4f6;
  background: linear-gradient(180deg, #2b2d35 0%, #121318 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .30), inset 0 0 0 1px rgba(255, 255, 255, .10),
    0 0 0 1.5px rgba(255, 255, 255, .78),
    0 0 14px 2px rgba(255, 255, 255, .42), 0 0 36px 8px rgba(255, 255, 255, .13);
}
body.tr-page .p3-tile--ok { color: var(--tr-ok); }

/* ------------------------------------------------------------------ câmpurile: 2 coloane (Nume / Firmă, Telefon / Email), mesajul pe toată lățimea */
body.tr-page .p3-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-items: start; }
body.tr-page .p3-f--wide { grid-column: 1 / -1; }
body.tr-page .p3-lab { display: block; margin: 0 0 7px; font: 400 14px/18px var(--ws); color: var(--tr-ink2); }
body.tr-page .p3-f .tr-input {
  height: 48px; min-height: 48px; padding: 0 42px 0 15px; border-radius: 12px; border: 1px solid var(--tr-fld-bd);
  background: var(--tr-fld); color: var(--tr-ink); font: 400 16px/20px var(--ws); caret-color: #fff;
}
body.tr-page .p3-f .tr-ta { height: 100px; min-height: 100px; padding: 12px 15px 24px; line-height: 1.5; resize: vertical; }
body.tr-page .p3-in::placeholder { color: var(--tr-ph); opacity: 1; }
body.tr-page .p3-f .tr-input:hover { border-color: rgba(255, 255, 255, .2); }
body.tr-page .p3-f .tr-input:focus { border-color: rgba(255, 255, 255, .6); background: #202129; box-shadow: 0 0 0 4px var(--tr-ring); }
body.tr-page .p3-f[data-err="1"] .tr-input { border-color: var(--tr-err-bd); box-shadow: none; }
body.tr-page .p3-f[data-err="1"] .tr-input:focus { border-color: var(--tr-err); box-shadow: 0 0 0 4px var(--tr-err-bg); }
body.tr-page .p3-f .tr-okic { right: 13px; width: 18px; height: 18px; margin-top: -9px; }
body.tr-page .p3-f .tr-msg { margin-top: 6px; font: 400 14px/18px var(--ws); color: var(--tr-err); }
/* contorul mesajului, în colțul câmpului: doar cât se scrie sau aproape de limită */
body.tr-page .p3-count { position: absolute; right: 26px; bottom: 6px; margin: 0; font: 400 12px/16px var(--ws); color: var(--tr-mute); pointer-events: none; opacity: 0; transition: opacity .2s; }
body.tr-page .tr-field--note:focus-within .p3-count, body.tr-page .tr-field--note[data-near="1"] .p3-count { opacity: 1; }
body.tr-page .p3-f .tr-co { margin-top: 8px; }

/* alerta (greșeală la trimitere) și rândul de trimitere */
body.tr-page .p3-card .tr-alert { margin-top: 16px; font-size: 14px; }
body.tr-page .p3-send { margin-top: 20px; }
body.tr-page .p3-card .p3-btn {
  width: 100%; min-height: 50px; padding: 0 20px; border-radius: 12px; color: #0b0c10; font: 500 16px/20px var(--ws);
  background: #ececee linear-gradient(180deg, #ffffff 0%, #f3f3f5 45%, #dcdce0 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .10), 0 0 0 1px rgba(255, 255, 255, .28), 0 10px 26px -12px rgba(255, 255, 255, .45);
}
body.tr-page .p3-card .p3-btn:hover { background: #f2f2f4 linear-gradient(180deg, #ffffff 0%, #f7f7f9 45%, #e4e4e8 100%); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(0, 0, 0, .10), 0 0 0 1px rgba(255, 255, 255, .4), 0 12px 30px -10px rgba(255, 255, 255, .55); }
body.tr-page .p3-card .p3-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
body.tr-page .p3-req { margin: 10px 0 0; text-align: center; font: 400 14px/18px var(--ws); color: var(--tr-mute); }

/* ------------------------------------------------------------------ panoul „trimis” (în locul formularului, același card) */
body.tr-page .p3-card.tr-done { padding: 0 30px 30px; border-radius: 24px; text-align: center; }
body.tr-page .p3-done-h { margin-top: 10px; font: 300 30px/1.2 var(--ws); letter-spacing: -.02em; color: var(--tr-ink); }
body.tr-page .p3-card .p3-conf { margin-top: 10px; padding-top: 0; border-top: 0; font: 400 15px/24px var(--ws); color: var(--tr-ink2); }
body.tr-page .p3-done-acts { justify-content: center; margin-top: 22px; padding-top: 0; }
body.tr-page .p3-done-acts .p3-btn { width: auto; min-width: 240px; }

/* ------------------------------------------------------------------ telefon */
@media (max-width: 760px) {
  body.tr-page .p3-panel::before { left: 6%; right: 6%; top: -50px; height: 220px; filter: blur(44px); }
  body.tr-page .p3-card { padding: 0 16px 18px; border-radius: 22px; }
  body.tr-page .p3-cap { height: 72px; margin: 0 -16px 2px; }
  body.tr-page .p3-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  body.tr-page .p3-card .p3-btn { min-height: 52px; }
  body.tr-page .p3-card.tr-done { padding: 0 18px 22px; }
  body.tr-page .p3-done-h { font-size: 24px; }
  body.tr-page .p3-done-acts .p3-btn { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.tr-page .p3-card * { transition: none !important; }
}
@media (forced-colors: active) {
  body.tr-page .p3-card { border: 1px solid CanvasText; }
  body.tr-page .p3-tile { border: 1px solid CanvasText; }
}

/* [cc 17.11 v2] David: "part of the fucking contact form should be on the first screen, similar to how we have the program on first page,
   and just keep the fucking sizes and just make some air". B/P3 sizes unchanged; more air above, under the title and around the cards;
   the dark form starts low enough that only its top (the glowing envelope + the first fields) shows at the bottom of the first screen. */
body.tr-page .tr.tr6 { padding-top: 54px; }
body.tr-page .tr6-q { margin-top: 10px; }
body.tr-page .tr6-cards { margin-top: 40px; }
body.tr-page .tr6-client { margin-top: 20px; }
body.tr-page .p3-band { margin-top: 104px; }
/* [cc 17.11 v3] David: "Scrieți-ne" starts where the dark box starts (its top on the box top) */
body.tr-page .p3-band .tr6-band-h { padding-top: 0; margin-top: -7px; }
@media (max-width: 760px) {
  body.tr-page .tr.tr6 { padding-top: 22px; }
  body.tr-page .tr6-cards { margin-top: 22px; }
  body.tr-page .tr6-client { margin-top: 20px; }
  body.tr-page .p3-band { margin-top: 48px; }
}
