/* Shared styles for the public invoice and ride feedback pages. */

.receipt-card {
  text-align: left;
}

.receipt-loading {
  text-align: center;
  color: #5b6b60;
  font-family: var(--font-body);
  padding: 24px 0;
}

.receipt-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 2px dashed #d8e6da;
}

.receipt-logo {
  border-radius: 14px;
  flex-shrink: 0;
}

.receipt-head h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0;
  color: var(--green-deep);
}

.receipt-unit {
  margin: 4px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.receipt-unit-line {
  margin: 1px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: #3d4a42;
  line-height: 1.35;
}

.receipt-sub {
  margin: 2px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d7d72;
  font-weight: 600;
}

.receipt-badge {
  margin-left: auto;
  align-self: flex-start;
  background: var(--green-bright);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 6px 12px;
  border-radius: 999px;
}

.receipt-badge.is-unpaid {
  background: #b58900;
}

.receipt-ref {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.receipt-ref dt,
.receipt-meta dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8a80;
  font-weight: 600;
  margin-bottom: 2px;
}

.receipt-ref dd,
.receipt-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}

.receipt-section {
  margin: 18px 0;
}

.receipt-section h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--green-deep);
  margin: 0 0 10px;
}

.receipt-meta {
  display: grid;
  gap: 12px;
  margin: 0;
}

@media (min-width: 520px) {
  .receipt-meta {
    grid-template-columns: 1fr 1fr;
  }
}

.receipt-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  margin-top: 18px;
  border-radius: 16px;
  background: var(--mist);
  border: 1px solid #cbe8b8;
}

.receipt-total span {
  font-weight: 600;
  color: var(--green-deep);
}

.receipt-total strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--green-deep);
}

.receipt-mode {
  margin: 8px 2px 0;
  font-size: 0.85rem;
  color: #5b6b60;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.receipt-actions .submit-btn {
  flex: 1 1 200px;
}

.receipt-note {
  margin-top: 18px;
  font-size: 0.75rem;
  color: #8a978e;
  text-align: center;
}

/* Feedback rating */

.rating-field {
  border: none;
  margin: 0 0 8px;
  padding: 0;
  text-align: center;
}

.rating-field legend {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8a80;
  font-weight: 700;
  margin-bottom: 8px;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.star {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2.4rem;
  line-height: 1;
  padding: 4px;
  color: #d5ded7;
  transition: transform 0.12s ease, color 0.12s ease;
}

.star:hover,
.star:focus-visible {
  transform: scale(1.12);
  outline: none;
}

.star.is-active {
  color: #f5b301;
}

.rating-caption {
  margin: 8px 0 0;
  font-weight: 600;
  color: #5b6b60;
  min-height: 1.4em;
}

#feedback-form textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #cfded4;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}

#feedback-form textarea:focus {
  outline: none;
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(31, 166, 74, 0.15);
}

@media print {
  .no-print,
  .receipt-actions {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .signup-card {
    box-shadow: none;
    border: none;
    margin: 0;
    max-width: none;
  }
}
