/* Sign-up, sign-in and payment pages on spindleloans.com (resources/views/platform). Sits on site.css. */
.pf .top { position: sticky; }
.pf .top .wrap { gap: 10px; }
.pf .top .signin { margin-left: auto; }
.pf .top .signin, .pf .top .btn { white-space: nowrap; }
.pf-main { min-height: 60vh; }
.pf-split { width: min(1200px, 100% - 40px); margin: 0 auto; padding: 48px 0 80px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: start; }
.pf-narrow { width: min(620px, 100% - 40px); margin: 0 auto; padding: 56px 0 90px; }
.pf h1 { font-size: clamp(32px, 4vw, 46px); }
.pf .lead { margin-top: 12px; }
.pf-form { display: grid; gap: 18px; margin-top: 28px; }
.pf-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
.pf-form legend { font-weight: 700; color: var(--navy); font-size: 18px; margin-bottom: 4px; padding: 0; }
.pf-form label { display: grid; gap: 7px; font-weight: 600; color: var(--navy); font-size: 15px; }
.pf-form input:not([type=radio]):not([type=checkbox]), .pf-form select, .pf-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid #c9d2e2; background: #fff; }
.pf-form textarea { padding: 12px 14px; min-height: 110px; }
.pf-form input:focus, .pf-form select:focus, .pf-form textarea:focus { outline: 3px solid rgba(26, 195, 105, .35); border-color: var(--green-ink); }
.pf-form em, .pf-err { font-style: normal; color: #b42318; font-weight: 500; font-size: 14px; }
.pf-form .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
.pf-form .hint .ok { color: var(--green-ink); font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.addr { display: flex; align-items: stretch; border: 1px solid #c9d2e2; border-radius: 12px; background: #fff; overflow: hidden; }
.addr input { border: 0 !important; border-radius: 0 !important; min-width: 0; }
.addr span { display: flex; align-items: center; padding: 0 14px; background: var(--canvas); color: var(--muted); font-weight: 500; white-space: nowrap; border-left: 1px solid #c9d2e2; }
.addr:focus-within { outline: 3px solid rgba(26, 195, 105, .35); border-color: var(--green-ink); }
.pf-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pf-plans.four { grid-template-columns: repeat(4, 1fr); }
.pf-plan { position: relative; }
.pf-plan input { position: absolute; opacity: 0; }
.pf-plan span { display: grid; gap: 2px; height: 100%; padding: 14px; border-radius: 14px; border: 1.5px solid #c9d2e2; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.pf-plan b { color: var(--navy); } .pf-plan i { font-style: normal; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; } .pf-plan small { color: var(--muted); font-weight: 400; }
.pf-plan input:checked + span { border-color: var(--green-ink); box-shadow: 0 0 0 3px rgba(26, 195, 105, .25); }
.pf-plan input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.pf-check { display: flex !important; gap: 12px !important; align-items: flex-start; font-weight: 400 !important; color: var(--ink) !important; }
.pf-check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--green-ink); flex: none; }
.pf-submit { width: 100%; min-height: 54px; font-size: 17px; }
.pf-submit:disabled { opacity: .75; cursor: progress; }
.pf-small { color: var(--muted); font-size: 15px; margin-top: 18px; }
.pf-small a { color: var(--green-ink); font-weight: 600; }
.pf-alert { padding: 14px 16px; border-radius: 12px; background: var(--canvas); color: var(--ink); margin-top: 18px; }
.pf-alert.bad { background: #fdecea; color: #b42318; } .pf-alert.ok { background: var(--green-soft); color: var(--green-ink); }
.pf-side { position: sticky; top: 100px; background: var(--navy); color: #d6deef; border-radius: var(--radius); padding: 28px; }
.pf-side h2 { color: #fff; font-size: 22px; }
.pf-side .ticks li { color: #d6deef; } .pf-side .ticks b { color: #fff; }
.pf-side .pf-small { color: #b9c4dc; } .pf-side .pf-small a { color: #8be9b4; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pf-forgot { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 8px; }
.pf-forgot summary { min-height: 44px; display: flex; align-items: center; color: var(--green-ink); font-weight: 600; cursor: pointer; }
.pf-bill { margin-top: 24px; display: grid; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.pf-bill div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fff; }
.pf-bill div:last-child { border-bottom: 0; }
.pf-bill small { color: var(--muted); font-size: 15px; } .pf-bill b { color: var(--navy); text-align: right; }
.pf-wait { text-align: center; }
.pf-wait .pf-small .btn { margin: 6px; }
.pf-phone-pulse { width: 92px; height: 92px; margin: 0 auto 22px; border-radius: 50%; background: var(--green-soft); display: grid; place-items: center; position: relative; }
.pf-phone-pulse span { width: 34px; height: 54px; border-radius: 8px; border: 3px solid var(--green-ink); }
.pf-phone-pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--green); animation: ring 1.6s cubic-bezier(.16, 1, .3, 1) infinite; }
.pf-wait.done .pf-phone-pulse::after, .pf-wait.failed .pf-phone-pulse::after { animation: none; opacity: 0; }
.pf-wait.failed .pf-phone-pulse { background: #fdecea; } .pf-wait.failed .pf-phone-pulse span { border-color: #b42318; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pf-phone-pulse::after { animation: none; } }
@media (max-width: 900px) {
  .pf-split { grid-template-columns: minmax(0, 1fr); padding-top: 28px; gap: 32px; }
  .pf-side { position: static; }
  .pf-two, .pf-plans { grid-template-columns: minmax(0, 1fr); }
  .pf-plans.four { grid-template-columns: 1fr 1fr; }
  .pf-narrow { padding-top: 32px; }
  .pf .top .btn-green { padding: 0 14px; }
  .pf .top .brand img { height: 34px; }
}

/* Launch offer (config/platform.php "offer") */
.pf-offer { display: grid; gap: 4px; margin: 20px 0 24px; padding: 14px 16px; border-radius: 14px; background: #0f1f3d; color: #fff; }
.pf-offer b { font-size: 1.05rem; } .pf-offer span { color: #c8d3e8; font-size: .95rem; }
.pf-plan s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.pf-tag { justify-self: start; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #1ac369; color: #06281a; font-style: normal; font-size: .75rem; font-weight: 700; }

/* Short pages (sign in, pay): the footer sits at the bottom of the screen, not halfway up it. */
body.pf { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
body.pf > .pf-main { flex: 1 0 auto; }
.pf-paynote { margin-top: 10px; color: var(--muted, #5b6475); font-size: .97rem; }
