/* ==========================================================================
   Case Listing + Report Wizard
   ========================================================================== */

/* ── Demo banner ─────────────────────────────────────────────────── */

.demo-banner {
  background: #fff8e6;
  border-bottom: 1px solid #ffe0a0;
  padding: 9px 28px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #7a5a00;
}

.demo-banner i { color: #d4900a; flex-shrink: 0; }

.demo-banner a {
  color: #a07000;
  font-weight: 600;
  margin-left: auto;
  text-decoration: none;
}

.demo-banner a:hover { text-decoration: underline; }

/* ── Listing bar ─────────────────────────────────────────────────── */

.listing-bar {
  background: #fff;
  border-bottom: 1px solid #ececec;
  position: sticky;
  top: 60px;
  z-index: 40;
}

.listing-bar__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 28px;
}

.listing-bar__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.listing-bar__title {
  font-family: 'Raleway', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #111;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.listing-bar__count {
  font-size: 12px;
  font-weight: 600;
  background: #f0f0f0;
  color: #888;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
}

.listing-bar__report {
  flex-shrink: 0;
  font-size: 13px;
  padding: 8px 18px;
}

/* Filters */
.listing-filters__tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #666;
  background: #f5f5f5;
  text-decoration: none;
  transition: background .12s, color .12s;
}

