/* Citelx — the enquiry form.
 *
 * The form IS the card. It used to sit inside a generic .card, which gave it a
 * flat panel that also lifted 4px on hover — a form that moves under the cursor
 * while you are trying to type in it. This owns its own shell instead: gradient
 * cap, real depth, generous padding, and controls sized to be the heaviest
 * thing on the page, because filling it in is the only reason the page exists.
 *
 * Light ground throughout; nothing here assumes the dark palette.
 * Every interactive target clears 44px.
 */

.lead-form,
.lf-done{
  position:relative;max-width:none;
  background:#fff;
  border:1px solid var(--line-2);border-radius:24px;
  padding:clamp(26px,3vw,38px);
  box-shadow:0 1px 2px rgba(11,13,18,.04), 0 20px 54px rgba(11,13,18,.09);
  overflow:hidden;
}
/* The one piece of brand colour on the card, and it reads as a progress cap. */
.lead-form::before,
.lf-done::before{
  content:'';position:absolute;top:0;left:0;right:0;height:4px;background:var(--grad);
}

/* ---------- progress ----------
   Five segments rather than a bar plus a labelled dot list: at this width the
   labels wrapped to two rows and read as noise, and the step's own heading
   already names where you are. */
.lf-rail{margin-bottom:28px}
.lf-bar{display:none}
.lf-dots{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:0;padding:0}
.lf-dots li{
  display:block;height:6px;border-radius:99px;background:var(--paper-3);
  font-size:0;transition:background .35s cubic-bezier(.2,.8,.3,1);
}
.lf-dots li b,.lf-dots li span{display:none}
.lf-dots li.did{background:rgba(124,108,255,.42)}
.lf-dots li.on{background:var(--grad)}

/* ---------- step ---------- */
.lf-head{margin-bottom:26px}
.lf-count{
  display:inline-block;margin-bottom:14px;
  font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.13em;
  text-transform:uppercase;
  /* Darker than --violet: the brand value on its own 9% tint measured 3.54:1,
     under AA for 11px text. */
  color:#5B45D4;
  padding:6px 12px;border-radius:99px;
  background:rgba(124,108,255,.09);border:1px solid rgba(124,108,255,.2);
}
.lf-head h3{
  font-family:'Unbounded',Inter,sans-serif;font-weight:700;
  font-size:clamp(21px,2.3vw,26px);line-height:1.15;letter-spacing:-.025em;
  color:var(--ink);margin:0 0 8px;
}
.lf-head p{font-size:14.5px;line-height:1.6;color:var(--ink-3);margin:0}

.lf-field{margin-bottom:22px}
.lf-field > label,.lf-field legend{
  display:block;font-size:14px;font-weight:600;color:var(--ink);margin-bottom:10px;padding:0;
}
.lf-field label em,.lf-field legend em{
  font-style:normal;font-weight:400;font-size:12.5px;color:var(--ink-3);margin-left:6px;
}
.lf-field fieldset{border:0;padding:0;margin:0}

