/* Public pages: ticket form + feedback form */

.public-header {
  background: var(--green);
  color: #fff;
  padding: 22px 16px;
  text-align: center;
}

.public-header h1 {
  color: #fff;
  margin: 0;
  font-size: 24px;
}

.public-header p {
  margin: 6px 0 0;
  color: var(--green-light);
  font-size: 13px;
}

.public-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.card {
  background: var(--surface);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 26px 22px;
}

.card h2 { margin-top: 0; font-size: 20px; }

.intro-text { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; }

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--green);
  margin: 26px 0 12px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

/* File upload */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  background: var(--surface);
}

.file-drop:hover, .file-drop:focus-within { border-color: var(--green); }

.file-drop input[type='file'] { display: none; }

.file-name { margin-top: 8px; font-weight: 500; color: var(--green-dark); word-break: break-all; }

/* Success panel */
.success-panel { text-align: center; padding: 16px 0; }

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 34px;
  line-height: 64px;
}

.ticket-number-box {
  display: inline-block;
  background: var(--green-pale);
  border: 2px dashed var(--green);
  color: var(--green-dark);
  border-radius: 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 14px 28px;
  margin: 14px 0;
  user-select: all;
}

.response-estimate {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  margin: 14px auto;
  max-width: 420px;
}

/* ── Star ratings (keyboard operable via radio inputs) ───────────── */
.stars-field { margin-bottom: 22px; }

.stars-field > .stars-label { font-weight: 500; margin-bottom: 6px; display: block; font-size: 15px; }

.stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.stars label {
  font-size: 34px;
  line-height: 1;
  color: #d1d5db;
  cursor: pointer;
  transition: color 0.1s, transform 0.1s;
  padding: 2px;
}

.stars label:hover { transform: scale(1.12); }

/* row-reverse: fill the hovered/checked star and the ones BEFORE it */
.stars input:checked ~ label,
.stars label:hover,
.stars label:hover ~ label { color: #f59e0b; }

.stars input:focus-visible + label { outline: 3px solid rgba(45, 106, 79, 0.45); outline-offset: 2px; border-radius: 6px; }

.yesno { display: flex; gap: 10px; }

.yesno .radio-card { flex: 1; justify-content: center; }

.feedback-meta {
  background: var(--green-pale);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 22px;
}

.feedback-meta strong { color: var(--green-dark); }

.state-panel { text-align: center; padding: 30px 10px; }

.state-panel .emoji { font-size: 48px; }

/* ── Status timeline ─────────────────────────────────────────────── */
ol.timeline {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.timeline-step {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0 10px 4px;
  position: relative;
  font-size: 15px;
}

.timeline-step .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.timeline-step.done .dot { background: var(--green); color: #fff; }
.timeline-step.pending .dot { background: var(--border); color: var(--text-muted); }

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 36px;
  bottom: -10px;
  width: 2px;
  background: var(--border);
}

.timeline-step.done:not(:last-child)::after { background: var(--green-light); }

.timeline-step .step-label { font-weight: 500; }
.timeline-step.pending .step-label { color: var(--text-muted); }
.timeline-step .step-date { color: var(--text-muted); font-size: 13px; margin-left: auto; }

footer.public-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  padding: 18px;
}

@media (max-width: 420px) {
  .card { padding: 20px 14px; }
  .ticket-number-box { font-size: 22px; padding: 12px 18px; }
  .yesno { flex-direction: column; }
}
