/* Turbo Garage — Assistente K27 v1.0.0 */
.tgk27-trigger,
.tgk27-overlay {
  --tgk-blue: #3483fa;
  --tgk-blue-bg: #eaf2fe;
  --tgk-red: #E30613;
  --tgk-ink: #1b1b1b;
  --tgk-mute: #6b6b6b;
  --tgk-line: #e3e3e3;
  --tgk-r: 10px;
}

/* Gatilho acima das variações */
.tgk27-trigger {
  display: flex; align-items: center; gap: 12px;
  width: 100%; margin: 4px 0 14px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--tgk-blue); border-radius: var(--tgk-r);
  color: var(--tgk-ink); text-align: left; cursor: pointer; font: inherit; line-height: 1.3;
  text-transform: none; letter-spacing: 0; box-shadow: none; min-height: 0;
  transition: background .15s;
}
.tgk27-trigger:hover { background: var(--tgk-blue-bg); }
.tgk27-trigger:focus-visible { outline: 2px solid var(--tgk-blue); outline-offset: 2px; }
.tgk27-ico {
  flex: 0 0 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--tgk-blue-bg); color: var(--tgk-blue);
}
.tgk27-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.tgk27-tx b { font-size: 14px; font-weight: 700; }
.tgk27-tx span { font-size: 12.5px; color: var(--tgk-mute); }
.tgk27-go { font-size: 26px; color: var(--tgk-blue); line-height: 1; }

.tgk27-flash { animation: tgk27flash 1.6s ease; border-radius: 8px; }
@keyframes tgk27flash { 0%,100% { box-shadow: 0 0 0 0 rgba(52,131,250,0); } 30% { box-shadow: 0 0 0 4px rgba(52,131,250,.45); } }

/* Modal */
html.tgk27-lock { overflow: hidden; }
.tgk27-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(0,0,0,.55); display: flex; align-items: center; justify-content: center; padding: 16px;
}
.tgk27-overlay[hidden] { display: none; }
.tgk27-modal {
  background: #fff; color: var(--tgk-ink); width: 100%; max-width: 620px; max-height: 92vh;
  border-radius: 14px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); font-size: 14px;
}
.tgk27-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 16px 20px 12px; border-bottom: 1px solid var(--tgk-line);
}
.tgk27-head h2 { margin: 2px 0 0; font-size: 19px; line-height: 1.25; font-weight: 700; color: var(--tgk-ink); }
.tgk27-kicker { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tgk-red); }
.tgk27-x {
  background: none; border: 0; font-size: 28px; line-height: 1; color: var(--tgk-mute);
  cursor: pointer; padding: 0 4px; min-height: 0; box-shadow: none;
}
.tgk27-body { overflow-y: auto; padding: 4px 20px 20px; -webkit-overflow-scrolling: touch; }

