/* zahtjev_procjena.css — TP-DENI-JEDNOSTAVAN-ZAHTJEV-PROCJENA-C1-004
   Jedan kratak obrazac: fotografije, e-mail, opis, saglasnost, jedno zeleno
   dugme. Uklonjeni su stilovi koraka (.zp-steps/.zp-step-dot), pregleda
   (.zp-review) i popup potvrde (.zp-dialog*) — te cjeline više ne postoje.
   Boje ostatka stranice i dalje dolaze iz style.css :root palete. */

.zp-body { background: #f4f6f8; margin: 0; }
.zp-back-link { margin-left: auto; color: #dfe6f2; text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.zp-back-link:hover { color: #fff; }

.zp-main { display: flex; justify-content: center; padding: 28px 16px 60px; }
.zp-card {
  width: 100%;
  max-width: 640px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 30px 24px;
  box-sizing: border-box;
}
.zp-card h1 { margin: 0 0 18px; font-size: 1.5rem; }
.zp-block { margin-bottom: 20px; }
.zp-block h2 { font-size: 1.1rem; margin: 0 0 6px; }
.zp-optional-tag { font-size: 0.78rem; font-weight: 600; color: #9aa7b8; margin-left: 4px; }
.zp-hint { font-size: 0.82rem; }
.zp-tel-row { margin-top: 14px; }

/* ── Pet jednakih mjesta za fotografije ──────────────────────────────────
   Svih pet dijele istu ćeliju mreže i isti aspect-ratio, pa su jednake
   veličine i poravnata na svakoj širini. Prazno mjesto NEMA <img> (JS ga
   pravi tek kad fotografija postoji) — ranije je prazan <img> crtao
   polomljenu ikonicu ispod teksta, jer autorsko display:block ima istu
   specifičnost kao UA pravilo [hidden]{display:none} pa ga nadjačava.
   Pravilo ispod je pojas i tregeri za isti slučaj. */
.zp-photo-slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 12px 0 6px; }
.zp-photo-slot {
  position: relative;
  aspect-ratio: 320 / 220;
  border-radius: 10px;
  overflow: hidden;
  border: 1px dashed var(--line);
  background: #eef1f5;
}
.zp-photo-slot-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.zp-photo-slot-btn {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  cursor: pointer;
  color: #6b7480;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  padding: 4px;
}
.zp-photo-slot-plus { font-size: 1.5rem; font-weight: 400; line-height: 1; }
.zp-photo-slot-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }

.zp-photo-slot-img { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.zp-photo-slot-img[hidden] { display: none; }
/* Popunjeno mjesto: vidi se SAMO fotografija — bez broja, naziva i uputa
   preko nje. Label ostaje preko cijele pločice (klik = zamjena). */
.zp-photo-slot.is-filled .zp-photo-slot-btn { opacity: 0; }
.zp-photo-slot.is-filled { border-style: solid; border-color: var(--accent); }

.zp-photo-slot-zoom,
.zp-photo-slot-remove {
  position: absolute; z-index: 3;
  top: 4px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(22, 32, 44, 0.75);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.zp-photo-slot-remove { right: 4px; }
.zp-photo-slot-zoom { left: 4px; }
.zp-photo-slot-zoom[hidden], .zp-photo-slot-remove[hidden] { display: none; }
.zp-photo-slot-zoom:focus-visible, .zp-photo-slot-remove:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

/* ── Jedno završno dugme ──────────────────────────────────────────────── */
.zp-send-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 15px 22px;
  border: none;
  border-radius: 10px;
  background: #15803D;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.zp-send-btn:hover:not(:disabled) { background: #166534; }
.zp-send-btn:focus-visible { outline: 3px solid #166534; outline-offset: 2px; }
.zp-send-btn:disabled { background: #e3e6ea; color: #8a919c; cursor: not-allowed; }

/* ── Uvećani prikaz izabrane fotografije (prije slanja) ──────────────── */
.zp-lightbox {
  position: fixed; inset: 0; z-index: 600;
  background: rgba(12, 17, 24, 0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.zp-lightbox[hidden] { display: none; }
.zp-lightbox-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.zp-lightbox-close {
  position: absolute; top: 10px; right: 10px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.zp-lightbox-close:hover { background: rgba(255, 255, 255, 0.26); }
.zp-lightbox-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* ── Mobilno: puni ekran, bez horizontalnog skrola ─────────────────────
   Pet mjesta ostaje u JEDNOM redu i na telefonu (mreža je 1fr × 5, pločice
   se srazmjerno smanje) — tako ne nastaje "rasuti" drugi red od dvije. */
@media (max-width: 640px) {
  .zp-main { padding: 0; }
  .zp-card { max-width: 100%; border-radius: 0; border-left: none; border-right: none; min-height: calc(100vh - 72px); padding: 22px 16px 28px; }
  .zp-photo-slots { gap: 6px; }
  /* Kvadratna pločica na telefonu: uža je, pa joj treba visina da dodirna
     zona i tekst budu upotrebljivi. Tekst OSTAJE (nalog ga traži) — samo se
     smanji i prelama, red se ne lomi i nema vodoravnog skrola. */
  .zp-photo-slot { aspect-ratio: 1 / 1; }
  .zp-photo-slot-btn { font-size: 0.58rem; padding: 2px; }
  .zp-photo-slot-plus { font-size: 1.25rem; }
}
