/* ═══════════════════════════════════════════════════════════════════════════
   Pneus e Rodas JK — Lead Tracker CSS
   Identidade: Preto #1A1A1A | Vermelho #D72B2B | Prata #C0C0C0
   Fontes: Bebas Neue (títulos) | Montserrat (corpo)
   ═══════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Montserrat:wght@400;500;600;700;800&display=swap');

/* ─── Reset & Tokens ──────────────────────────────────────────────────────── */
#jk-whatsapp-btn,
#jk-modal-backdrop,
#jk-modal-backdrop * {
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
}

/* ─── Botão Flutuante WhatsApp ────────────────────────────────────────────── */
#jk-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: jk-pulse 2.5s infinite;
}
#jk-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  animation: none;
}
#jk-whatsapp-btn svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: white;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.jk-whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #1A1A1A;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  font-family: 'Montserrat', sans-serif;
}
.jk-whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: #1A1A1A;
}
#jk-whatsapp-btn:hover .jk-whatsapp-tooltip { opacity: 1; }

@keyframes jk-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.75), 0 0 0 10px rgba(37,211,102,0.12); }
}

/* ─── Backdrop ────────────────────────────────────────────────────────────── */
#jk-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  backdrop-filter: blur(3px);
}
#jk-modal-backdrop.jk-open {
  opacity: 1;
  pointer-events: all;
}

