/* ============================================
   BLADE ELECTRIC AI — Additional Styles
   Uses brand colors: Navy #848884, Gold #F5C518
   ============================================ */

/* ── Floating Widget ────────────────────────── */
.ai-widget-trigger {
  position: fixed; bottom: 2rem; right: 2rem;
  z-index: 200;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.75rem;
}

.ai-widget-pulse {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--navy); color: white;
  padding: 0.4rem 0.9rem;
  white-space: nowrap;
  animation: floatIn 0.5s ease 2.5s both;
  box-shadow: var(--shadow);
  border-left: 3px solid var(--gold);
}

@keyframes floatIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.ai-widget-btn {
  width: 62px; height: 62px;
  background: var(--gold);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(245,197,24,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  position: relative;
}

.ai-widget-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(245,197,24,0.5);
}

.ai-widget-btn svg { width: 26px; height: 26px; stroke: var(--navy-deeper); fill: none; stroke-width: 2; }

/* ── Modal Overlay ──────────────────────────── */
.ai-modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(113,121,126,0.75);
  backdrop-filter: blur(6px);
  z-index: 300;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.ai-modal-overlay.active { display: flex; }

.ai-modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--navy);
  width: 100%; max-width: 580px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
}

.ai-modal__header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 1rem;
  background: var(--navy-deeper);
}

.ai-badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: rgba(245,197,24,0.15);
  border: 1px solid rgba(245,197,24,0.4);
  padding: 0.25rem 0.7rem;
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}

.ai-badge::before {
  content: ''; width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%;
  animation: pulse 2s infinite;
}

.ai-modal__title {
  font-family: var(--font-display); font-size: 1.2rem;
  font-weight: 700; text-transform: uppercase; color: var(--white);
}

.ai-modal__subtitle { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 0.25rem; }

.ai-modal__close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.5); padding: 0.25rem; flex-shrink: 0;
  transition: color 0.2s;
}
.ai-modal__close:hover { color: var(--white); }

.ai-modal__body { padding: 2rem; }

/* ── Step Progress ──────────────────────────── */
.step-progress { display: flex; align-items: center; margin-bottom: 2rem; }

.step-dot {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700;
  background: var(--light-gray);
  color: var(--gray); flex-shrink: 0;
  border-radius: 50%;
  transition: all 0.3s;
}

.step-dot.active { background: var(--navy); color: white; }
.step-dot.done { background: var(--gold); color: var(--navy-deeper); }

.step-line { flex: 1; height: 2px; background: var(--light-gray); transition: background 0.3s; }
.step-line.done { background: var(--gold); }

/* ── Question Panels ────────────────────────── */
.question-panel { display: none; }
.question-panel.active { display: block; }

.question-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 0.5rem;
}

.question-text {
  font-family: var(--font-display); font-size: 1.35rem;
  font-weight: 700; text-transform: uppercase;
  color: var(--navy-deeper); margin-bottom: 1.5rem; line-height: 1.2;
}

/* ── Option Grid ────────────────────────────── */
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1.5rem; }
.option-grid--single { grid-template-columns: 1fr; }

.option-btn {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 0.9rem 1.1rem;
  text-align: left; cursor: pointer;
  font-family: var(--font-body); font-size: 0.88rem; font-weight: 500;
  transition: all 0.15s ease;
  display: flex; align-items: center; gap: 0.75rem;
  border-radius: var(--radius);
}

.option-btn:hover { border-color: var(--navy); background: rgba(132,136,132,0.04); }

.option-btn.selected {
  border-color: var(--navy);
  background: rgba(132,136,132,0.07);
  color: var(--navy);
  font-weight: 600;
}

.option-btn svg { width: 18px; height: 18px; stroke: var(--navy); fill: none; stroke-width: 1.5; flex-shrink: 0; }

