/* ============================================
   AC ADVISOR WIDGET STYLES
   ============================================ */

/* Floating Trigger */
.advisor-trigger {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 800;
  background: linear-gradient(135deg, #0066CC, #00C5E0);
  color: white;
  border-radius: 50px;
  padding: 12px 20px 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 102, 204, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: advisor-bounce 3s ease-in-out infinite;
}
@keyframes advisor-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.advisor-trigger:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 102, 204, 0.5);
  animation-play-state: paused;
}
.advisor-trigger.hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }
.advisor-trigger-icon { font-size: 22px; }
.advisor-trigger-text { line-height: 1.2; }
.advisor-trigger-text strong { display: block; font-size: 13px; font-weight: 700; }
.advisor-trigger-text span { display: block; font-size: 11px; opacity: 0.85; }

/* Overlay */
.advisor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.advisor-overlay.active { opacity: 1; pointer-events: all; }

/* Panel */
.advisor-panel {
  position: fixed;
  right: -480px;
  top: 0;
  bottom: 0;
  width: 440px;
  max-width: 100vw;
  background: white;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 48px rgba(10, 15, 30, 0.2);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.advisor-panel.open { right: 0; }

/* Header */
.advisor-header {
  background: linear-gradient(135deg, #0A0F1E, #1E2640);
  color: white;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.advisor-header-icon { font-size: 36px; }
.advisor-header-text { flex: 1; }
.advisor-header-text h3 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
}
.advisor-header-text p { font-size: 13px; color: rgba(255,255,255,0.6); }
.advisor-close {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.advisor-close:hover { background: rgba(255,255,255,0.2); }

/* Body */
.advisor-body { flex: 1; overflow-y: auto; padding: 24px; }
.advisor-body::-webkit-scrollbar { width: 4px; }
.advisor-body::-webkit-scrollbar-track { background: #f1f5f9; }
.advisor-body::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 2px; }

/* Steps */
.advisor-step { display: none; }
.advisor-step.active { display: block; animation: step-in 0.3s ease; }
@keyframes step-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-header { margin-bottom: 20px; }
.step-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #0066CC;
  background: #E8F2FF;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.step-header h4 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0A0F1E;
  margin-bottom: 6px;
}
.step-header p { font-size: 13px; color: #8892AA; }

/* Options */
.step-options { display: flex; flex-direction: column; gap: 10px; }
.step-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F7F9FF;
  border: 2px solid #E2E8F4;
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1A2040;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  font-family: 'DM Sans', sans-serif;
}
.step-opt span {
  font-size: 12px;
  font-weight: 400;
  color: #8892AA;
}
.step-opt:hover {
  border-color: #0066CC;
  background: #E8F2FF;
  color: #0066CC;
}
.step-opt.selected {
  border-color: #0066CC;
  background: #0066CC;
  color: white;
}
.step-opt.selected span { color: rgba(255,255,255,0.75); }

.city-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.direction-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.direction-options .step-opt {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  gap: 6px;
}
.dir-compass { font-size: 20px; }
.direction-options .step-opt strong { display: block; font-size: 14px; font-weight: 700; }
.direction-options .step-opt span { font-size: 11px; }
.people-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.people-options .step-opt { justify-content: center; }

/* Sub questions (step 6) */
.step-grid-opts { display: flex; flex-direction: column; gap: 24px; }
.sub-question label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #4A5578;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.small-opts { flex-direction: row; gap: 8px; }
.small-opts .step-opt { padding: 10px 14px; font-size: 13px; }

/* Step input */
.step-input-group { margin-top: 14px; }
.step-input-group label { font-size: 12px; color: #8892AA; margin-bottom: 6px; display: block; }
.step-input-group input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #E2E8F4;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s;
}
.step-input-group input:focus { border-color: #0066CC; }

/* Footer */
.advisor-footer {
  padding: 16px 24px;
  border-top: 1px solid #E2E8F4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  background: white;
}
.advisor-prev-btn, .advisor-next-btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.advisor-prev-btn {
  background: #F7F9FF;
  color: #4A5578;
  border: 1px solid #E2E8F4;
}
.advisor-prev-btn:hover { background: #E2E8F4; }
.advisor-next-btn { background: #0066CC; color: white; }
.advisor-next-btn:hover:not(:disabled) { background: #004FA3; }
.advisor-next-btn:disabled { background: #C8D4E8; color: #8892AA; cursor: not-allowed; }

.step-dots { display: flex; gap: 6px; align-items: center; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #E2E8F4;
  transition: all 0.2s;
}
.dot.active { background: #0066CC; transform: scale(1.3); }
.dot.done { background: #00C5E0; }

/* Loading */
.advisor-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 20px;
}
.advisor-loading.active { display: flex; }
.loading-spinner {
  width: 48px; height: 48px;
  border: 4px solid #E2E8F4;
  border-top-color: #0066CC;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.advisor-loading p { font-size: 15px; color: #8892AA; font-weight: 500; }

/* Results */
.advisor-results { display: none; }
.advisor-results.active { display: block; }

.results-header { margin-bottom: 20px; }
.results-header h3 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0A0F1E;
  margin-bottom: 4px;
}
.results-header p { font-size: 13px; color: #8892AA; }
.results-btu {
  background: linear-gradient(135deg, #0066CC, #00C5E0);
  color: white;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.results-btu-icon { font-size: 24px; }
.results-btu-text { font-size: 13px; }
.results-btu-val { font-family: 'Syne', sans-serif; font-size: 18px; font-weight: 800; }

.result-product-card {
  border: 1px solid #E2E8F4;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
}
.result-product-card:hover { border-color: #0066CC; box-shadow: 0 4px 16px rgba(0,102,204,0.1); }
.rpc-top { display: flex; gap: 14px; margin-bottom: 10px; align-items: flex-start; }
.rpc-img {
  width: 60px; height: 60px;
  background: #F7F9FF;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  border: 1px solid #E2E8F4;
}
.rpc-info { flex: 1; }
.rpc-brand { font-size: 11px; font-weight: 700; color: #0066CC; text-transform: uppercase; letter-spacing: 0.05em; }
.rpc-name { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; color: #0A0F1E; line-height: 1.3; }
.rpc-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rpc-spec {
  font-size: 11px;
  background: #F7F9FF;
  border: 1px solid #E2E8F4;
  color: #4A5578;
  padding: 2px 8px;
  border-radius: 10px;
}
.rpc-bottom { display: flex; align-items: center; justify-content: space-between; }
.rpc-price { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: #0066CC; }
.rpc-old-price { font-size: 12px; color: #8892AA; text-decoration: line-through; }
.rpc-actions { display: flex; gap: 8px; }
.rpc-btn {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.rpc-btn-primary { background: #0066CC; color: white; }
.rpc-btn-primary:hover { background: #004FA3; color: white; }
.rpc-btn-outline { background: transparent; border: 1px solid #E2E8F4; color: #4A5578; }
.rpc-btn-outline:hover { border-color: #0066CC; color: #0066CC; }

.results-restart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 16px;
  padding: 11px;
  border: 1px dashed #E2E8F4;
  border-radius: 10px;
  font-size: 13px;
  color: #8892AA;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
  background: transparent;
}
.results-restart-btn:hover { border-color: #0066CC; color: #0066CC; background: #E8F2FF; }

@media (max-width: 480px) {
  .advisor-panel { width: 100vw; }
  .city-options, .direction-options, .people-options { grid-template-columns: 1fr; }
}