/* Perguntas */
.tgk27-q { padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.tgk27-q.is-missing .tgk27-qt { color: var(--tgk-red); }
.tgk27-q.is-missing .tgk27-qt::after { content: ' — escolha uma opção'; font-weight: 400; font-size: 12px; }
.tgk27-qt { font-weight: 600; margin-bottom: 9px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tgk27-potv { color: var(--tgk-blue); font-size: 18px; }
.tgk27-muted { color: var(--tgk-mute); font-weight: 400; font-size: 12px; }
.tgk27-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tgk27-chip {
  background: #fff; border: 1px solid #cfcfcf; border-radius: 8px; padding: 8px 12px; min-height: 40px;
  font: inherit; font-size: 13.5px; color: var(--tgk-ink); cursor: pointer; text-transform: none; letter-spacing: 0;
  box-shadow: none; line-height: 1.2;
}
.tgk27-chip:hover { border-color: var(--tgk-blue); }
.tgk27-chip.is-on { border-color: var(--tgk-blue); background: var(--tgk-blue-bg); box-shadow: inset 0 0 0 1px var(--tgk-blue); color: #1a5fc7; font-weight: 600; }
.tgk27-range { width: 100%; accent-color: var(--tgk-blue); }
.tgk27-scale { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--tgk-mute); margin-top: 2px; }
.tgk27-inline { display: flex; gap: 14px; flex-wrap: wrap; }
.tgk27-inline label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--tgk-mute); }
.tgk27-inline select, .tgk27-inline input { height: 40px; min-width: 120px; padding: 0 10px; border: 1px solid #cfcfcf; border-radius: 8px; font: inherit; color: var(--tgk-ink); background: #fff; }

.tgk27-cta {
  display: block; width: 100%; margin-top: 18px; padding: 14px; min-height: 48px;
  background: var(--tgk-blue); color: #fff; border: 0; border-radius: 8px;
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-transform: none; letter-spacing: 0;
}
.tgk27-cta:hover { background: #2968c8; color: #fff; }

/* Resultado */
.tgk27-hero { margin-top: 14px; padding: 16px; border-radius: 12px; background: #111; color: #fff; }
.tgk27-hero .tgk27-kicker { color: #ff4d55; }
.tgk27-spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 12px; }
.tgk27-cell { background: rgba(255,255,255,.07); border-radius: 9px; padding: 10px; display: flex; flex-direction: column; }
.tgk27-cell small { font-size: 11px; color: #bbb; text-transform: uppercase; letter-spacing: .05em; }
.tgk27-cell b { font-size: 24px; line-height: 1.15; color: #fff; }
.tgk27-cell span { font-size: 12px; color: #ccc; }
.tgk27-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tgk27-meta small { display: block; font-size: 11px; color: #bbb; }
.tgk27-meta b { font-size: 15px; color: #fff; margin-right: 8px; }
.tgk27-meta em { display: block; font-style: normal; font-size: 12px; color: #ccc; margin-top: 2px; }
.tgk27-bar { display: inline-flex; gap: 3px; vertical-align: middle; }
.tgk27-bar i { width: 16px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); }
.tgk27-bar i.on { background: #ff4d55; }

.tgk27-sec { margin-top: 16px; }
.tgk27-sec h3 { font-size: 14px; margin: 0 0 6px; font-weight: 700; color: var(--tgk-ink); }
.tgk27-sec ul { margin: 0; padding-left: 18px; }
.tgk27-sec li, .tgk27-sec p { margin: 0 0 6px; line-height: 1.45; color: #333; }
.tgk27-warn { background: #fff8e6; border: 1px solid #f3d27a; border-radius: 10px; padding: 12px 14px; }
.tgk27-legal { margin-top: 16px; padding: 12px 14px; border-left: 4px solid var(--tgk-red); background: #fafafa; border-radius: 8px; font-size: 12.5px; line-height: 1.5; color: #333; }
.tgk27-ack { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px 13px; border: 1px solid #f3d27a; background: #fff8e6; border-radius: 10px; font-size: 13px; line-height: 1.45; color: #4a3b00; cursor: pointer; }
.tgk27-ack input { width: 18px; height: 18px; margin: 1px 0 0; flex: 0 0 18px; accent-color: var(--tgk-blue); }
.tgk27-ack.is-missing { border-color: var(--tgk-red); box-shadow: 0 0 0 3px rgba(227,6,19,.12); }
.tgk27-alt { margin-top: 14px; font-size: 13px; color: var(--tgk-mute); }
.tgk27-disc { margin: 14px 0 0; font-size: 12px; color: var(--tgk-mute); line-height: 1.4; }
.tgk27-actions { display: flex; flex-direction: column; gap: 10px; }
.tgk27-wa {
  display: block; text-align: center; padding: 13px; border-radius: 8px; border: 1px solid #25d366;
  color: #128c4b !important; font-weight: 700; text-decoration: none !important;
}
.tgk27-wa:hover { background: #effcf4; }
.tgk27-back { background: none; border: 0; color: var(--tgk-blue); font: inherit; cursor: pointer; padding: 6px; min-height: 0; box-shadow: none; text-transform: none; }

@media (max-width: 600px) {
  .tgk27-overlay { padding: 0; align-items: flex-end; }
  .tgk27-modal { max-height: 94vh; border-radius: 14px 14px 0 0; }
  .tgk27-head h2 { font-size: 17px; }
  .tgk27-cell b { font-size: 20px; }
  .tgk27-meta { grid-template-columns: 1fr; }
}
