/* Error report form — shared by /report-issue (public) and /Dashboard/ReportIssue */
.er-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--esheba-surface, #fff);
  border: 1px solid var(--esheba-border, rgba(2, 42, 112, 0.12));
  border-radius: var(--esheba-radius, 16px);
  box-shadow: var(--esheba-shadow, 0 8px 24px rgba(2, 42, 112, 0.06));
  color: var(--esheba-text, #0f172a);
  direction: rtl;
  text-align: right;
}

.er-card__head {
  margin-bottom: 1rem;
}

.er-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
}

.er-card__desc {
  margin: 0;
  color: var(--esheba-muted, #64748b);
  font-size: 0.9rem;
  line-height: 1.9;
}

.er-card__privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--esheba-radius-sm, 10px);
  background: rgba(26, 122, 140, 0.08);
  color: var(--esheba-text, #0f172a);
  font-size: 0.83rem;
  line-height: 1.8;
}

.er-card__privacy svg {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  color: var(--esheba-teal, #1a7a8c);
}

.er-form__row {
  margin-bottom: 1rem;
}

.er-form__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.er-form__optional {
  font-weight: 400;
  color: var(--esheba-muted, #64748b);
}

.er-form__control {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--esheba-border, rgba(2, 42, 112, 0.18));
  border-radius: var(--esheba-radius-sm, 10px);
  background: var(--esheba-inquiry-input-bg, var(--esheba-surface, #fff));
  color: inherit;
  font: inherit;
  font-size: 0.92rem;
  direction: rtl;
  text-align: right;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.er-form__control:focus {
  outline: none;
  border-color: var(--esheba-teal, #1a7a8c);
  box-shadow: 0 0 0 3px rgba(26, 122, 140, 0.18);
}

.er-form__control[aria-invalid="true"] {
  border-color: #dc2626;
}

.er-form__control--ltr {
  direction: ltr;
  text-align: left;
}

.er-form__textarea {
  min-height: 9rem;
  resize: vertical;
  line-height: 1.9;
}

.er-form__meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--esheba-muted, #64748b);
}

.er-form__counter {
  margin-inline-start: auto;
  white-space: nowrap;
}

.er-form__help {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--esheba-muted, #64748b);
  line-height: 1.8;
}

.er-captcha {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.er-captcha__question {
  min-width: 4.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--esheba-radius-sm, 10px);
  background: var(--esheba-bg-alt, #f1f5f9);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
  user-select: none;
}

.er-captcha__eq {
  font-weight: 800;
}

.er-captcha__answer {
  width: 5.5rem;
  text-align: center;
}

.er-captcha__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--esheba-border, rgba(2, 42, 112, 0.18));
  border-radius: var(--esheba-radius-sm, 10px);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.er-captcha__refresh svg {
  width: 18px;
  height: 18px;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.er-form__trap {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  inset-inline-start: -9999px;
}

.er-form__hint {
  min-height: 1.2rem;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #dc2626;
  line-height: 1.8;
}

.er-form__actions {
  display: flex;
  justify-content: flex-start;
}

.er-form__actions .esheba-btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.er-success {
  padding: 1.5rem 0.5rem 0.5rem;
  text-align: center;
}

.er-success__icon {
  width: 52px;
  height: 52px;
  color: #16a34a;
}

.er-success__msg {
  margin: 0.75rem 0 0.4rem;
  font-weight: 700;
  line-height: 1.9;
}

.er-success__code {
  margin: 0 0 1.25rem;
  color: var(--esheba-muted, #64748b);
}

.er-success__code bdi {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--esheba-text, #0f172a);
}

html[data-theme="dark"] .er-card__privacy {
  background: rgba(26, 122, 140, 0.16);
}

html[data-theme="dark"] .er-captcha__question {
  background: rgba(255, 255, 255, 0.06);
}

.er-page {
  padding-bottom: 2rem;
}

.er-page__note {
  max-width: 720px;
  margin: 1rem auto 0;
  font-size: 0.85rem;
  color: var(--esheba-muted, #64748b);
  text-align: center;
  line-height: 1.9;
}

@media (max-width: 575.98px) {
  .er-card {
    padding: 1.1rem;
    border-radius: var(--esheba-radius-sm, 12px);
  }

  .er-form__actions .esheba-btn {
    width: 100%;
  }
}
