/* /leave-a-review/ only. Every selector is rv- prefixed, so this file can
   never restyle another page. Same look as the pilot form (pilot.css). */

.rv-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
}
.rv-intro h1 {
  margin-top: 0.2em;
}
.rv-points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--text-2);
}
.rv-points li::before {
  content: "\2713";
  color: var(--money);
  font-weight: 800;
  margin-right: 8px;
}
.rv-note {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.rv-panel {
  background: var(--paper-panel);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.rv-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
}
.rv-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.rv-field--wide {
  grid-column: 1 / -1;
}
.rv-field label,
.rv-field legend {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 0;
}
.rv-optional {
  font-weight: 500;
  color: var(--ink-muted);
}
.rv-input {
  font: inherit;
  font-size: 1rem;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--paper-border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.rv-textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}
.rv-input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 1px;
  border-color: var(--orange);
}
.rv-input[aria-invalid="true"] {
  border-color: #c62828;
}
.rv-error {
  margin: 0;
  font-size: 0.88rem;
  color: #c62828;
}
.rv-error:empty {
  display: none;
}

/* Stars: radios in reverse order so "this one and the ones before it" light up. */
.rv-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.rv-stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.rv-stars label {
  font-size: 2rem;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #c9ced6;
  cursor: pointer;
  border-radius: 8px;
}
.rv-stars input:checked ~ label,
.rv-stars label:hover,
.rv-stars label:hover ~ label {
  color: #f5a623;
}
.rv-stars input:focus-visible + label {
  outline: 3px solid var(--orange);
  outline-offset: 1px;
}
.rv-clear {
  align-self: flex-start;
  background: none;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink-2);
  text-decoration: underline;
  cursor: pointer;
}
.rv-clear[hidden] {
  display: none;
}

.rv-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 500 !important;
  line-height: 1.45;
  cursor: pointer;
}
.rv-consent input {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--orange);
}
.rv-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rv-submit {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
  border: 0;
  cursor: pointer;
}
.rv-submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}
.rv-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.95rem;
}
.rv-status:empty {
  display: none;
}
.rv-status--error {
  color: #c62828;
  font-weight: 600;
}
.rv-fineprint {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
}
.rv-fineprint a {
  color: var(--ink-2);
}
.rv-done h2 {
  color: var(--ink);
  font-size: 1.4rem;
  margin: 0 0 0.4em;
}
.rv-done p {
  color: var(--ink-2);
  margin: 0;
}
.rv-done:focus {
  outline: none;
}
/* `display: grid` would otherwise beat the [hidden] attribute. */
.rv-form[hidden],
.rv-done[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .rv-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 600px) {
  .rv-form {
    grid-template-columns: 1fr;
  }
  .rv-panel {
    padding: 20px 16px;
  }
}
