/* Mobile Home Loan Calculator — Scoped CSS | Plugin: smarttools-finance */

.mhl-wrap * { box-sizing: border-box; margin: 0; padding: 0; }

.mhl-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
}

/* =====================
   HEADER
   ===================== */
.mhl-header {
  background: #1c3d5a;
  color: #fff;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.mhl-header-icon { font-size: 34px; flex-shrink: 0; }
.mhl-header-title { color:white; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.mhl-header-sub { font-size: 12px; color: #93c5fd; }

/* =====================
   BODY — Mobile first
   ===================== */
.mhl-body { display: flex; flex-direction: column; }

@media(min-width: 481px) and (max-width: 899px) {
  .mhl-stats-grid { grid-template-columns: repeat(4, 1fr); }
}

@media(min-width: 900px) {
  .mhl-body { flex-direction: row; align-items: flex-start; }
  .mhl-form { width: 44%; border-right: 1px solid #e2e8f0; flex-shrink: 0; }
  .mhl-results { width: 56%; }
}

/* =====================
   FORM
   ===================== */
.mhl-form { padding: 20px; }
.mhl-field-group { margin-bottom: 14px; }

.mhl-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.mhl-label-orange { color: #9a3412; }
.mhl-hint-inline {
  font-weight: 400;
  color: #6b7280;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}
.mhl-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #1c3d5a;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin: 16px 0 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid #dbeafe;
}

/* Warnings */
.mhl-warn-orange {
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #9a3412;
  line-height: 1.6;
  margin-bottom: 14px;
}
.mhl-warn-red {
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #dc2626;
  line-height: 1.6;
  margin-bottom: 14px;
}

/* Choice Buttons */
.mhl-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.mhl-toggle { flex-wrap: nowrap; }
.mhl-choice {
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.mhl-choice:hover { border-color: #1c3d5a; color: #ffffff; }
.mhl-choice.active { background: #1c3d5a; border-color: #1c3d5a; color: #fff; }
.mhl-choice.mhl-disabled { opacity: 0.35; pointer-events: none; cursor: not-allowed; }
.mhl-toggle .mhl-choice { flex: 1; text-align: center; }

/* Slider */
.mhl-slider {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  margin: 8px 0 4px;
}
.mhl-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1c3d5a;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.mhl-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #1c3d5a;
  cursor: pointer;
  border: none;
}
.mhl-slider-labels { display: flex; justify-content: space-between; font-size: 10px; color: #9ca3af; }
.mhl-dp-highlight { font-weight: 700; color: #1c3d5a; font-size: 15px; }

/* Input Wrap */
.mhl-input-wrap { position: relative; display: flex; align-items: center; }
.mhl-input {
  width: 100%;
  padding: 9px 38px 9px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
  appearance: textfield;
}
.mhl-input::-webkit-inner-spin-button,
.mhl-input::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }
.mhl-input:focus { border-color: #1c3d5a; box-shadow: 0 0 0 3px rgba(28,61,90,0.09); }
.mhl-unit { position: absolute; right: 12px; color: #6b7280; font-size: 13px; pointer-events: none; }

/* Input Group ($ prefix) */
.mhl-input-group {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #d1d5db;
  border-radius: 7px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.mhl-input-group:focus-within {
  border-color: #1c3d5a;
  box-shadow: 0 0 0 3px rgba(28,61,90,0.09);
}
.mhl-input-addon {
  display: flex;
  align-items: center;
  padding: 0 10px 0 12px;
  color: #6b7280;
  font-size: 14px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.mhl-input-addon-field {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
}

.mhl-hint { font-size: 11px; color: #9ca3af; margin-top: 5px; font-style: italic; }
.mhl-disclaimer {
  background: #fef9c3;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 11px;
  color: #713f12;
  line-height: 1.6;
  margin-top: 16px;
}

/* =====================
   RESULTS
   ===================== */
.mhl-results { background: #f0f6ff; padding: 20px; }

.mhl-placeholder { text-align: center; padding: 50px 24px; color: #6b7280; }
.mhl-placeholder-icon { font-size: 52px; margin-bottom: 14px; }
.mhl-placeholder p { font-size: 13px; line-height: 1.7; }

/* A. Hero */
.mhl-hero-card {
  background: #1c3d5a;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 12px;
  color: #fff;
  text-align: center;
}
.mhl-hero-label { font-size: 11px; color: #93c5fd; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 6px; }
.mhl-hero-value { font-size: 40px; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 4px; }
.mhl-hero-sub { font-size: 12px; color: #93c5fd; margin-bottom: 10px; }
.mhl-hero-pi-row { display: flex; justify-content: center; align-items: center; gap: 16px; font-size: 12px; color: #bfdbfe; flex-wrap: wrap; }

/* Section Cards */
.mhl-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
}
.mhl-card-title {
  background: #1c3d5a;
  color: #fff;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
}

/* B. Eligibility */
.mhl-elig-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
}
.mhl-elig-row:last-child { border-bottom: none; }
.mhl-elig-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.mhl-elig-name { font-weight: 600; min-width: 120px; }
.mhl-elig-note { font-size: 11px; color: #6b7280; flex: 1; }

/* C. Comparison Table */
.mhl-compare-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  padding: 9px 14px;
  font-size: 12px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  gap: 4px;
  align-items: center;
}
.mhl-compare-last { border-bottom: none; }
.mhl-compare-header {
  background: #f0f6ff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #1c3d5a;
  letter-spacing: 0.3px;
}
.mhl-compare-row div:not(:first-child) { text-align: center; font-weight: 600; }
.mhl-savings-badge {
  padding: 10px 14px;
  font-size: 12px;
  text-align: center;
  font-weight: 600;
  border-top: 1px solid #e2e8f0;
}

/* D. Conversion */
.mhl-conversion-body { padding: 0; }
.mhl-conversion-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 12px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.mhl-conversion-row span:last-child { font-weight: 600; }
.mhl-conversion-verdict {
  padding: 10px 14px;
  font-size: 12px;
  font-style: italic;
  color: #374151;
  background: #f0f6ff;
  border-top: 1px solid #dbeafe;
}

/* E. Lot Rent */
.mhl-lr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  font-size: 12px;
  color: #374151;
  border-bottom: 1px solid #f3f4f6;
}
.mhl-lr-row span:last-child { font-weight: 600; }
.mhl-lr-total {
  background: #f9fafb;
  font-weight: 700;
}
.mhl-lr-total span { font-weight: 700 !important; font-size: 14px !important; }
.mhl-lotrent-note {
  padding: 10px 14px;
  font-size: 11px;
  color: #92400e;
  background: #fff7ed;
  border-top: 1px solid #fed7aa;
  line-height: 1.5;
}

/* F. Stats Grid */
.mhl-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
@media(min-width: 481px) { .mhl-stats-grid { grid-template-columns: repeat(4, 1fr); } }
.mhl-stat {
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
}
.mhl-stat-label { font-size: 10px; color: #6b7280; margin-bottom: 4px; line-height: 1.3; }
.mhl-stat-value { font-size: 14px; font-weight: 700; color: #1c3d5a; }
.mhl-stat-sm { font-size: 12px; }

/* Utility */
.mhl-green  { color: #15803d; }
.mhl-orange { color: #ea580c; }
.mhl-red    { color: #dc2626; }

/* =====================
   MOBILE (max 480px)
   ===================== */
@media(max-width: 480px) {
  .mhl-form, .mhl-results { padding: 14px; }
  .mhl-header { padding: 14px; gap: 10px; }
  .mhl-header-icon { font-size: 26px; }
  .mhl-header-title { font-size: 16px; }
  .mhl-header-sub { font-size: 11px; }
  .mhl-hero-value { font-size: 30px; }
  .mhl-toggle .mhl-choice { font-size: 11px; padding: 7px 8px; }
  .mhl-choice { padding: 6px 10px; font-size: 11px; }
  .mhl-compare-row { font-size: 11px; padding: 8px 10px; }
  .mhl-elig-name { min-width: 90px; }
}
