*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #2a437f;
  --primary-dark: #1e3162;
  --primary-light: #3d5a9e;
  --primary-faint: rgba(42, 67, 127, 0.08);
  --primary-border: rgba(42, 67, 127, 0.25);
  --ink: #131722;
  --ink-muted: #262d38;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --border: #e2e8f0;
  --green-bg: rgba(16, 185, 129, 0.1);
  --green-txt: #065f46;
  --yellow-bg: rgba(234, 179, 8, 0.1);
  --yellow-txt: #92400e;
  --red-bg: rgba(239, 68, 68, 0.1);
  --red-txt: #991b1b;
  --radius: 8px;
  --topbar-h: 64px;
}

html,
body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100%;
}
a{
  text-decoration: none;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: var(--primary);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  box-shadow: 0 2px 12px rgba(42, 67, 127, 0.35);
}

.topbar-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.topbar-logo img {
  height: 38px;
  width: auto;
  /* white backdrop so dark logo is visible on blue */
  background: #fff;
  border-radius: 6px;
  padding: 3px 8px;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  list-style: none;
}
.topbar-nav a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0.45rem 1rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 6px;
  transition:
    background 0.18s,
    color 0.18s;
  white-space: nowrap;
}
.topbar-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.topbar-nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.nav-icon {
  font-size: 14px;
}

.topbar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
}
.logout-btn {
  padding: 0.42rem 1.1rem;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s;
  font-family: "DM Sans", sans-serif;
}
.logout-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}
input[type="number"] {
  -moz-appearance: textfield; /* Firefox */
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none; /* Chrome, Safari, Edge */
  margin: 0;
}
.page-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}
.page-wrap.warranty-page {
  display: flex;
  justify-content: center;
}
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.login-page .topbar {
  background: rgba(0, 0, 0, 0.15);
  box-shadow: none;
  position: static;
}

.login-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 1rem;
}

.login-card {
  background: var(--surface);
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  padding: 2.8rem 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.login-logo img {
  max-width: 180px;
  height: auto;
}

.form-section {
  display: none;
}
.form-section.active {
  display: block;
  animation: fadeUp 0.25s ease;
}

.form-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.form-subtitle {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 1.6rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 5px;
}
.field-full {
  grid-column: 1 / -1;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field-input {
  padding: 0.6rem 0.9rem;
  font-size: 13.5px;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  width: 100%;
}
.product-row .field-input {
  background-color: var(--surface);
}
.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 67, 127, 0.12);
}
.field-input::placeholder {
  color: #aab;
  font-size: 12.5px;
}
textarea.field-input {
  height: 72px;
  line-height: 1.55;
  resize: vertical;
}

/* ── Custom Select ── */
.field-input[type=""],
select.field-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232A437F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.4rem;
  cursor: pointer;
}
select.field-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 67, 127, 0.12);
}

/* Also apply to filter-select */
.filter-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232A437F' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px;
  padding-right: 2.4rem;
}

/* ── Submit Button ── */
.submit-btn {
  width: 100%;
  margin-top: 1.4rem;
  padding: 0.82rem;
  background: var(--primary);
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
}
.submit-btn:hover {
  background: var(--primary-dark);
}
.submit-btn:active {
  transform: scale(0.99);
}

.switch-row {
  text-align: center;
  margin-top: 1.1rem;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.switch-link {
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.switch-link:hover {
  text-decoration: underline;
}

.page-header {
  margin-bottom: 1.6rem;
  text-align: center;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}
.page-subtitle {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.filter-group {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter-input {
  padding: 0.55rem 0.9rem;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  background: #fff;
  color: var(--ink);
  min-width: 300px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.filter-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 67, 127, 0.1);
}
.filter-input::placeholder {
  color: #aab;
}

.filter-select {
  padding: 0.55rem 2.4rem 0.55rem 0.9rem;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s;
}
.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(42, 67, 127, 0.1);
}

.toolbar-actions {
  display: flex;
  gap: 0.6rem;
}
.toolbar-actions a{
  text-decoration: none;
}
.refresh-btn {
  padding: 0.55rem 1.2rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}
.refresh-btn:hover {
  background: var(--primary-dark);
}
#refresh-icon {
  display: inline-block;
  font-size: 16px;
  line-height: 1;
}
.spinning {
  animation: spin 0.65s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.table-wrapper {
  background: var(--surface);
  border-radius: 4px;
  border: 1px solid var(--border);
  overflow-x: auto;
  box-shadow: 0 1px 8px rgba(42, 67, 127, 0.06);
}
.dealer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.dealer-table thead tr {
  background: var(--primary);
}
.dealer-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
}
.dealer-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
  vertical-align: middle;
  white-space: nowrap;
}
.dealer-table tbody tr:last-child td {
  border-bottom: none;
}
.dealer-table tbody tr:hover {
  background: var(--primary-faint);
}
.gst-cell {
  font-family: monospace;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.type-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.type-dealer {
  background: rgba(42, 67, 127, 0.12);
  color: var(--primary);
}
.type-subdealer {
  background: rgba(74, 85, 104, 0.1);
  color: var(--ink-muted);
}

.status-badge {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.status-active {
  background: var(--green-bg);
  color: var(--green-txt);
}
.status-pending {
  background: var(--yellow-bg);
  color: var(--yellow-txt);
}
.status-inactive {
  background: var(--red-bg);
  color: var(--red-txt);
}

.no-results {
  padding: 3rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 13.5px;
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.1rem;
}
.record-count {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}
.page-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}
.page-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-faint);
}
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.page-btn.prev-next {
  font-size: 15px;
}

