/* assets/css/konsultasi.css — Tanya Mekanik (konsep "Smart Assistant"). */
.tm-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin: 12px 0 40px; align-items: start; }
.tm-chat { display: flex; flex-direction: column; border: 1px solid #e5e7eb; border-radius: 16px; background: #fff; overflow: hidden; min-height: 560px; }
.tm-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #0b0b0e; color: #fff; }
.tm-head h1 { margin: 0; font-size: 18px; }
.tm-head small { color: #d1d5db; font-size: 12.5px; }
.tm-avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--red, #dc2626); }
.tm-avatar svg { width: 22px; height: 22px; }
.tm-new { margin-left: auto; padding: 6px 12px; border: 1px solid #4b5563; border-radius: 999px; background: none; color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.tm-motor { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 18px; background: #fff5f5; border-bottom: 1px solid #fde2e4; font-size: 13px; }
.tm-link { border: 0; background: none; color: var(--red, #dc2626); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.tm-motor-pick { display: flex; gap: 8px; padding: 10px 18px; border-bottom: 1px solid #f3f4f6; }
.tm-motor-pick input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; font-size: 14px; }
.tm-log { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 18px; overflow-y: auto; max-height: 62vh; background: #f9fafb; }
.tm-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.55; background: #fff; border: 1px solid #e5e7eb; }
.tm-msg p { margin: 0; white-space: pre-line; }
.tm-msg time { display: block; margin-top: 4px; font-size: 11px; color: #9ca3af; text-align: right; }
.tm-msg.is-user { align-self: flex-end; background: var(--wine, #7f1d1d); border-color: var(--wine, #7f1d1d); color: #fff; }
.tm-msg.is-user time { color: #fecaca; }
.tm-msg.is-cs { border-color: #bbf7d0; background: #f0fdf4; }
.tm-who { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; }
.tm-examples { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tm-examples .rs-chip { font-size: 12px; font-weight: 500; text-align: left; }
.tm-rec { display: grid; gap: 8px; margin-top: 10px; }
.tm-rec-h { font-size: 11.5px; font-weight: 700; color: #6b7280; }
.tm-rec-pkg { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px; border: 1px solid #fde2e4; border-radius: 10px; background: #fff5f5; color: inherit; text-decoration: none; }
.tm-rec-pkg span { color: var(--red, #dc2626); font-weight: 700; }
.tm-rec-pkg s { color: #9ca3af; font-weight: 400; font-size: 12px; }
.tm-rec-pkg em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--red, #dc2626); font-weight: 700; }
.tm-rec-pkg:hover { border-color: var(--red, #dc2626); }
.tm-rec-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.tm-rec-parts .rs-chip { text-decoration: none; font-size: 12px; }
.tm-rec-diag { justify-self: start; min-height: 38px; padding: 8px 14px; font-size: 13px; }
.tm-contact { padding: 12px 18px; border-top: 1px solid #f3f4f6; background: #fffbeb; font-size: 13px; }
.tm-contact p { margin: 0 0 8px; }
.tm-contact-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.tm-contact input { padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; font-size: 14px; min-width: 0; }
.tm-err { color: #b91c1c; margin: 8px 0 0 !important; }
.tm-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #e5e7eb; background: #fff; }
.tm-input textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 22px; font: inherit; font-size: 14px; }
.tm-input button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--red, #dc2626); color: #fff; cursor: pointer; }
.tm-input button svg { width: 20px; height: 20px; }
.tm-input button:disabled { opacity: .6; }
.tm-note { margin: 0; padding: 0 18px 14px; font-size: 12px; color: #6b7280; }
.tm-note a { color: #15803d; font-weight: 700; }
.tm-side { display: grid; gap: 12px; }
.tm-side .co-card { padding: 18px; }
.tm-side .rs-h3 { margin-top: 0; }
.tm-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; }
.tm-steps li { display: flex; gap: 10px; align-items: center; }
.tm-steps b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red, #dc2626); color: #fff; font-size: 12px; }

/* Kotak Tanya Mekanik di halaman Layanan Servis */
.tm-box { display: flex; align-items: center; gap: 16px; margin: 24px 0; padding: 18px 20px; border: 1px solid #e5e7eb; border-radius: 14px; background: #fff; }
.tm-box h2 { margin: 0 0 2px; font-size: 18px; }
.tm-box p { margin: 0; color: #6b7280; font-size: 13.5px; }
.tm-box form { display: flex; gap: 8px; flex: 1; min-width: 260px; }
.tm-box input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 22px; font: inherit; font-size: 14px; }
.tm-box button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--red, #dc2626); color: #fff; cursor: pointer; display: grid; place-items: center; }
.tm-box button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }

@media (max-width: 900px) {
  .tm-layout { grid-template-columns: 1fr; }
  .tm-box { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
  .tm-chat { min-height: 70vh; border-radius: 12px; }
  .tm-msg { max-width: 92%; }
  .tm-contact-row { grid-template-columns: 1fr; }
  .tm-head small { display: none; }
}

/* Service Populer (Layanan Servis) */
.svc-popular { margin: 28px 0 0; }
.svc-pop-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.svc-pop-list li { display: grid; grid-template-columns: 36px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 16px; border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; }
.svc-pop-rank { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fef2f2; color: #b91c1c; font-weight: 800; }
.svc-pop-name small { display: block; color: #6b7280; font-size: 12px; }
.svc-pop-price b { color: #b91c1c; }
.svc-pop-price s { display: block; color: #9ca3af; font-size: 12px; }
@media (max-width: 640px) { .svc-pop-list li { grid-template-columns: 32px 1fr; } .svc-pop-price, .svc-pop-list .svc-btn { grid-column: 2; justify-self: start; } }
