/* ============================================================
 * Landlord Studio — Late Rent Fee Calculator — Stylesheet
 *
 * All styles scoped under .ls-late-fee to avoid conflicts with
 * the host site's own CSS. Loaded via the Webflow embed page's
 * <head>.
 *
 * IMPORTANT: do not add @import / @font-face here — those are
 * inherently global (the spec doesn't allow scoping them) and
 * will redefine fonts for the entire host page. Webflow already
 * loads Lato site-wide; we fall through the system stack if it's
 * missing.
 * ============================================================ */

.ls-late-fee {
  --lsf-dark-blue: #0f2e5a;
  --lsf-blue: #2272e2;
  --lsf-soft-blue: #b1d2ff;
  --lsf-steel-blue: #e9f1fc;
  --lsf-back-grey: #f3f5f7;
  --lsf-text-secondary: #4b6283;
  --lsf-dark-grey: #5f718a;
  --lsf-neutral-10: #7d97bb;
  --lsf-neutral-7: #dfe3e8;
  --lsf-coral: #f1506b;
  --lsf-coral-dark: #da3753;
  --lsf-light-pink: #facbd3;
  --lsf-green: #29cc9e;
  --lsf-green-dark: #21a37e;
  --lsf-yellow: #ffac33;
  --lsf-yellow-dark: #e2921d;
  --lsf-white: #fff;
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--lsf-dark-blue);
  background: var(--lsf-back-grey);
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px;
  line-height: 1.5;
  font-size: 16px;
  box-sizing: border-box;
}
.ls-late-fee *, .ls-late-fee *::before, .ls-late-fee *::after { box-sizing: border-box; }

/* ---- Eyebrow / title / lede ---- */
.ls-late-fee .ls-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lsf-blue);
  margin-bottom: 12px;
}
.ls-late-fee h1.ls-title {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  font-size: clamp(32px, 5vw, 45px);
  line-height: 1.15;
  color: var(--lsf-dark-blue);
  margin: 0 0 16px 0;
  letter-spacing: -.01em;
}
.ls-late-fee .ls-lede {
  font-size: 17px;
  color: var(--lsf-text-secondary);
  margin: 0 0 32px 0;
  max-width: 720px;
}

/* ---- Step indicator ---- */
.ls-late-fee .ls-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--lsf-white);
  border-radius: 12px;
  border: 1px solid var(--lsf-neutral-7);
}
.ls-late-fee .ls-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--lsf-neutral-10);
  flex: 1;
  min-width: 0;
}
.ls-late-fee .ls-step.is-active { color: var(--lsf-dark-blue); }
.ls-late-fee .ls-step.is-active .ls-step-num {
  background: var(--lsf-blue);
  color: var(--lsf-white);
}
.ls-late-fee .ls-step-num {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--lsf-neutral-7);
  color: var(--lsf-neutral-10);
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ---- Panels ---- */
.ls-late-fee .ls-panel { display: none; }
.ls-late-fee .ls-panel.is-active { display: block; }

.ls-late-fee .ls-card-main {
  background: var(--lsf-white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--lsf-neutral-7);
  margin-bottom: 24px;
}

/* ---- Form grid ---- */
.ls-late-fee .ls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .ls-late-fee .ls-grid { grid-template-columns: 1fr; }
}

.ls-late-fee .ls-field { display: flex; flex-direction: column; }
.ls-late-fee .ls-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--lsf-dark-blue);
  margin-bottom: 6px;
}
.ls-late-fee .ls-required {
  color: var(--lsf-coral-dark);
  font-weight: 900;
  margin-left: 2px;
}
.ls-late-fee .ls-hint {
  font-size: 13px;
  color: var(--lsf-text-secondary);
  margin-top: 6px;
}
.ls-late-fee input[type="number"],
.ls-late-fee input[type="text"],
.ls-late-fee select {
  font-family: inherit;
  font-size: 16px;
  color: var(--lsf-dark-blue);
  background: var(--lsf-white);
  border: 1px solid var(--lsf-neutral-7);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  -webkit-appearance: none;
}
.ls-late-fee input:focus, .ls-late-fee select:focus {
  border-color: var(--lsf-blue);
  box-shadow: 0 0 0 3px rgba(34, 114, 226, .15);
}

