/* VinFast Finance V2.2 — scoped responsive component */
.vfcalc-section{--vf-ink:#173d43;--vf-muted:#ff0000;--vf-teal:#087d7b;--vf-deep:#075c5d;--vf-line:#d8e9e8;--vf-soft:#f2f9f8;--vf-red:#c84456;color:var(--vf-ink);padding:clamp(20px,4vw,20px) 0;background:#fff}
.vfcalc-section *{box-sizing:border-box}
.vfcalc-section .vfe_container{width:min(1200px,calc(100% - 32px));margin-inline:auto}
.vfcalc{font-family:inherit;line-height:1.55}
.vfcalc-heading{text-align:center;max-width:760px;margin:0 auto 28px}
.vfcalc-eyebrow{display:inline-block;color:var(--vf-teal);font-size:.74rem;letter-spacing:.16em;font-weight:800;margin-bottom:8px}
.vfcalc-heading h2{font-size:clamp(1.5rem,2.8vw,2.35rem);line-height:1.2;letter-spacing:-.025em;margin:0 0 10px;color:var(--vf-ink);font-weight:800}
.vfcalc-heading p{margin:0;color:var(--vf-muted);font-size:.98rem}
.vfcalc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}
.vfcalc-panel{min-width:0;background:linear-gradient(180deg,#fff 0%,#fcfefe 100%);border:1px solid var(--vf-line);border-radius:22px;padding:clamp(18px,2.4vw,30px);box-shadow:0 12px 36px rgba(15,74,77,.055);margin-bottom:22px}
.vfcalc-grid .vfcalc-panel{margin-bottom:0}
.vfcalc-panel h3{display:flex;align-items:center;gap:11px;font-size:clamp(1.12rem,1.7vw,1.34rem);line-height:1.3;color:var(--vf-ink);margin:0 0 23px;font-weight:800}
.vfcalc-num{display:inline-grid;place-items:center;flex:none;width:37px;height:37px;border-radius:12px;background:#e0f3f0;color:var(--vf-deep);font-size:.8rem;letter-spacing:.03em}
.vfcalc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px;margin-bottom:20px}
.vfcalc-fields label{
    min-width:0;
    color:#37575b;
    font-weight:700;
    font-size:.84rem;
}
.vfcalc-fields select,.vfcalc-fields input[type=number]{display:block;width:100%;min-width:0;min-height:46px;border:1px solid #ccdfde;border-radius:11px;background:#fff;color:var(--vf-ink);font:inherit;font-size:.93rem;font-weight:500;padding:10px 12px;outline:none;transition:border-color .2s,box-shadow .2s}
.vfcalc-fields select{padding-right:28px}
.vfcalc-fields select:focus,.vfcalc-fields input:focus,.vfcalc-section button:focus-visible,.vfcalc-section a:focus-visible,.vfcalc-section summary:focus-visible{outline:2px solid #14a6a2;outline-offset:3px}
.vfcalc-fields select:hover,.vfcalc-fields input[type=number]:hover{border-color:#8cbfbc}
.vfcalc-helper{grid-column:1/-1;margin:-5px 0 0;color:var(--vf-muted);font-size:.82rem;line-height:1.55}
.vfcalc-range-label{grid-column:1/-1}
.vfcalc-range-label strong{color:var(--vf-teal);font-size:1rem}
.vfcalc-fields input[type=range]{width:100%;accent-color:var(--vf-teal);cursor:pointer;margin:9px 0 4px}
.vfcalc-results{border:1px solid var(--vf-line);background:var(--vf-soft);border-radius:15px;padding:5px 17px;margin:18px 0}
.vfcalc-results>div{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #e0edeb}
.vfcalc-results>div:last-child{border-bottom:0}
.vfcalc-results span{font-size:.88rem;color:#526c70;min-width:0}
.vfcalc-results strong{color:var(--vf-ink);font-size:.98rem;font-weight:800;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.vfcalc-results .vfcalc-red{color:var(--vf-red)}
.vfcalc-results .vfcalc-highlight{background:linear-gradient(110deg,#e0f6f1,#ebfaf6);border:1px solid #b9e6dc;border-radius:12px;margin:7px -9px;padding:15px 9px}
.vfcalc-results .vfcalc-highlight span{font-weight:800;color:var(--vf-deep)}
.vfcalc-results .vfcalc-highlight strong{font-size:clamp(1.08rem,1.9vw,1.45rem);color:var(--vf-deep)}
.vfcalc-caution{border-radius:12px;background:#fff5f5;border:1px solid #f5dede;color:#945365;padding:12px 14px;font-size:.8rem;line-height:1.6;margin:16px 0}
.vfcalc-primary{width:100%;display:flex;justify-content:center;align-items:center;gap:10px;min-height:48px;border:0;border-radius:12px;background:linear-gradient(105deg,#079b91,#076e73);color:#fff!important;font:inherit;font-size:.94rem;font-weight:800;padding:12px 18px;cursor:pointer;box-shadow:0 7px 17px rgba(5,116,113,.18);transition:transform .2s,box-shadow .2s,filter .2s}
.vfcalc-primary:hover{transform:translateY(-2px);box-shadow:0 11px 22px rgba(5,116,113,.25);filter:brightness(1.03)}
.vfcalc-secondary{display:block;width:100%;min-height:43px;margin-top:10px;border:1px solid #a9d5d1;border-radius:11px;background:#fff;color:var(--vf-deep);font:inherit;font-size:.88rem;font-weight:750;cursor:pointer;transition:background .2s}
.vfcalc-secondary:hover{background:#eef9f7}
.vfcalc-copy-status{display:block;min-height:1.4em;margin-top:7px;color:var(--vf-teal);font-size:.78rem;text-align:center}
.vfcalc-subheading{font-size:.88rem;font-weight:800;color:var(--vf-ink);margin:19px 0 9px}
.vfcalc-terms{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:9px;margin-bottom:15px}
.vfcalc-terms>*{min-width:0}
.vfcalc-terms>div{border:1px solid var(--vf-line);border-radius:11px;padding:10px;background:#fff;font-size:.78rem}
.vfcalc-terms strong{display:block;color:var(--vf-deep);font-variant-numeric:tabular-nums}
.vfcalc-schedule{border:1px solid var(--vf-line);border-radius:12px;margin:16px 0;overflow:hidden;background:#fff}
.vfcalc-schedule summary{list-style:none;display:flex;justify-content:space-between;gap:10px;align-items:center;padding:13px 15px;cursor:pointer;font-size:.87rem;font-weight:800;color:var(--vf-deep)}
.vfcalc-schedule summary::-webkit-details-marker{display:none}
.vfcalc-schedule[open] summary{border-bottom:1px solid var(--vf-line)}
.vfcalc-schedule[open] summary span{transform:rotate(180deg)}
.vfcalc-table-scroll{max-height:380px;overflow:auto;overscroll-behavior:contain}
.vfcalc-table-scroll table{width:100%;min-width:560px;border-collapse:collapse;font-size:.77rem;font-variant-numeric:tabular-nums}
.vfcalc-table-scroll th,.vfcalc-table-scroll td{padding:10px 12px;border-bottom:1px solid #e9f1f0;text-align:right;white-space:nowrap}
.vfcalc-table-scroll th:first-child,.vfcalc-table-scroll td:first-child{text-align:left}
.vfcalc-table-scroll th{position:sticky;top:0;background:#eaf7f5;color:var(--vf-deep);font-weight:800}
.vfcalc-table-scroll tbody tr:nth-child(even){background:#f8fbfa}
.vfcalc-faq{margin-top:22px}
.vfcalc-faq>details{border:1px solid var(--vf-line);border-radius:12px;background:#fff;margin:10px 0;overflow:hidden}
.vfcalc-faq>details summary{list-style:none;position:relative;cursor:pointer;padding:16px 46px 16px 17px;color:var(--vf-ink);font-size:.94rem;font-weight:750}
.vfcalc-faq>details summary::-webkit-details-marker{display:none}
.vfcalc-faq>details summary:after{content:'+';position:absolute;right:17px;top:50%;transform:translateY(-50%);color:var(--vf-teal);font-size:1.35rem;font-weight:500}
.vfcalc-faq>details[open] summary:after{content:'−'}
.vfcalc-faq>details[open] summary{background:#f4fbf9}
.vfcalc-faq>details p{padding:0 17px 16px;margin:0;color:#5c7175;font-size:.9rem;line-height:1.7}
.vfcalc-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:21px 24px;border:1px solid var(--vf-line);border-radius:18px;background:#f1f9f7}
.vfcalc-bottom p{margin:0;max-width:510px;color:var(--vf-muted);font-size:.85rem}
.vfcalc-actions{display:flex;flex-wrap:wrap;gap:9px;justify-content:flex-end}
.vfcalc-actions button,.vfcalc-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 16px;border:1px solid #a6d5d0;border-radius:10px;background:#fff;color:var(--vf-deep);font:inherit;font-size:.86rem;font-weight:800;text-decoration:none;cursor:pointer;white-space:nowrap;transition:background .2s,transform .2s}
.vfcalc-actions button{background:var(--vf-teal);color:#fff;border-color:var(--vf-teal)}
.vfcalc-actions button:hover,.vfcalc-actions a:hover{transform:translateY(-1px)}
.vfcalc-actions a:hover{background:#e6f7f4}
@media(max-width:960px){.vfcalc-grid{grid-template-columns:1fr}.vfcalc-bottom{flex-direction:column;align-items:stretch}.vfcalc-actions{justify-content:flex-start}}
@media(max-width:560px){.vfcalc-section .vfe_container{width:min(100% - 24px,1200px)}.vfcalc-panel{border-radius:16px;padding:17px}.vfcalc-grid{gap:15px}.vfcalc-heading{margin-bottom:21px}.vfcalc-panel h3{gap:8px;margin-bottom:18px}.vfcalc-num{width:33px;height:33px}.vfcalc-fields{grid-template-columns:1fr;gap:12px}.vfcalc-results{padding:4px 11px}.vfcalc-results>div{gap:9px}.vfcalc-results span{font-size:.8rem}.vfcalc-results strong{font-size:.87rem;white-space:normal;overflow-wrap:anywhere}.vfcalc-results .vfcalc-highlight strong{font-size:1.1rem}.vfcalc-bottom{padding:16px}.vfcalc-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.vfcalc-actions button,.vfcalc-actions a{padding:8px 6px;font-size:.77rem}.vfcalc-faq>details summary{font-size:.86rem}}
@media(prefers-reduced-motion:reduce){.vfcalc-section *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Khuyến mại và Voucher: CSS hợp nhất trong product-finance.css */
.vfcalc .vfcalc-promo-select {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  min-width: 0;
}
.vfcalc .vfcalc-promo-fieldset {
  border: 1px solid #d6e7e4;
  border-radius: 10px;
  padding: 12px;
  margin: 0;
  min-width: 0;
}
.vfcalc .vfcalc-promo-legend {
  font-weight: 700;
  padding: 0 6px;
}
.vfcalc .vfcalc-promo-rules {
  display: grid;
  gap: 12px;
  min-width: 0;
}
/* Khóa bố cục checkbox cùng hàng với tiêu đề, tránh CSS label toàn trang. */
.vfcalc .vfcalc-promo-rules > label.vfcalc-promo-rule {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
}
.vfcalc .vfcalc-promo-rules .vfcalc-promo-checkbox {
  display: block;
  position: static;
  width: 15px;
  height: 15px;
  min-width: 15px;
  margin: 2px 0 0;
  padding: 0;
  flex: none;
  accent-color: #087e78;
}
.vfcalc .vfcalc-promo-rules .vfcalc-promo-rule-title {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.vfcalc [data-o="promo-warning"] { margin: 0; }
.vfcalc .vfcalc-discount-detail {
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.vfcalc-copy-buffer {
  position: fixed;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
  inset: 0 auto auto 0;
}
@media (max-width: 600px) {
  .vfcalc .vfcalc-promo-fieldset { padding: 12px 10px; }
  .vfcalc .vfcalc-promo-rules > label.vfcalc-promo-rule { column-gap: 9px; }
}

