/* Weekly newsletter signup for rclending.co
   Uses the live site tokens and form classes. Add to assets/site.css
   or load this file after assets/site.css. */

/* Homepage block, sits as the last section in <main>, just above the footer */
.nl-home{
  background:var(--bg-soft);
  padding:72px 0;
  border-top:1px solid var(--line);
}
.nl-home-inner{max-width:820px;margin:0 auto;text-align:center}
.nl-home .kicker{margin-bottom:12px}
.nl-home h2{margin-bottom:12px}
.nl-home-copy p{color:var(--slate);font-size:16.5px;max-width:640px;margin:0 auto 28px}

.nl-card{
  background:#fff;
  border-radius:14px;
  padding:28px 28px 22px;
  box-shadow:0 24px 60px rgba(12,27,44,.08);
  text-align:left;
}
.nl-form-row{
  display:grid;
  grid-template-columns:1fr 1.15fr auto;
  gap:14px;
  align-items:end;
}
.nl-form-row .field{margin-bottom:0}
.nl-form .form-btn{margin-top:0;white-space:nowrap;cursor:pointer;font-family:inherit}
.nl-form .form-btn:disabled{opacity:.7;transform:none;box-shadow:0 6px 18px rgba(14,111,126,.25);cursor:wait}
.nl-form .form-note{margin-top:14px;text-align:center}
.nl-form .form-msg{text-align:center}

.nl-done{display:none;text-align:center;padding:18px 8px 8px}
.nl-done.on{display:block}
.nl-check{
  width:52px;height:52px;border-radius:99px;margin:0 auto 16px;
  background:rgba(20,154,168,.14);color:var(--teal-dark);
  font-size:26px;font-weight:800;line-height:52px;
}
.nl-done-title{font-size:22px;font-weight:800;color:var(--navy);letter-spacing:-.3px;line-height:1.25}

/* Compact row at the top of the shared footer.
   Hidden on the homepage when the larger #nl-home block is present. */
body:has(#nl-home) .nl-foot{display:none}
.nl-foot{
  display:grid;
  grid-template-columns:1.1fr 1.6fr;
  gap:28px 36px;
  align-items:center;
  margin-bottom:36px;
  padding-bottom:36px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.nl-foot-copy .foot-label{margin-bottom:8px}
.nl-foot-copy p{color:#D3DDE6;font-size:16px;font-weight:700}
.nl-foot .nl-form-row{align-items:end}
.nl-foot .field label{color:#fff}
.nl-foot .field input{
  background:rgba(255,255,255,.96);
  border-color:rgba(255,255,255,.18);
}
.nl-foot .form-note,.nl-foot .form-msg{text-align:left;color:#8FA1B3}
.nl-foot .form-msg.ok{color:#8BE0A8}
.nl-foot .form-msg.err{color:#F5B7B2}
.nl-foot .nl-done{text-align:left;padding:0}
.nl-foot .nl-done-title{color:#fff;font-size:18px}
.nl-foot .nl-check{margin:0 0 12px;width:40px;height:40px;line-height:40px;font-size:20px;background:rgba(23,169,182,.22);color:#9FE0E6}

@media(max-width:800px){
  .nl-home{padding:56px 0}
  .nl-card{padding:22px 18px 18px}
  .nl-form-row{grid-template-columns:1fr}
  .nl-form .form-btn{width:100%}
  .nl-foot{grid-template-columns:1fr;gap:18px;margin-bottom:28px;padding-bottom:28px}
}
