/* Panel simulator mengikuti desain terbaru. Foto latar tetap memakai style.css. */
.hm-unified-layout .hm-shell { width: min(1160px, calc(100% - 64px)); }
.hm-unified-layout .hm-workspace {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr);
  column-gap: 16px;
  row-gap: 8px;
  align-items: stretch;
}
.hm-unified-layout .hm-product {
  position: static;
  grid-column: 1;
  grid-row: 1 / span 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 12px 32px rgb(19 45 78 / 5%);
}
.hm-unified-layout .hm-product-top { padding: 18px 18px 0; gap: 10px; }
.hm-unified-layout .hm-model-heading { padding: 22px 18px 5px; }
.hm-unified-layout .hm-model-brand { color: var(--hm-blue); }
.hm-unified-layout .hm-model-heading h3 {
  margin: 6px 0 0;
  font-size: clamp(24px, 2.1vw, 28px);
  font-weight: 750;
  line-height: 1.18;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}
.hm-unified-layout .hm-photo {
  flex: 1;
  min-height: 280px;
  padding: 24px 16px 16px;
}
.hm-unified-layout .hm-main-photo { height: 220px; }
.hm-unified-layout .hm-photo-backdrop {
  inset: auto;
  left: 50%;
  top: 50%;
  width: min(300px, calc(100% - 44px));
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.hm-unified-layout .hm-otr-row { padding: 14px 18px 18px; gap: 8px; }
.hm-unified-layout .hm-otr { font-size: 26px; }
.hm-unified-layout .hm-small-label { font-size: 13px; }
.hm-unified-layout .hm-area-label { font-size: 11px; }
.hm-unified-layout .hm-product-bottom {
  display: block;
  margin-inline: 18px;
  padding: 12px 0;
  background: transparent;
}
.hm-unified-layout .hm-product-bottom p { font-size: 12px; }
.hm-unified-layout .hm-link-button { font-size: 13px !important; }
.hm-consultation-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  margin: 0 18px;
  padding: 14px 0 18px;
  border-top: 1px solid var(--hm-line);
}
.hm-chat-icon { color: var(--hm-navy); }
.hm-consultation-note h3 { margin: 0; color: var(--hm-navy); font-size: 13px; font-weight: 700; line-height: 1.2; }
.hm-consultation-note p { margin: 3px 0 0; color: var(--hm-muted); font-size: 12px; line-height: 1.4; }
.hm-consultation-note .hm-help-link { color: var(--hm-navy); text-decoration: underline; text-underline-offset: 3px; }
.hm-consultation-note .hm-help-link:hover { text-decoration-thickness: 2px; }
.hm-help-link[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.hm-unified-layout .hm-finance-panel { grid-column: 2; grid-row: 1; padding: 18px; min-width: 0; }
.hm-unified-layout .hm-finance-header { min-height: 30px; margin-bottom: 18px; }
.hm-panel-title { margin: 0; font: inherit; color: var(--hm-navy); font-weight: 700; }
.hm-unified-layout .hm-finance-panel .hm-panel-title { font-size: 18px; }
.hm-finance-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.hm-finance-controls { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; min-width: 0; }
.hm-finance-results { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; min-width: 0; }
.hm-unified-layout .hm-finance-card {
  min-width: 0;
  margin: 0;
  padding: 14px 12px;
  border-radius: 12px;
  background: #edf3fb;
}
.hm-unified-layout .hm-finance-card .hm-adjust { border-color: #cbd7e8; background: transparent; }
.hm-unified-layout .hm-monthly-label { display: block; margin: 0; color: var(--hm-navy); }
.hm-unified-layout .hm-monthly-line { margin-top: 5px; }
.hm-unified-layout .hm-dp-value, .hm-unified-layout .hm-monthly-value {
  font-size: 28px;
  font-weight: 750;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.hm-unified-layout .hm-range-bounds { padding-inline: 47px; gap: 8px; font-size: 11px; }
.hm-unified-layout .hm-tenor-block {
  min-width: 0;
  margin: 0;
  padding: 14px 12px;
  border-radius: 12px;
  background: #edf3fb;
}
.hm-unified-layout .hm-tenors { gap: 6px; }
.hm-unified-layout .hm-tenor-block .hm-slider-help { margin-top: 12px; }
.hm-credit-summary, .hm-tenor-rates {
  min-width: 0;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #edf3fb;
}
.hm-credit-summary { display: flex; flex-direction: column; justify-content: space-between; min-height: 128px; }
.hm-credit-summary h3 { margin: 0 0 14px; color: var(--hm-navy); font-size: 14px; font-weight: 700; }
.hm-summary-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .8fr) minmax(0, 1.12fr); gap: 8px; margin: 0; }
.hm-summary-grid > div { min-width: 0; }
.hm-summary-grid > div + div { border-left: 1px solid #cbd7e8; padding-left: 10px; }
.hm-summary-grid dt { color: var(--hm-muted); font-size: 11px; }
.hm-summary-grid dd {
  margin: 4px 0 0;
  color: var(--hm-navy);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.hm-tenor-rates { display: flex; flex-direction: column; }
.hm-tenor-rate-header { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.hm-tenor-rate-header h3 { margin: 0; font-size: 14px; font-weight: 700; color: var(--hm-navy); }
.hm-tenor-rate-header p { margin: 0; font-size: 12px; color: var(--hm-blue); }
.hm-tenor-rate-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; flex: 1; }
.hm-tenor-rate-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
  min-height: 78px;
  padding: 10px;
  border: 1px solid #cbd7e8;
  border-radius: 9px;
  background: var(--hm-paper);
  color: var(--hm-navy);
  text-align: left;
}
.hm-tenor-rate-period { font-size: 14px; font-weight: 700; }
.hm-tenor-rate-quote { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 2px; min-width: 0; font-variant-numeric: tabular-nums; }
.hm-tenor-rate-value { font-size: 13px; font-weight: 700; white-space: nowrap; }
.hm-tenor-rate-quote small { font-size: 11px; }
.hm-tenor-rate-quote .hm-tenor-rate-dp-note { flex-basis: 100%; margin-top: 3px; }
.hm-tenor-rate-quote .hm-tenor-rate-dp-note[hidden] { display: none; }
.hm-tenor-rate-button:last-child:nth-child(odd) { grid-column: 1 / -1; text-align: center; }
.hm-tenor-rate-button:last-child:nth-child(odd) .hm-tenor-rate-quote { justify-content: center; }
.hm-tenor-rate-button:hover { background: #e3ecf8; }
.hm-tenor-rate-button[aria-pressed="true"] { background: var(--hm-navy); border-color: var(--hm-navy); color: var(--hm-paper); }
.hm-unified-layout .hm-consultation-panel {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  min-width: 0;
}
.hm-unified-layout .hm-name-field, .hm-unified-layout .hm-contact-action { min-width: 0; }
.hm-unified-layout .hm-contact-action { padding-left: 20px; border-left: 1px solid var(--hm-line); }
.hm-unified-layout .hm-consultation-panel .hm-whatsapp { margin-top: 0; min-height: 48px; }
.hm-unified-layout .hm-bottom-note { margin-top: 12px; }
.hm-unified-layout .hm-main { padding-bottom: 18px; }
@media (max-width: 960px) {
  .hm-unified-layout .hm-shell { width: calc(100% - 40px); }
  .hm-unified-layout .hm-workspace { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .hm-unified-layout .hm-product, .hm-unified-layout .hm-finance-panel, .hm-unified-layout .hm-consultation-panel { grid-column: 1; grid-row: auto; }
  .hm-unified-layout .hm-photo { flex: none; }
}
@media (max-width: 680px) {
  .hm-unified-layout .hm-shell { width: calc(100% - 28px); }
  .hm-unified-layout .hm-finance-panel { padding: 18px 16px; }
  .hm-finance-content { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hm-finance-controls, .hm-finance-results { grid-template-rows: none; }
  .hm-unified-layout .hm-range-bounds { padding-inline: 0; }
  .hm-credit-summary { min-height: 0; }
  .hm-unified-layout .hm-consultation-panel { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 16px; }
  .hm-unified-layout .hm-contact-action { padding: 0; border-left: 0; }
  .hm-unified-layout .hm-photo { min-height: 235px; padding-top: 16px; }
  .hm-unified-layout .hm-main-photo { height: 200px; }
  .hm-unified-layout .hm-photo-backdrop { width: min(260px, calc(100% - 48px)); }
}
@media (max-width: 480px) {
  .hm-summary-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hm-summary-grid > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
  .hm-summary-grid > div + div { border-left: 0; border-top: 1px solid #cbd7e8; padding-left: 0; padding-top: 8px; }
  .hm-summary-grid dd { margin: 0; text-align: right; }
  .hm-unified-layout .hm-range-row { gap: 7px; }
}
@media (max-width: 360px) {
  .hm-unified-layout .hm-finance-card, .hm-unified-layout .hm-tenor-block { padding: 12px 10px; }
  .hm-tenor-rate-button { padding: 9px 8px; }
  .hm-tenor-rate-value { font-size: 12px; }
  .hm-unified-layout .hm-percent { font-size: 11px; }
  .hm-unified-layout .hm-tenor small { display: block; margin-left: 0; font-size: 10px; }
}

/* Warna tombol Ganti motor sama dengan desain acuan. */
.hm-unified-layout .hm-change { background: var(--hm-navy); border-color: var(--hm-navy); color: var(--hm-paper); }
.hm-unified-layout .hm-change:hover { background: var(--hm-navy-dark); border-color: var(--hm-navy-dark); }
