/* ==========================================================================
   The standalone lead form.
   --------------------------------------------------------------------------
   Loaded on every page like the rest of the sheets, but every selector is
   prefixed `lf-` and nothing here touches a tag or a shared class, so it
   cannot reach the rest of the site.

   Colour, radius and type come from the same tokens as everything else
   (--ds-teal, --ds-ink, --ds-line). The one place it departs from the site is
   the corner radius on inputs: the site's buttons are pills, which is wrong for
   a field, so fields use 12px and buttons keep the pill.
   ========================================================================== */

.lf-page {
  --lf-radius: 12px;
  --lf-radius-lg: 18px;
  --lf-gap: 22px;

  min-height: 100vh;
  min-height: 100dvh;
  padding: 28px 16px 56px;
  background: var(--ds-teal-wash);
  /* Two very soft blooms, so the page is not a flat wash behind a white card.
     Fixed attachment would fight iOS; these are painted once on the element. */
  background-image:
    radial-gradient(60rem 40rem at 12% -10%, rgba(0, 150, 136, 0.14), transparent 60%),
    radial-gradient(50rem 36rem at 92% 8%, rgba(0, 150, 136, 0.10), transparent 62%);
  color: var(--ds-ink);
  font-size: 16px;
  line-height: 1.6;
}

.lf-shell {
  width: 100%;
  /* The brief's range. Wide enough for two columns of fields, narrow enough
     that a line of help text is still one comfortable measure. */
  max-width: 860px;
  margin: 0 auto;
}
.lf-shell-narrow {
  max-width: 620px;
}

/* ---------------- masthead ---------------- */

.lf-head {
  text-align: center;
  padding: 8px 4px 26px;
}
.lf-logo {
  width: 180px;
  height: auto;
  max-width: 62%;
  margin: 0 auto 14px;
  display: block;
  object-fit: contain;
}
/* The trading name, under the mark. */
.lf-brand {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ds-teal-deep);
}

.lf-event {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid rgba(0, 150, 136, 0.28);
  border-radius: 100px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ds-teal-deep);
}
.lf-event i {
  flex: none;
}
.lf-head h1 {
  margin: 0;
  font-size: clamp(26px, 5.2vw, 36px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ds-ink);
}
.lf-lede {
  margin: 10px auto 0;
  max-width: 46ch;
  font-size: 15.5px;
  color: var(--ds-muted);
}

/* ---------------- the card ---------------- */

.lf-form {
  padding: 30px;
  border: 1px solid var(--ds-line);
  border-radius: var(--lf-radius-lg);
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 28, 37, 0.04), 0 18px 44px -28px rgba(28, 28, 37, 0.28);
}

.lf-section + .lf-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid var(--ds-line);
}

.lf-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ds-ink);
}
.lf-step {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ds-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* ---------------- fields ---------------- */

.lf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--lf-gap);
}
/* A textarea and anything else that wants the full width. */
.lf-field:has(.lf-textarea) {
  grid-column: 1 / -1;
}

.lf-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ds-ink);
}
.lf-label i {
  width: 14px;
  flex: none;
  font-size: 12.5px;
  color: var(--ds-teal);
  text-align: center;
}
.lf-req {
  color: #dc2626;
  font-weight: 700;
}

.lf-input {
  display: block;
  width: 100%;
  /* Without this a padded input in a grid column resolves its width from the
     default `size` attribute — about 20 characters — and overflows the column
     on a phone. */
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--ds-line);
  border-radius: var(--lf-radius);
  background: #fff;
  /* 16px exactly. Anything smaller and iOS Safari zooms the page on focus,
     which on a 360px screen leaves the visitor scrolled sideways into a field
     they cannot see the end of. */
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ds-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.lf-input::placeholder {
  color: #a9adb6;
}
.lf-input:hover:not(:disabled) {
  border-color: #cfd3da;
}
.lf-input:focus {
  outline: none;
  border-color: var(--ds-teal);
  box-shadow: 0 0 0 3px rgba(0, 150, 136, 0.16);
}
.lf-input:disabled {
  background: #f6f7f9;
  color: var(--ds-muted);
  cursor: not-allowed;
}
.lf-input-quiet {
  background: #fafbfc;
}
.lf-textarea {
  min-height: 108px;
  resize: vertical;
}
select.lf-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 38px;
  cursor: pointer;
}
select.lf-input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}
.lf-field.has-error .lf-input {
  border-color: #dc2626;
}
.lf-field.has-error .lf-input:focus {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.14);
}

