/* Public check-in page (WeChat / phone). Tokens live in styles.css. */

.checkin-page {
  max-width: 28rem;
}

.checkin-page p {
  color: var(--muted);
}

.checkin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.1rem 1.35rem;
  box-shadow: 0 10px 30px rgb(28 25 23 / 6%);
}

.checkin-hero h1 {
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.checkin-announcement {
  margin: 0.85rem 0 1.1rem;
  padding: 0.8rem 0.9rem;
  background: #f5e6d3;
  border-radius: 12px;
  color: var(--fg);
  line-height: 1.55;
}

.checkin-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.checkin-field label {
  display: block;
  margin-bottom: 0.4rem;
}

.checkin-req {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.85em;
  margin-left: 0.35rem;
}

.checkin-field-error {
  color: var(--danger);
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
}

.checkin-other {
  margin-top: 0.75rem;
}

.checkin-submit {
  width: 100%;
  min-height: 52px;
  font-size: 1.125rem;
  margin-top: 0.25rem;
  transition: transform 0.12s ease, filter 0.12s ease;
}

.checkin-submit:active {
  transform: scale(0.98);
  filter: brightness(0.95);
}

.checkin-status,
.checkin-success {
  color: var(--fg);
}

.checkin-success {
  font-weight: 650;
  font-size: 1.2rem;
  margin-bottom: 0.85rem;
}

.checkin-warning {
  margin: 0 0 0.85rem;
  padding: 0.8rem 0.9rem;
  background: #f5e6d3;
  border-radius: 12px;
  color: var(--fg);
  font-weight: 650;
  line-height: 1.55;
}

.checkin-review {
  margin: 0 0 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkin-review-row {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}

.checkin-review-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.checkin-review-row dt {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.checkin-review-row dd {
  margin: 0;
  font-size: 1.05rem;
  word-break: break-word;
}

.checkin-enter {
  animation: checkin-rise 0.35s ease both;
}

@media (prefers-reduced-motion: reduce) {
  .checkin-enter {
    animation: none;
  }

  .checkin-submit {
    transition: none;
  }

  .checkin-submit:active {
    transform: none;
  }
}

@keyframes checkin-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkin-history {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.checkin-history h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.checkin-history-count,
.checkin-already-lead {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.checkin-history-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.checkin-history-empty {
  margin: 0 0 1rem;
}

.checkin-feedback label {
  font-weight: 600;
}

.checkin-flags {
  border: 0;
  padding: 0;
  margin: 0.75rem 0;
}

.checkin-flags legend {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.checkin-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0.4rem;
}

.checkin-flag input {
  width: auto;
  min-height: 22px;
}
