.bdfp-shell{--ink:#142033;--muted:#667085;--line:#e6ebf1;--blue:#3f69ff;--soft:#f5f8ff;--mint:#eaf8f2;--white:#fff;max-width:1180px;margin:22px auto;padding:0 14px;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box}.bdfp-shell *{box-sizing:border-box}.bdfp-hero{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(250px,.65fr);gap:22px;padding:34px;border:1px solid #e8edf6;border-radius:28px;background:linear-gradient(135deg,#f8fbff 0%,#f5f9ff 55%,#eef9f4 100%);box-shadow:0 18px 45px rgba(36,53,83,.08)}.bdfp-eyebrow,.bdfp-kicker{display:inline-flex;align-items:center;font-size:12px;font-weight:800;letter-spacing:.16em;color:#4363d8}.bdfp-hero h2{font-size:clamp(30px,4vw,52px);line-height:1.04;letter-spacing:-.04em;margin:10px 0 14px;max-width:760px}.bdfp-hero p{font-size:17px;line-height:1.65;color:var(--muted);max-width:680px;margin:0}.bdfp-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.bdfp-btn{appearance:none;border:0;border-radius:14px;padding:13px 18px;font-size:14px;font-weight:800;cursor:pointer;transition:.2s transform,.2s box-shadow,.2s background}.bdfp-btn:hover{transform:translateY(-1px)}.bdfp-btn-primary{background:var(--blue);color:white;box-shadow:0 10px 22px rgba(63,105,255,.2)}.bdfp-btn-ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}.bdfp-score-card{border-radius:22px;background:#17233b;color:#fff;padding:24px;display:flex;flex-direction:column;justify-content:center;min-height:205px;box-shadow:0 16px 30px rgba(20,32,51,.16)}.bdfp-score-label{font-size:11px;font-weight:800;letter-spacing:.14em;color:#b9c9ec}.bdfp-score-row{display:flex;align-items:flex-end;gap:6px;margin:10px 0}.bdfp-score-row strong{font-size:54px;line-height:1}.bdfp-score-row span{color:#aebbd2;padding-bottom:7px}.bdfp-score-card p{font-size:13px;color:#d4def0;line-height:1.5}.bdfp-tabs{display:flex;gap:8px;margin:18px 0;padding:7px;border-radius:16px;background:#f5f7fb;overflow:auto}.bdfp-tabs button{white-space:nowrap;border:0;background:transparent;padding:11px 15px;border-radius:11px;color:#677389;font-weight:750;cursor:pointer}.bdfp-tabs button.is-active{background:#fff;color:var(--ink);box-shadow:0 3px 12px rgba(24,39,75,.08)}.bdfp-panel{display:none}.bdfp-panel.is-active{display:block}.bdfp-section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:30px 2px 18px}.bdfp-section-head h3{font-size:26px;margin:5px 0 0;letter-spacing:-.02em}.bdfp-section-head p{max-width:420px;margin:0;color:var(--muted);font-size:13px;line-height:1.6;text-align:right}.bdfp-metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.bdfp-metric,.bdfp-card,.bdfp-scenario-card,.bdfp-link-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 28px rgba(31,45,73,.055)}.bdfp-metric{padding:18px}.bdfp-metric span{font-size:12px;color:#667085;font-weight:750}.bdfp-metric strong{display:block;font-size:23px;margin:7px 0 4px}.bdfp-metric small{color:#98a2b3}.bdfp-grid{display:grid;gap:14px}.bdfp-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.bdfp-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.bdfp-space-top{margin-top:14px}.bdfp-card{padding:22px}.bdfp-card h4{font-size:18px;margin:0 0 16px}.bdfp-card-feature{min-height:180px}.bdfp-card-feature p{color:var(--muted);line-height:1.6}.bdfp-card-icon{display:inline-grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--soft);color:var(--blue);font-size:12px;font-weight:900;margin-bottom:15px}.bdfp-text-btn{border:0;background:transparent;color:#3159df;padding:0;font-weight:800;cursor:pointer}.bdfp-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.bdfp-form-grid label,.bdfp-scenario-controls label{display:block}.bdfp-form-grid label>span,.bdfp-scenario-controls label>span{display:block;font-size:12px;color:#536078;font-weight:750;margin:0 0 7px}.bdfp-form-grid input,.bdfp-form-grid select,.bdfp-scenario-controls input{width:100%;min-height:46px;border:1px solid #dbe2eb!important;border-radius:12px!important;background:#fff!important;color:#142033!important;padding:10px 12px!important;font-size:15px!important;outline:none!important;box-shadow:none!important}.bdfp-form-grid input:focus,.bdfp-form-grid select:focus,.bdfp-scenario-controls input:focus{border-color:#7f9cff!important;box-shadow:0 0 0 3px rgba(63,105,255,.1)!important}.bdfp-money,.bdfp-suffix{display:flex;align-items:center;border:1px solid #dbe2eb;border-radius:12px;background:#fff;overflow:hidden}.bdfp-money span,.bdfp-suffix span{padding:0 11px;color:#8792a5;font-size:13px;font-weight:700;white-space:nowrap}.bdfp-money input,.bdfp-suffix input{border:0!important;border-radius:0!important}.bdfp-help{margin:14px 0 0;color:#7b8799;font-size:12px;line-height:1.55}.bdfp-card-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.bdfp-pill{font-size:11px;padding:7px 10px;border-radius:999px;background:#f1f4f8;color:#667085;font-weight:800}.bdfp-pill.good{background:#e8f8f0;color:#17724b}.bdfp-pill.watch{background:#fff5df;color:#945d00}.bdfp-empty-state{color:#8893a5;padding:28px 0;line-height:1.6}.bdfp-result-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.bdfp-result{padding:13px;border-radius:14px;background:#f8fafc}.bdfp-result span{display:block;font-size:11px;color:#758197}.bdfp-result strong{display:block;font-size:19px;margin-top:4px}.bdfp-result.full{grid-column:1/-1}.bdfp-result-message{margin-top:12px;padding:13px;border-radius:14px;background:#f5f8ff;color:#40516c;line-height:1.55;font-size:13px}.bdfp-sticky-action{position:sticky;bottom:12px;z-index:5;display:flex;justify-content:flex-end;gap:8px;margin-top:14px;padding:10px;border:1px solid var(--line);background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-radius:16px}.bdfp-scenario-controls{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end}.bdfp-scenario-card{padding:22px;text-align:center}.bdfp-scenario-card span{display:block;font-size:12px;color:#6d788a;font-weight:800}.bdfp-scenario-card strong{display:block;font-size:23px;margin:9px 0 5px}.bdfp-scenario-card small{color:#8c97a9}.bdfp-scenario-card.is-main{border-color:#9eb2ff;background:#f6f8ff}.bdfp-check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.bdfp-check{display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid #e4e9f0;border-radius:14px;background:#fff;cursor:pointer}.bdfp-check input{width:18px;height:18px;margin-top:2px}.bdfp-check span{font-size:14px;line-height:1.45}.bdfp-readiness-bar{margin-top:18px;padding:16px;border-radius:15px;background:#f7f9fc}.bdfp-readiness-bar>div:first-child{display:flex;justify-content:space-between;gap:14px;font-size:13px}.bdfp-readiness-bar strong{font-weight:700;color:#4e5b70}.bdfp-progress{height:9px;border-radius:99px;background:#e7ecf3;margin-top:10px;overflow:hidden}.bdfp-progress i{display:block;height:100%;width:0;background:#4b72ff;border-radius:inherit;transition:.25s width}.bdfp-link-card{display:block;text-decoration:none!important;color:inherit!important;padding:22px;transition:.2s transform,.2s box-shadow}.bdfp-link-card:hover{transform:translateY(-2px);box-shadow:0 15px 30px rgba(31,45,73,.09)}.bdfp-link-card>span{display:inline-flex;padding:6px 9px;border-radius:9px;background:#eef3ff;color:#3f61d9;font-size:11px;font-weight:900}.bdfp-link-card strong{display:block;font-size:20px;margin:12px 0 7px}.bdfp-link-card p{color:#697589;line-height:1.55}.bdfp-link-card em{font-style:normal;color:#3159df;font-size:13px;font-weight:800}.bdfp-disclaimer{margin-top:14px;border-radius:18px;background:#f7f9fc;padding:18px;color:#5e6a7c}.bdfp-disclaimer strong{color:var(--ink)}.bdfp-disclaimer p{margin:6px 0 0;font-size:12px;line-height:1.6}@media(max-width:850px){.bdfp-hero{grid-template-columns:1fr}.bdfp-metric-grid{grid-template-columns:repeat(2,1fr)}.bdfp-grid-2,.bdfp-grid-3{grid-template-columns:1fr}.bdfp-section-head{display:block}.bdfp-section-head p{text-align:left;margin-top:7px}.bdfp-check-grid{grid-template-columns:1fr}}@media(max-width:560px){.bdfp-hero{padding:23px;border-radius:22px}.bdfp-form-grid{grid-template-columns:1fr}.bdfp-metric-grid{grid-template-columns:1fr}.bdfp-result-grid{grid-template-columns:1fr}.bdfp-result.full{grid-column:auto}.bdfp-scenario-controls{grid-template-columns:1fr}.bdfp-readiness-bar>div:first-child{display:block}.bdfp-tabs{margin-left:-4px;margin-right:-4px}.bdfp-sticky-action{justify-content:stretch}.bdfp-sticky-action .bdfp-btn{flex:1}}

/* HDB local market insights */
.bdfp-market-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.bdfp-market-grid label{display:flex;flex-direction:column;gap:8px;font-weight:700;color:#223146}.bdfp-market-grid select,.bdfp-market-grid input{width:100%;min-height:48px;border:1px solid #d8e1ea;border-radius:12px;background:#fff;color:#172435;padding:10px 12px;font:inherit}.bdfp-market-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:18px}.bdfp-market-freshness{font-size:13px;color:#667487}.bdfp-market-output{margin-top:18px}.bdfp-market-metrics{margin-bottom:16px}.bdfp-market-range{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:18px 20px;margin:0 0 14px;border:1px solid #e2e9ef;border-radius:16px;background:#fff}.bdfp-market-range span{color:#697789}.bdfp-market-range strong{font-size:20px;color:#172435}.bdfp-table-wrap{overflow:auto;border:1px solid #e2e9ef;border-radius:16px;background:#fff}.bdfp-market-table{width:100%;border-collapse:collapse;min-width:760px}.bdfp-market-table th,.bdfp-market-table td{text-align:left;padding:13px 14px;border-bottom:1px solid #edf1f4;font-size:14px}.bdfp-market-table th{background:#f7f9fb;color:#536276;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.bdfp-market-table td:last-child,.bdfp-market-table th:last-child{text-align:right;font-weight:700}.bdfp-error{border-color:#f2c8c8!important;background:#fff7f7!important;color:#8f3030!important}@media(max-width:900px){.bdfp-market-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.bdfp-market-grid{grid-template-columns:1fr}.bdfp-market-range{align-items:flex-start;flex-direction:column}}


/* v2.5 mobile readability and responsive organisation */
.bdfp-shell input,
.bdfp-shell select,
.bdfp-shell textarea,
.bdfp-shell option{
  color:#142033!important;
  -webkit-text-fill-color:#142033!important;
  opacity:1!important;
  font-weight:600;
}
.bdfp-shell input::placeholder,
.bdfp-shell textarea::placeholder{
  color:#8a95a6!important;
  -webkit-text-fill-color:#8a95a6!important;
  opacity:1!important;
}
.bdfp-form-grid label,.bdfp-market-grid label,.bdfp-scenario-controls label{min-width:0}
.bdfp-money,.bdfp-suffix{min-width:0}
.bdfp-money input,.bdfp-suffix input{min-width:0;flex:1 1 auto}
.bdfp-tabs{-webkit-overflow-scrolling:touch;scrollbar-width:none}
.bdfp-tabs::-webkit-scrollbar{display:none}
.bdfp-card,.bdfp-metric,.bdfp-scenario-card,.bdfp-link-card{min-width:0}
.bdfp-card h4,.bdfp-section-head h3,.bdfp-hero h2,.bdfp-link-card strong,.bdfp-metric strong{overflow-wrap:anywhere}

@media(max-width:600px){
  .bdfp-shell{margin:10px auto;padding:0 10px;width:100%;overflow-x:hidden}
  .bdfp-hero{display:block;padding:20px 17px;border-radius:20px}
  .bdfp-hero h2{font-size:32px;line-height:1.08;margin-top:8px}
  .bdfp-hero p{font-size:15px;line-height:1.55}
  .bdfp-hero-actions{display:grid;grid-template-columns:1fr;gap:9px;margin-top:18px}
  .bdfp-hero-actions .bdfp-btn{width:100%}
  .bdfp-score-card{margin-top:16px;min-height:0;padding:19px;border-radius:18px}
  .bdfp-score-row strong{font-size:44px}

  .bdfp-tabs{gap:6px;margin:12px -2px 16px;padding:5px;border-radius:14px;overflow-x:auto;justify-content:flex-start}
  .bdfp-tabs button{flex:0 0 auto;padding:10px 12px;font-size:13px;min-height:42px}

  .bdfp-section-head{margin:22px 1px 13px}
  .bdfp-section-head h3{font-size:23px;line-height:1.2}
  .bdfp-section-head p{font-size:13px;line-height:1.5}
  .bdfp-kicker,.bdfp-eyebrow{font-size:10px;letter-spacing:.12em}

  .bdfp-grid,.bdfp-grid-2,.bdfp-grid-3,.bdfp-metric-grid,.bdfp-form-grid,.bdfp-market-grid,.bdfp-scenario-controls,.bdfp-check-grid,.bdfp-result-grid{grid-template-columns:minmax(0,1fr)!important;gap:10px}
  .bdfp-card,.bdfp-metric,.bdfp-scenario-card,.bdfp-link-card{padding:17px;border-radius:16px}
  .bdfp-card h4{font-size:17px;margin-bottom:13px}
  .bdfp-card-feature{min-height:0}
  .bdfp-metric strong{font-size:21px}

  .bdfp-form-grid label>span,.bdfp-scenario-controls label>span,.bdfp-market-grid label>span{font-size:12px;margin-bottom:6px;line-height:1.35}
  .bdfp-form-grid input,.bdfp-form-grid select,.bdfp-scenario-controls input,.bdfp-market-grid input,.bdfp-market-grid select{
    min-height:50px!important;
    height:auto!important;
    width:100%!important;
    max-width:100%!important;
    padding:12px 11px!important;
    font-size:16px!important;
    line-height:1.25!important;
    background:#fff!important;
    color:#142033!important;
    -webkit-text-fill-color:#142033!important;
  }
  .bdfp-money,.bdfp-suffix{width:100%;min-height:50px;border-radius:12px}
  .bdfp-money>span,.bdfp-suffix>span{flex:0 0 auto;padding:0 10px;font-size:12px}
  .bdfp-money input,.bdfp-suffix input{width:1%!important;min-width:0!important;flex:1 1 0!important;padding-left:8px!important;padding-right:8px!important}

  .bdfp-btn{min-height:48px;padding:12px 15px;font-size:14px;white-space:normal;line-height:1.3}
  .bdfp-sticky-action{position:static;display:grid;grid-template-columns:1fr;gap:8px;padding:0;border:0;background:transparent;backdrop-filter:none}
  .bdfp-sticky-action .bdfp-btn,.bdfp-market-actions .bdfp-btn,.bdfp-scenario-controls .bdfp-btn{width:100%}
  .bdfp-market-actions{display:grid;grid-template-columns:1fr;gap:9px;margin-top:14px}
  .bdfp-market-freshness{line-height:1.45}

  .bdfp-market-range{padding:15px 16px;gap:7px}
  .bdfp-market-range strong{font-size:18px;line-height:1.35;overflow-wrap:anywhere}

  /* Convert the HDB desktop table into stacked transaction cards on phones. */
  .bdfp-table-wrap{overflow:visible;border:0;background:transparent}
  .bdfp-market-table{display:block;min-width:0;width:100%;border-collapse:separate}
  .bdfp-market-table thead{display:none}
  .bdfp-market-table tbody{display:grid;gap:10px}
  .bdfp-market-table tr{display:block;border:1px solid #e2e9ef;border-radius:15px;background:#fff;padding:8px 14px;box-shadow:0 6px 18px rgba(31,45,73,.04)}
  .bdfp-market-table td{display:grid;grid-template-columns:minmax(88px,.8fr) minmax(0,1.35fr);gap:10px;align-items:start;width:100%;padding:8px 0!important;border-bottom:1px solid #edf1f4!important;text-align:right!important;font-size:13px!important;overflow-wrap:anywhere}
  .bdfp-market-table td:last-child{border-bottom:0!important}
  .bdfp-market-table td::before{content:attr(data-label);font-size:11px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#718096;text-align:left}
  .bdfp-market-table td[data-label="Resale price"]{font-size:15px!important;color:#142033!important;font-weight:800!important}

  .bdfp-check{padding:12px;gap:10px}
  .bdfp-check span{font-size:13px}
  .bdfp-readiness-bar{padding:14px}
  .bdfp-disclaimer{padding:15px;border-radius:15px}
  .bdfp-disclaimer p{font-size:12px;overflow-wrap:anywhere}
}

@media(max-width:380px){
  .bdfp-shell{padding:0 7px}
  .bdfp-hero{padding:18px 14px}
  .bdfp-hero h2{font-size:28px}
  .bdfp-card,.bdfp-metric,.bdfp-scenario-card,.bdfp-link-card{padding:14px}
  .bdfp-tabs button{font-size:12px;padding:9px 10px}
  .bdfp-market-table td{grid-template-columns:78px minmax(0,1fr);gap:8px}
}
