/* car-insurance.css — Service page (extends shared.css) */
:root { --cat-color: hsl(210, 90%, 52%); }

/* Plan card accent uses cat-color (overrides shared default) */
.plan-card::before { background: var(--cat-color); }
.plan-price { color: var(--cat-color); }
.plan-checkbox-wrap input { accent-color: var(--cat-color); }
.compare-bar { border-top-color: var(--cat-color); }
.compare-bar-info span { color: var(--cat-color); }

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(2,8,23,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal.active { display: flex; }
.modal-content {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 20px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  animation: modalIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: none;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.2);
}
.modal-content::-webkit-scrollbar { display: none; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  padding: 1.35rem 1.5rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--card-bg, #fff);
  border-radius: 20px 20px 0 0;
  z-index: 1;
}
.modal-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  color: var(--foreground, #0f172a);
  letter-spacing: -0.01em;
}
.modal-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  color: #64748b;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.modal-close:hover { background: #fee2e2; color: #ef4444; }
.modal-body { padding: 1.5rem; }

@media (max-width: 480px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal-content { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .modal-header { border-radius: 20px 20px 0 0; }
}