.filter-tab:hover { background: #ebebeb; color: #333; text-decoration: none; }
.filter-tab.active { background: #DD7878; color: #fff; }
.filter-tab .bi-exclamation-circle-fill { color: #e07070; }
.filter-tab.active .bi-exclamation-circle-fill { color: rgba(255,255,255,.8); }
.filter-tab .bi-check-circle-fill { color: #28a745; }
.filter-tab.active .bi-check-circle-fill { color: rgba(255,255,255,.8); }

.listing-filters__row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-species {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex: 1;
}

.species-btn {
  padding: 4px 13px;
  border-radius: 999px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #555;
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}

.species-btn:hover { border-color: #DD7878; color: #DD7878; }
.species-btn.active { border-color: #DD7878; background: #DD7878; color: #fff; }

.filter-search {
  display: flex;
  align-items: center;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s;
}

.filter-search:focus-within { border-color: #DD7878; }
.filter-search > i { padding: 0 10px 0 14px; color: #aaa; font-size: 14px; }

.filter-search__input {
  border: none;
  outline: none;
  font-size: 13px;
  font-family: 'Roboto', sans-serif;
  padding: 7px 4px;
  width: 200px;
  background: transparent;
}

.filter-search__btn {
  background: #DD7878;
  color: #fff;
  border: none;
  padding: 7px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s;
}

.filter-search__btn:hover { background: #c45f5f; }

/* ── Case grid ───────────────────────────────────────────────────── */

.listing-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 28px 60px;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.case-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}

.case-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}

.case-card__img {
  position: relative;
  aspect-ratio: 5/4;  /* a little taller than 4:3 so heads are not cropped */
  overflow: hidden;
  background: #f5f5f5;
}

.case-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;  /* pets' faces sit in the upper part of the photo */
}

.case-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #ccc;
}

.case-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.case-badge--lost { background: #DD7878; color: #fff; }
.case-badge--found { background: #28a745; color: #fff; }

.case-card__body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.case-card__name {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #111;
}

.case-card__breed {
  font-size: 12px;
  color: #888;
}

.case-card__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
}

.case-card__meta span {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 5px;
}

.case-card__meta i { color: #DD7878; font-size: 11px; }

.case-card__ref {
  margin-top: auto;
  padding-top: 8px;
  font-size: 10.5px;
  font-family: 'Poppins', sans-serif;
  color: #bbb;
  letter-spacing: .03em;
}

/* Empty state */
.listing-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  color: #ccc;
  gap: 10px;
}

.listing-empty i { font-size: 48px; }
.listing-empty h3 { font-family: 'Raleway', sans-serif; font-size: 20px; color: #bbb; margin: 0; }
.listing-empty p { font-size: 14px; color: #ccc; margin: 0; }
.listing-empty a { color: #DD7878; }

/* ── Report wizard ───────────────────────────────────────────────── */

.report-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Step indicator */
.report-steps {
  margin-bottom: 28px;
}

.report-steps__inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.report-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.report-step__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #ddd;
  background: #fff;
  color: #bbb;
  font-size: 13px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s, color .2s;
}

.report-step.is-active .report-step__dot {
  border-color: #DD7878;
  background: #DD7878;
  color: #fff;
}

.report-step.is-done .report-step__dot {
  border-color: #28a745;
  background: #28a745;
  color: #fff;
}

.report-step__label {
  font-size: 10.5px;
  font-family: 'Poppins', sans-serif;
  color: #bbb;
  white-space: nowrap;
}

.report-step.is-active .report-step__label { color: #DD7878; font-weight: 600; }
.report-step.is-done .report-step__label { color: #28a745; }

.report-step__line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 4px;
  margin-bottom: 18px;
  transition: background .2s;
}

.report-step__line.is-done { background: #28a745; }

/* Report card */
.report-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  padding: 32px;
}

.report-card__title {
  font-family: 'Raleway', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #111;
  margin: 0 0 6px;
}

.report-card__lead {
  font-size: 14px;
  color: #888;
  margin: 0 0 24px;
  line-height: 1.6;
}

.report-card__sub {
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #444;
  margin: 0 0 14px;
}

.report-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 24px 0;
}

/* Type chooser */
.report-type-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.report-type-opt { display: block; cursor: pointer; }
.report-type-opt input { position: absolute; opacity: 0; pointer-events: none; }

.report-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  transition: border-color .15s, background .15s;
}

.report-type-btn i { font-size: 24px; color: #bbb; transition: color .15s; }
.report-type-btn strong { font-size: 13.5px; font-weight: 700; color: #333; font-family: 'Poppins', sans-serif; }
.report-type-btn span { font-size: 11.5px; color: #aaa; line-height: 1.3; }

.report-type-opt input:checked + .report-type-btn {
  border-color: #DD7878;
  background: rgba(221,120,120,.04);
}

.report-type-opt input:checked + .report-type-btn i { color: #DD7878; }
.report-type-opt input:checked + .report-type-btn strong { color: #DD7878; }

/* Pet choice list */
.pet-choice-list { display: flex; flex-direction: column; gap: 8px; }

.pet-choice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}

.pet-choice-row:has(input:checked) {
  border-color: #DD7878;
  background: rgba(221,120,120,.04);
}

.pet-choice-row.is-blocked {
  opacity: .55;
  cursor: not-allowed;
  background: #fafafa;
}

.pet-choice-row input[type=radio] { flex-shrink: 0; accent-color: #DD7878; }

.pet-choice-info { flex: 1; min-width: 0; }
.pet-choice-name { display: block; font-size: 14px; font-weight: 600; color: #222; }
.pet-choice-breed { display: block; font-size: 12px; color: #888; margin-top: 1px; }

.pet-choice-new .pet-choice-name { color: #DD7878; }
.pet-choice-new .pet-choice-name i { margin-right: 4px; }

.pet-choice-tag {
  font-size: 10.5px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  background: #f0f0f0;
  color: #999;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* Form grid */
.report-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.report-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
/* A field marked hidden (the collar description, the insurer and policy number until "Yes" is picked) stays hidden:
   the display: flex above would otherwise show it anyway. */
.report-field[hidden], .report-card [hidden] { display: none !important; }

.report-field--full { grid-column: 1 / -1; }

.report-field label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
  font-family: 'Poppins', sans-serif;
}

.req { color: #DD7878; }
.report-optional { font-size: 11px; font-weight: 400; color: #aaa; }

.report-field input[type=text],
.report-field input[type=date],
.report-field input[type=time],
.report-field select,
.report-field textarea {
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
  color: #222;
  background: #fafafa;
  outline: none;
  transition: border-color .15s, background .15s;
  width: 100%;
  box-sizing: border-box;
}

.report-field input:focus,
.report-field select:focus,
.report-field textarea:focus {
  border-color: #DD7878;
  background: #fff;
}

.report-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

/* Color grid */
.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-opt {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #555;
  cursor: pointer;
}

.color-opt input { accent-color: #DD7878; }

.color-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  flex-shrink: 0;
}

.color-hint {
  font-size: 13px;
  color: #888;
  margin: 4px 0 0;
}

/* ── Location picker ─────────────────────────────────────────────────── */
.loc-section {
  margin: 24px 0 20px;
  border: 1px solid #e5e7ef;
  border-radius: 12px;
  padding: 20px;
  background: #fafbfc;
}
.loc-section__title {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin: 0 0 4px;
}
.loc-section__lead {
  font-size: 13px;
  color: #666;
  margin: 0 0 14px;
}

.loc-search-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.loc-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
}
.loc-search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
  pointer-events: none;
}
.loc-search-input {
  width: 100%;
  padding: 9px 10px 9px 32px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}
.loc-search-input:focus { outline: none; border-color: #DD7878; box-shadow: 0 0 0 3px rgba(221,120,120,.15); }

.loc-search-btn {
  padding: 9px 18px;
  background: #DD7878;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.loc-search-btn:hover { background: #c96868; }

.loc-myloc-btn {
  padding: 9px 14px;
  background: #fff;
  color: #444;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.loc-myloc-btn:hover { background: #f3f4f6; }
.loc-myloc-btn:disabled { opacity: .6; cursor: not-allowed; }

.loc-map-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d1d5db;
  margin-bottom: 10px;
}
#loc-map {
  height: 300px;
  width: 100%;
  background: #e8eaed;
}
.loc-map-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248,249,250,.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #888;
  font-size: 14px;
  pointer-events: none;
  z-index: 500;
}
.loc-map-overlay i { font-size: 28px; color: #bbb; }

.loc-confirmed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  margin-top: 6px;
}
.loc-confirmed__icon { color: #16a34a; font-size: 18px; flex-shrink: 0; }
.loc-confirmed__text { flex: 1; min-width: 0; }
.loc-confirmed__text strong { display: block; font-size: 13.5px; color: #15803d; }
.loc-confirmed__text span { font-size: 12px; color: #4ade80; }
.loc-confirmed__clear {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  font-size: 13px;
  flex-shrink: 0;
}
.loc-confirmed__clear:hover { color: #dc2626; background: #fee2e2; }

.loc-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
}

/* Radio row */
.radio-row { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-opt { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #444; cursor: pointer; }
.radio-opt input { accent-color: #DD7878; }

/* Navigation buttons */
.report-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.report-btn-next, .report-btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 26px;
  background: #DD7878;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .12s, transform .1s;
  text-decoration: none;
}

.report-btn-next:hover, .report-btn-submit:hover { background: #c45f5f; transform: translateY(-1px); }
.report-btn-submit { background: #28a745; }
.report-btn-submit:hover { background: #218838; }

.report-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  color: #666;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .12s, color .12s;
}

.report-btn-back:hover { border-color: #999; color: #333; text-decoration: none; }

/* Review */
.review-sections { display: flex; flex-direction: column; gap: 0; margin-bottom: 8px; }

.review-section {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}

.review-section:last-child { border-bottom: none; }

.review-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-section__head h3 {
  font-family: 'Raleway', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #999;
  margin: 0;
}

.review-edit {
  font-size: 12px;
  color: #DD7878;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.review-row {
  display: flex;
  gap: 12px;
  font-size: 13.5px;
  color: #333;
  padding: 3px 0;
}

.review-section--pet { border: 2px solid #f0d2d2; background: #fffafa; border-radius: 12px; padding: 16px; margin: 10px 0; }
.review-check { font-size: 13px; color: #555; margin: 0 0 10px; line-height: 1.5; }
.review-update { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0e4e4; }
.review-update span { font-size: 12.5px; color: #6b6b6b; line-height: 1.45; flex: 1 1 220px; min-width: 0; }

.review-label {
  font-weight: 600;
  color: #888;
  min-width: 110px;
  flex-shrink: 0;
}

/* Done page */
.report-done {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  padding: 48px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.report-done__icon { font-size: 56px; color: #28a745; }

.report-done__title {
  font-family: 'Raleway', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #111;
  margin: 0;
}

.report-done__lead { font-size: 15px; color: #666; margin: 0; }

.report-done__ref {
  background: #f8f8f8;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 14px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 4px 0;
}

.report-done__ref span { font-size: 11.5px; color: #aaa; font-family: 'Poppins', sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.report-done__ref strong { font-size: 22px; font-family: 'Poppins', sans-serif; color: #111; letter-spacing: .04em; }

.report-done__note { font-size: 13.5px; color: #888; max-width: 420px; line-height: 1.6; margin: 0; }

.report-done__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.report-done__actions .btn { display: inline-flex; align-items: center; gap: 6px; }

/* Done page, missing pet: what happens next, the boost, more ways to help */
.report-wrap--done { max-width: 720px; display: flex; flex-direction: column; gap: 18px; }
.rd-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  padding: 26px 30px;
  margin: 0;
}
.rd-card--boost { border-top: 4px solid #1877F2; }
.rd-card__title {
  font-family: 'Raleway', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #1F2B4B;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rd-card__title .bi-facebook { color: #1877F2; }
.rd-card__text { font-size: 14.5px; color: #555; line-height: 1.6; margin: 0 0 16px; }
.rd-card__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rd-card__actions .btn, .rd-boost__btn { display: inline-flex; align-items: center; gap: 6px; }

.rd-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rd-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: #444; line-height: 1.55; }
.rd-steps li > i { font-size: 20px; color: var(--asuk-accent, #DD7878); flex-shrink: 0; margin-top: 1px; }
.rd-steps strong { overflow-wrap: anywhere; }

.rd-boost { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; align-items: start; }
.rd-boost--solo { grid-template-columns: 1fr; }
.rd-tiers { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; width: 100%; min-width: 0; }
.rd-boost--solo .rd-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.rd-boost--solo .rd-tiers__label { grid-column: 1 / -1; }
.rd-tiers__label { font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; color: #1F2B4B; padding: 0; margin: 0 0 2px; }
.rd-tier { position: relative; display: block; border: 2px solid #e3e6ee; border-radius: 12px; padding: 9px 12px; cursor: pointer;
  background: #fff; transition: border-color .12s, background .12s; }
.rd-tier input { position: absolute; opacity: 0; pointer-events: none; }
.rd-tier:has(input:checked) { border-color: #1F2B4B; background: #eef2fa; }
.rd-tier:has(input:focus-visible) { outline: 2px solid #1877F2; outline-offset: 2px; }
.rd-tier__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.rd-tier__name { font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px; color: #1F2B4B; }
.rd-tier__price { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 16px; color: #1F2B4B; }
.rd-tier__desc { display: block; font-size: 12px; color: #6b6b6b; line-height: 1.4; margin-top: 2px; }
.rd-tiers:disabled .rd-tier { cursor: default; opacity: .6; }
.rd-boost__btn { width: 100%; justify-content: center; }
.rd-boost__buy { position: sticky; top: 90px; }
.rd-boost__preview .fbx { max-width: 100%; }
.rd-boost__preview .fbx-photo { max-height: 300px; }
.rd-boost__buy { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rd-price { font-size: 14px; color: #555; margin: 0; }
.rd-price strong { font-family: 'Poppins', sans-serif; font-size: 20px; color: #1F2B4B; }
.rd-small { font-size: 12.5px; color: #888; margin: 0; }

.rd-note {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff8e6; border: 1px solid #f1d58b; border-radius: 12px;
  padding: 12px 14px; margin: 0 0 14px; font-size: 14px; color: #5b4a17; line-height: 1.5;
}
.rd-note > i { font-size: 18px; flex-shrink: 0; }
.rd-note--ok { background: #eaf6ee; border-color: #b6dfc3; color: #1f5a33; }

.rd-help { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rd-help__item {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid #e6e8ee; border-radius: 14px; padding: 14px 14px 14px 16px;
  color: #555; font-size: 13.5px; line-height: 1.5; text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.rd-help__item:hover, .rd-help__item:focus-visible { border-color: #1F2B4B; color: #555; transform: translateY(-1px); }
.rd-help__item > .bi:first-child { font-size: 22px; color: #1F2B4B; flex-shrink: 0; }
.rd-help__item strong { display: block; font-family: 'Poppins', sans-serif; font-size: 14.5px; color: #1F2B4B; margin-bottom: 2px; }
.rd-help__go { margin-left: auto; align-self: center; color: #aaa; }
.rd-help:has(.rd-help__item:only-child) { grid-template-columns: 1fr; }

.rd-insured__links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; }
.rd-insured {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #eef2fa;
  font-size: 13.5px; color: #33405f; line-height: 1.55;
}
.rd-insured > i { font-size: 18px; color: #1F2B4B; flex-shrink: 0; }
.rd-card.rd-insured { padding: 16px 20px; }

.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border: 2px solid #ddd;
  border-radius: 999px;
  color: #555;
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .12s, color .12s;
}

.btn--outline:hover { border-color: #999; color: #333; text-decoration: none; }

/* ── Image uploader ──────────────────────────────────────────────── */

.img-uploader__drop {
  border: 2px dashed #dde0e8;
  border-radius: 12px;
  background: #fafafe;
  padding: 26px 20px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.img-uploader__drop:hover,
.img-uploader__drop.drag-over {
  border-color: #DD7878;
  background: #fff6f6;
}

.img-uploader__drop i { font-size: 30px; color: #ccc; }
.img-uploader__drop span { font-size: 14px; font-weight: 500; color: #555; }
.img-uploader__drop small { font-size: 12px; color: #bbb; }

.img-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.img-preview-item {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e8e8e8;
  background: #f0f0f0;
  flex-shrink: 0;
}

.img-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-preview-cover {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(221, 120, 120, .88);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  padding: 2px 0;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.img-saved-wrap { margin-bottom: 12px; }

.img-saved-note {
  font-size: 12.5px;
  color: #777;
  margin: 8px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.img-clear-btn {
  background: none;
  border: none;
  color: #DD7878;
  font-size: 12.5px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  font-family: inherit;
}

.img-clear-btn:hover { color: #b85555; }

.img-upload-hint {
  font-size: 12px;
  color: #aaa;
  margin-top: 6px;
  font-family: 'Poppins', sans-serif;
}

/* Review images */
.review-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0 2px;
}

.review-img-item {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #eee;
  background: #f4f4f4;
  flex-shrink: 0;
}

.review-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Responsive ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .listing-bar { position: static; }
  .listing-bar__inner { padding: 12px 16px; }
  .listing-wrap { padding: 20px 16px 50px; }
  .filter-search__input { width: 130px; }
}

@media (max-width: 640px) {
  /* Listing */
  .listing-bar__inner { padding: 10px 14px; }
  .listing-bar__top { flex-wrap: wrap; gap: 10px; }
  .listing-bar__title { font-size: 17px; }
  .listing-bar__report { font-size: 12px; padding: 7px 14px; }
  .listing-filters__tabs { flex-wrap: wrap; }
  .filter-tab { font-size: 11.5px; padding: 4px 11px; }
  .listing-filters__row { flex-direction: column; align-items: stretch; gap: 10px; }
  .filter-search { width: 100%; }
  .filter-search__input { flex: 1; width: auto; }
  .filter-species { gap: 4px; }
  .species-btn { font-size: 11px; padding: 3px 10px; }
  .case-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .listing-wrap { padding: 14px 12px 50px; }

  /* Report wizard */
  .report-wrap { padding: 16px 12px 60px; }
  .report-card { padding: 20px 16px; border-radius: 12px; }
  .report-card__title { font-size: 18px; }
  .report-form-grid { grid-template-columns: 1fr; gap: 12px; }
  .report-type-row { grid-template-columns: 1fr; }
  .report-type-btn { flex-direction: row; text-align: left; padding: 14px; gap: 12px; }
  .report-type-btn i { font-size: 20px; flex-shrink: 0; }

  /* Step indicator — hide labels to save space on small screens */
  .report-step__label { display: none; }
  .report-step__dot { width: 26px; height: 26px; font-size: 12px; }

  /* Pet choice rows */
  .pet-choice-row { padding: 10px 12px; }

  /* Location picker */
  .loc-search-row { flex-direction: column; }
  .loc-search-input-wrap { width: 100%; }
  .loc-search-btn, .loc-myloc-btn { width: 100%; justify-content: center; }
  #loc-map { height: 240px; }

  /* Nav */
  .report-nav { gap: 10px; }
  .report-btn-next, .report-btn-submit { padding: 10px 20px; font-size: 13px; }
  .report-btn-back { padding: 9px 16px; font-size: 12.5px; }

  /* Review */
  .review-row { flex-direction: column; gap: 2px; }
  .review-label { min-width: unset; }

  /* Done */
  .report-done { padding: 32px 20px; gap: 12px; }
  .report-done__title { font-size: 22px; }
  .report-done__ref { padding: 12px 20px; }
  .report-done__ref strong { font-size: 18px; }
  .report-done__actions { flex-direction: column; align-items: stretch; }
  .report-done__actions a { text-align: center; justify-content: center; }
  .rd-card { padding: 20px 16px; border-radius: 12px; }
  .rd-card__title { font-size: 17px; }
  .rd-boost { grid-template-columns: 1fr; gap: 16px; }
  .rd-boost__buy { align-items: stretch; order: -1; position: static; }   /* on a phone: the price and the button before the long preview */
  .rd-boost__btn, .rd-card__actions .btn { justify-content: center; }
  .rd-card__actions { flex-direction: column; align-items: stretch; text-align: center; }
  .rd-help { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
  .case-grid { grid-template-columns: 1fr; }
}

/* ── Report form: sections, chips and segmented choices ───────────────────────────────────────────────────────────── */
.rp-section { border-top: 1px solid #f1eded; padding-top: 22px; margin-top: 22px; }
.rp-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.rp-section__head {
  display: flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-family: 'Raleway', sans-serif; font-size: 16px; font-weight: 800; color: #222;
}
.rp-section__head i {
  width: 30px; height: 30px; border-radius: 50%; background: #fdf1f1; color: #DD7878;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.rp-section__head .report-optional { font-family: 'Roboto', sans-serif; font-weight: 400; }
.rp-section__lead { font-size: 13.5px; color: #777; margin: -6px 0 14px; line-height: 1.5; }
.rp-section .report-form-grid { margin-top: 16px; }

.rp-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.rp-field legend { font-size: 13px; font-weight: 600; color: #444; font-family: 'Poppins', sans-serif; padding: 0; margin: 0 0 8px; }
.report-optional { font-size: 11.5px; font-weight: 400; color: #9a9a9a; margin-left: 2px; }

/* chips: one or several choices shown as tappable pills */
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chip { position: relative; cursor: pointer; }
.rp-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rp-chip span {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 16px;
  border: 1.5px solid #e3dede; border-radius: 999px; background: #fff;
  font-size: 13.5px; font-weight: 500; color: #444; font-family: 'Poppins', sans-serif;
  transition: border-color .15s, background .15s, color .15s;
}
.rp-chip:hover span { border-color: #e9a9a9; }
.rp-chip input:checked + span { border-color: #DD7878; background: #DD7878; color: #fff; box-shadow: 0 2px 8px rgba(221,120,120,.3); }
.rp-chip--colour input:checked + span { background: #fdf1f1; color: #b94f4f; box-shadow: none; border-width: 2px; }   /* the swatch stays readable */
.rp-chip input:focus-visible + span { outline: 2px solid #DD7878; outline-offset: 2px; }
.rp-chip--colour span { padding-left: 10px; }
.rp-chip--colour input:checked + span::after { content: "\2713"; font-weight: 700; margin-left: 2px; }
.rp-swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex-shrink: 0; display: inline-block; }

/* segmented: one choice out of a few, side by side */
.rp-segment { display: flex; background: #f6f3f3; border-radius: 12px; padding: 4px; gap: 4px; }
.rp-segment label { flex: 1; position: relative; cursor: pointer; }
.rp-segment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rp-segment span {
  display: flex; align-items: center; justify-content: center; min-height: 38px; padding: 6px 8px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; color: #666; font-family: 'Poppins', sans-serif; text-align: center;
  transition: background .15s, color .15s, box-shadow .15s;
}
.rp-segment input:checked + span { background: #fff; color: #b94f4f; font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.rp-segment input:focus-visible + span { outline: 2px solid #DD7878; outline-offset: 1px; }

/* taller, calmer inputs */
.report-field input[type=text], .report-field input[type=date], .report-field input[type=time],
.report-field select, .report-field textarea { min-height: 44px; padding: 10px 14px; font-size: 15px; background: #fff; border-color: #e3dede; }
.report-field label { margin-bottom: 1px; }

/* photo drop zone */
.rp-drop { border-radius: 14px; border: 2px dashed #e6caca; background: #fdf8f8; padding: 26px 16px; gap: 6px; transition: border-color .15s, background .15s; }
.rp-drop i { font-size: 30px; color: #DD7878; }
.rp-drop:hover, .rp-drop.drag-over, .rp-drop:focus-visible { border-color: #DD7878; background: #fdf1f1; outline: none; }

@media (max-width: 600px) {
  .rp-chip span { min-height: 42px; padding: 8px 14px; }
  .rp-segment span { font-size: 13px; }
}
