/* "Report an adoption" — navbar button and form dialog. Uses the CAM Design System tokens defined in index.html. */

.report-btn{height:36px;padding:0 14px;gap:7px;font-size:13px;box-shadow:var(--shadow-cta)}
.report-btn .ic{width:15px;height:15px}
@media (max-width:1180px) and (min-width:901px){ .report-btn .rb-long{display:none} }
@media (min-width:1181px){ .report-btn .rb-short{display:none} }
@media (max-width:900px){
  .report-btn{width:36px;padding:0}
  .report-btn .rb-long,.report-btn .rb-short{display:none}
}
/* very narrow phones: the button lives only in the bottom sheet, so the search box keeps its room */
@media (max-width:359px){ .nav .report-btn{display:none} }

/* ---------- dialog ---------- */
.rp{width:min(580px,calc(100vw - 32px));max-height:min(860px,calc(100dvh - 40px));padding:0;margin:auto;
  border:1px solid var(--ui-border);border-radius:var(--radius-lg);background:var(--ui-surface-warm);color:var(--ui-text);
  box-shadow:var(--shadow-modal);overflow:hidden;font-family:var(--ui-font-sans)}
.rp[open]{display:flex;flex-direction:column;animation:cam-rise var(--dur-enter) var(--ease-out-expo)}
.rp::backdrop{background:rgba(14,38,68,.28);animation:cam-fade var(--dur-fast) ease-out}
.rp-head{display:flex;align-items:flex-start;gap:12px;padding:22px 24px 16px;border-bottom:1px solid var(--ui-border);flex:none}
.rp-head h2{font-family:var(--ui-font-serif);font-size:var(--text-h2);font-weight:400;letter-spacing:var(--track-h2);
  line-height:1.3;margin:6px 0 0}
.rp-scroll{overflow-y:auto;padding:4px 24px 24px;flex:1;min-height:0;overscroll-behavior:contain}
.rp-intro{font-size:.85rem;line-height:1.55;color:var(--ui-text-secondary);margin:16px 0 4px}

.rp-group{border:0;margin:0;padding:0;min-width:0}
/* a floated legend escapes the fieldset's special legend layout, so it takes ordinary margins */
.rp-group > legend.label{float:left;width:100%;padding:0;margin:24px 0 10px}
.rp-group > legend + *{clear:both}

.rp-field{margin-top:14px;min-width:0}
.rp-field > label,.rp-field > .rp-lab{display:block;font-size:.8rem;font-weight:600;color:var(--ui-text);margin-bottom:6px}
.rp-opt{font-weight:400;color:var(--ui-text-muted)}
.rp-req{color:var(--ui-red);font-weight:600;margin-left:2px}
.rp-hint{display:block;font-size:.74rem;color:var(--ui-text-secondary);margin-top:5px;line-height:1.45}
.rp input[type=text],.rp input[type=email],.rp input[type=number],.rp select,.rp textarea{
  display:block;width:100%;min-height:40px;padding:8px 12px;border:1px solid var(--ui-border);border-radius:var(--radius-sm);
  background:#fff;font-size:16px;line-height:1.4;color:var(--ui-text);transition:border-color .15s,box-shadow .15s}
.rp textarea{resize:vertical;min-height:72px;font-family:inherit}
.rp select{appearance:none;-webkit-appearance:none;padding-right:34px;cursor:pointer;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center}
.rp input:focus,.rp select:focus,.rp textarea:focus{outline:none;border-color:var(--ui-blue);box-shadow:0 0 0 3px rgba(41,128,185,.15)}
.rp input::placeholder,.rp textarea::placeholder{color:var(--ui-text-muted)}
.rp [aria-invalid="true"]{border-color:var(--ui-red)}
.rp-err-msg{display:block;font-size:.74rem;font-weight:600;color:var(--ui-red);margin-top:5px}
.rp-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.rp-row .rp-field{margin-top:14px}
.rp-date{display:grid;grid-template-columns:1.1fr 1.4fr .8fr;gap:8px}
.rp-date label{display:block;font-size:.72rem;color:var(--ui-text-secondary);margin-bottom:4px}
.rp-match{margin-top:8px;padding:10px 12px;border-radius:var(--radius-sm);background:var(--ui-filter-bg);color:#15598C;
  font-size:.78rem;line-height:1.45}
.rp-match b{font-weight:600}
.rp-hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.rp-check{margin-top:20px;min-height:65px}
.rp-alert{margin-top:16px;padding:10px 12px;border-radius:var(--radius-sm);background:#FDECEA;color:#922B21;font-size:.8rem;
  line-height:1.45;font-weight:500}
.rp-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.rp-actions .btn-cta{height:40px;padding:0 20px;font-size:.84rem}
.rp-actions .btn-secondary{height:40px}
.rp-actions .btn-cta[aria-busy="true"]{opacity:.7;cursor:progress}
.rp-fine{font-size:.72rem;line-height:1.5;color:var(--ui-text-muted);margin:16px 0 0}
.rp-fine a{color:var(--ui-text-secondary)}

.rp-done{padding:34px 24px 28px;text-align:left}
.rp-done .rp-tick{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:var(--radius-pill);
  background:var(--ui-green-bg);color:var(--ui-green)}
.rp-done .rp-tick svg{width:22px;height:22px}
.rp-done h3{font-family:var(--ui-font-serif);font-weight:400;font-size:var(--text-h2);letter-spacing:var(--track-h2);margin:16px 0 0}
.rp-done p{font-size:.85rem;line-height:1.55;color:var(--ui-text-secondary);margin:8px 0 0}

@media (max-width:900px){
  .rp{width:100vw;max-width:none;max-height:92vh;max-height:92dvh;margin:auto 0 0;border-radius:var(--radius-lg) var(--radius-lg) 0 0;
    border-bottom:0}
  .rp[open]{animation:rp-up var(--dur-enter) var(--ease-out-expo)}
  .rp-head{padding:18px 18px 14px}
  .rp-scroll{padding:2px 18px calc(22px + env(safe-area-inset-bottom))}
}
@media (max-width:480px){
  .rp-row{grid-template-columns:1fr;gap:0}
}
@keyframes rp-up{from{transform:translateY(40px);opacity:0}to{transform:none;opacity:1}}