.warranty-cta-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 4rem 3rem;
  text-align: center;
  max-width: 520px;
  margin: 2rem auto;
  box-shadow: 0 4px 24px rgba(42, 67, 127, 0.08);
}
.cta-shield {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.cta-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.cta-desc {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-bottom: 1.8rem;
  line-height: 1.6;
}
.cta-btn {
  padding: 0.9rem 2.8rem;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  font-family: "DM Sans", sans-serif;
}
.cta-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.warranty-form-wrap {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 2.2rem 2.5rem;
  max-width: 960px;
  animation: fadeUp 0.25s ease;
  box-shadow: 0 2px 16px rgba(42, 67, 127, 0.07);
}
.wf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--border);
}
.wf-title {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 4px;
}
.wf-back-btn {
  padding: 0.48rem 1.1rem;
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary-border);
  border-radius: 6px;
  font-size: 13px;
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.wf-back-btn:hover {
  background: var(--primary-faint);
}

.wf-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--primary-border);
  margin-bottom: 1rem;
  margin-top: 0.2rem;
}

/* Product rows */
.product-row {
  margin-bottom: 0.8rem;
}
.product-row-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
}
.first-row {
  background: var(--primary-faint);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.extra-row {
  background: rgba(42, 67, 127, 0.03);
  border: 1px dashed var(--primary-border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-top: 0.8rem;
  animation: fadeUp 0.2s ease;
}
.extra-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.7rem;
}
.remove-btn {
  padding: 3px 10px;
  background: var(--red-bg);
  color: var(--red-txt);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 5px;
  font-size: 11px;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: background 0.18s;
  font-weight: 600;
}
.remove-btn:hover {
  background: rgba(239, 68, 68, 0.2);
}
.product-grid {
  grid-template-columns: repeat(5, 1fr) !important;
}

.add-product-btn {
  margin-top: 1rem;
  padding: 0.6rem 1.4rem;
  background: transparent;
  color: var(--primary);
  border: 1.5px dashed var(--primary-light);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  transition: all 0.2s;
  display: block;
}
.add-product-btn:hover {
  background: var(--primary-faint);
}

/* Invoice upload */
.upload-note {
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 0.8rem;
}
.invoice-upload-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
}
.upload-box {
  border: 1.5px dashed var(--primary-border);
  border-radius: 10px;
  padding: 1.2rem 0.8rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
  transition: all 0.2s;
}
.upload-box:hover {
  border-color: var(--primary);
  background: var(--primary-faint);
}
.upload-box.uploaded {
  border-color: var(--primary);
  background: var(--primary-faint);
  border-style: solid;
}
.upload-icon {
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.upload-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.upload-hint {
  font-size: 11px;
  color: var(--ink-muted);
  word-break: break-all;
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--primary);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.gold-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}
.gold-link:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════
   TOAST
═══════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary-dark);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-size: 13.5px;
  opacity: 0;
  transition: all 0.35s ease;
  z-index: 2000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .page-wrap {
    padding: 1.5rem 1rem;
  }
  .topbar {
    padding: 0 1rem;
    gap: 1rem;
  }
  .topbar-nav a {
    padding: 0.4rem 0.7rem;
    font-size: 12.5px;
  }
}
@media (max-width: 700px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .invoice-upload-grid {
    grid-template-columns: 1fr 1fr;
  }
  .filter-input {
    min-width: 140px;
  }
  .warranty-form-wrap {
    padding: 1.4rem 1rem;
  }
  .login-card {
    padding: 2rem 1.4rem;
  }
}
@media (max-width: 480px) {
  .topbar-nav a span:not(.nav-icon) {
    display: none;
  }
  .product-grid {
    grid-template-columns: 1fr !important;
  }
  .invoice-upload-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════════════
   PASSWORD TOGGLE
═══════════════════════════════════════ */
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper .field-input {
  flex: 1;
  padding-right: 2.8rem;
}
.pwd-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: #888;
  transition: color 0.2s;
  outline: none;
}
.pwd-toggle:hover {
  color: var(--primary, #b8860b);
}

/* ═══════════════════════════════════════
   TOAST VARIANTS
═══════════════════════════════════════ */
.toast-success {
  background: #1a7a4a !important;
}
.toast-error {
  background: #c0392b !important;
}
.toast-icon {
  font-weight: 700;
  margin-right: 0.2rem;
}

/* ═══════════════════════════════════════
   LOGOUT CONFIRMATION MODAL
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 2.2rem 2.4rem 1.8rem;
  max-width: 380px;
  width: 90%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}
.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
}
.modal-icon {
  font-size: 2.2rem;
  margin-bottom: 0.7rem;
}
.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 0.5rem;
}
.modal-message {
  font-size: 0.92rem;
  color: #555;
  margin: 0 0 1.6rem;
  line-height: 1.5;
}
.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.modal-btn {
  flex: 1;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  font-family: inherit;
}
.modal-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.modal-btn-cancel {
  background: #f0f0f0;
  color: #444;
}
.modal-btn-confirm {
  background: #c0392b;
  color: #fff;
}

.field-input.invalid,
select.field-input.invalid {
  border-color: #e53e3e !important;
  background-color: #fff5f5 !important;
  animation: shake 0.35s ease;
}
.field-input.invalid:focus,
select.field-input.invalid:focus {
  border-color: #e53e3e !important;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
}
/* Remove red once user starts typing/selecting */
.field-input.invalid:not(:placeholder-shown):not([value=""]),
.field-input.invalid:focus {
  /* kept red until user actually fixes value — cleared via JS */
}

.checkbox-label.invalid input[type="checkbox"] {
  outline: 2px solid #e53e3e;
  outline-offset: 2px;
  border-radius: 2px;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-5px); }
  40%       { transform: translateX(5px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(3px); }
}