/* ---- Fee structure picker ---- */
.ls-late-fee .ls-fee-structure {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 20px;
}
@media (max-width: 640px) {
  .ls-late-fee .ls-fee-structure { grid-template-columns: 1fr; }
}
.ls-late-fee .ls-fee-card {
  position: relative;
  padding: 16px;
  background: var(--lsf-white);
  border: 2px solid var(--lsf-neutral-7);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ls-late-fee .ls-fee-card:hover { border-color: var(--lsf-soft-blue); }
.ls-late-fee .ls-fee-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ls-late-fee .ls-fee-card-title {
  font-weight: 900;
  font-size: 15px;
  color: var(--lsf-dark-blue);
  margin-bottom: 4px;
}
.ls-late-fee .ls-fee-card-desc {
  font-size: 13px;
  color: var(--lsf-text-secondary);
  line-height: 1.4;
}
.ls-late-fee .ls-fee-card.is-selected {
  border-color: var(--lsf-blue);
  background: var(--lsf-steel-blue);
}

/* ---- Buttons ---- */
.ls-late-fee .ls-btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ls-late-fee .ls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lsf-blue);
  color: var(--lsf-white);
  border: 0;
  padding: 14px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 900;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.ls-late-fee .ls-btn:hover { background: #1a5fc4; }
.ls-late-fee .ls-btn--ghost {
  background: var(--lsf-white);
  color: var(--lsf-dark-blue);
  border: 1px solid var(--lsf-neutral-7);
}
.ls-late-fee .ls-btn--ghost:hover {
  background: var(--lsf-steel-blue);
  border-color: var(--lsf-soft-blue);
}

/* ---- Results headline ---- */
.ls-late-fee .ls-estimate {
  background: linear-gradient(135deg, var(--lsf-dark-blue) 0%, #1a4787 100%);
  color: var(--lsf-white);
  border-radius: 16px;
  padding: 32px 28px;
  margin-bottom: 24px;
}
.ls-late-fee .ls-estimate-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lsf-soft-blue);
  margin-bottom: 8px;
}
.ls-late-fee .ls-estimate-value {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.ls-late-fee .ls-estimate-value small {
  font-size: .45em;
  font-weight: 700;
  color: var(--lsf-soft-blue);
  margin-left: 6px;
}

/* ---- Sections / tables ---- */
.ls-late-fee .ls-section-title {
  font-family: 'Lato', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--lsf-dark-blue);
  margin: 28px 0 8px 0;
}
.ls-late-fee .ls-section-title:first-child { margin-top: 0; }
.ls-late-fee .ls-section-sub {
  font-size: 14px;
  color: var(--lsf-text-secondary);
  margin: 0 0 16px 0;
}
.ls-late-fee .ls-pack-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 20px 0;
}
.ls-late-fee .ls-pack-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--lsf-neutral-7);
  font-size: 15px;
  vertical-align: top;
}
.ls-late-fee .ls-pack-table tr:last-child td { border-bottom: 0; }
.ls-late-fee .ls-pack-label {
  color: var(--lsf-text-secondary);
  width: 55%;
}
.ls-late-fee .ls-pack-val {
  color: var(--lsf-dark-blue);
  font-weight: 700;
  text-align: right;
}

/* ---- State context card ---- */
.ls-late-fee .ls-state-card {
  background: var(--lsf-steel-blue);
  border-left: 4px solid var(--lsf-blue);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 12px 0 24px;
}
.ls-late-fee .ls-state-card strong { color: var(--lsf-dark-blue); }

