/* Lease-on application overlay (S1.5). Same palette as tailwind.config.js:
   deep-navy #0A2140, ice-blue #A5C8FF, void-black #050505, on-surface #e2e2e2. */
html.la-lock, html.la-lock body { overflow: hidden; }

.la-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(5, 5, 5, 0.82);
  display: flex; align-items: stretch; justify-content: center;
  font-family: 'Inter', sans-serif; color: #e2e2e2;
}
.la-overlay[hidden] { display: none; }

.la-panel {
  position: relative; width: 100%; height: 100%;
  display: flex; flex-direction: column;
  background: linear-gradient(150deg, #0A2140 0%, #070d19 55%, #050505 100%);
  animation: la-in 220ms ease-out;
}
@media (min-width: 768px) {
  .la-overlay { align-items: center; padding: 2rem; }
  .la-panel {
    max-width: 780px; height: min(92vh, 900px);
    border: 1px solid rgba(165, 200, 255, 0.18);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  }
}
@keyframes la-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.la-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.25rem; border-bottom: 1px solid rgba(165, 200, 255, 0.12);
}
.la-brand { margin: 0; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #A5C8FF; }
.la-header-tools { display: flex; align-items: center; gap: 0.5rem; }
.la-lang { display: flex; border: 1px solid rgba(165, 200, 255, 0.3); }
.la-lang button, .lease-lang button {
  min-width: 44px; min-height: 36px; background: transparent; color: #A5C8FF;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; border: 0; cursor: pointer;
}
.la-lang button[aria-pressed="true"], .lease-lang button[aria-pressed="true"] { background: #A5C8FF; color: #0A2140; }
.la-close {
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid rgba(165, 200, 255, 0.3); color: #e2e2e2; cursor: pointer;
}
.la-close:hover { border-color: #A5C8FF; }

.la-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 1.5rem 1.25rem 2.5rem; }
@media (min-width: 768px) { .la-body { padding: 2rem 3rem 3rem; } }

.la-progress { height: 3px; background: rgba(165, 200, 255, 0.15); margin-bottom: 0.75rem; }
.la-progress span { display: block; height: 100%; width: 100%; background: #A5C8FF; transform-origin: left; transition: transform 300ms ease; }
.la-step-of { margin: 0 0 0.25rem; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #A5C8FF; }
.la-title {
  margin: 0 0 0.75rem; font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase;
  line-height: 1; letter-spacing: -0.01em; font-size: clamp(1.75rem, 5vw, 2.5rem); color: #fff; outline: none;
}
.la-subtitle { margin: 0 0 0.25rem; font-family: 'Montserrat', sans-serif; font-weight: 900; text-transform: uppercase; font-size: 1.1rem; color: #fff; }
.la-hint, .la-text { color: #c4c6cf; font-size: 0.95rem; line-height: 1.6; margin: 0 0 1.25rem; }

.la-field { margin-bottom: 1.35rem; }
.la-field fieldset { border: 0; padding: 0; margin: 0; }
.la-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #c4c6cf; margin-bottom: 0.5rem; padding: 0; }
.la-req { color: #A5C8FF; }
.la-input {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem; font: inherit; font-size: 16px; color: #fff;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(165, 200, 255, 0.25); border-radius: 0;
}
.la-input:focus { outline: 2px solid #A5C8FF; outline-offset: 1px; border-color: #A5C8FF; }
select.la-input option { background: #0A2140; color: #fff; }
.la-input[aria-invalid="true"], fieldset[aria-invalid="true"] .la-option { border-color: #ffb4ab; }

.la-options { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.la-option, .la-check { display: flex; align-items: flex-start; gap: 0.65rem; cursor: pointer; }
.la-option { min-height: 48px; align-items: center; padding: 0.6rem 0.85rem; border: 1px solid rgba(165, 200, 255, 0.25); background: rgba(255, 255, 255, 0.03); }
.la-option:has(input:checked) { border-color: #A5C8FF; background: rgba(165, 200, 255, 0.12); }
.la-option input, .la-check input { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: #A5C8FF; }
.la-check { font-size: 0.95rem; line-height: 1.5; color: #e2e2e2; }
.la-check input { margin-top: 2px; }
.la-check a { color: #A5C8FF; text-decoration: underline; }
.la-option input:focus-visible, .la-check input:focus-visible { outline: 2px solid #A5C8FF; outline-offset: 2px; }

.la-error { margin: 0.4rem 0 0; font-size: 0.85rem; color: #ffb4ab; }
.la-alert { margin: 1rem 0; padding: 0.9rem 1rem; border: 1px solid #ffb4ab; background: rgba(255, 180, 171, 0.08); color: #ffdad6; line-height: 1.5; }

.la-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.la-nav { justify-content: space-between; }
.la-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.75rem;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; font-family: inherit;
}
.la-btn-primary { background: #A5C8FF; color: #0A2140; }
.la-btn-primary:hover { background: #fff; }
.la-btn-primary[disabled] { opacity: 0.6; cursor: wait; }
.la-btn-ghost { background: transparent; color: #A5C8FF; border-color: rgba(165, 200, 255, 0.35); }
.la-btn-ghost:hover { background: rgba(165, 200, 255, 0.06); }
.la-btn-danger { background: transparent; color: #ffb4ab; border-color: rgba(255, 180, 171, 0.4); }
.la-btn:focus-visible, .la-link:focus-visible, .la-close:focus-visible, .la-lang button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.la-link { background: none; border: 0; padding: 0.25rem 0; color: #A5C8FF; font-size: 0.85rem; text-decoration: underline; cursor: pointer; font-family: inherit; }
.la-clear { display: block; margin-top: 1.5rem; color: #c4c6cf; }

.la-review { margin: 2rem 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(165, 200, 255, 0.15); }
.la-review-group { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(165, 200, 255, 0.12); background: rgba(255, 255, 255, 0.02); }
.la-review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.la-review-head h4 { margin: 0; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: #A5C8FF; }
.la-review dl { margin: 0; display: grid; gap: 0.35rem; }
.la-review dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.75rem; font-size: 0.85rem; }
.la-review dt { color: #c4c6cf; }
.la-review dd { margin: 0; color: #fff; overflow-wrap: anywhere; }

.la-result { max-width: 560px; margin: 2rem auto 0; }
.la-result-icon { font-size: 48px; color: #A5C8FF; }
.la-ref { color: #c4c6cf; font-size: 0.9rem; }
.la-ref strong { color: #fff; font-family: ui-monospace, monospace; }

.la-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .la-panel { animation: none; }
  .la-progress span { transition: none; }
}

/* v2: side-by-side rows, "?" help, location chips */
.la-row { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .la-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .la-row-3 { grid-template-columns: 0.8fr 1.1fr 1.1fr; }
}
.la-label-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.la-label-row .la-label { margin-bottom: 0; }
legend.la-label { display: flex; align-items: center; gap: 0.5rem; }
.la-help-btn {
  flex-shrink: 0; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid rgba(165, 200, 255, 0.5); background: transparent; color: #A5C8FF;
  font-size: 12px; font-weight: 700; cursor: pointer; letter-spacing: 0; position: relative;
}
.la-help-btn::after { content: ''; position: absolute; inset: -10px; } /* 44px touch target */
.la-help-btn[aria-expanded="true"] { background: #A5C8FF; color: #0A2140; }
.la-help-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.la-help {
  margin: 0 0 0.75rem; padding: 0.7rem 0.9rem; font-size: 0.9rem; line-height: 1.55; color: #e2e2e2;
  border-left: 2px solid #A5C8FF; background: rgba(165, 200, 255, 0.08);
}
.la-hint-sm { font-size: 0.85rem; margin: -0.25rem 0 0.5rem; }
select.la-input optgroup { background: #050505; color: #A5C8FF; font-style: normal; }
.la-chips { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.la-chip {
  display: inline-flex; align-items: center; gap: 0.25rem; padding-left: 0.75rem; min-height: 36px;
  border: 1px solid rgba(165, 200, 255, 0.45); background: rgba(165, 200, 255, 0.12); color: #fff; font-size: 0.9rem;
}
.la-chip button {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: #A5C8FF; font-size: 1.2rem; cursor: pointer;
}
.la-chip button:hover { color: #fff; }
.la-chip button:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
