/* ===================================================
   InsureKit — Suite-specific styles
   Core layout/utility classes live in /assets/css/kit-common.css
   =================================================== */

/* Form validation error state */
.input-error,
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.18) !important;
}

/* "Why InsureKit?" benefits grid (mirrors BizKit/StudentKit) */
.why-section { margin-top: 3rem; }
.why-section h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: 1.25rem; color: var(--text); }
.benefits-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.benefit-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.benefit-icon {
  font-size: 2rem;
  margin: 0 auto 0.75rem;
  width: 3rem; height: 3rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.14), rgba(6, 182, 212, 0.08));
}
.benefit-card h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--text); }
.benefit-card p { font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary); margin: 0; }

@media (max-width: 768px) { .benefits-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .benefits-grid { grid-template-columns: 1fr; } }

/* Coloured result-card variants for HLV calculator */
.rc-blue   { background: #dbeafe; border-left: 4px solid #2563eb; }
.rc-green  { background: #dcfce7; border-left: 4px solid #16a34a; }
.rc-yellow { background: #fef9c3; border-left: 4px solid #ca8a04; }
.rc-purple { background: #f3e8ff; border-left: 4px solid #7c3aed; }
[data-theme="dark"] .rc-blue   { background: rgba(37, 99, 235, 0.15); }
[data-theme="dark"] .rc-green  { background: rgba(22, 163, 106, 0.15); }
[data-theme="dark"] .rc-yellow { background: rgba(202, 138, 4, 0.15); }
[data-theme="dark"] .rc-purple { background: rgba(124, 58, 237, 0.15); }
