/* Soleva — native lead forms (see js/lead-form.js). Colours and type follow the site. */
html.lf-lock { overflow: hidden; }

.lf-dialog {
  --lf-navy: #082849;
  --lf-blue: #0376d1;
  --lf-orange: #ff8e26;
  --lf-line: #dfe3ea;
  --lf-muted: #5b6b7d;
  --lf-error: #c4321c;
  --lf-ease: cubic-bezier(.2, .7, .2, 1);
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 24px;
  border: 0;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--lf-navy);
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
}
.lf-dialog[open] { display: flex; }
.lf-dialog::backdrop { background: rgba(8, 40, 73, .55); animation: lf-fade .22s var(--lf-ease, ease-out); }
.lf-dialog.is-closing::backdrop { animation: lf-fade-out .18s ease-in forwards; }
.lf-dialog *, .lf-dialog *::before, .lf-dialog *::after { box-sizing: border-box; }

.lf-panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(8, 40, 73, .22);
  padding: 32px 36px 32px;
  animation: lf-rise .28s var(--lf-ease);
}
.lf-dialog.is-closing .lf-panel { animation: lf-sink .18s ease-in forwards; }

@keyframes lf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lf-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes lf-rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes lf-sink { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(0, 10px, 0); } }
@keyframes lf-step { from { opacity: 0; transform: translate3d(12px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes lf-spin { to { transform: rotate(360deg); } }

.lf-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: #f2f4f7; color: var(--lf-navy);
  cursor: pointer; transition: background-color .2s;
}
.lf-close:hover { background: #e6eaf0; }

/* Header */
.lf-head { display: flex; gap: 20px; align-items: center; padding-right: 32px; margin-bottom: 16px; }
.lf-cover { width: 84px; height: auto; border-radius: 8px; box-shadow: 0 8px 20px rgba(8, 40, 73, .18); flex: none; }
.lf-tag {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--lf-navy); border-radius: 100px;
  padding: 4px 10px 4px 6px; margin-bottom: 12px;
  font-size: 12px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase;
}
.lf-tag img { width: 16px; height: 16px; }
.lf-title {
  margin: 0;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 26px; line-height: 1.15; font-weight: 500; letter-spacing: -.02em;
  color: var(--lf-navy);
}
.lf-intro p { margin: 0; color: var(--lf-muted); }
.lf-bullets { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.lf-bullets li { position: relative; padding-left: 22px; color: var(--lf-navy); }
.lf-bullets li::before {
  content: ""; position: absolute; left: 2px; top: .55em;
  width: 10px; height: 6px; border-left: 2px solid var(--lf-orange); border-bottom: 2px solid var(--lf-orange);
  transform: rotate(-45deg);
}

/* Progress */
.lf-progress { margin: 4px 0 20px; }
.lf-progress-text { font-size: 13px; color: var(--lf-muted); margin-bottom: 8px; }
.lf-progress-track { height: 4px; border-radius: 4px; background: #edf0f4; overflow: hidden; }
.lf-progress-bar { height: 100%; background: var(--lf-blue); transform-origin: left; transform: scaleX(0); transition: transform .35s var(--lf-ease); }

/* Form */
.lf-form { margin-top: 20px; }
.lf-intro + .lf-progress { margin-top: 20px; }
.lf-step { display: grid; gap: 18px; }
.lf-step[hidden] { display: none; }
.lf-step.is-entering { animation: lf-step .26s var(--lf-ease); }
.lf-step-heading { margin: 0; font-family: "Inter Tight", Inter, sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.lf-field { display: grid; gap: 6px; }
.lf-field[hidden] { display: none; }
.lf-label { font-weight: 600; font-size: 15px; color: var(--lf-navy); padding: 0; }
.lf-hint { margin: -2px 0 2px; font-size: 13px; color: var(--lf-muted); }
.lf-note { margin: 0; padding: 12px 14px; border-radius: 12px; background: #f3f8fd; color: var(--lf-navy); font-size: 14px; }

.lf-input {
  width: 100%; height: 48px; margin: 0;
  padding: 0 14px;
  border: 1px solid var(--lf-line); border-radius: 10px;
  background: #fff; color: var(--lf-navy);
  font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.lf-input::placeholder { color: #9aa6b4; }
.lf-input:hover { border-color: #c6cdd8; }
.lf-input:focus { outline: none; border-color: var(--lf-blue); box-shadow: 0 0 0 3px rgba(3, 118, 209, .16); }
.has-error .lf-input { border-color: var(--lf-error); }
.has-error .lf-input:focus { box-shadow: 0 0 0 3px rgba(196, 50, 28, .14); }
.lf-error { margin: 0; min-height: 0; font-size: 13px; color: var(--lf-error); }
.lf-error:empty { display: none; }

/* Choices */
.lf-choice { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 10px; }
.lf-choice legend { margin-bottom: 10px; }
.lf-options { display: grid; gap: 10px; }
.lf-options.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lf-option {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 14px; margin: 0;
  border: 1px solid var(--lf-line); border-radius: 12px;
  cursor: pointer; font-weight: 500;
  transition: border-color .2s, background-color .2s;
}
.lf-option:hover { border-color: #b9c3d0; }
.lf-radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lf-option-dot {
  flex: none; width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid #b4bfcc; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.lf-radio:checked ~ .lf-option-dot { border-color: var(--lf-blue); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 9px var(--lf-blue); }
.lf-option:has(.lf-radio:checked) { border-color: var(--lf-blue); background: #f3f8fd; }
.lf-radio:focus-visible ~ .lf-option-dot { box-shadow: 0 0 0 3px rgba(3, 118, 209, .25); }
.has-error .lf-option { border-color: #e9b4ab; }

/* Consent */
.lf-consent-label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 13px; color: var(--lf-muted); margin: 0; font-weight: 400; }
.lf-checkbox { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lf-check-box {
  flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 6px;
  border: 1.5px solid #b4bfcc; background: #fff;
  display: grid; place-items: center;
  transition: background-color .2s, border-color .2s;
}
.lf-check-box::after {
  content: ""; width: 9px; height: 5px; margin-top: -2px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); opacity: 0;
}
.lf-checkbox:checked + .lf-check-box { background: var(--lf-blue); border-color: var(--lf-blue); }
.lf-checkbox:checked + .lf-check-box::after { opacity: 1; }
.lf-checkbox:focus-visible + .lf-check-box { box-shadow: 0 0 0 3px rgba(3, 118, 209, .25); }
.has-error .lf-check-box { border-color: var(--lf-error); }

/* Actions */
.lf-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.lf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid var(--lf-navy); border-radius: 100px;
  background: var(--lf-orange); color: #002d25;
  font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  cursor: pointer; transition: background-color .2s, opacity .2s;
}
.lf-btn:hover { background: #ff9d42; }
.lf-btn:focus-visible, .lf-btn-back:focus-visible, .lf-close:focus-visible { outline: 2px solid var(--lf-blue); outline-offset: 2px; }
.lf-btn-icon { display: inline-flex; transition: transform .25s var(--lf-ease); }
.lf-btn:hover .lf-btn-icon { transform: translateX(3px); }
.lf-btn:disabled { cursor: progress; opacity: .85; }
.lf-btn.is-loading .lf-btn-icon svg { display: none; }
.lf-btn.is-loading .lf-btn-icon::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(0, 45, 37, .25); border-top-color: #002d25;
  animation: lf-spin .8s linear infinite;
}
.lf-btn-back {
  margin-right: auto; min-height: 48px; padding: 0 6px;
  border: 0; background: none; color: var(--lf-muted);
  font: inherit; font-weight: 500; cursor: pointer;
}
.lf-btn-back:hover { color: var(--lf-navy); }
.lf-btn-back[hidden] { display: none; }

.lf-form-error {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  background: #fdf1ef; color: #8f2414; font-size: 14px;
}
.lf-form-error a { color: inherit; }

/* Honeypot */
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Success */
.lf-success { text-align: center; padding: 8px 0 4px; outline: none; animation: lf-rise .3s var(--lf-ease); }
.lf-success-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: #e8f4ec; color: #1f8a4c;
}
.lf-success-title { margin: 0 0 10px; font-family: "Inter Tight", Inter, sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.lf-success p { margin: 0 auto 8px; max-width: 420px; color: var(--lf-muted); }
.lf-success .lf-btn { margin-top: 16px; }
.lf-success[hidden], .lf-form[hidden], .lf-intro[hidden], .lf-progress[hidden], .lf-form-error[hidden] { display: none; }

/* Phones: sheet from the bottom */
@media screen and (max-width: 600px) {
  .lf-dialog { padding: 0; align-items: flex-end; }
  .lf-panel {
    max-width: none; border-radius: 20px 20px 0 0;
    max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
    padding: 24px 20px calc(20px + env(safe-area-inset-bottom));
  }
  .lf-title { font-size: 22px; }
  .lf-cover { width: 64px; }
  .lf-head { gap: 14px; }
  .lf-options.is-grid { grid-template-columns: 1fr 1fr; }
  .lf-option { padding: 10px 12px; min-height: 48px; }
  .lf-actions { position: sticky; bottom: -20px; background: #fff; padding: 12px 0 0; margin-top: 16px; }
  .lf-btn { flex: 1; }
  .lf-btn-back { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lf-panel, .lf-dialog::backdrop, .lf-step.is-entering, .lf-success { animation: none !important; }
  .lf-progress-bar, .lf-btn-icon { transition: none; }
}
.lf-form-error, .lf-field { scroll-margin: 16px 0 96px; }