.lf-hint {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ds-muted);
}
.lf-hint-sm {
  margin-top: 6px;
  font-size: 12.5px;
}

.lf-error {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 7px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #b91c1c;
}
.lf-error i {
  margin-top: 2px;
  flex: none;
  font-size: 12px;
}

.lf-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  font-size: 13px;
  color: var(--ds-muted);
  cursor: pointer;
}
.lf-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--ds-teal);
  cursor: pointer;
}

/* ---------------- chips ---------------- */

.lf-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 var(--lf-gap);
  /* A fieldset defaults to min-width:min-content, which in a grid or flex
     parent refuses to shrink and pushes the card wider than the viewport. */
  min-width: 0;
}
.lf-fieldset:last-child {
  margin-bottom: 0;
}
.lf-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin-bottom: 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ds-ink);
}
.lf-legend-sm {
  font-size: 13px;
  margin-bottom: 8px;
}

.lf-chips {
  display: grid;
  /* Wraps by itself at every width. 168px is the narrowest a two-word label
     with an icon reads comfortably; at 360px that gives one column, at 430px
     two, and at desktop four. */
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.lf-chips.is-narrow {
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
}
.lf-chip-wrap {
  min-width: 0;
}

/* The real control. Visually hidden, not removed — it still takes focus, still
   announces its state, and still lets the arrow keys move through a radio
   group, none of which a div can do. */
.lf-chip-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.lf-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 52px;
  padding: 11px 34px 11px 13px;
  border: 1px solid var(--ds-line);
  border-radius: var(--lf-radius);
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--ds-ink);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.lf-chip:hover {
  border-color: rgba(0, 150, 136, 0.5);
  background: var(--ds-teal-wash);
}
.lf-chip-ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--ds-teal-wash);
  color: var(--ds-teal);
  font-size: 14px;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.lf-chip-ic:empty {
  display: none;
}
.lf-chip-label {
  min-width: 0;
  /* Long labels wrap inside the chip rather than widening the column. */
  overflow-wrap: anywhere;
}

/* The tick. Selection is never signalled by colour alone. */
.lf-chip-tick {
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%) scale(0.6);
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ds-teal);
  color: #fff;
  font-size: 9px;
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.lf-chip-input:checked + .lf-chip {
  border-color: var(--ds-teal);
  background: var(--ds-teal-wash);
  box-shadow: inset 0 0 0 1px var(--ds-teal);
}
.lf-chip-input:checked + .lf-chip .lf-chip-ic {
  background: var(--ds-teal);
  color: #fff;
}
.lf-chip-input:checked + .lf-chip .lf-chip-tick {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}
/* Keyboard focus has to be visible on the label, because the input it belongs
   to is off-screen. */
.lf-chip-input:focus-visible + .lf-chip {
  outline: 2px solid var(--ds-teal);
  outline-offset: 2px;
}

/* ---------------- segmented control ---------------- */

.lf-fieldset-inline {
  margin-bottom: 0;
}
.lf-seg {
  display: grid;
  grid-template-columns: repeat(var(--lf-seg-n, 2), minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--ds-line);
  border-radius: var(--lf-radius);
  background: #f6f7f9;
}
.lf-seg[data-count="3"] {
  --lf-seg-n: 3;
}
.lf-seg-item {
  min-width: 0;
}
.lf-seg-label {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 8px 6px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--ds-muted);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.lf-seg-label:hover {
  color: var(--ds-ink);
}
.lf-chip-input:checked + .lf-seg-label {
  background: #fff;
  color: var(--ds-teal-deep);
  box-shadow: 0 1px 2px rgba(28, 28, 37, 0.1);
}
.lf-chip-input:focus-visible + .lf-seg-label {
  outline: 2px solid var(--ds-teal);
  outline-offset: 1px;
}

.lf-inline-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--lf-gap);
  margin-bottom: var(--lf-gap);
}

/* ---------------- the optional technical block ---------------- */

.lf-disclosure {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  border: 1px dashed rgba(0, 150, 136, 0.4);
  border-radius: var(--lf-radius);
  background: var(--ds-teal-wash);
  text-align: left;
  font-family: inherit;
  color: var(--ds-ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.lf-disclosure:hover {
  border-color: var(--ds-teal);
}
.lf-disclosure:focus-visible {
  outline: 2px solid var(--ds-teal);
  outline-offset: 2px;
}
.lf-disclosure-main {
  min-width: 0;
  flex: 1;
}
.lf-disclosure-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
}
.lf-disclosure-title i {
  color: var(--ds-teal);
  font-size: 13px;
}
.lf-disclosure-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ds-muted);
}
.lf-disclosure-chev {
  flex: none;
  font-size: 13px;
  color: var(--ds-teal);
  transition: transform 0.25s ease;
}
.lf-disclosure.is-open .lf-disclosure-chev {
  transform: rotate(180deg);
}

