/* Referral page: intro + one-question-at-a-time form */
.rf-band { min-height: 70vh; display: flex; align-items: center; background: linear-gradient(180deg, #f5f7fb, #eaf0fa); }
.rf-wrap { max-width: 720px; }
.rf-intro, .rf-done, .rf-fallback { text-align: center; }
.rf-intro p, .rf-done p, .rf-fallback p { font-size: 1.12rem; line-height: 1.7; color: var(--ink, #1c2340); }
.rf-how { list-style: none; counter-reset: rf; padding: 0; margin: 1.6rem auto 2rem; display: grid; gap: .8rem; text-align: left; max-width: 560px; }
.rf-how li { counter-increment: rf; position: relative; padding: .9rem 1rem .9rem 3.4rem; background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(10, 20, 80, .06); line-height: 1.5; }
.rf-how li::before { content: counter(rf); position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 800; display: grid; place-items: center; }

.rf-form { background: #fff; border-radius: 22px; padding: 2.2rem 2rem 1.8rem; box-shadow: 0 18px 44px rgba(10, 20, 80, .12); }
.rf-progress { height: 6px; background: #e6ebf5; border-radius: 6px; overflow: hidden; margin-bottom: 1.4rem; }
.rf-progress span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s ease; }
.rf-count { margin: 0 0 1.1rem; color: var(--muted); font-weight: 700; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.rf-step { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }
.rf-step legend, .rf-step legend label { font-family: var(--font-head, inherit); font-size: clamp(1.4rem, 3.4vw, 1.9rem); color: var(--navy); font-weight: 600; line-height: 1.25; padding: 0; margin-bottom: .6rem; }
.rf-req { color: #c0392b; }
.rf-opt { color: var(--muted); font-size: .65em; font-weight: 600; }
.rf-hint { color: var(--muted); margin: 0 0 .9rem; line-height: 1.5; }
.rf-step input[type="text"], .rf-step input[type="email"], .rf-step input[type="tel"], .rf-step textarea { width: 100%; font: inherit; font-size: 1.2rem; padding: .7rem .1rem; border: 0; border-bottom: 2px solid #b9c4e0; background: transparent; color: var(--navy); border-radius: 0; outline: none; }
.rf-step textarea { resize: vertical; }
.rf-step input:focus, .rf-step textarea:focus { border-bottom-color: var(--blue); }
.rf-check { display: flex; gap: .8rem; align-items: flex-start; font-size: 1.05rem; line-height: 1.5; cursor: pointer; margin-bottom: .8rem; }
.rf-check input { width: 1.3rem; height: 1.3rem; margin-top: .2rem; accent-color: var(--blue); flex: 0 0 auto; }
.rf-error { color: #b3261e; font-weight: 700; margin: .4rem 0 0; }
.rf-nav { display: flex; gap: .8rem; align-items: center; margin-top: 1.2rem; flex-wrap: wrap; }
.rf-nav [hidden] { display: none; }
.rf-key { color: var(--muted); font-size: .85rem; margin: .8rem 0 0; }
.rf-key[hidden] { display: none; }
.rf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.rf-done h2, .rf-fallback h2 { font-family: var(--font-head, inherit); color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 .8rem; }
.rf-done, .rf-fallback { background: #fff; border-radius: 22px; padding: 2.4rem 1.6rem; box-shadow: 0 18px 44px rgba(10, 20, 80, .12); }

/* no JavaScript: show every question stacked */
html:not(.rf-js) .rf-form { display: block; }
html:not(.rf-js) .rf-progress, html:not(.rf-js) .rf-count, html:not(.rf-js) #rf-next, html:not(.rf-js) #rf-back, html:not(.rf-js) .rf-key { display: none; }
@media (max-width: 560px) { .rf-form { padding: 1.6rem 1.2rem 1.4rem; } .rf-nav .btn { flex: 1 1 auto; } }

.rf-terms { max-width: 560px; margin: -.6rem auto 1.8rem; padding: .9rem 1rem; border-radius: 12px; background: rgba(224, 185, 90, .2); border: 1px solid rgba(224, 185, 90, .55); font-size: .98rem !important; text-align: left; }
