@layer responsive {
 .final-selection { padding-top:48px; padding-bottom:72px; }
 .lf-heading { max-width:900px; margin-bottom:32px; }
 .lf-heading h2 { font:400 clamp(2rem,3.6vw,3.2rem)/1.12 var(--serif); letter-spacing:-.025em; margin:14px 0 20px; }
 .lf-heading>p:last-child { max-width:740px; color:var(--muted); line-height:1.65; }
 .lf-container { display:grid; grid-template-columns:minmax(0,40fr) minmax(0,60fr); grid-template-areas:'next form' 'direct form'; background:#f5f3ed; border:1px solid #e4dfd3; border-radius:6px; overflow:hidden; }
 .lf-next { grid-area:next; padding:32px 32px 0; }
 .lf-direct { grid-area:direct; padding:28px 32px 32px; }
 .lf-container h3 { font:400 1.65rem/1.2 var(--serif); margin:0 0 20px; }
 .lf-next ol { list-style:none; padding:0; margin:0 0 20px; display:grid; gap:20px; }
 .lf-next li { display:flex; gap:14px; align-items:flex-start; line-height:1.5; }
 .lf-step-icon { flex:0 0 22px; width:22px; height:22px; margin-top:1px; color:var(--green); }
 .lf-next>p,.lf-direct>p { font-size:.9rem; line-height:1.6; color:var(--muted); }
 .lf-trust { border-top:1px solid #ded8ca; padding-top:20px; margin-top:20px; }
 .lf-direct h3 { font-size:1.4rem; margin:8px 0 16px; }
 .lf-messengers { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
 .lf-messengers .action { width:100%; }
 .lf-messengers small { display:block; font-size:.67rem; line-height:1.4; margin-top:7px; color:var(--muted); }
 .lf-unavailable { font-size:.8rem; color:var(--muted); line-height:1.5; margin:14px 0; }
 .lf-form { grid-area:form; min-width:0; background:#fcfbf8; border-left:1px solid #e4dfd3; padding:32px; }
 .lf-form [hidden] { display:none; }
 .lf-progress { display:flex; justify-content:space-between; align-items:center; gap:24px; margin-bottom:28px; color:var(--green-dark); font-size:.8rem; }
 .lf-progress progress { width:96px; height:3px; border:0; background:#e4dfd3; color:var(--green); }
 .lf-progress progress::-webkit-progress-bar { background:#e4dfd3; }
 .lf-progress progress::-webkit-progress-value { background:var(--green); }
 .lf-progress progress::-moz-progress-bar { background:var(--green); }
 .lf-form h3 { scroll-margin-top:120px; }
 .lf-question { border:0; padding:0; margin:0 0 22px; min-width:0; }
 .lf-question legend,.lf-input-label { font-size:1rem; font-weight:500; margin-bottom:12px; display:block; }
 .lf-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .lf-choice { position:relative; cursor:pointer; }
 .lf-choice input { position:absolute; width:1px; height:1px; opacity:0; }
 .lf-choice>span { display:flex; flex-direction:column; justify-content:center; min-height:54px; height:100%; padding:12px 14px; border:1px solid #dce2da; border-radius:6px; font-size:.92rem; line-height:1.4; color:var(--green-dark); transition:background .2s,border-color .2s; }
 .lf-choice small { font-size:.7rem; color:var(--muted); margin-top:4px; }
 @media(hover:hover) and (pointer:fine) { .lf-choice:hover>span { border-color:var(--green); background:#f0f3ec; } }
 .lf-choice input:checked+span { background:#eaf0e7; border-color:var(--green); box-shadow:inset 0 0 0 1px var(--green); }
 .lf-choice input:focus-visible+span { outline:3px solid var(--green-dark); outline-offset:3px; }
 .lf-choice input:disabled+span { opacity:.6; cursor:wait; }
 .lf-input { width:100%; min-height:54px; border:1px solid var(--line); border-radius:6px; padding:12px 14px; font:inherit; font-size:16px; background:white; color:var(--green-dark); }
 .lf-input:focus-visible { outline:3px solid var(--green-dark); outline-offset:2px; }
 .lf-error { color:#913d32; font-size:.8rem; line-height:1.4; margin:6px 0 0; }
 .lf-error:empty,.lf-status:empty { display:none; }
 .lf-navigation { display:flex; gap:12px; margin-top:28px; }
 .lf-navigation .action-primary { flex:1; }
 .lf-consent { display:flex; align-items:flex-start; gap:12px; margin-top:18px; font-size:.75rem; line-height:1.5; color:var(--muted); }
 .lf-consent input { width:20px; height:20px; flex:0 0 20px; accent-color:var(--green); margin:2px 0; }
 .lf-consent a { text-decoration:underline; }
 .lf-status { margin-top:20px; font-size:.9rem; line-height:1.6; }
 .lf-success { padding:40px 0; }
 @media(max-width:1000px) {
  .lf-container { grid-template-columns:1fr; grid-template-areas:'form' 'direct' 'next'; }
  .lf-form { border-left:0; border-bottom:1px solid #e4dfd3; }
  .lf-next { padding:0 32px 32px; }
 }
 @media(max-width:600px) {
  .final-selection { padding-top:32px; padding-bottom:48px; }
  .lf-heading h2 { font-size:2.1rem; }
  .lf-form,.lf-direct { padding:24px 18px; }
  .lf-next { padding:0 18px 24px; }
  .lf-choices { grid-template-columns:1fr; gap:8px; }
  .lf-navigation { flex-direction:column-reverse; }
  .lf-navigation .action { width:100%; }
  .lf-messengers { grid-template-columns:1fr; gap:12px; }
  .lf-messengers>div { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:12px; }
  body:has(.lf-form :focus) .mobile-cta { visibility:hidden; }
 }
 @media(prefers-reduced-motion:reduce) { .lf-choice>span { transition:none; } }
}

@layer responsive {
 dialog:has(.lf-form) { max-width:min(760px,calc(100vw - 24px)); }
 dialog .lf-form { border:0; padding:24px 0; background:transparent; }
 dialog .lf-question legend { font:400 1.55rem/1.25 var(--serif); }
 dialog .lf-form section { min-width:0; }
 .lf-form .lf-input + .lf-error { margin-bottom:16px; }
 @media(max-width:600px) { dialog .lf-form { padding:18px 0; } }
}

/* Auxiliary address detail: excluded from visual layout, keyboard and AT. */
.lf-address-detail{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}

/* Shared contact control: prefix stays visible even when the national number is empty. */
.lf-phone{display:flex;align-items:center;gap:10px;border:1px solid var(--line,#dce2da);border-radius:6px;background:#fff;padding-left:16px}
.lf-phone>span{flex:none;font:inherit;color:var(--green-dark,#123f35)}
.lf-phone .lf-input{min-width:0;width:100%;border:0;background:transparent;margin:0}
.lf-phone:focus-within{outline:2px solid var(--green-dark,#123f35);outline-offset:2px}
.lf-phone-hint{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.lf-phone .lf-input:focus-visible{outline:none}
.lf-form input[name="contactName"]{margin-bottom:12px}