/* ─── Modal ───────────────────────────────────────────────────────────────── */
.jk-modal {
  background: #1A1A1A;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(215,43,43,0.3);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  scrollbar-width: thin;
  scrollbar-color: #D72B2B #2C2C2C;
}
#jk-modal-backdrop.jk-open .jk-modal {
  transform: translateY(0) scale(1);
}
.jk-modal::-webkit-scrollbar { width: 4px; }
.jk-modal::-webkit-scrollbar-track { background: #2C2C2C; }
.jk-modal::-webkit-scrollbar-thumb { background: #D72B2B; border-radius: 4px; }

/* ─── Header do Modal ─────────────────────────────────────────────────────── */
.jk-modal-header {
  background: linear-gradient(135deg, #1A1A1A 0%, #2C2C2C 50%, #1a0000 100%);
  padding: 20px 20px 16px;
  position: relative;
  border-bottom: 2px solid #D72B2B;
}
.jk-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.jk-close-btn:hover { background: rgba(215,43,43,0.3); }
.jk-close-btn svg {
  width: 16px;
  height: 16px;
  stroke: #C0C0C0;
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}
.jk-modal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.jk-modal-brand-icon {
  width: 44px;
  height: 44px;
  background: #D72B2B;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jk-modal-brand-icon svg {
  width: 22px;
  height: 22px;
  fill: white;
  stroke: none;
}
.jk-modal-brand-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  color: #fff;
  line-height: 1;
}
.jk-modal-brand-sub {
  font-size: 11px;
  color: #D72B2B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.jk-modal-subtitle {
  font-size: 13px;
  color: #C0C0C0;
  margin: 0;
}

/* ─── Progress ────────────────────────────────────────────────────────────── */
.jk-progress-section {
  background: #242424;
  padding: 16px 20px 12px;
  border-bottom: 1px solid #333;
}
.jk-steps-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 10px;
  position: relative;
}
.jk-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  position: relative;
}
.jk-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 60%;
  width: 80%;
  height: 2px;
  background: #444;
  transition: background 0.4s;
}
.jk-step-done.jk-step-item:not(:last-child)::after { background: #D72B2B; }
.jk-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #333;
  border: 2px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #888;
  transition: all 0.3s;
  z-index: 1;
}
.jk-step-active .jk-step-circle {
  background: #D72B2B;
  border-color: #D72B2B;
  color: white;
  box-shadow: 0 0 0 4px rgba(215,43,43,0.2);
}
.jk-step-done .jk-step-circle {
  background: #b01f1f;
  border-color: #b01f1f;
  color: white;
}
.jk-step-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  transition: color 0.3s;
}
.jk-step-active .jk-step-label { color: #D72B2B; }
.jk-step-done .jk-step-label { color: #C0C0C0; }

.jk-progress-bar-track {
  height: 4px;
  background: #333;
  border-radius: 2px;
  overflow: hidden;
}
.jk-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #D72B2B, #ff4444);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ─── Form Body ───────────────────────────────────────────────────────────── */
.jk-form-body {
  padding: 20px;
}
.jk-form-step { display: none; }
.jk-step-visible { display: block; }

.jk-step-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 1px;
  color: #fff;
  margin: 0 0 16px;
}
.jk-step-title span { color: #D72B2B; }

/* ─── Fields ──────────────────────────────────────────────────────────────── */
.jk-field {
  margin-bottom: 14px;
}
.jk-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #C0C0C0;
  margin-bottom: 6px;
}
.jk-field input,
.jk-field select {
  width: 100%;
  padding: 11px 14px;
  background: #2C2C2C;
  border: 1.5px solid #444;
  border-radius: 10px;
  font-size: 14px;
  color: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: 'Montserrat', sans-serif;
}
.jk-field input::placeholder { color: #666; }
.jk-field input:focus,
.jk-field select:focus {
  border-color: #D72B2B;
  box-shadow: 0 0 0 3px rgba(215,43,43,0.15);
}
.jk-field input.jk-error { border-color: #ff4444; }
.jk-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.jk-field select option { background: #2C2C2C; color: #fff; }

.jk-field-error {
  font-size: 11px;
  color: #ff6b6b;
  margin-top: 4px;
  display: none;
}
.jk-field-error.jk-visible { display: block; }

/* ─── Service Cards ───────────────────────────────────────────────────────── */
.jk-service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 420px) { .jk-service-grid { grid-template-columns: 1fr; } }

.jk-service-card {
  background: #2C2C2C;
  border: 2px solid #444;
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.jk-service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 100%;
  background: #D72B2B;
  transform: scaleY(0);
  transition: transform 0.2s;
}
.jk-service-card:hover {
  border-color: #D72B2B;
  background: #333;
}
.jk-service-card:hover::before { transform: scaleY(1); }
.jk-service-card.jk-selected {
  border-color: #D72B2B;
  background: rgba(215,43,43,0.1);
  box-shadow: 0 0 0 1px #D72B2B;
}
.jk-service-card.jk-selected::before { transform: scaleY(1); }
.jk-service-icon { font-size: 22px; line-height: 1; }
.jk-service-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.jk-service-desc {
  font-size: 10px;
  color: #888;
  line-height: 1.3;
}
.jk-service-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #D72B2B;
  display: none;
  align-items: center;
  justify-content: center;
}
.jk-service-check svg {
  width: 11px;
  height: 11px;
  stroke: white;
  stroke-width: 3;
  fill: none;
}
.jk-service-card.jk-selected .jk-service-check { display: flex; }

/* ─── Resumo ──────────────────────────────────────────────────────────────── */
.jk-resumo {
  background: #242424;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
}
.jk-resumo-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: #D72B2B;
  margin: 0 0 10px;
}
.jk-resumo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.jk-resumo-label { color: #888; flex-shrink: 0; min-width: 80px; }
.jk-resumo-value { color: #E8E8E8; font-weight: 600; }
.jk-resumo-value.jk-highlight { color: #D72B2B; font-weight: 700; }

/* ─── Botões ──────────────────────────────────────────────────────────────── */
.jk-btn-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.jk-btn {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.jk-btn-secondary {
  background: #2C2C2C;
  color: #C0C0C0;
  border: 1.5px solid #444;
  flex: 0 0 auto;
  padding: 13px 18px;
}
.jk-btn-secondary:hover { background: #333; border-color: #666; }
.jk-btn-primary {
  background: linear-gradient(135deg, #D72B2B, #b01f1f);
  color: white;
  box-shadow: 0 4px 14px rgba(215,43,43,0.35);
}
.jk-btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(215,43,43,0.45); }
.jk-btn-success {
  background: linear-gradient(135deg, #25D366, #1da851);
  color: white;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.jk-btn-success:hover { opacity: 0.9; transform: translateY(-1px); }
.jk-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ─── Spinner ─────────────────────────────────────────────────────────────── */
.jk-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: jk-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes jk-spin { to { transform: rotate(360deg); } }

/* ─── Error State ─────────────────────────────────────────────────────────── */
.jk-error-state {
  display: none;
  background: rgba(215,43,43,0.1);
  border: 1px solid rgba(215,43,43,0.3);
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
  text-align: center;
}
.jk-error-state.jk-visible { display: block; }
.jk-error-msg { font-size: 13px; color: #ff6b6b; margin-bottom: 10px; }
.jk-retry-btn {
  padding: 8px 18px;
  background: #D72B2B;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

/* ─── Sucesso ─────────────────────────────────────────────────────────────── */
.jk-success-state {
  padding: 40px 20px;
  text-align: center;
}
.jk-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366, #1da851);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}
.jk-success-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
  stroke-width: 3;
  fill: none;
}
.jk-success-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 26px;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 8px;
}
.jk-success-text { font-size: 13px; color: #C0C0C0; margin-bottom: 6px; }
.jk-success-wpp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 20px;
  background: rgba(37,211,102,0.15);
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #25D366;
}

/* ─── Urgência ────────────────────────────────────────────────────────────── */
.jk-urgency-bar {
  background: #D72B2B;
  padding: 8px 20px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── Responsivo ──────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .jk-modal { border-radius: 12px 12px 0 0; max-height: 96vh; }
  #jk-modal-backdrop { align-items: flex-end; padding: 0; }
  .jk-btn-row { flex-direction: column; }
  .jk-btn-secondary { flex: 1; }
}
