/* Leave a review (review.html / review.js). Layout, card, inputs and buttons
   are the Contact page's (contact-desktop.css >= 540px, contact-mobile.css
   below); this file adds only what the review form has and Contact does not:
   the subtitle, hints, a select, the longer terms note and the thank-you state.
   Colors come from the tokens those two files define for each width. */

.rv-sub {
  margin: -12px 0 22px; font-family: var(--font-sans); font-size: 14px; line-height: 1.5; color: var(--muted);
}
.rv-hint {
  margin: 0; font-family: var(--font-sans); font-size: 12px; line-height: 1.45; color: var(--muted);
}
.rv-hint--tight { margin-top: -12px; }
.rv-optional { font-weight: 400; color: var(--muted); }
.rv-select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.rv-terms { text-align: left; }

/* Only review-specific disclosures; the calibrated Contact card and controls
   continue to come directly from contact-desktop.css / contact-mobile.css. */
.rv-profile-row > *, .rv-profile-row input, .rv-profile-row select { min-width: 0; }
@media (max-width: 389.98px) { .rv-profile-row { grid-template-columns: 1fr; } }
.rv-terms-details {
  font-family: var(--font-sans); font-size: 12px; line-height: 1.5; color: var(--ink-2);
}
.rv-terms-details summary { cursor: pointer; }
.rv-terms-details summary::-webkit-details-marker { display: none; }
.rv-terms-details summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
.rv-terms-details summary { list-style: none; font-size: 11px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.rv-terms-details[open] summary { margin-bottom: 12px; }
.rv-consent { text-align: left; }

.rv-thanks { display: grid; gap: 14px; justify-items: start; outline: none; }
.rv-thanks[hidden] { display: none; }
.rv-tick {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent);
}
.rv-thanks .rv-thanks-title { margin: 4px 0 0; }
.rv-thanks-body {
  margin: 0; max-width: 46ch; font-family: var(--font-sans); font-size: 15px; line-height: 1.55; color: var(--ink-2);
}
/* .el-app a { color: inherit } would turn the link white inside the hero. */
.ct-page .rv-home, .ctm-app .rv-home {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 500; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.ct-page .rv-home:focus-visible, .ctm-app .rv-home:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

@media not all and (min-width: 540px) {
  /* Keep the selected painting light, as in the approved mock. Card styling
     remains the shared Contact calibration. */
  .contact-kind-review .ctm-hero-scrim { background: rgba(20, 30, 20, .12); }
  .contact-kind-review .ctm-hero-photo { object-position: 50% 50%; }
  .rv-hint--tight { margin-top: -6px; }
  .rv-hint { font-size: 11.5px; }
  .rv-thanks { padding: 4px 0 2px; }
  .rv-thanks-body { font-size: 14px; }
}

/* Contact Us measured card heights, rounded up. Keep shared calibration intact;
   minimums let optional details and validation messages expand naturally. */
.contact-kind-review .rv-card {
  min-height: 822px; display: flex; flex-direction: column;
}
.rv-card [data-review-panel]:not([hidden]) { flex: 1; display: flex; flex-direction: column; }
.rv-card .rv-form { flex: 1; }
.contact-kind-review .rv-card .rv-consent { margin-top: auto; }
@media (max-width: 539.98px) { .contact-kind-review .rv-card { min-height: 700px; } }
@media (max-width: 389.98px) { .contact-kind-review .rv-card { min-height: 716px; } }
@media (max-width: 359.98px) { .contact-kind-review .rv-card { min-height: 750px; } }
@media (min-width: 540px) and (max-width: 560px) { .contact-kind-review .rv-card { min-height: 1072px; } }
@media (min-width: 561px) and (max-width: 599.98px) { .contact-kind-review .rv-card { min-height: 834px; } }
