/**
 * PCTechComVn — Price Calculator CSS
 * Child Theme CSS Module
 * Version: 1.0.0 (Sprint 16)
 *
 * Price/Diagnostic Calculator + AI Report Card.
 */

/* ═══════════════════════════════════════════════
   1. CALC WIDGET
   ═══════════════════════════════════════════════ */
.calc-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 24px;
  margin: 25px auto;
  max-width: 960px;
  box-shadow: var(--shadow);
}

.calc-widget-title {
  font-size: 1.3rem;
  color: var(--blue-dark);
  margin-bottom: 12px;
  text-align: center;
  font-weight: 700;
}

.calc-widget-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.calc-widget-group-title {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════
   2. CALC OPTIONS
   ═══════════════════════════════════════════════ */
.calc-device-list-horizontal {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.calc-device-list-horizontal .calc-widget-opt {
  flex: 1;
  justify-content: center;
}

.calc-widget-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calc-widget-opt {
  display: flex;
  align-items: center;
  padding: 12px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  user-select: none;
}

.calc-widget-opt:hover {
  border-color: var(--blue);
  background: rgba(11, 60, 109, 0.04);
}

.calc-widget-opt input {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  cursor: pointer;
}

.calc-widget-opt.selected {
  border-color: var(--blue);
  background: rgba(11, 60, 109, 0.06);
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   3. AI REPORT CARD
   ═══════════════════════════════════════════════ */
.calc-ai-report-card {
  background: linear-gradient(135deg, rgba(13, 74, 143, 0.03), rgba(163, 52, 250, 0.03));
  border: 1px solid rgba(13, 74, 143, 0.12);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 16px;
}

.calc-ai-report-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 0.92rem;
  margin-bottom: 10px;
}

.ai-sparkle {
  animation: pulse-glow 1.5s infinite alternate;
  display: inline-block;
}

@keyframes pulse-glow {
  0% { transform: scale(1); filter: drop-shadow(0 0 1px rgba(163, 52, 250, 0.4)); }
  100% { transform: scale(1.15); filter: drop-shadow(0 0 4px rgba(163, 52, 250, 0.8)); }
}

.calc-ai-recommendation {
  font-size: 0.85rem;
  color: var(--gray-700);
  line-height: 1.5;
  background: var(--white);
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.calc-ai-meter-item {
  font-size: 0.8rem;
}

.calc-ai-meter-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.calc-ai-meter-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
}

.calc-ai-meter-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.severity-low { color: #22c55e; }
.severity-medium { color: #f59e0b; }
.severity-high { color: #ef4444; }

/* ═══════════════════════════════════════════════
   4. RESULT CARD
   ═══════════════════════════════════════════════ */
.calc-widget-result {
  background: rgba(245, 158, 11, 0.04);
  border: 1px dashed var(--orange);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}

.calc-widget-price {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--orange);
  margin: 6px 0;
}

.calc-widget-time {
  font-size: 0.85rem;
  color: var(--gray-500);
}

.calc-guarantees {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(13, 74, 143, 0.15);
  text-align: left;
}

.calc-guarantee-item {
  font-size: 0.78rem;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ═══════════════════════════════════════════════
   5. SAFETY SHIELD BADGE
   ═══════════════════════════════════════════════ */
.safety-shield-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 168, 107, 0.12);
  border: 1px solid rgba(0, 168, 107, 0.25);
  color: var(--green);
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.2s, transform 0.2s;
}

.safety-shield-badge:hover {
  background: rgba(0, 168, 107, 0.22);
  transform: translateY(-1px);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .calc-widget-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .calc-device-list-horizontal {
    flex-direction: column;
  }
}
