
:root {
  --ttac-accent: #059669;
  --ttac-dark: #0b2545;
}
/* Non-overlapping Left Launcher Pill */
#tta-conv-launcher {
  position: fixed;
  left: 14px;
  bottom: 124px;
  z-index: 99982;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--ttac-dark) 0%, var(--ttac-accent) 100%);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 9px 14px 9px 12px;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(15,23,42,.28);
  transition: transform .18s ease, box-shadow .18s ease;
  line-height: 1.2;
}
#tta-conv-launcher:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(15,23,42,.36); }
#tta-conv-launcher .ttac-dot {
  width: 9px; height: 9px; border-radius: 50%; background: #fde047;
  box-shadow: 0 0 0 4px rgba(253,224,71,.28); flex-shrink: 0;
}
#tta-conv-launcher .ttac-min-x {
  margin-left: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; border: none;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900; cursor: pointer; padding: 0;
}
#tta-conv-launcher.ttac-mini { padding: 10px; border-radius: 50%; }
#tta-conv-launcher.ttac-mini .ttac-lbl, #tta-conv-launcher.ttac-mini .ttac-min-x { display: none; }
@media (max-width: 640px) {
  #tta-conv-launcher { left: 10px; bottom: 118px; font-size: 12px; padding: 8px 11px; }
}

/* Smart CTA Box (Auto-injected under Calculators & Key Pages) */
.tta-smart-cta-box {
  margin: 22px 0;
  background: linear-gradient(135deg, #0f172a 0%, var(--ttac-dark) 58%, var(--ttac-accent) 100%);
  color: #fff;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 14px 34px rgba(15,23,42,.18);
  border: 1px solid rgba(255,255,255,.16);
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
}
.tta-smart-cta-kicker {
  display: inline-block;
  background: rgba(254,240,138,.18);
  color: #fef08a;
  border: 1px solid rgba(254,240,138,.36);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.tta-smart-cta-box h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 900;
  color: #fff !important;
  line-height: 1.3;
}
.tta-smart-cta-box p {
  margin: 0 0 14px;
  font-size: 14px;
  color: rgba(255,255,255,.92) !important;
  line-height: 1.5;
}
.tta-smart-cta-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ttac-btn-main, .ttac-btn-sec, .ttac-btn-parent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  font-weight: 800;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform .14s ease, box-shadow .14s ease;
}
.ttac-btn-main { background: #fbbf24; color: #0f172a !important; box-shadow: 0 6px 16px rgba(251,191,36,.32); }
.ttac-btn-sec { background: #10b981; color: #fff !important; }
.ttac-btn-parent { background: rgba(255,255,255,.14); color: #fff !important; border: 1px solid rgba(255,255,255,.32); }
.ttac-btn-main:hover, .ttac-btn-sec:hover, .ttac-btn-parent:hover { transform: translateY(-1px); }

/* Modal Overlay & Card */
#tta-conv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.66);
  backdrop-filter: blur(4px);
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
}
#tta-conv-overlay.open { display: flex; }
.ttac-modal {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15,23,42,.38);
  color: #0f172a;
  position: relative;
}
.ttac-m-head {
  background: linear-gradient(135deg, var(--ttac-dark) 0%, var(--ttac-accent) 100%);
  color: #fff;
  padding: 16px 20px;
  position: sticky;
  top: 0;
  z-index: 5;
}
.ttac-m-head h3 { margin: 0; font-size: 17px; font-weight: 900; color: #fff !important; padding-right: 32px; }
.ttac-m-head p { margin: 3px 0 0; font-size: 12.5px; color: rgba(255,255,255,.88) !important; }
.ttac-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; border: none;
  font-size: 18px; font-weight: 800; cursor: pointer;
}
.ttac-m-body { padding: 18px 20px 20px; }
.ttac-progress { display: flex; gap: 6px; margin-bottom: 14px; }
.ttac-progress span { flex: 1; height: 5px; border-radius: 99px; background: #e2e8f0; }
.ttac-progress span.on { background: var(--ttac-accent); }
.ttac-step-title { font-size: 14.5px; font-weight: 800; color: #0f172a; margin: 0 0 10px; }
.ttac-opt-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ttac-opt {
  text-align: left;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 11px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .14s ease;
}
.ttac-opt small { display: block; font-size: 11.5px; font-weight: 500; color: #475569; margin-top: 2px; }
.ttac-opt:hover, .ttac-opt.sel {
  background: #ecfdf5;
  border-color: var(--ttac-accent);
  box-shadow: 0 4px 12px rgba(5,150,105,.12);
}
.ttac-field { margin-bottom: 10px; }
.ttac-field label { display: block; font-size: 12px; font-weight: 800; color: #334155; margin-bottom: 4px; }
.ttac-field input, .ttac-field select {
  width: 100%; padding: 10px 12px; border: 1.5px solid #cbd5e1; border-radius: 10px;
  font-size: 14px; font-family: inherit; color: #0f172a; background: #fff;
}
.ttac-field input:focus, .ttac-field select:focus { outline: none; border-color: var(--ttac-accent); }
.ttac-nav-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; }
.ttac-back { background: #f1f5f9; color: #334155; border: none; border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 13px; cursor: pointer; }
.ttac-submit {
  flex: 1; background: linear-gradient(135deg, var(--ttac-dark) 0%, var(--ttac-accent) 100%);
  color: #fff; border: none; border-radius: 10px; padding: 12px 16px;
  font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
}
.ttac-err { color: #dc2626; font-size: 12.5px; font-weight: 700; margin-top: 6px; min-height: 18px; }

/* Result Screen */
.ttac-res-box { background: #f8fafc; border: 1.5px solid #cbd5e1; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.ttac-res-box h4 { margin: 0 0 6px; font-size: 13.5px; font-weight: 900; color: var(--ttac-dark); }
.ttac-res-box ul { margin: 0; padding-left: 18px; font-size: 13px; color: #1e293b; line-height: 1.55; }
.ttac-price-highlight {
  background: #ecfdf5; border: 1.5px solid #10b981; border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.ttac-price-highlight strong { color: #065f46; font-size: 14.5px; display: block; margin-bottom: 3px; }
.ttac-price-highlight p { margin: 0; font-size: 12.5px; color: #0f172a; line-height: 1.45; }
.ttac-res-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ttac-res-actions a, .ttac-res-actions button { width: 100%; text-align: center; }

/* Inline Card for Shortcode / Landing Pages */
.tta-conv-inline-card {
  margin: 24px 0;
  border: 2px solid var(--ttac-accent);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
  overflow: hidden;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
}
#tta-conv-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 12px;
  font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-size: 13px; font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,.3); z-index: 2147483640;
  opacity: 0; pointer-events: none; transition: all .2s;
}
#tta-conv-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
