/* Free Rate Review page (rate-review.html). Builds on styles.css. */
.rr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); gap: 56px; align-items: start; }
.rr-aside { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.rr-aside .steps ol { gap: 10px; }
.rr-need { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.rr-need p { color: var(--muted); font-size: .95rem; }
.rr-safe { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.rr-safe svg { color: #4E8584; margin-top: 2px; }
@media (max-width: 960px) { .rr-grid { grid-template-columns: 1fr; gap: 32px; } .rr-aside { position: static; } }

.rr-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rr-form > fieldset + fieldset { padding-top: 28px; margin-top: 12px; box-shadow: inset 0 1px 0 var(--line); }
.rr-form fieldset > legend { float: left; width: 100%; }
.rr-form fieldset > legend + * { clear: both; }
.rr-form .row2, .rr-form .row3 { align-items: end; }
.rr-form > fieldset > legend { display: flex; align-items: center; gap: 12px; font: 700 1.2rem/1.2 var(--display); color: var(--text); padding: 0; margin-bottom: 4px; }
.rr-form > fieldset > legend .n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--gold); font-size: .9rem; flex: none; }
.rr-form .hint { color: var(--muted); font-size: .92rem; margin-top: -6px; }
.rr-form .opt { font-weight: 400; color: var(--muted); }
.rr-form textarea { resize: vertical; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row3 { grid-template-columns: 1fr; } }

.group { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; min-width: 0; }
.group-label { font: 500 .95rem/1.4 var(--body); margin-bottom: 2px; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.rr-form .opts label { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; font-size: .93rem; padding: 9px 14px; border: 1px solid #C9D3D1; border-radius: 999px; background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.rr-form .opts input { width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--teal); flex: none; }
.rr-form .opts label:hover { border-color: var(--sage); }
.rr-form .opts label:has(input:checked) { border-color: var(--teal); background: #E7EFEE; }
.rr-form .opts label:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.reveal-box { background: var(--tint); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.reveal-box[hidden] { display: none; }

.drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; border: 1.5px dashed #AFC0BE; border-radius: 12px; padding: 26px 18px; background: var(--paper); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--teal); background: #EEF4F3; }
.drop svg { width: 30px; height: 30px; color: #4E8584; }
.drop strong { font-size: 1rem; }
.drop span { color: var(--muted); font-size: .88rem; font-weight: 400; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--tint); border-radius: 8px; padding: 9px 12px; font-size: .92rem; }
.files li span { overflow-wrap: anywhere; min-width: 0; }
.files button { border: 0; background: none; color: #9E3E2B; font: 600 .88rem var(--body); cursor: pointer; padding: 4px; flex: none; }
.tip { display: flex; gap: 10px; align-items: flex-start; background: #FBF5EA; border: 1px solid #EBDDC4; border-radius: 10px; padding: 12px 14px; font-size: .9rem; color: #6B5330; }
.tip svg { width: 18px; height: 18px; color: #9A7440; margin-top: 2px; flex: none; }
.rr-form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .93rem; color: var(--text); }
.rr-form .check input { width: 18px; height: 18px; margin: 3px 0 0; padding: 0; accent-color: var(--teal); flex: none; }
.rr-form .err, .rr-err { color: #9E3E2B; font-size: .88rem; font-weight: 500; }
.rr-err[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; box-shadow: none; }
.progress { height: 6px; border-radius: 6px; background: var(--tint); overflow: hidden; }
.progress[hidden] { display: none; }
.progress div { height: 100%; width: 0; background: var(--sage); transition: width .2s; }
.form[hidden] { display: none; }
.rr-done { text-align: center; align-items: center; padding: 48px 32px; gap: 14px; }
.rr-done .ok { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #EAF3EE; color: #24533F; }
.rr-done .ok svg { width: 30px; height: 30px; stroke-width: 2.4; }
.rr-done p { color: var(--muted); max-width: 34em; }