/* ── Report Form Page ──────────────────────────────────────────────────────── */

.report-hero {
  background: var(--navy);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}
.report-hero h1 { margin: 0 0 .5rem; font-size: clamp(1.5rem, 4vw, 2rem); }
.report-hero p  { margin: 0; opacity: .8; font-size: .95rem; }

/* Emergency banner */
.emergency-banner {
  background: #fef3cd;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  padding: .875rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: .875rem;
  color: #92400e;
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  line-height: 1.5;
}
.emergency-banner svg { flex-shrink: 0; margin-top: .1rem; }

/* Container */
.report-section {
  padding: 2.5rem 0 4rem;
  background: var(--gray-50, #f8fafc);
  min-height: 60vh;
}

.report-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  max-width: 700px;
  margin: 0 auto;
  overflow: hidden;
}

/* Progress bar */
.report-progress {
  background: var(--navy);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.progress-track {
  flex: 1;
  background: rgba(255,255,255,.2);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gold, #c8a96e);
  border-radius: 999px;
  transition: width .35s ease;
  width: 0%;
}
.progress-label {
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
}
[dir="rtl"] .progress-label { text-align: left; }

/* Step body */
.report-step { display: none; }
.report-step.active { display: block; }

.step-body {
  padding: 2rem 2rem 1.5rem;
}
@media (max-width: 480px) {
  .step-body { padding: 1.5rem 1.25rem 1.25rem; }
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1.5rem;
  padding-bottom: .875rem;
  border-bottom: 2px solid var(--gray-100, #f1f5f9);
}

/* Start screen specifics */
.start-body { padding: 2.5rem 2rem; }
.start-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 1.75rem;
}
.start-logo img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.start-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 1rem;
  text-align: center;
}
.start-text { color: var(--gray-700, #374151); line-height: 1.7; margin: 0 0 .875rem; font-size: .95rem; }
.start-time { font-size: .875rem; color: var(--gray-500, #6b7280); margin: 0 0 .875rem; }
.start-actions { display: flex; justify-content: center; margin-top: 2rem; }

/* Draft bar */
.draft-bar {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .83rem;
  color: #166534;
  gap: .75rem;
}
.draft-bar button {
  background: none;
  border: none;
  color: #166534;
  text-decoration: underline;
  cursor: pointer;
  font-size: .83rem;
  padding: 0;
}

/* Form groups */
.report-group { margin-bottom: 1.25rem; }
.report-label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--gray-700, #374151);
  margin-bottom: .45rem;
}
.report-label .req { color: #dc2626; margin-inline-start: .25rem; }
.report-helper {
  font-size: .8rem;
  color: var(--gray-500, #6b7280);
  margin-top: .3rem;
  line-height: 1.5;
}

.report-input,
.report-select,
.report-textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--gray-200, #e2e8f0);
  border-radius: 8px;
  font-size: .92rem;
  font-family: inherit;
  color: var(--gray-800, #1e293b);
  background: #fff;
  transition: border-color .2s;
  box-sizing: border-box;
}
.report-input:focus,
.report-select:focus,
.report-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,45,91,.1);
}
.report-textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

/* Radio / checkbox groups */
.radio-group, .check-group { display: flex; flex-direction: column; gap: .5rem; }

.radio-option, .check-option {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  padding: .65rem .9rem;
  border: 1.5px solid var(--gray-200, #e2e8f0);
  border-radius: 8px;
  transition: border-color .2s, background .2s;
  font-size: .92rem;
  color: var(--gray-700, #374151);
  line-height: 1.5;
  user-select: none;
}
.radio-option:hover, .check-option:hover { border-color: var(--navy); background: #f8faff; }
.radio-option input, .check-option input { margin: .15rem 0 0; flex-shrink: 0; accent-color: var(--navy); }
.radio-option.selected, .check-option.selected {
  border-color: var(--navy);
  background: #f0f4ff;
}

/* Violation checkboxes — 2-col on wider screens */
.viol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
@media (max-width: 540px) { .viol-grid { grid-template-columns: 1fr; } }

/* Date uncertain */
.date-uncertain-row { margin-top: .6rem; }
.date-approx-input { margin-top: .6rem; }

/* File upload */
.file-upload-area {
  border: 2px dashed var(--gray-200, #e2e8f0);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.file-upload-area:hover { border-color: var(--navy); background: #f8faff; }
.file-upload-area input[type="file"] { display: none; }
.file-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: .55rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: .6rem;
}
.file-upload-hint { font-size: .78rem; color: var(--gray-500, #6b7280); }
.file-list { margin-top: .75rem; display: flex; flex-direction: column; gap: .4rem; }
.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .45rem .75rem;
  background: #f8faff;
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 6px;
  font-size: .82rem;
  color: var(--gray-700, #374151);
}
.file-item-remove {
  background: none;
  border: none;
  color: #dc2626;
  cursor: pointer;
  padding: 0;
  font-size: .9rem;
  line-height: 1;
}

/* Consent checkboxes — step 7 */
.consent-list { display: flex; flex-direction: column; gap: .75rem; }
.consent-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1rem;
  border: 1.5px solid var(--gray-200, #e2e8f0);
  border-radius: 8px;
  font-size: .88rem;
  color: var(--gray-700, #374151);
  line-height: 1.55;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.consent-item:hover { border-color: var(--navy); background: #f8faff; }
.consent-item input { margin-top: .15rem; flex-shrink: 0; accent-color: var(--navy); }
.consent-item.checked { border-color: var(--navy); background: #f0f4ff; }
.consent-item.optional-consent { border-color: var(--gray-100, #f1f5f9); background: #fafafa; }
.consent-required-note {
  font-size: .8rem;
  color: var(--gray-500, #6b7280);
  margin-top: .75rem;
  margin-bottom: 1rem;
}

/* Navigation */
.report-nav {
  padding: 1.25rem 2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--gray-100, #f1f5f9);
}
@media (max-width: 480px) { .report-nav { padding: 1rem 1.25rem 1.5rem; } }

.nav-back {
  background: none;
  border: 1.5px solid var(--gray-200, #e2e8f0);
  color: var(--gray-600, #4b5563);
  padding: .65rem 1.25rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .2s, color .2s;
}
.nav-back:hover { border-color: var(--navy); color: var(--navy); }
.nav-back:disabled { opacity: .4; cursor: not-allowed; }

.nav-next {
  background: var(--navy);
  color: #fff;
  border: none;
  padding: .65rem 1.5rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, opacity .2s;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.nav-next:hover { background: #162347; }
.nav-next:disabled { opacity: .6; cursor: not-allowed; }

.nav-submit {
  background: var(--gold, #c8a96e);
  color: var(--navy);
  border: none;
  padding: .65rem 1.75rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, opacity .2s;
}
.nav-submit:hover { background: #b8944d; }
.nav-submit:disabled { opacity: .5; cursor: not-allowed; }

/* Error message */
.step-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  font-size: .85rem;
  color: #dc2626;
  display: none;
}
.step-error.visible { display: block; }

/* Confirmation */
.confirm-body {
  padding: 3rem 2rem;
  text-align: center;
}
.confirm-icon {
  width: 64px; height: 64px;
  background: #dcfce7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.confirm-icon svg { stroke: #16a34a; }
.confirm-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .75rem;
}
.confirm-ref-box {
  background: #f0f4ff;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin: 1rem auto;
  max-width: 280px;
}
.confirm-ref-label { font-size: .85rem; color: var(--gray-600, #4b5563); margin: 0 0 .35rem; }
.confirm-ref-number { font-size: 1.4rem; font-weight: 700; color: var(--navy); letter-spacing: 1px; }
.confirm-text { color: var(--gray-600, #4b5563); line-height: 1.65; font-size: .92rem; margin: 0 0 .875rem; }
.confirm-emergency { font-size: .82rem; color: #92400e; background: #fef3cd; border-radius: 6px; padding: .65rem .875rem; margin-top: 1rem; }

/* Hidden utility */
.rp-hidden { display: none !important; }

/* RTL tweaks */
[dir="rtl"] .report-input,
[dir="rtl"] .report-textarea,
[dir="rtl"] .report-select { text-align: right; }

[dir="rtl"] .progress-label { text-align: left; }

[dir="rtl"] .report-nav { flex-direction: row-reverse; }