/* ── AI Input ───────────────────────────────── */
.ai-input {
  background: var(--off-white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 0.85rem 1rem;
  font-size: 0.95rem; font-family: var(--font-body);
  outline: none; width: 100%;
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(132,136,132,0.1); }

/* ── Summary Block ──────────────────────────── */
.ai-summary {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  padding: 1.5rem; margin-bottom: 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.ai-summary__heading {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy); margin-bottom: 1rem;
}

.ai-summary__row {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 0.5rem 0; border-bottom: 1px solid var(--border-light); gap: 1rem;
}
.ai-summary__row:last-child { border-bottom: none; }
.ai-summary__key { font-size: 0.78rem; color: var(--gray); font-weight: 500; flex-shrink: 0; }
.ai-summary__val { font-size: 0.88rem; font-weight: 600; color: var(--navy-deeper); text-align: right; }

/* ── Thinking Dots ──────────────────────────── */
.ai-thinking {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.85rem; color: var(--navy); margin: 1.5rem 0;
}

.ai-thinking__dots { display: flex; gap: 4px; }
.ai-thinking__dots span {
  width: 7px; height: 7px;
  background: var(--gold); border-radius: 50%;
  animation: dotBounce 1.2s ease infinite;
}
.ai-thinking__dots span:nth-child(2) { animation-delay: 0.2s; }
.ai-thinking__dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── AI Response ────────────────────────────── */
.ai-response {
  background: rgba(132,136,132,0.04);
  border-left: 3px solid var(--navy);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  font-size: 0.92rem; line-height: 1.75;
  color: var(--text); margin-bottom: 1.5rem;
  display: none;
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ── Modal Nav ──────────────────────────────── */
.modal-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.25rem; }
.btn--ghost-navy { background: transparent; color: var(--gray); padding-left: 0; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; cursor: pointer; border: none; text-transform: uppercase; transition: color 0.2s; }
.btn--ghost-navy:hover { color: var(--navy); }

/* ── Smart Form Hints ───────────────────────── */
.smart-form-hint {
  background: rgba(132,136,132,0.04);
  border: 1px solid rgba(132,136,132,0.15);
  border-left: 3px solid var(--navy);
  padding: 0.85rem 1rem;
  font-size: 0.82rem; color: var(--text); line-height: 1.6;
  margin-top: 0.5rem;
  display: none; border-radius: 0 var(--radius) var(--radius) 0;
}
.smart-form-hint.visible { display: block; }
.smart-form-hint strong { color: var(--navy); font-weight: 600; }

/* ── AI Feature Strip ───────────────────────── */
.ai-feature-strip {
  background: var(--navy);
  padding: 1.25rem 0;
  border-bottom: 3px solid var(--gold);
}

.ai-feature-strip .container {
  display: flex; align-items: center;
  justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}

.ai-feature-strip__item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; }
.ai-feature-strip__item svg { width: 16px; height: 16px; stroke: var(--gold); fill: none; stroke-width: 2; flex-shrink: 0; }
.ai-feature-strip__item strong { color: var(--white); }
.ai-feature-strip__item span { color: rgba(255,255,255,0.55); }

/* ── Emergency Banner (contact) ─────────────── */
.emergency-banner {
  background: var(--navy-deeper);
  padding: 1.25rem 1.75rem;
  display: flex; align-items: center; gap: 1.25rem;
  margin-bottom: 2.5rem; border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.emergency-banner__icon {
  width: 44px; height: 44px; background: rgba(245,197,24,0.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border-radius: var(--radius);
}

.emergency-banner__icon svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.emergency-banner__title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; text-transform: uppercase; color: white; margin-bottom: 0.15rem; }
.emergency-banner__desc { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.emergency-banner__desc a { color: var(--gold); font-weight: 600; }

/* ── AI Sidebar Promo ───────────────────────── */
.ai-promo-box {
  background: var(--navy-deeper);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .option-grid { grid-template-columns: 1fr; }
  .ai-feature-strip .container { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .ai-modal { max-height: 95vh; }
}