.lf-field input[type=text],.lf-field input[type=email],.lf-field input[type=tel],
.lf-field select,.lf-field textarea{
  width:100%;padding:16px 18px;font:inherit;font-size:16px;color:var(--ink);
  background:var(--paper-2);border:1.5px solid transparent;border-radius:14px;outline:none;
  transition:border-color .16s,box-shadow .16s,background .16s;
}
.lf-field textarea{resize:vertical;min-height:116px;line-height:1.6}
.lf-field select{
  appearance:none;cursor:pointer;padding-right:46px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7484' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 18px center;
}
.lf-field input:hover,.lf-field select:hover,.lf-field textarea:hover{background:var(--paper-3)}
.lf-field input:focus,.lf-field select:focus,.lf-field textarea:focus{
  background:#fff;border-color:var(--violet);box-shadow:0 0 0 4px rgba(124,108,255,.15);
}
.lf-field input::placeholder,.lf-field textarea::placeholder{color:#9BA3B4}

/* Dial code beside the number, the way every checkout does it. The select is
   fixed-width so the number field does not jump when the code changes length. */
.lf-tel{display:flex;gap:9px}
.lf-tel select{flex:none;width:124px;padding-right:34px;background-position:right 12px center}
.lf-tel input{flex:1;min-width:0}
@media (max-width:400px){ .lf-tel select{width:108px} }

/* ---------- choices ---------- */
.lf-opts{display:grid;gap:10px}
.lf-opts-rich{grid-template-columns:1fr 1fr}
@media (max-width:560px){ .lf-opts-rich{grid-template-columns:1fr} }

.lf-opt{
  display:flex;align-items:flex-start;gap:12px;cursor:pointer;
  padding:16px 17px;border-radius:15px;
  background:var(--paper-2);border:1.5px solid transparent;
  transition:border-color .16s,background .16s,box-shadow .18s,transform .18s cubic-bezier(.2,.8,.3,1);
}
.lf-opt:hover{background:#fff;border-color:rgba(124,108,255,.35);box-shadow:0 6px 18px rgba(11,13,18,.06);transform:translateY(-1px)}
/* The native control stays in the DOM and focusable — it is what a screen
   reader and a keyboard actually operate. Only its painting is replaced. */
.lf-opt input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.lf-tick{
  width:22px;height:22px;flex:none;margin-top:1px;border-radius:7px;
  border:1.5px solid #C9CFDD;background:#fff;position:relative;transition:.16s;
}
.lf-opt input[type=radio] + .lf-tick{border-radius:50%}
.lf-tick::after{
  content:'';position:absolute;inset:0;opacity:0;transform:scale(.6);
  transition:opacity .14s,transform .18s cubic-bezier(.2,.8,.3,1);
  background:no-repeat center/12px 12px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 12.5 5 5 10-11'/%3E%3C/svg%3E");
}
.lf-opt input:checked + .lf-tick{background:var(--grad);border-color:transparent}
.lf-opt input:checked + .lf-tick::after{opacity:1;transform:scale(1)}
.lf-opt:has(input:checked){
  background:#fff;border-color:var(--violet);
  box-shadow:0 6px 20px rgba(124,108,255,.16);
}
.lf-opt input:focus-visible + .lf-tick{box-shadow:0 0 0 4px rgba(124,108,255,.25)}

.lf-opt-txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.lf-opt-txt b{font-size:15px;font-weight:600;color:var(--ink);line-height:1.35}
.lf-opt-txt i{font-style:normal;font-size:12.5px;line-height:1.45;color:var(--ink-3)}

/* ---------- errors ---------- */
.lf-err{font-size:13px;font-weight:500;color:#C22B4A;margin-top:8px}
.lf-field.bad input,.lf-field.bad select,.lf-field.bad textarea{border-color:#E2668A;background:#FDF7F8}
.lf-field.bad .lf-opts .lf-opt{border-color:#EFC0CE}
.lf-fail{
  margin-top:18px;padding:14px 17px;border-radius:14px;font-size:14px;line-height:1.55;
  background:#FDF0F3;border:1px solid #F3CBD6;color:#8E1F3B;
}

/* ---------- nav ---------- */
.lf-pot{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.lf-nav{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
  margin:30px -1px -1px;padding-top:24px;border-top:1px solid var(--line-2);
}
.lf-nav .btn{padding:15px 26px}
@media (max-width:560px){
  .lf-nav .btn{flex:1;justify-content:center}
}

/* ---------- confirmation ---------- */
.lf-done{text-align:center;padding-top:clamp(34px,4vw,46px)}
.lf-done-ic{
  width:64px;height:64px;border-radius:50%;display:grid;place-items:center;
  margin:0 auto 22px;color:#fff;background:linear-gradient(135deg,#3ADFA5,#25D366);
  box-shadow:0 12px 30px rgba(37,211,102,.36);
}
.lf-done h3{
  font-family:'Unbounded',Inter,sans-serif;font-weight:700;
  font-size:clamp(21px,2.3vw,26px);letter-spacing:-.025em;margin-bottom:14px;
}
.lf-done-sum{font-size:16px;line-height:1.6;color:var(--ink-2);margin-bottom:10px}
.lf-done-sub{font-size:14px;line-height:1.65;color:var(--ink-3);margin-bottom:26px}
.lf-done-cta{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.lf-wa{background:#25D366;color:#fff;box-shadow:0 8px 22px rgba(37,211,102,.3)}
.lf-wa:hover{background:#1FBE5A;box-shadow:0 12px 28px rgba(37,211,102,.4)}
@media (max-width:560px){ .lf-done-cta .btn{width:100%;justify-content:center} }

@media (prefers-reduced-motion:reduce){
  .lf-dots li,.lf-opt,.lf-tick,.lf-tick::after,
  .lf-field input,.lf-field select,.lf-field textarea{transition:none}
  .lf-opt:hover{transform:none}
}
