/* Formulário de diagnóstico (CF7) e popup. Preto + dourado; campos claros sobre fundo escuro. */
.tn-dg__eyebrow { margin: 0 0 0.75rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #d2a833; }
.tn-dg__title { margin: 0; font-family: var(--tn-font-display, inherit); font-weight: 600; font-size: clamp(2rem, 1rem + 3.6vw, 4rem); line-height: 1.06; letter-spacing: -0.02em; color: #fff; text-wrap: balance; min-block-size: 3.2em; }
.tn-dg__title--modal { font-size: clamp(1.625rem, 1.1rem + 1.8vw, 2.4rem); min-block-size: 3.2em; }
.tn-type-caret { display: inline-block; inline-size: 0.06em; block-size: 0.9em; margin-inline-start: 0.06em; vertical-align: -0.08em; background: #d2a833; animation: tn-caret 1s steps(1) infinite; }
@keyframes tn-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tn-type-caret { animation: none; } }

/* Campos */
.tn-f { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; text-align: start; }
.tn-f__field { display: grid; gap: 0.45rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.tn-f__field .wpcf7-form-control-wrap { display: block; }
.tn-f input[type="text"], .tn-f input[type="email"], .tn-f input[type="tel"] { box-sizing: border-box; inline-size: 100%; min-block-size: 3.25rem; padding: 0.8rem 1rem; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 0; background: rgba(255, 255, 255, 0.06); color: #fff; font: inherit; font-size: 1rem; font-weight: 400; letter-spacing: 0; text-transform: none; transition: border-color 0.2s, background 0.2s; }
.tn-f input::placeholder { color: rgba(255, 255, 255, 0.58); }
.tn-f input:focus { outline: none; border-color: #d2a833; background: rgba(255, 255, 255, 0.1); }
.tn-f input:focus-visible { outline: 2px solid #d2a833; outline-offset: 2px; }
.tn-f__actions { grid-column: 1 / -1; margin-block-start: 0.5rem; }
.tn-f .wpcf7-submit { box-sizing: border-box; inline-size: 100%; min-block-size: 3.5rem; padding-inline: 2rem; border: 0; border-radius: 0; background: #d2a833; color: #0b0b0c; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background 0.2s; }
@media (hover: hover) and (pointer: fine) { .tn-f .wpcf7-submit:hover { background: #e3c36a; } }
.tn-f__legal { grid-column: 1 / -1; margin: 0; font-size: 0.75rem; line-height: 1.5; color: rgba(255, 255, 255, 0.5); }
.tn-f__legal a { color: inherit; text-decoration: underline; }
.tn-dg .wpcf7-not-valid-tip, .tn-dg-modal .wpcf7-not-valid-tip { margin-block-start: 0.35rem; font-size: 0.8125rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: #ff8a80; }
.tn-dg .wpcf7-response-output, .tn-dg-modal .wpcf7-response-output { margin: 1.25rem 0 0; padding: 0.9rem 1rem; border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; font-size: 0.9375rem; }
.tn-dg .wpcf7 form.sent .wpcf7-response-output, .tn-dg-modal .wpcf7 form.sent .wpcf7-response-output { border-color: #d2a833; color: #d2a833; }
.tn-dg .wpcf7-spinner, .tn-dg-modal .wpcf7-spinner { display: none; }
@media (max-width: 599px) { .tn-f { grid-template-columns: 1fr; } }

/* Popup */
.tn-dg-modal { position: fixed; inset: 0; z-index: calc(var(--tn-z-overlay, 200) + 20); display: grid; place-items: center; padding: 1rem; }
.tn-dg-modal[hidden] { display: none; }
.tn-dg-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tn-dg-modal__panel { position: relative; inline-size: min(100%, 40rem); max-block-size: calc(100dvh - 2rem); overflow: auto; padding: clamp(1.5rem, 4vw, 2.5rem); background: #0b0b0c; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8); outline: none; }
.tn-dg-modal__close { position: absolute; inset-block-start: 0.75rem; inset-inline-end: 0.75rem; inline-size: 2.5rem; block-size: 2.5rem; display: grid; place-items: center; border: 0; background: none; color: #fff; cursor: pointer; }
.tn-dg-modal__close svg { inline-size: 1.1rem; block-size: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tn-dg-modal__form { margin-block-start: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .tn-dg-modal:not([hidden]) .tn-dg-modal__panel { animation: tn-dg-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .tn-dg-modal:not([hidden]) .tn-dg-modal__backdrop { animation: tn-dg-fade 0.3s ease both; }
}
@keyframes tn-dg-in { from { transform: translateY(1.25rem) scale(0.98); } }
@keyframes tn-dg-fade { from { opacity: 0; } }

/* Popup claro, com a identidade Trínomo: painel branco, pílula dourada, títulos pretos, botão preto. */
.tn-dg-modal__panel { background: #fff; color: #0b0b0c; border: 0; text-align: center; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, 0.6); }
.tn-dg-modal__close { color: #0b0b0c; background: #f2f1ee; border-radius: 50%; }
@media (hover: hover) and (pointer: fine) { .tn-dg-modal__close:hover { background: #e6e4de; } }
.tn-dg-modal .tn-dg__eyebrow { display: inline-block; padding: 0.5rem 1.1rem; border-radius: 999px; background: rgba(210, 168, 51, 0.18); color: #8c6b14; margin-block-end: 1.1rem; }
.tn-dg-modal .tn-dg__title { color: #0b0b0c; min-block-size: 2.2em; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.15rem); }
.tn-dg-modal__sub { margin: 0.9rem auto 0; max-inline-size: 28rem; font-size: 0.9375rem; line-height: 1.45; color: rgba(11, 11, 12, 0.62); }
.tn-dg-modal__form { margin-block-start: 1.5rem; }
.tn-dg-modal .tn-f__field { color: rgba(11, 11, 12, 0.78); }
.tn-dg-modal .tn-f input[type="text"], .tn-dg-modal .tn-f input[type="email"], .tn-dg-modal .tn-f input[type="tel"] { background: #fff; color: #0b0b0c; border-color: #d4d2cb; }
.tn-dg-modal .tn-f input::placeholder { color: rgba(11, 11, 12, 0.38); }
.tn-dg-modal .tn-f input:focus { background: #fff; border-color: #0b0b0c; box-shadow: 0 0 0 3px rgba(210, 168, 51, 0.35); }
.tn-dg-modal .tn-f .wpcf7-submit { background: #0b0b0c; color: #fff; letter-spacing: 0.02em; }
@media (hover: hover) and (pointer: fine) { .tn-dg-modal .tn-f .wpcf7-submit:hover { background: #d2a833; color: #0b0b0c; } }
.tn-dg-modal .tn-f__legal { color: rgba(11, 11, 12, 0.66); text-align: center; }
.tn-dg-modal .wpcf7-response-output { border-color: rgba(11, 11, 12, 0.2); color: #0b0b0c; }
.tn-dg-modal .wpcf7 form.sent .wpcf7-response-output { border-color: #8c6b14; color: #8c6b14; }
.tn-dg-modal .wpcf7-not-valid-tip { color: #c0392b; }