.lf-technical {
  margin-top: 20px;
  padding: 22px;
  border: 1px solid var(--ds-line);
  border-radius: var(--lf-radius);
  background: #fbfcfd;
}
.lf-technical > * + * {
  margin-top: var(--lf-gap);
}
.lf-technical[hidden] {
  display: none;
}

/* ---------------- error summary, failure, submit ---------------- */

.lf-summary {
  display: none;
}
.lf-summary.is-shown {
  display: block;
  margin-bottom: 26px;
  padding: 16px 18px;
  border: 1px solid #fecaca;
  border-radius: var(--lf-radius);
  background: #fef2f2;
  color: #7f1d1d;
}
.lf-summary:focus-visible {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}
.lf-summary strong {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
}
.lf-summary ul {
  margin: 8px 0 0;
  padding-left: 28px;
  list-style: disc;
  font-size: 13.5px;
  line-height: 1.6;
}

.lf-failed {
  display: flex;
  gap: 13px;
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid #fecaca;
  border-radius: var(--lf-radius);
  background: #fef2f2;
  color: #7f1d1d;
}
.lf-failed > i {
  margin-top: 3px;
  flex: none;
}
.lf-failed p {
  margin: 5px 0 0;
  font-size: 13.5px;
  line-height: 1.55;
}
.lf-failed-safe a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.lf-submit {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--ds-line);
  text-align: center;
}
.lf-privacy {
  margin: 14px auto 0;
  max-width: 48ch;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ds-muted);
}

.lf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 100px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease;
}
.lf-btn:focus-visible {
  outline: 2px solid var(--ds-teal);
  outline-offset: 3px;
}
.lf-btn-primary {
  background: var(--ds-teal);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(0, 150, 136, 0.8);
}
.lf-btn-primary:hover:not(:disabled) {
  background: var(--ds-teal-deep);
  transform: translateY(-1px);
}
.lf-btn-primary:disabled {
  opacity: 0.75;
  cursor: progress;
  transform: none;
}
.lf-btn-ghost {
  border-color: var(--ds-line);
  background: #fff;
  color: var(--ds-ink);
}
.lf-btn-ghost:hover {
  border-color: var(--ds-teal);
  color: var(--ds-teal-deep);
}
.lf-btn-lg {
  min-width: 260px;
  padding: 16px 32px;
  font-size: 16px;
}

.lf-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lf-spin 0.7s linear infinite;
}
@keyframes lf-spin {
  to {
    transform: rotate(360deg);
  }
}

/* The honeypot. Positioned off-screen rather than display:none — a bot that
   reads computed styles skips a hidden field and fills a visible one. */
.lf-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------- success ---------------- */

.lf-done {
  padding: 44px 34px 36px;
  border: 1px solid var(--ds-line);
  border-radius: var(--lf-radius-lg);
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 28, 37, 0.04), 0 18px 44px -28px rgba(28, 28, 37, 0.28);
  text-align: center;
}
.lf-done:focus-visible {
  outline: 2px solid var(--ds-teal);
  outline-offset: 3px;
}
.lf-done-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--ds-teal);
  color: #fff;
  font-size: 26px;
}
.lf-done h1 {
  margin: 0 0 12px;
  font-size: clamp(21px, 4.4vw, 27px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.015em;
}
.lf-done > p {
  margin: 0 auto;
  max-width: 46ch;
  font-size: 15px;
  color: var(--ds-muted);
}
.lf-done-note {
  display: flex;
  gap: 12px;
  margin: 26px 0 0;
  padding: 15px 17px;
  border: 1px solid #fed7aa;
  border-radius: var(--lf-radius);
  background: #fff7ed;
  text-align: left;
  color: #7c2d12;
}
.lf-done-note i {
  margin-top: 3px;
  flex: none;
}
.lf-done-note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
}
.lf-done-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}
.lf-ref {
  margin: 20px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a9adb6;
}
.lf-restart {
  margin-top: 18px;
  padding: 8px 4px;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ds-teal-deep);
  text-decoration: underline;
  cursor: pointer;
}
.lf-restart:focus-visible {
  outline: 2px solid var(--ds-teal);
  outline-offset: 2px;
}

/* ---------------- foot ---------------- */