/* ---- Disclaimer / warning cards ---- */
.ls-late-fee .ls-warning {
  background: #fff7e6;
  border-left: 4px solid var(--lsf-yellow-dark);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 12px 0 20px;
  font-size: 14px;
  color: #5a4413;
  line-height: 1.5;
}
.ls-late-fee .ls-warning strong { color: #6b4f10; }

.ls-late-fee .ls-disclaimer {
  background: var(--lsf-light-pink);
  border-left: 4px solid var(--lsf-coral-dark);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
  color: #5e1f2c;
  line-height: 1.55;
}
.ls-late-fee .ls-disclaimer strong { color: var(--lsf-coral-dark); }

/* ---- Inline form error ---- */
.ls-late-fee .ls-form-error {
  display: none;
  color: var(--lsf-coral-dark);
  font-weight: 700;
  font-size: 14px;
  margin-top: 12px;
}
.ls-late-fee .ls-form-error.is-visible { display: block; }

/* ---- Footer ---- */
.ls-late-fee .ls-foot {
  font-size: 12px;
  color: var(--lsf-dark-grey);
  line-height: 1.55;
  margin-top: 16px;
  padding: 16px;
  background: var(--lsf-white);
  border: 1px solid var(--lsf-neutral-7);
  border-radius: 10px;
}
.ls-late-fee .ls-foot strong { color: var(--lsf-dark-blue); }

/* ---- Tenant communication templates (Step 3) ---- */
.ls-late-fee .ls-comms-personalize {
  background: var(--lsf-steel-blue);
  border: 1px solid var(--lsf-soft-blue);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 24px;
}
.ls-late-fee .ls-comms-personalize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) {
  .ls-late-fee .ls-comms-personalize-grid { grid-template-columns: 1fr; }
}
.ls-late-fee .ls-comms-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 16px 0 24px;
}
.ls-late-fee .ls-comms-card {
  background: var(--lsf-white);
  border: 1px solid var(--lsf-neutral-7);
  border-radius: 12px;
  padding: 20px;
}
.ls-late-fee .ls-comms-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.ls-late-fee .ls-comms-card-tag {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--lsf-dark-blue);
}
.ls-late-fee .ls-comms-card-when {
  font-size: 12px;
  font-weight: 700;
  color: var(--lsf-text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ls-late-fee .ls-comms-field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--lsf-text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 10px 0 4px;
}
.ls-late-fee .ls-comms-text {
  display: block;
  width: 100%;
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.55;
  color: var(--lsf-dark-blue);
  background: var(--lsf-back-grey);
  border: 1px solid var(--lsf-neutral-7);
  border-radius: 8px;
  padding: 10px 12px;
  resize: vertical;
  outline: none;
  white-space: pre-wrap;
  word-wrap: break-word;
  -webkit-appearance: none;
}
.ls-late-fee .ls-comms-text:focus {
  border-color: var(--lsf-blue);
  box-shadow: 0 0 0 3px rgba(34, 114, 226, .15);
}
.ls-late-fee .ls-comms-subject { font-weight: 700; }
.ls-late-fee .ls-comms-copy-btn { margin-top: 12px; }
.ls-late-fee .ls-comms-copy-btn.is-copied {
  background: var(--lsf-green);
}
.ls-late-fee .ls-comms-copy-btn.is-copied:hover {
  background: var(--lsf-green-dark);
}

/* ---- Pack hero (Step 4 PDF report) ---- */
.ls-late-fee .ls-pack-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  background: linear-gradient(135deg, var(--lsf-dark-blue) 0%, #1a4787 100%);
  color: var(--lsf-white);
  border-radius: 12px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.ls-late-fee .ls-pack-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.ls-late-fee .ls-pack-hero-icon {
  flex: 0 0 auto;
  width: 64px; height: 64px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lsf-white);
  position: relative;
  z-index: 1;
}
.ls-late-fee .ls-pack-hero-icon svg { width: 34px; height: 34px; }
.ls-late-fee .ls-pack-hero-text { position: relative; z-index: 1; flex: 1; min-width: 0; }
.ls-late-fee .ls-pack-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: .9;
  margin-bottom: 6px;
}
.ls-late-fee .ls-pack-hero-title {
  font-family: 'Lato', sans-serif;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 900;
  line-height: 1.1;
}
.ls-late-fee .ls-pack-hero-action {
  margin-left: auto;
  flex: 0 0 auto;
  background: var(--lsf-white);
  color: var(--lsf-dark-blue);
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: transform .15s, box-shadow .15s;
  position: relative;
  z-index: 1;
  white-space: nowrap;
}
.ls-late-fee .ls-pack-hero-action:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22); }
.ls-late-fee .ls-pack-hero-action:active { transform: translateY(0); }
@media (max-width: 640px) {
  .ls-late-fee .ls-pack-hero { padding: 20px; gap: 16px; flex-wrap: wrap; }
  .ls-late-fee .ls-pack-hero-icon { width: 52px; height: 52px; }
  .ls-late-fee .ls-pack-hero-icon svg { width: 28px; height: 28px; }
  .ls-late-fee .ls-pack-hero-action { width: 100%; margin-left: 0; margin-top: 4px; }
}

