/* /review/ - "Write a review" finder (resources/views/review/find.blade.php).
   Every class is rvf-*; colours and buttons come from style.css. */
.rvf { padding: 0 0 20px; }
/* the blocks below are switched with the hidden attribute; their own display must not win */
.rvf [hidden] { display: none !important; }
.rvf-card {
    position: relative; z-index: 2; margin: 44px 0 0; padding: 22px;
    background: #fff; border: 1px solid #e3e1ef; border-radius: 18px; box-shadow: 0 30px 70px rgba(30,20,80,.12);
}
.rvf-fields { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; margin: 0; }
.rvf-field { display: grid; gap: 6px; min-width: 0; }
.rvf-field label { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b6880; }
.rvf-field label span { font-weight: 700; letter-spacing: 0; text-transform: none; }
.rvf-field input {
    width: 100%; height: 54px; padding: 0 16px; border: 1px solid #e3e1ef; border-radius: 12px; background: #fff;
    font: inherit; font-size: 1.02rem; font-weight: 700; color: #150d15; outline: none; transition: border-color .15s, box-shadow .15s;
}
.rvf-field input:focus { border-color: var(--primary, #6865e7); box-shadow: 0 0 0 4px rgba(104,101,231,.14); }
.rvf-hint, .rvf-note, .rvf-foot { margin: 14px 2px 0; font-size: .92rem; font-weight: 600; color: #6b6880; }
.rvf-note { color: #150d15; }
.rvf-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 800; color: #524fd6; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.rvf-results { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.rvf-res { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid #e3e1ef; border-radius: 14px; transition: border-color .15s, background-color .15s; }
.rvf-res:hover { border-color: var(--primary, #6865e7); background: #fbfaff; }
.rvf-res__logo { width: 46px; height: 46px; border-radius: 12px; background: #ebe9fb; color: #524fd6; display: grid; place-items: center; font-weight: 900; overflow: hidden; }
.rvf-res__logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.rvf-res__name { display: block; font-weight: 800; font-size: 1.02rem; color: #150d15; text-decoration: none; overflow-wrap: anywhere; }
.rvf-res__name:hover { color: #524fd6; }
.rvf-res__meta { font-size: .84rem; font-weight: 600; color: #6b6880; }
.rvf-res__meta b { color: #150d15; font-weight: 800; }
.rvf-res__act { display: grid; justify-items: end; gap: 4px; }
.rvf-res__lbl { font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6b6880; }
/* 5..1 in the DOM, shown reversed, so hovering a star lights it and all before it. */
.rvf-stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rvf-stars a { width: 34px; height: 34px; color: #d5d2e4; border-radius: 6px; }
.rvf-stars a svg { display: block; width: 100%; height: 100%; }
.rvf-stars a:hover, .rvf-stars a:hover ~ a, .rvf-stars a:focus-visible, .rvf-stars a:focus-visible ~ a { color: #f5a623; }
.rvf-stars a:focus-visible { outline: 2px solid var(--primary, #6865e7); outline-offset: 2px; }

.rvf-add { margin-top: 16px; padding: 20px; display: grid; gap: 12px; border-radius: 14px; background: #f7f6fd; border: 1px solid var(--primary, #6865e7); }
.rvf-add h2 { margin: 0; font-size: 1.25rem; font-weight: 800; color: #150d15; overflow-wrap: anywhere; }
.rvf-add p { margin: 0; color: #4a4660; max-width: 68ch; }
.rvf-add ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rvf-add li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-weight: 600; color: #150d15; }
.rvf-add li svg { width: 20px; height: 20px; margin-top: 2px; }
.rvf-add li.is-yes svg { color: #0f7a4d; }
.rvf-add li.is-no svg { color: #b45309; }
.rvf-add .btn { justify-self: start; }

.rvf-how { padding: 56px 0 26px; }
.rvf-recent { padding: 26px 0 70px; }
.rvf-h2 { margin: 0 0 22px; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; text-align: center; color: #150d15; }
.rvf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rvf-steps li { padding: 22px; border-radius: 16px; background: #f4f2fb; }
.rvf-steps b { display: block; margin-bottom: 6px; font-size: 1.08rem; font-weight: 800; color: #150d15; }
.rvf-steps p { margin: 0; font-size: .96rem; color: #4a4660; }
.rvf-steps__n { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 50%; background: var(--primary, #6865e7); color: #fff; font-weight: 900; font-size: .9rem; }
.rvf-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rvf-chips a { display: inline-block; padding: 8px 14px; border: 1px solid #e3e1ef; border-radius: 999px; font-size: .9rem; font-weight: 700; color: #150d15; text-decoration: none; transition: border-color .15s, color .15s; }
.rvf-chips a:hover { border-color: var(--primary, #6865e7); color: #524fd6; }
.rvf-chips a span { color: #6b6880; font-weight: 600; }
.rvf-chips a span::before { content: "\00b7"; margin: 0 6px 0 2px; }

@media (max-width: 760px) {
    .rvf-steps { grid-template-columns: minmax(0, 1fr); }
    .rvf-how { padding-top: 40px; }
}
@media (max-width: 640px) {
    .rvf-card { padding: 16px; margin-top: 28px; }
    .rvf-fields { grid-template-columns: minmax(0, 1fr); }
    .rvf-res { grid-template-columns: auto minmax(0, 1fr); }
    .rvf-res__act { grid-column: 1 / -1; grid-auto-flow: column; justify-items: start; justify-content: space-between; align-items: center; }
}
