/* Landlord box (homepages EN /, FR /fr/, IT /it/, and the three rent-your-property
   pages) — owner request 26 Oct 2026.
   Navy card with a gold accent; the 5-step form opens in a white panel inside
   it. Markup in those pages, logic in /shared/home-landlord.js. */

.ll-box { max-width: 1060px; margin: 0 auto 2rem; padding: 0 1.25rem; }
.ll-box [hidden] { display: none !important; }

.ll-card {
  position: relative;
  background: #003DA5;
  color: #fff;
  border-radius: 14px;
  border-top: 4px solid #C5A55A;
  box-shadow: 0 4px 20px rgba(0, 61, 165, 0.18);
  padding: 1.4rem 1.6rem;
}

.ll-intro { display: flex; align-items: center; gap: 1.5rem; }
.ll-intro-text { flex: 1 1 auto; min-width: 0; }
.ll-new {
  display: inline-block;
  background: #C5A55A;
  color: #1a1a2e;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.45rem;
}
.ll-intro h2 { font-size: 1.3rem; font-weight: 700; color: #fff; margin: 0 0 0.3rem; }
.ll-lead { font-size: 0.93rem; line-height: 1.55; color: rgba(255, 255, 255, 0.9); margin: 0; }

.ll-start, .ll-next, .ll-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 2px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.ll-start {
  flex: 0 0 auto;
  background: #C5A55A;
  color: #1a1a2e;
  padding: 0.85rem 1.4rem;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.ll-start:hover, .ll-next:hover { transform: translateY(-2px); }
.ll-start:focus-visible, .ll-next:focus-visible, .ll-back:focus-visible { outline: 3px solid #C5A55A; outline-offset: 3px; }
.ll-start:focus-visible { outline-color: #fff; }

.ll-open .ll-start { display: none; }

/* The step form: white panel inside the navy card */
.ll-panel {
  margin-top: 1.1rem;
  background: #fff;
  color: #1a1a2e;
  border-radius: 12px;
  padding: 1.25rem 1.4rem 1.1rem;
}

.ll-progress { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.ll-count { flex: 0 0 auto; font-size: 0.82rem; font-weight: 700; color: #003DA5; }
.ll-bar { flex: 1 1 auto; height: 6px; background: #e8ecf2; border-radius: 999px; overflow: hidden; }
.ll-bar span { display: block; height: 100%; width: 20%; background: #C5A55A; border-radius: 999px; transition: width 0.25s; }

.ll-step, .ll-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.ll-step > legend { padding: 0; margin-bottom: 0.85rem; width: 100%; }
.ll-q { font-size: 1.1rem; font-weight: 700; color: #003DA5; margin: 0; }
.ll-q:focus { outline: none; }
.ll-q:focus-visible { outline: 3px solid #C5A55A; outline-offset: 3px; border-radius: 4px; }
.ll-group { margin-top: 0.9rem; }
.ll-group > legend, .ll-field > label {
  display: block;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.4rem;
}
.ll-req { color: #c0392b; }
.ll-opt-tag { font-weight: 400; color: #777; }

.ll-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ll-chip { position: relative; cursor: pointer; }
.ll-chip input, .ll-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.ll-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: center;
  padding: 0.55rem 1rem;
  border: 1.5px solid #cfd6e2;
  border-radius: 999px;
  background: #fff;
  color: #1a1a2e;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.15s, border-color 0.15s;
}
.ll-chip:hover span { border-color: #003DA5; }
.ll-chip input:checked + span { background: #003DA5; border-color: #003DA5; color: #fff; }
.ll-chip input:focus-visible + span, .ll-opt input:focus-visible + .ll-opt-body { outline: 3px solid #C5A55A; outline-offset: 2px; }

.ll-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.ll-opt { position: relative; cursor: pointer; display: block; }
.ll-opt-body {
  display: block;
  height: 100%;
  padding: 0.75rem 0.9rem 0.75rem 2.6rem;
  border: 1.5px solid #cfd6e2;
  border-radius: 10px;
  background: #fff;
  position: relative;
  transition: background 0.15s, border-color 0.15s;
}
.ll-opt-body::before {
  content: '';
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  width: 18px;
  height: 18px;
  border: 2px solid #9aa6b8;
  border-radius: 4px;
  background: #fff;
}
.ll-opt input:checked + .ll-opt-body { border-color: #003DA5; background: #f0f5ff; }
.ll-opt input:checked + .ll-opt-body::before {
  background: #003DA5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: #003DA5;
}
.ll-opt-body strong { display: block; font-size: 0.93rem; color: #1a1a2e; }
.ll-opt-body small { display: block; font-size: 0.8rem; color: #666; margin-top: 0.15rem; line-height: 1.4; }

.ll-row { display: flex; gap: 0.9rem; align-items: flex-end; }   /* inputs line up when a label wraps */
.ll-step > .ll-field-s { max-width: 260px; }
.ll-row + .ll-row, .ll-row + .ll-field, .ll-group + .ll-field, .ll-group + .ll-row { margin-top: 0.9rem; }
.ll-field { flex: 1 1 0; min-width: 0; }
.ll-field-s { flex: 0 1 220px; }
.ll-field input, .ll-field select, .ll-field textarea {
  display: block;
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid #dde1e7;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  color: #1a1a2e;
  background: #fff;
  min-height: 44px;
}
.ll-field textarea { resize: vertical; min-height: 80px; }
.ll-field input:focus, .ll-field select:focus, .ll-field textarea:focus { outline: none; border-color: #003DA5; box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.15); }
.ll-box [aria-invalid="true"] { border-color: #c0392b !important; }
.ll-group[aria-invalid="true"] .ll-chip span, .ll-group[aria-invalid="true"] .ll-opt-body,
.ll-step[aria-invalid="true"] .ll-chip span { border-color: #c0392b; }

.ll-gdpr { margin-top: 1rem; font-size: 0.82rem; line-height: 1.5; color: #555; }
.ll-gdpr label { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; }
.ll-gdpr input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 0.15rem; accent-color: #003DA5; }
.ll-gdpr a { color: #003DA5; }
.ll-gdpr .required { color: #c0392b; }

.ll-error {
  margin: 0.9rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  background: #fdecea;
  color: #b3261e;
  font-size: 0.88rem;
  font-weight: 600;
}
.ll-error:empty { display: none; }

.ll-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; margin-top: 1.1rem; }
.ll-back { background: #fff; color: #003DA5; border-color: #003DA5; padding: 0.7rem 1.2rem; font-size: 0.95rem; }
.ll-back:hover { background: #f0f5ff; }
.ll-next { margin-left: auto; background: #003DA5; color: #fff; padding: 0.75rem 1.5rem; font-size: 0.98rem; }
.ll-next:hover { box-shadow: 0 4px 12px rgba(0, 61, 165, 0.3); }
.ll-next[disabled] { opacity: 0.65; cursor: default; transform: none; }

.ll-done { text-align: center; padding: 0.6rem 0.4rem; }
.ll-done h3 { font-size: 1.15rem; font-weight: 700; color: #003DA5; margin: 0 0 0.35rem; }
.ll-done h3:focus { outline: none; }
.ll-done p { margin: 0; color: #333; }

/* The same box on the rent-your-property pages (EN/FR/IT): it sits inside the
   page's narrow <main>, open from the start, under a "How I can help" pair of cards. */
.ll-box.ll-page { padding: 0; margin: 0 0 1.25rem; }
.ll-how { margin: 0 0 1.5rem; }
.ll-how h2 { font-size: 1.2rem; font-weight: 700; color: #003DA5; margin: 0 0 0.8rem; text-align: center; }
.ll-how-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.ll-how-card {
  background: #fff;
  border: 1px solid #e4e8ef;
  border-top: 3px solid #C5A55A;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 10px rgba(0, 61, 165, 0.06);
}
.ll-how-card h3 { font-size: 0.98rem; font-weight: 700; color: #1a1a2e; margin: 0 0 0.35rem; }
.ll-how-card p { font-size: 0.88rem; line-height: 1.55; color: #555; margin: 0; }
@media (max-width: 560px) {
  .ll-how-cards { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .ll-intro { flex-direction: column; align-items: stretch; gap: 1rem; }
  .ll-start { width: 100%; padding: 1rem; font-size: 1.05rem; }
  .ll-row { flex-direction: column; gap: 0.9rem; }
  .ll-field-s { flex: 1 1 auto; }
  .ll-opts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .ll-card { padding: 1.15rem 1rem; }
  .ll-panel { padding: 1rem 0.9rem; }
  .ll-nav .ll-next { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ll-start, .ll-next, .ll-bar span, .ll-chip span, .ll-opt-body { transition: none; }
  .ll-start:hover, .ll-next:hover { transform: none; }
}