/* ---- Modal (lead capture) ---- */
.ls-late-fee .ls-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 46, 90, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  animation: lsf-backdrop-in .2s ease;
  box-sizing: border-box;
}
.ls-late-fee .ls-modal-backdrop.is-open { display: flex; }
@keyframes lsf-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
.ls-late-fee .ls-modal {
  background: var(--lsf-white);
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
  padding: 36px 32px 32px;
  position: relative;
  box-shadow: 0 24px 64px rgba(15, 46, 90, 0.25);
  animation: lsf-modal-in .3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  box-sizing: border-box;
  overflow-x: hidden;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
@media (max-width: 640px) {
  .ls-late-fee .ls-modal-backdrop { padding: 12px; }
  .ls-late-fee .ls-modal { padding: 28px 22px 22px; max-height: calc(100vh - 24px); }
}
.ls-late-fee .ls-modal:has(.om-embedded-campaign) {
  max-width: 760px;
  padding: 8px 8px 12px;
}
.ls-late-fee .ls-modal:has(.om-embedded-campaign) .ls-modal-icon,
.ls-late-fee .ls-modal:has(.om-embedded-campaign) #lsf-modal-title,
.ls-late-fee .ls-modal:has(.om-embedded-campaign) > p { display: none; }
.ls-late-fee .ls-modal:has(.om-embedded-campaign) .om-embedded-campaign { margin: 0 0 8px; }
.ls-late-fee .ls-modal:has(.om-embedded-campaign) .ls-modal-trust { margin-top: 8px; padding: 0 16px 8px; }
@media (max-width: 640px) {
  .ls-late-fee .ls-modal:has(.om-embedded-campaign) { padding: 6px; }
}
@keyframes lsf-modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.ls-late-fee .ls-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 0;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--lsf-dark-grey);
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.ls-late-fee .ls-modal-close:hover { background: var(--lsf-back-grey); color: var(--lsf-dark-blue); }
.ls-late-fee .ls-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--lsf-steel-blue);
  color: var(--lsf-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.ls-late-fee .ls-modal-icon svg { width: 28px; height: 28px; }
.ls-late-fee .ls-modal h3 {
  font-family: 'Lato', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--lsf-dark-blue);
  margin: 0 0 8px 0;
  line-height: 1.2;
}
.ls-late-fee .ls-modal p {
  color: var(--lsf-text-secondary);
  font-size: 15px;
  margin: 0 0 24px 0;
  line-height: 1.5;
}
.ls-late-fee .ls-modal-trust {
  text-align: center;
  font-size: 12px;
  color: var(--lsf-dark-grey);
  margin-top: 16px;
  line-height: 1.5;
}
.ls-late-fee .ls-modal-trust strong { color: var(--lsf-dark-blue); }

/* ---- Print isolation (PDF download) ---- */
@media print {
  body * { display: none !important; }
  body .lsf-print-ancestor {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    box-shadow: none !important;
    transform: none !important;
    position: static !important;
    float: none !important;
  }
  body .ls-late-fee,
  body .ls-late-fee [data-panel="4"],
  body .ls-late-fee [data-panel="4"] * { display: revert !important; }
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
  }
  body .ls-late-fee {
    display: block !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 24px !important;
    background: white !important;
    font-size: 12pt;
  }
  .ls-late-fee > .ls-eyebrow,
  .ls-late-fee > h1.ls-title,
  .ls-late-fee > .ls-lede,
  .ls-late-fee > .ls-steps,
  .ls-late-fee .ls-modal-backdrop,
  .ls-late-fee .ls-panel:not([data-panel="4"]) { display: none !important; }

  /* Higher-specificity rule needed to beat `body .ls-late-fee [data-panel="4"] *` */
  .ls-late-fee [data-panel="4"] .ls-no-print,
  .ls-late-fee [data-panel="4"] .ls-btn-row { display: none !important; }
  .ls-late-fee .ls-card-main { border: 0; padding: 0; box-shadow: none; }
  .ls-late-fee .ls-pack-hero {
    background: white !important;
    color: var(--lsf-dark-blue) !important;
    border: 0;
    border-bottom: 2px solid var(--lsf-dark-blue);
    border-radius: 0;
    padding: 0 0 16px 0;
    margin-bottom: 24px;
    page-break-after: avoid;
    box-shadow: none;
  }
  .ls-late-fee .ls-pack-hero::before { display: none !important; }
  .ls-late-fee .ls-pack-hero-icon { background: var(--lsf-dark-blue) !important; color: white !important; }
  .ls-late-fee .ls-pack-hero-eyebrow { color: var(--lsf-text-secondary) !important; }
  .ls-late-fee .ls-pack-hero-title { color: var(--lsf-dark-blue) !important; }
}
