/* ============================================================
   Review form — post-visit
   ============================================================ */

.review-main {
  padding: 40px 0 80px;
  max-width: 760px;
  margin: 0 auto;
}

.review-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.review-progress .step {
  width: 24px; height: 24px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.review-progress .step.done { background: var(--go); color: white; }
.review-progress .step.active { background: var(--dark); color: var(--text-on-dark); }
.review-progress .line {
  flex: 1;
  height: 2px;
  background: var(--surface-3);
  border-radius: 2px;
  max-width: 60px;
}
.review-progress .line.done { background: var(--go); }

.review-head h1 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: -0.035em;
  line-height: 1.05;
  font-weight: 600;
  margin-bottom: 10px;
}
.review-head h1 em { font-style: normal; color: var(--text-muted); }
.review-head .lead {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 24px;
  max-width: 560px;
  line-height: 1.55;
}

/* visit summary mini-card */
.visit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}
.visit-card .ic {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  background: var(--surface-3);
  display: grid; place-items: center;
}
.visit-card .ic .ms { font-size: 22px; }
.visit-card .info .n { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.visit-card .info .m {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.visit-card .info .m .ms { font-size: 14px; }
.visit-card .id {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* stars */
.review-stars {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}
.review-star {
  width: 64px; height: 64px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 120ms ease;
  font-family: inherit;
}
.review-star .ms {
  font-size: 36px;
  color: var(--text-faint);
  font-variation-settings: 'opsz' 40, 'wght' 300, 'FILL' 0, 'GRAD' 0;
}
.review-star.filled {
  background: var(--signal);
  border-color: var(--signal);
}
.review-star.filled .ms {
  color: var(--signal-on);
  font-variation-settings: 'opsz' 40, 'wght' 600, 'FILL' 1, 'GRAD' 0;
}
.review-star:hover { border-color: var(--text); }

.review-stars-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.review-stars-meta .val {
  font-family: var(--font-mono);
  color: var(--text);
  font-weight: 600;
  margin-right: 4px;
}

/* section */
.review-section { margin-bottom: 24px; }
.review-section-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.review-section-title .opt {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* tag chips for review */
.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
}
.tag-chip:hover { border-color: var(--text); }
.tag-chip.selected {
  background: var(--dark);
  color: var(--text-on-dark);
  border-color: var(--dark);
}
.tag-chip.selected .ms { color: var(--signal); }
.tag-chip .ms { font-size: 14px; }

/* photo upload */
.photo-upload {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.photo-tile {
  aspect-ratio: 1;
  border-radius: var(--r-md);
  background: var(--surface-3);
  position: relative;
  overflow: hidden;
}
.photo-tile.uploaded {
  background: linear-gradient(135deg, #2a2c32 0%, #1c1e23 100%);
  display: grid; place-items: center;
}
.photo-tile.uploaded .ms { color: rgba(247, 246, 242, 0.4); font-size: 28px; }
.photo-tile.uploaded::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.25), transparent 40%);
}
.photo-tile .remove {
  position: absolute;
  top: 6px; right: 6px;
  width: 24px; height: 24px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.95);
  border: 0;
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 12px;
  z-index: 2;
}
.photo-add {
  border: 1.5px dashed var(--line-strong);
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
  padding: 4px;
}
.photo-add .ms { font-size: 22px; color: var(--text-muted); }
.photo-add:hover { border-color: var(--text); color: var(--text); }

/* text area */
.review-text-wrap {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 120ms ease;
}
.review-text-wrap:focus-within { border-color: var(--text); }
.review-text-wrap textarea {
  border: 0; outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  width: 100%;
  resize: none;
  min-height: 80px;
}
.review-text-wrap textarea::placeholder { color: var(--text-muted); }
.review-text-wrap .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
}
.review-text-wrap .meta .mono { font-family: var(--font-mono); }
.review-text-wrap .meta .ms { font-size: 14px; vertical-align: -2px; color: var(--info); margin-right: 4px; }

/* anonymity toggle */
.anon-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--text-2);
  margin-top: 14px;
}
.anon-row .switch {
  width: 36px; height: 22px;
  background: var(--surface-3);
  border-radius: var(--r-pill);
  position: relative;
  cursor: pointer;
}
.anon-row .switch.on { background: var(--dark); }
.anon-row .switch::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--surface);
  top: 3px; left: 3px;
  transition: left 120ms ease;
}
.anon-row .switch.on::after { left: 17px; }
.anon-row .ms { color: var(--text-muted); }
.anon-row .l { flex: 1; }
.anon-row .l strong { color: var(--text); font-weight: 600; display: block; }
.anon-row .l .d { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* footer actions */
.review-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.review-actions .skip {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.review-actions .primary-btn {
  padding: 14px 24px;
  font-size: 15px;
}
