/* ══════════════════════════════════════════════════════════════════════════════
   Custom styles for InCorp Engagement Letter Generator
   Brand color: #AA0000 (defined as --incorp) — see also services_data.py
   ══════════════════════════════════════════════════════════════════════════════ */

:root {
  --incorp: #AA0000;
  --incorp-light: #cc1111;
  --incorp-dark: #880000;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--incorp); border-radius: 3px; }

/* ── Red accent focus ── */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--incorp) !important;
  box-shadow: 0 0 0 3px rgba(170, 0, 0, 0.12);
}

/* ── Service card hover ── */
.service-card { transition: box-shadow 0.2s, transform 0.2s; }
.service-card:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(170, 0, 0, 0.15); }

/* ── Checkbox styled ── */
.service-checkbox { accent-color: var(--incorp); width: 18px; height: 18px; cursor: pointer; }

/* ── Fee input ── */
.fee-input {
  width: 100px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.85rem;
  text-align: right;
  transition: border-color 0.2s;
}
.fee-input:disabled { background: #f3f4f6; color: #9ca3af; cursor: not-allowed; }

/* ── Summary tile ── */
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #e5e7eb;
}
.summary-row:last-child { border-bottom: none; }

/* ── Section pills ── */
.section-pill {
  display: inline-block;
  background: var(--incorp);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── Spinner ── */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--incorp);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#toast.show { transform: translateY(0); opacity: 1; }
