
.bb-table-wrap{overflow-x:auto;margin:1rem 0}
.bb-price-table{width:100%;border-collapse:collapse;font-size:.95rem}
.bb-price-table th,.bb-price-table td{padding:.75rem;border:1px solid #e5e7eb;text-align:left}
.bb-price-table th{background:#f3f4f6;font-weight:700}
.bb-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem;margin:1rem 0}
.bb-summary>div{border:1px solid #e5e7eb;padding:1rem;background:#fff}
.bb-summary span{display:block;font-size:.8rem;color:#6b7280;margin-bottom:.25rem}
.bb-summary strong{display:block;font-size:1.1rem}
.bb-verified{display:inline-block;padding:.35rem .6rem;border-radius:999px;background:#ecfdf5;color:#065f46;font-size:.85rem}

.bb-sample-warning{margin:1rem 0;padding:.9rem 1rem;border:1px solid #f4c36a;background:#fff8e7;border-radius:10px}
.bb-sample-ok{margin:1rem 0;padding:.75rem 1rem;border:1px solid #b7e4c7;background:#f0fff4;border-radius:10px}
.bb-verify-badge{display:inline-block;padding:.22rem .5rem;border-radius:999px;background:#eef2ff;font-size:.78rem}
.bb-worker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin:1rem 0}
.bb-worker-card{border:1px solid #e5e7eb;border-radius:14px;padding:1rem;background:#fff}
.bb-worker-card h3{margin-top:0}
.bb-worker-status{display:inline-block;padding:.3rem .6rem;border-radius:999px;font-size:.8rem;font-weight:700;margin-bottom:.5rem;background:#f3f4f6}
.bb-worker-tersedia{background:#dcfce7;color:#166534}
.bb-worker-terbatas{background:#fef3c7;color:#92400e}
.bb-worker-tidak-tersedia{background:#fee2e2;color:#991b1b}
.bb-worker-verified{font-size:.82rem;color:#667085}

.bb-service-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin:1rem 0}
.bb-service-card{border:1px solid #e5e7eb;border-radius:14px;padding:1rem;background:#fff}
.bb-service-card h3{margin-top:0}
.bb-service-status{display:inline-block;padding:.3rem .6rem;border-radius:999px;font-size:.8rem;font-weight:700;margin-bottom:.5rem;background:#f3f4f6}
.bb-service-tersedia{background:#dcfce7;color:#166534}
.bb-service-terbatas{background:#fef3c7;color:#92400e}
.bb-service-tidak-tersedia{background:#fee2e2;color:#991b1b}
.bb-service-verified{font-size:.82rem;color:#667085}

.bb-calc{margin:1.5rem 0}
.bb-calc h2{margin-bottom:1rem}
.bb-calc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:1rem}
.bb-calc label{font-weight:600;display:block}
.bb-calc input,.bb-rab-table input{width:100%;box-sizing:border-box;margin-top:.35rem;padding:.65rem .7rem;border:1px solid #d0d5dd;border-radius:8px;background:#fff}
.bb-calc-result,.bb-calc-results{margin-top:1rem;padding:1rem;border:1px solid #d0d5dd;border-radius:12px;background:#f8faf9}
.bb-calc-result{display:flex;justify-content:space-between;gap:1rem;align-items:center}
.bb-calc-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem}
.bb-calc-results div{padding:.75rem;background:#fff;border-radius:8px}
.bb-calc-result span,.bb-calc-results span{display:block;color:#667085;font-size:.85rem}
.bb-calc-result strong,.bb-calc-results strong{font-size:1.25rem}
.bb-calc-note{margin-top:1rem;padding:.85rem 1rem;background:#fff8e7;border:1px solid #f4c36a;border-radius:10px}
.bb-rab-toolbar{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}
.bb-btn{border:0;background:#1D7A58;color:#fff;padding:.7rem 1rem;border-radius:8px;font-weight:700;cursor:pointer}
.bb-btn-light{background:#f3f4f6;color:#17211B}
.bb-icon-btn{border:0;background:#fee2e2;color:#991b1b;width:32px;height:32px;border-radius:8px;cursor:pointer;font-size:1.2rem}
.bb-rab-table{width:100%;border-collapse:collapse;min-width:760px}
.bb-rab-table th,.bb-rab-table td{border:1px solid #e5e7eb;padding:.55rem;vertical-align:middle}
.bb-rab-table th{background:#f3f4f6;text-align:left}
.bb-rab-summary{margin-top:1rem;margin-left:auto;max-width:420px;display:grid;gap:.65rem}
.bb-rab-summary>div{display:flex;justify-content:space-between;gap:1rem;padding:.65rem .8rem;border-bottom:1px solid #e5e7eb}
.bb-rab-grand{font-size:1.15rem;background:#ecfdf3;border-radius:8px;border-bottom:0!important}
@media(max-width:760px){.bb-calc-result{align-items:flex-start;flex-direction:column}}

.bb-calc-hub{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1rem;margin:1.5rem 0 2rem}
.bb-calc-hub-card{border:1px solid #e5e7eb;border-radius:14px;padding:1.25rem;background:#fff;box-shadow:0 8px 24px rgba(16,24,40,.04)}
.bb-calc-hub-card h3{margin-top:0;margin-bottom:.6rem}
.bb-calc-hub-card p{margin:.45rem 0;color:#667085}
.bb-calc-hub-link{display:inline-block;margin-top:.35rem;font-weight:700;color:#0f6b4f;text-decoration:none}
.bb-calc-hub-link:hover{text-decoration:underline}

.bb-supplier-grid,.bb-rab-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;margin:1.25rem 0}
.bb-supplier-card,.bb-rab-card{border:1px solid #e5e7eb;border-radius:14px;padding:1.1rem;background:#fff}
.bb-supplier-card h3,.bb-rab-card h3{margin-top:0}
.bb-directory-verified{font-size:.82rem;color:#667085}
.bb-empty-state{padding:1rem 1.1rem;border:1px dashed #b8c0c8;border-radius:12px;background:#f8faf9}

/* BiayaBangun request / privacy / data-health UI */
.bb-request-form{margin:1.25rem 0;padding:1.25rem;border:1px solid #e5e7eb;border-radius:14px;background:#fff}
.bb-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-bottom:1rem}
.bb-request-form label{display:block;font-weight:600}
.bb-request-form input,.bb-request-form textarea,.bb-request-form select,.bb-request-lookup input{width:100%;box-sizing:border-box;margin-top:.35rem;padding:.7rem .75rem;border:1px solid #d0d5dd;border-radius:8px;background:#fff}
.bb-request-form textarea{resize:vertical}
.bb-request-hp{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.bb-request-context{padding:.75rem 1rem;margin-bottom:1rem;border-radius:10px;background:#ecfdf3;border:1px solid #bbf7d0}
.bb-consent{margin:1rem 0;font-weight:400!important;display:flex!important;gap:.55rem;align-items:flex-start}
.bb-consent input{width:auto!important;margin-top:.15rem!important}
.bb-request-privacy{font-size:.84rem;color:#667085;margin-top:.8rem}
.bb-request-success{padding:1rem 1.1rem;background:#ecfdf3;border:1px solid #86efac;border-radius:12px;margin:1rem 0}
.bb-request-error{padding:1rem 1.1rem;background:#fff1f2;border:1px solid #fecdd3;border-radius:12px;margin:1rem 0}
.bb-request-lookup{display:grid;grid-template-columns:1fr 1fr auto;gap:1rem;align-items:end;margin:1rem 0}
.bb-request-status-card{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:.75rem;margin:1rem 0}
.bb-request-status-card>div{padding:1rem;border:1px solid #e5e7eb;border-radius:10px;background:#fff}
.bb-request-status-card span{display:block;color:#667085;font-size:.82rem;margin-bottom:.25rem}
.bb-contact-protection{margin-top:2rem;padding:1.25rem;border:1px solid #d1fae5;border-radius:14px;background:#f6fffa}
.bb-request-link{display:inline-block;padding:.65rem .9rem;border-radius:8px;background:#1D7A58;color:#fff!important;text-decoration:none;font-weight:700}
.bb-request-link:hover{opacity:.92}
.bb-freshness{display:inline-block;padding:.25rem .55rem;border-radius:999px;font-size:.78rem;font-weight:700}
.bb-freshness-fresh{background:#dcfce7;color:#166534}
.bb-freshness-stale{background:#fef3c7;color:#92400e}
.bb-freshness-missing{background:#fee2e2;color:#991b1b}
@media(max-width:760px){.bb-request-lookup{grid-template-columns:1fr}.bb-request-form{padding:1rem}}

/* BiayaBangun RAB estimator v1.2 */
.bb-rab-estimator{margin:1.5rem 0;padding:1rem;border:1px solid #e5e7eb;border-radius:16px;background:#fff}
.bb-rab-estimator-head{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;margin-bottom:1rem}
.bb-rab-estimator-head h3{margin:.4rem 0 .3rem;font-size:1.45rem}
.bb-rab-estimator-head p{margin:0;color:#667085;max-width:780px}
.bb-test-badge{display:inline-block;background:#fff3cd;color:#7a4b00;border:1px solid #f4c36a;border-radius:999px;padding:.25rem .55rem;font-size:.75rem;font-weight:800;letter-spacing:.03em}
.bb-price-mode{min-width:215px;padding:.75rem .9rem;border-radius:12px;background:#f8faf9;border:1px solid #d9e5df;font-size:.85rem}
.bb-price-mode strong,.bb-price-mode small{display:block}.bb-price-mode small{color:#667085;margin-top:.2rem}
.bb-estimator-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.bb-estimator-panel{padding:1rem;border:1px solid #e5e7eb;border-radius:12px;background:#fbfcfb}
.bb-estimator-panel h4{margin:0 0 .8rem}
.bb-estimator-panel label,.bb-estimator-advanced label,.bb-rab-estimator .bb-calc-grid label{font-weight:650;display:block}
.bb-estimator-panel input,.bb-estimator-panel select,.bb-estimator-advanced input,.bb-rab-estimator .bb-calc-grid input,.bb-rab-estimator .bb-calc-grid select{width:100%;box-sizing:border-box;margin-top:.35rem;padding:.65rem .7rem;border:1px solid #d0d5dd;border-radius:8px;background:#fff}
.bb-field-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin:.75rem 0}
.bb-selected-prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;margin-top:.85rem}
.bb-selected-prices>div{padding:.65rem;border-radius:8px;background:#fff;border:1px solid #e5e7eb}.bb-selected-prices span{display:block;font-size:.75rem;color:#667085}.bb-selected-prices strong{font-size:.9rem}
.bb-estimator-advanced{margin:1rem 0;border:1px dashed #b8c7bf;border-radius:12px;padding:.75rem 1rem;background:#fcfefd}
.bb-estimator-advanced summary{cursor:pointer;font-weight:750}.bb-mini-note{color:#667085;font-size:.86rem;margin:.65rem 0 0}
.bb-house-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:1rem 0}
.bb-house-results>div{padding:.85rem;border:1px solid #e5e7eb;border-radius:12px;background:#f8faf9}.bb-house-results span{display:block;color:#667085;font-size:.8rem}.bb-house-results strong{display:block;margin-top:.2rem;font-size:1.05rem}
.bb-house-results .bb-result-primary{background:#ecfdf3;border-color:#b7e4c7}.bb-house-results .bb-result-primary strong{font-size:1.2rem;color:#14532d}
.bb-rab-detail-title{margin:1.3rem 0 .4rem}
.bb-estimator-table tfoot th{background:#f8faf9}.bb-estimator-table .bb-estimator-grand th{background:#ecfdf3;font-size:1.05rem}
.bb-package-row td{background:#fffbeb}
.bb-status-pill{display:inline-block;border-radius:999px;background:#eef2f6;color:#344054;padding:.2rem .45rem;font-size:.72rem;font-weight:700;white-space:nowrap}.bb-status-proto{background:#fff3cd;color:#7a4b00}
.bb-estimator-disclaimer{margin-top:1rem;padding:1rem;border:1px solid #f4c36a;background:#fff8e7;border-radius:12px;line-height:1.55}
@media(max-width:900px){.bb-estimator-grid{grid-template-columns:1fr}.bb-house-results{grid-template-columns:repeat(2,minmax(0,1fr))}.bb-rab-estimator-head{display:block}.bb-price-mode{margin-top:.75rem}.bb-selected-prices{grid-template-columns:1fr}}
@media(max-width:560px){.bb-field-pair,.bb-house-results{grid-template-columns:1fr}.bb-rab-estimator{padding:.75rem}}

/* v1.3 RAB Rumah: panel input lebih ringkas dan hasil kusen/atap */
.bb-estimator-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.bb-house-results-secondary{margin-top:-.25rem}
.bb-house-results-secondary>div{background:#fcfcfd}
@media(max-width:1100px){.bb-estimator-grid-three{grid-template-columns:1fr 1fr}.bb-estimator-grid-three .bb-estimator-panel:last-child{grid-column:1/-1}}
@media(max-width:760px){.bb-estimator-grid-three{grid-template-columns:1fr}.bb-estimator-grid-three .bb-estimator-panel:last-child{grid-column:auto}}
.bb-estimator-grid-three .bb-selected-prices{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:560px){.bb-estimator-grid-three .bb-selected-prices{grid-template-columns:1fr}}
/* Kalkulator Pro hub */
.bb-calc-hub-pro .bb-calc-hub-card{display:flex;flex-direction:column;min-height:230px}
.bb-calc-hub-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border:1px solid #d7e6df;border-radius:12px;background:#f4faf7;color:#147a59;font-size:26px;font-weight:700;margin-bottom:14px}
.bb-calc-hub-pro .bb-calc-hub-link{margin-top:auto;padding:.72rem 1rem;border-radius:10px;background:#147a59;color:#fff;text-align:center}
.bb-calc-hub-pro .bb-calc-hub-link:hover{background:#0f6349;color:#fff;text-decoration:none}
.bb-rab-pro-actions{margin-top:1rem}
.bb-rab-pro-button{display:inline-block;padding:.8rem 1.15rem;border-radius:10px;background:#147a59;color:#fff;text-decoration:none;font-weight:700}
.bb-rab-pro-button:hover{background:#0f6349;color:#fff}
.bb-rab-pro-note{margin-top:1rem;color:#667085}

/* Kalkulator hub + Pro access */
.bb-calc-hub-pro{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.bb-calc-hub-pro .bb-calc-hub-card{position:relative;padding:22px;border:1px solid #e2e8e5;border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(16,24,40,.06);transition:transform .18s ease,box-shadow .18s ease}
.bb-calc-hub-pro .bb-calc-hub-card:hover{transform:translateY(-2px);box-shadow:0 12px 32px rgba(16,24,40,.09)}
.bb-calc-hub-icon{width:48px;height:48px;display:flex;align-items:center;justify-content:center;border-radius:14px;background:#eaf7f1;color:#167b57;font-size:25px;font-weight:800;margin-bottom:14px}
.bb-calc-hub-pro .bb-calc-hub-card h3{font-size:1.25rem;margin:0 0 6px;color:#17211b}
.bb-calc-hub-pro .bb-calc-hub-card p{min-height:44px;margin:0 0 14px;color:#667085;line-height:1.55}
.bb-calc-hub-link,.bb-pro-access-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:10px;background:#167b57;color:#fff!important;text-decoration:none!important;font-weight:750;padding:11px 16px;transition:background .18s ease,transform .18s ease}
.bb-calc-hub-link:hover,.bb-pro-access-button:hover{background:#126746;transform:translateY(-1px)}
.bb-pro-access-card{display:flex;align-items:flex-start;gap:16px;margin:24px 0;padding:20px;border:1px solid #d8e6df;border-radius:18px;background:linear-gradient(135deg,#f8fffb,#fff);box-shadow:0 8px 28px rgba(16,24,40,.06)}
.bb-pro-access-icon{flex:0 0 44px;width:44px;height:44px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:#167b57;color:#fff;font-size:20px;font-weight:800}
.bb-pro-access-content{min-width:0}.bb-pro-access-content strong{display:block;font-size:1.12rem;color:#17211b;margin-bottom:5px}.bb-pro-access-content p{margin:0 0 13px;color:#667085;line-height:1.55}
@media(max-width:760px){.bb-calc-hub-pro{grid-template-columns:1fr}.bb-pro-access-card{flex-direction:column}.bb-pro-access-icon{flex-basis:44px}}

/* PUBLIC CALCULATOR GATE — input only, Pro CTA stays on the same page */
.bb-public-calculator{max-width:1120px;margin:2rem auto;padding:0 0.25rem}
.bb-public-calculator>h2{font-size:clamp(2rem,4vw,3rem);line-height:1.08;margin:0 0 1.5rem;color:#17211b}
.bb-public-rab-calc{padding:1.4rem;border:1px solid #dfe7e3;border-radius:20px;background:#fff;box-shadow:0 10px 34px rgba(16,24,40,.055)}
.bb-public-rab-calc h3{margin:0 0 .55rem;font-size:1.35rem;color:#17211b}
.bb-public-rab-calc .bb-calc-grid{gap:1.1rem}
.bb-public-rab-calc label{color:#17211b;font-weight:700}
.bb-public-rab-calc input,.bb-public-rab-calc select{width:100%;box-sizing:border-box;margin-top:.45rem;padding:.82rem .9rem;border:1px solid #cfd9d4;border-radius:12px;background:#fff;color:#17211b;font-size:1rem;min-height:48px}
.bb-public-rab-calc input:focus,.bb-public-rab-calc select:focus{outline:2px solid rgba(22,123,87,.18);border-color:#167b57}
.bb-public-rab-calc .bb-rab-estimator-head{margin-bottom:1.1rem}
.bb-public-rab-calc .bb-price-mode{min-width:200px}
.bb-public-calculator>.bb-calc-note{margin-top:1rem;color:#667085;background:#f8faf9;border:1px solid #dfe7e3;border-radius:12px}
.bb-pro-access-card-inline{margin:18px auto 0;max-width:1120px}
.bb-pro-access-card-inline .bb-pro-access-content p{margin-bottom:14px}
.bb-pro-access-button{min-height:46px}
@media(max-width:760px){
  .bb-public-calculator{margin:1.25rem auto}
  .bb-public-rab-calc{padding:1rem;border-radius:16px}
  .bb-public-rab-calc .bb-rab-estimator-head{display:block}
  .bb-public-rab-calc .bb-price-mode{margin-top:1rem;min-width:0}
  .bb-pro-access-card-inline{margin-top:14px}
}