.lf-foot {
  padding: 26px 8px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--ds-muted);
}
.lf-foot p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin: 0;
}
.lf-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ds-teal-deep);
  font-weight: 600;
  text-decoration: none;
}
.lf-foot a:hover {
  text-decoration: underline;
}
.lf-foot-note {
  margin-top: 10px;
  font-size: 12.5px;
  color: #9aa0aa;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 720px) {
  .lf-grid,
  .lf-inline-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .lf-form {
    padding: 22px 18px;
  }
  .lf-technical {
    padding: 18px 15px;
  }
}

@media (max-width: 560px) {
  .lf-page {
    --lf-gap: 18px;
    padding: 20px 12px 44px;
  }
  .lf-head {
    padding-bottom: 20px;
  }
  .lf-logo {
    width: 148px;
  }
  .lf-event {
    font-size: 11.5px;
    padding: 6px 12px;
  }
  .lf-form {
    padding: 20px 15px;
    border-radius: 14px;
  }
  .lf-done {
    padding: 34px 20px 28px;
  }
  /* Full width, because at this size a centred pill with dead space either
     side is a smaller target for no reason. */
  .lf-btn-lg {
    width: 100%;
    min-width: 0;
  }
  .lf-done-actions .lf-btn {
    flex: 1 1 100%;
  }
  .lf-section + .lf-section {
    margin-top: 26px;
    padding-top: 24px;
  }
}

/* Below 380px the chips go to one column rather than squeezing two. */
@media (max-width: 379px) {
  .lf-chips,
  .lf-chips.is-narrow {
    grid-template-columns: minmax(0, 1fr);
  }
  .lf-disclosure {
    padding: 14px;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lf-chip,
  .lf-chip-tick,
  .lf-chip-ic,
  .lf-btn,
  .lf-input,
  .lf-disclosure-chev {
    transition: none;
  }
  .lf-spinner {
    animation-duration: 2s;
  }
}

/* ---------------- location suggestions & chosen place ---------------- */

.lf-place {
  position: relative;
}

.lf-place-lead {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: var(--ds-muted);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.lf-input.lf-place-input {
  padding-left: 38px;
}

/* A quiet spinner inside the field's right edge while a lookup is in flight.
   Not a blocking state — the visitor can keep typing straight through it. */
.lf-place-spin {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid var(--ds-line);
  border-top-color: var(--ds-teal);
  border-radius: 50%;
  animation: lf-spin 0.7s linear infinite;
  pointer-events: none;
}

.lf-place-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 296px;
  overflow-y: auto;
  /* Momentum scrolling inside the list on iOS rather than dragging the page. */
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--ds-line);
  border-radius: var(--lf-radius);
  background: #fff;
  box-shadow: 0 4px 16px rgba(28, 28, 37, 0.12), 0 18px 40px -20px rgba(28, 28, 37, 0.32);
}

.lf-place-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.lf-place-item.is-active,
.lf-place-item:hover {
  background: var(--ds-teal-wash);
}
.lf-place-item > i {
  margin-top: 3px;
  flex: none;
  width: 15px;
  font-size: 13px;
  color: var(--ds-teal);
  text-align: center;
}
.lf-place-text {
  min-width: 0;
}
.lf-place-text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ds-ink);
  /* A long school name wraps rather than widening the panel past the field. */
  overflow-wrap: anywhere;
}
.lf-place-text small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ds-muted);
  overflow-wrap: anywhere;
}

.lf-place-none {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ds-muted);
}

/* Chosen state card */
.lf-place-chosen {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--ds-teal-wash);
  border: 1px solid rgba(0, 150, 136, 0.28);
  border-radius: var(--lf-radius);
  min-height: 48px;
}
.lf-place-chosen-ic {
  flex: none;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 150, 136, 0.12);
  color: var(--ds-teal);
  font-size: 14px;
}
.lf-place-chosen-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lf-place-chosen-text strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ds-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lf-place-chosen-text small {
  font-size: 12.5px;
  color: var(--ds-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lf-place-change {
  flex: none;
  background: #fff;
  border: 1px solid var(--ds-line);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ds-teal);
  cursor: pointer;
  transition: all 0.15s ease;
}
.lf-place-change:hover {
  background: var(--ds-teal);
  color: #fff;
  border-color: var(--ds-teal);
}

@media (prefers-reduced-motion: reduce) {
  .lf-place-spin {
    animation-duration: 2s;
  }
  .lf-place-item,
  .lf-place-change {
    transition: none;
  }
}
