/* ============================================================
   MWAKENYA — modal-fix.css
   Patch: .modal-error and .modal-success had no CSS rules at
   all, so both rendered visible by default regardless of the
   .show class toggle — causing the modal to show every state
   stacked at once. Also widens the modal and improves spacing.
   Add this AFTER main.css, papers.css and hero-fix.css.
   ============================================================ */

/* ── Wider, more breathable modal ─────────────────────────── */
.modal {
  max-width: 480px;
}

.modal-body {
  padding: 22px 24px;
}

/* ── Error state: hidden unless .show is added by JS ──────── */
.modal-error {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: var(--coral-bg);
  border: 1.5px solid var(--coral);
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.modal-error.show { display: flex; }
.modal-error i {
  color: var(--coral-dark);
  font-size: 16px;
  margin-top: 1px;
  flex-shrink: 0;
}
.modal-error p {
  font-size: 12px;
  color: var(--coral-dark);
  line-height: 1.5;
  margin: 0;
}

/* ── Success state: hidden unless .show is added by JS ────── */
.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px 32px;
}
.modal-success.show { display: flex; }

.modal-success-ico {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

.modal-success h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 8px;
}

.modal-success p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
  max-width: 360px;
}

.view-paper-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Source Sans Pro', system-ui, sans-serif;
  width: 100%;
  justify-content: center;
}
.view-paper-btn:hover { opacity: 0.92; }
