/* ROININJA blog: the homepage audit form (#audit-form) at the end of every blog page.
   Card rules are copied from index.html (LEAD SECTION) so the form looks the same as on the homepage;
   the card stays white in both reading themes. Markup is injected by apply_lead_form.py in the toolchain. */

/* CTAs that scroll to the form are <button>s, not links: reset the native button look. */
button.nav-cta, button.btn { border: 0; font-family: inherit; line-height: inherit; cursor: pointer; }
button.nav-cta { white-space: nowrap; }
/* "Book a call" is wider than the old "Qualify": drop the arrow on phones so brand + toggle + CTA stay on one line. */
@media (max-width: 480px) {
  button.nav-cta .arr { display: none; }
  button.nav-cta { padding-left: 15px; padding-right: 15px; }
}

.blog-lead {
  padding: 80px 0 88px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  scroll-margin-top: 64px; /* fixed nav */
}
.blog-lead:focus { outline: none; }
.blog-lead .container { max-width: 600px; }
.blog-lead .lead-h {
  margin: 0 0 14px; text-align: center;
  font-size: clamp(28px, 4.4vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
  color: var(--text);
}
.blog-lead .lead-h .dim { color: var(--dim); }
.blog-lead .lead-h .accent { color: var(--accent); }
.blog-lead .lead-sub {
  margin: 0 auto 28px; max-width: 520px; text-align: center;
  font-size: 16px; line-height: 1.55; color: var(--dim);
}

.lead-card {
  background: #fff; color: #1a1a1a;
  padding: 22px 28px 22px; border-radius: 4px;
  display: flex; flex-direction: column; gap: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  color-scheme: light;
}
.lead-card * { font-family: 'Inter Tight', sans-serif; }
.lead-card .field { display: flex; flex-direction: column; gap: 2px; }
.lead-card > .field > input[type=text],
.lead-card > .field > input[type=email],
.lead-card > .field > input[type=tel] {
  background-color: #fff !important;
  color: #1a1a1a !important;
  border: 1px solid #b8b8b8 !important;
  padding: 10px 12px !important;
  font-size: 14px; border-radius: 4px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
  -webkit-text-fill-color: #1a1a1a;
  color-scheme: light;
  box-sizing: border-box;
}
.lead-card > .field > input::placeholder { color: #6f6f6f !important; font-style: normal; opacity: 1; }
.lead-card > .field > input:hover { border-color: #888 !important; }
.lead-card > .field > input:focus { border-color: #1a1a1a !important; box-shadow: 0 0 0 3px rgba(26,26,26,0.08); }
.lead-card input:-webkit-autofill,
.lead-card input:-webkit-autofill:hover,
.lead-card input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px #fff inset !important;
  -webkit-text-fill-color: #1a1a1a !important;
  transition: background-color 5000s ease-in-out 0s;
}
.lead-card .input-group {
  display: flex; align-items: stretch;
  background: #fff !important;
  border: 1px solid #b8b8b8;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .15s ease, box-shadow .15s ease;
  color-scheme: light;
}
.lead-card .input-group:hover { border-color: #888; }
.lead-card .input-group:focus-within { border-color: #1a1a1a; box-shadow: 0 0 0 3px rgba(26,26,26,0.08); }
.lead-card .input-group .ig-prefix {
  display: inline-flex; align-items: center;
  padding: 0 4px 0 11px;
  color: #8a8a8a; pointer-events: none;
  font-size: 14px; line-height: 1;
  flex-shrink: 0; user-select: none;
}
.lead-card .input-group input {
  flex: 1; min-width: 0;
  border: none !important;
  background: transparent !important;
  color: #1a1a1a !important;
  padding: 10px 12px 10px 6px !important;
  font-size: 14px; outline: none;
  -webkit-text-fill-color: #1a1a1a;
  color-scheme: light;
  box-sizing: border-box;
}
.lead-card .input-group input::placeholder { color: #6f6f6f !important; opacity: 1; }
.lead-card .group-label {
  font-weight: 700; font-size: 13.5px; color: #1a1a1a;
  margin-top: 8px; letter-spacing: -0.005em;
}
.lead-card .radio-list { display: flex; flex-direction: column; gap: 0; margin-top: 0; }
.lead-card .radio-list label {
  display: flex; align-items: center; gap: 9px;
  padding: 3px 0; cursor: pointer;
  font-size: 13.5px; color: #1a1a1a; line-height: 1.2;
}
.lead-card .radio-list label:hover { color: #0a0a0a; }
.lead-card .radio-list input[type=radio] {
  appearance: none; -webkit-appearance: none;
  width: 15px; height: 15px;
  border: 1.5px solid #aaa; border-radius: 50%;
  margin: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: #fff;
  transition: border-color .15s ease;
}
.lead-card .radio-list input[type=radio]:checked { border-color: #1a1a1a; border-width: 2px; }
.lead-card .radio-list input[type=radio]:checked::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: #1a1a1a;
}
.lead-card button.submit {
  background: #d4ff3d; color: #0a0a0a;
  padding: 12px 22px; border: none; border-radius: 4px;
  font-weight: 700; font-size: 14.5px; letter-spacing: -0.005em;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
  margin-top: 10px;
  align-self: stretch;
  box-shadow: 0 6px 18px rgba(212,255,61,0.25);
}
.lead-card button.submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(212,255,61,0.35); }

.form-reviews {
  margin-top: 28px;
  display: flex; flex-direction: column; align-items: center;
  gap: 16px;
}
.form-reviews .rating { display: flex; align-items: center; gap: 10px; }
.form-reviews .logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; flex-wrap: nowrap;
}
.form-reviews .stars-bar { color: #F5A623; font-size: 18px; letter-spacing: 2px; line-height: 1; }
.form-reviews .based-on { color: var(--text); font-size: 14px; font-weight: 500; }
.form-reviews .divider { width: 1px; height: 26px; background: var(--line-2); }
.form-reviews .review-logo {
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .15s ease, opacity .15s ease;
  color: var(--text); text-decoration: none;
  opacity: 0.92;
}
.form-reviews .review-logo:hover { transform: translateY(-1px); opacity: 1; }
.form-reviews .review-logo svg { width: 30px; height: 30px; display: block; flex-shrink: 0; }
.form-reviews .rl-label { font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; color: var(--text); }

html[data-theme="light"] .lead-card { box-shadow: 0 14px 44px rgba(18,18,16,0.12); border: 1px solid var(--line-2); }

@media (max-width: 980px) {
  .lead-card > .field > input[type=text],
  .lead-card > .field > input[type=email],
  .lead-card > .field > input[type=tel] { font-size: 15px !important; }
  .lead-card .input-group input { font-size: 15px !important; }
  .lead-card .group-label { font-size: 14.5px; }
  .lead-card .radio-list label { font-size: 14.5px; }
  .lead-card button.submit { font-size: 15.5px; }
  .blog-lead { padding: 56px 0 72px; }
  .lead-card { padding: 28px 22px; gap: 20px; }
}
@media (max-width: 480px) {
  .form-reviews .logos-row { gap: 14px; }
  .form-reviews .rl-label { font-size: 12.5px; }
}

/* HubSpot calendar overlay (opened after the form submit) */
  .hs-cal-overlay { position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.74); display: flex; align-items: center; justify-content: center; padding: 16px; }
  .hs-cal-box { position: relative; width: min(960px, 100%); height: min(780px, 100%); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
  .hs-cal-frame { width: 100%; height: 100%; border: 0; display: block; }
  .hs-cal-close { position: absolute; top: 8px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #0a0a0a; color: #fff; font-size: 22px; line-height: 36px; cursor: pointer; z-index: 2; }
  @media (max-width: 640px) { .hs-cal-overlay { padding: 0; } .hs-cal-box { border-radius: 0; height: 100%; } }
