/* Keep the SME quote flow readable across desktop, tablet, and mobile. */
.sme-quote-message[hidden] { display: none !important; }
.sme-quote-message.is-error { border-color: #f1b8bc; background: #fff4f4; color: #a1262f; }
.sme-quote-message.is-success { border-color: #b8e3c2; background: #f1fbf3; color: #19692c; }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-card { max-width: 1320px; }
.sme-quote-company-summary { display:flex; align-items:center; gap:10px; margin:4px 0 28px; color:#737373; font-size:16px; font-weight:600; }
.sme-quote-company-summary button { padding:0; border:0; background:none; color:#b42ab8; font:inherit; cursor:pointer; }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-choice { display:block; margin:0 0 12px; }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-choice legend { margin-bottom:12px; font-size:20px; font-weight:750; }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-choice-cards button { justify-content:center; min-height:70px; border-radius:16px; font-size:20px; }
.sme-quote-mode-help { margin:0 0 30px; color:#686868; font-size:16px; }
.sme-quote-group-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 12px; }
.sme-quote-group-heading h3 { margin:0; font-size:21px; }
.sme-quote-group-heading span { color:#686868; font-size:16px; font-weight:600; }
.sme-quote-groups { display:grid; gap:14px; margin:0; }
.sme-quote-group-card { padding:20px 22px; border:1px solid #e7e3ed; border-radius:18px; background:#fff; }
.sme-quote-group-row { display:grid; grid-template-columns:minmax(220px,1fr) minmax(170px,220px) minmax(230px,1fr) 54px; gap:16px; align-items:center; }
.sme-quote-group-info { display:grid; gap:4px; min-width:0; }
.sme-quote-group-info>b,.sme-quote-group-name { color:#22202a; font-size:20px; font-weight:750; }
.sme-quote-group-info small { color:#737373; font-size:14px; font-weight:500; }
.sme-quote-group-name { width:100%; padding:3px 0; border:0; border-bottom:1px solid #ddd7e3; background:transparent; }
.sme-quote-group-counter { display:flex; align-items:center; justify-content:space-around; min-height:62px; padding:0 10px; border-radius:16px; background:#faf9fc; }
.sme-quote-group-counter button { width:40px; height:40px; border:0; border-radius:50%; background:transparent; color:#b329bd; font-size:27px; cursor:pointer; }
.sme-quote-group-counter button:first-child { color:#585461; }
.sme-quote-group-counter strong { min-width:30px; color:#201e27; font-size:22px; text-align:center; }
.sme-quote-budget-select { display:grid; gap:2px; min-width:0; min-height:62px; padding:7px 14px; border-radius:16px; background:#faf9fc; }
.sme-quote-budget-select span { color:#707070; font-size:14px; font-weight:600; }
.sme-quote-budget-select select { width:100%; min-height:30px; padding:0 24px 0 0; border:0; background:transparent; color:#25222d; font:inherit; font-size:18px; font-weight:750; }
.sme-quote-remove-group { display:grid; place-items:center; width:48px; height:48px; border:0; border-radius:16px; background:#f5f3f7; color:#292630; cursor:pointer; }
.sme-quote-remove-group .sme-quote-icon { width:22px; height:22px; }
.sme-quote-remove-spacer { width:48px; }
.sme-quote-family-toggle { display:flex; align-items:center; gap:12px; margin:18px 0 0; padding:12px 18px 0; border-top:1px dashed #e5e1eb; color:#4f4b58; font-size:16px; font-weight:650; cursor:pointer; }
.sme-quote-family-toggle input { width:20px; height:20px; accent-color:#dc4de4; }
.sme-quote-group-row.is-family { margin-top:12px; padding:14px 0 0 40px; border-top:1px dashed #e5e1eb; }
.sme-quote-add-group { display:flex; align-items:center; gap:8px; margin:15px 0 0; padding:0; border:0; background:none; color:#af2ab9; font:inherit; font-weight:750; cursor:pointer; }
.sme-quote-add-group span { font-size:23px; }
.sme-quote-group-api-note { margin:12px 0 0; color:#777182; font-size:12px; }
.sme-quote-fina-tip { display:grid; gap:6px; margin:20px 0 0; padding:18px 22px; border:1px solid #d1e1ff; border-radius:14px; background:#eff5ff; color:#525c6d; }
.sme-quote-fina-tip strong { color:#3475e8; font-size:16px; }
.sme-quote-fina-tip span { line-height:1.55; }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-company-options { margin-top:26px; }
@media (max-width: 900px) {
  .sme-quote-group-row { grid-template-columns:minmax(0,1fr) minmax(150px,220px) 48px; gap:12px; }
  .sme-quote-group-info { grid-column:1/-1; }
  .sme-quote-budget-select { grid-column:1/3; grid-row:2; }
  .sme-quote-group-counter { grid-column:1/2; grid-row:3; }
  .sme-quote-group-row.is-family .sme-quote-group-info { grid-column:1/-1; }
  .sme-quote-group-row.is-family .sme-quote-budget-select { grid-column:1/3; grid-row:2; }
  .sme-quote-group-row.is-family .sme-quote-group-counter { grid-column:1/2; grid-row:3; }
  .sme-quote-remove-group { grid-column:3; grid-row:2/4; }
}
@media (max-width: 600px) {
  .sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-choice-cards button { justify-content:flex-start; min-height:64px; font-size:15px; }
  .sme-quote-company-summary { flex-wrap:wrap; margin-bottom:20px; font-size:13px; }
  .sme-quote-group-heading h3 { font-size:18px; }
  .sme-quote-group-heading span { font-size:13px; }
  .sme-quote-group-card { padding:15px; border-radius:14px; }
  .sme-quote-group-row { grid-template-columns:minmax(0,1fr) 44px; gap:10px; }
  .sme-quote-group-info { grid-column:1/-1; }
  .sme-quote-group-counter { grid-column:1/2; grid-row:2; min-height:54px; }
  .sme-quote-budget-select { grid-column:1/2; grid-row:3; min-height:56px; }
  .sme-quote-remove-group { grid-column:2; grid-row:2/4; width:42px; height:42px; }
  .sme-quote-remove-spacer { display:none; }
  .sme-quote-family-toggle { align-items:flex-start; margin-top:14px; padding:12px 0 0; font-size:14px; }
  .sme-quote-group-row.is-family { padding-left:0; }
}
@media (min-width: 1100px) {
  .sme-quote-hero h1 { font-size: clamp(38px, 4vw, 56px); }
  .sme-quote-hero > p:last-child { font-size: clamp(20px, 2.1vw, 30px); }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-card-heading h2,
  .sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-card-heading h2 { font-size: clamp(28px, 2.6vw, 36px); }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-card-heading p,
  .sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-card-heading p { font-size: clamp(17px, 1.7vw, 23px); }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-field { font-size: clamp(17px, 1.6vw, 22px); }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-field input { font-size: clamp(17px, 1.6vw, 22px); }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-choice-cards button { font-size: clamp(17px, 1.6vw, 22px); }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-size-chips button { font-size: clamp(17px, 1.5vw, 21px); }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-consent-card { font-size: clamp(17px, 1.6vw, 22px); }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-next { font-size: clamp(20px, 1.8vw, 25px); }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-trust { font-size: clamp(15px, 1.35vw, 19px); }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-step small,
  .sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-step small { font-size: clamp(14px, 1.35vw, 19px); }
}

.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-actions { display:flex; flex-direction:column-reverse; align-items:stretch; gap:28px; margin-top:36px; }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-actions .sme-quote-back { align-self:flex-start; color:#b328b8; font-size:clamp(17px,1.8vw,24px); }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-actions .sme-quote-next { width:100%; min-height:110px; border:1px solid rgba(255,255,255,.8); border-radius:30px; background:linear-gradient(100deg,#3677ed 0%,#6850df 55%,#ba20b5 100%); box-shadow:0 18px 35px rgba(195,36,183,.18); color:#fff; font-size:clamp(22px,2.2vw,32px); font-weight:750; }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-actions .sme-quote-next:hover { filter:brightness(1.04); }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-fina-tip { margin:28px 0 0; padding:22px 28px; border-color:#f2b8f2; border-radius:20px; background:#fff1ff; color:#56515b; }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-fina-tip[hidden] { display:none!important; }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-fina-tip strong { color:#75106f; font-size:clamp(18px,1.8vw,24px); }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-fina-tip span { font-size:clamp(16px,1.65vw,22px); }
.sme-quote-empty-back { display:inline-flex; align-items:center; justify-content:center; min-height:52px; margin-top:10px; padding:0 22px; border-radius:14px; background:linear-gradient(100deg,#3677ed,#ba20b5); color:#fff; font-weight:700; text-decoration:none; }
.sme-quote-empty-back:hover { color:#fff; filter:brightness(1.05); }

@media (min-width: 701px) and (max-width: 1099px) {
  .sme-quote-hero h1 { font-size: clamp(34px, 4.8vw, 46px); }
  .sme-quote-hero > p:last-child { font-size: clamp(18px, 2.6vw, 26px); }
  .sme-quote-card-heading h2 { font-size: clamp(26px, 3vw, 32px); }
  .sme-quote-card-heading p { font-size: clamp(16px, 1.8vw, 19px); }
  .sme-quote-field { font-size: clamp(16px, 1.65vw, 18px); }
  .sme-quote-field input,
  .sme-quote-field select { font-size: clamp(16px, 1.65vw, 18px); }
  .sme-quote-choice-cards button,
  .sme-quote-size-chips button { font-size: clamp(16px, 1.7vw, 19px); }
  .sme-quote-consent-card { font-size: clamp(15px, 1.6vw, 18px); }
  .sme-quote-next { font-size: clamp(17px, 1.8vw, 20px); }
  .sme-quote-step small { font-size: clamp(12px, 1.4vw, 15px); }
}

@media (max-width: 700px) {
  .sme-quote-stepper { width: 100%; justify-content: space-between; gap: 6px; }
  .sme-quote-step:not(.is-current) small { display: none; }
  .sme-quote-hero h1 { font-size: clamp(28px, 8vw, 34px); }
  .sme-quote-hero > p:last-child { font-size: clamp(16px, 4.2vw, 18px); }
  .sme-quote-card-heading h2 { font-size: clamp(22px, 6vw, 25px); }
  .sme-quote-card-heading p,
  .sme-quote-field,
  .sme-quote-choice-cards button,
  .sme-quote-size-chips button { font-size: 16px; }
  .sme-quote-field input,
  .sme-quote-field select { font-size: 16px; }
  .sme-quote-consent-card { font-size: 15px; }
  .sme-quote-next { font-size: 17px; }
  .sme-quote-trust { font-size: 13px; }
}

/* Shared type scale for the SME quote flow: cap desktop sizes and keep mobile readable. */
.sme-quote-shell[data-sme-step] .sme-quote-hero h1 { font-size:44px; }
.sme-quote-shell[data-sme-step] .sme-quote-hero > p:last-child { font-size:18px; }
.sme-quote-shell[data-sme-step] .sme-quote-card-heading h2 { font-size:36px; }
.sme-quote-shell[data-sme-step] .sme-quote-card-heading p { font-size:18px; }
.sme-quote-shell[data-sme-step] .sme-quote-step small { font-size:16px; }
.sme-quote-shell[data-sme-step] .sme-quote-field,
.sme-quote-shell[data-sme-step] .sme-quote-field input,
.sme-quote-shell[data-sme-step] .sme-quote-field select { font-size:18px; }
.sme-quote-shell[data-sme-step] .sme-quote-choice legend,
.sme-quote-shell[data-sme-step] .sme-quote-group-heading h3,
.sme-quote-shell[data-sme-step] .sme-quote-group-info > b,
.sme-quote-shell[data-sme-step] .sme-quote-group-name { font-size:22px; }
.sme-quote-shell[data-sme-step] .sme-quote-choice-cards button,
.sme-quote-shell[data-sme-step] .sme-quote-next { font-size:18px; }
.sme-quote-shell[data-sme-step] .sme-quote-company-summary,
.sme-quote-shell[data-sme-step] .sme-quote-mode-help,
.sme-quote-shell[data-sme-step] .sme-quote-group-heading span,
.sme-quote-shell[data-sme-step] .sme-quote-group-info small,
.sme-quote-shell[data-sme-step] .sme-quote-family-toggle,
.sme-quote-shell[data-sme-step] .sme-quote-fina-tip span { font-size:16px; }
.sme-quote-shell[data-sme-step] .sme-quote-group-counter strong { font-size:22px; }
.sme-quote-shell[data-sme-step] .sme-quote-budget-select span { font-size:16px; }
.sme-quote-shell[data-sme-step] .sme-quote-budget-select select { font-size:18px; }
.sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-next,
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-actions .sme-quote-next { min-height:72px; border-radius:22px; font-size:18px; }
.sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-fina-tip strong { font-size:22px; }

@media (max-width: 700px) {
  .sme-quote-shell[data-sme-step] .sme-quote-hero h1 { font-size:32px; }
  .sme-quote-shell[data-sme-step] .sme-quote-hero > p:last-child { font-size:16px; }
  .sme-quote-shell[data-sme-step] .sme-quote-card-heading h2 { font-size:26px; }
  .sme-quote-shell[data-sme-step] .sme-quote-step small { font-size:12px; }
  .sme-quote-shell[data-sme-step] .sme-quote-field,
  .sme-quote-shell[data-sme-step] .sme-quote-field input,
  .sme-quote-shell[data-sme-step] .sme-quote-field select,
  .sme-quote-shell[data-sme-step] .sme-quote-choice-cards button,
  .sme-quote-shell[data-sme-step] .sme-quote-next,
  .sme-quote-shell[data-sme-step] .sme-quote-company-summary,
  .sme-quote-shell[data-sme-step] .sme-quote-mode-help,
  .sme-quote-shell[data-sme-step] .sme-quote-group-heading span,
  .sme-quote-shell[data-sme-step] .sme-quote-group-info small,
  .sme-quote-shell[data-sme-step] .sme-quote-family-toggle,
  .sme-quote-shell[data-sme-step] .sme-quote-fina-tip span,
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-consent-card,
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-insurance-help { font-size:16px; }
  .sme-quote-shell[data-sme-step] .sme-quote-choice legend,
  .sme-quote-shell[data-sme-step] .sme-quote-group-heading h3,
  .sme-quote-shell[data-sme-step] .sme-quote-group-info > b,
  .sme-quote-shell[data-sme-step] .sme-quote-group-name { font-size:20px; }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-next,
  .sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-actions .sme-quote-next { min-height:64px; border-radius:18px; font-size:18px; }
  .sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-fina-tip strong { font-size:18px; }
}

@media (min-width: 701px) {
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-field input,
  .sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-field input,
  .sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-field select { box-sizing:border-box; min-height:64px; padding:14px 18px; border-radius:16px; }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-choice-cards button,
  .sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-choice-cards button,
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-size-chips button { box-sizing:border-box; min-height:64px; padding:12px 18px; }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-consent-card { box-sizing:border-box; min-height:64px; margin:20px 0; padding:14px 18px; }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-consent-card input { flex:0 0 20px; width:20px; height:20px; margin:0; }
  .sme-quote-shell[data-sme-step="buoc-1"] .sme-quote-next,
  .sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-actions .sme-quote-next { box-sizing:border-box; min-height:64px; border-radius:16px; }
  .sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-group-counter,
  .sme-quote-shell[data-sme-step="buoc-2"] .sme-quote-budget-select { box-sizing:border-box; min-height:64px; }
}

@media (max-width: 700px) {
  .sme-quote-shell[data-sme-step="buoc-4"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .sme-quote-shell[data-sme-step="buoc-4"] .sme-quote-review-grid {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
  }
  .sme-quote-shell[data-sme-step="buoc-4"] .sme-quote-review,
  .sme-quote-shell[data-sme-step="buoc-4"] .sme-quote-estimate,
  .sme-quote-shell[data-sme-step="buoc-4"] .sme-quote-review-table-wrap {
    min-width: 0;
    max-width: 100%;
  }
  .sme-quote-review-table-wrap { overflow-x: auto; }
  .sme-quote-review-table,
  .sme-quote-review-table tbody { display: block; width: 100%; min-width: 0; }
  .sme-quote-review-table thead { display: none; }
  .sme-quote-review-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 12px;
    padding: 12px 0;
    border-bottom: 1px solid #ece9f0;
  }
  .sme-quote-review-table tbody td {
    min-width: 0;
    padding: 4px 0;
    border: 0;
    overflow-wrap: anywhere;
    font-size: 13px;
  }
  .sme-quote-review-table tbody td:nth-child(1),
  .sme-quote-review-table tbody td:nth-child(3) { grid-column: 1 / -1; }
  .sme-quote-review-table tbody td::before {
    display: block;
    margin-bottom: 3px;
    color: #777182;
    font-size: 11px;
    font-weight: 700;
  }
  .sme-quote-review-table tbody td:nth-child(1)::before { content: "Nhóm"; }
  .sme-quote-review-table tbody td:nth-child(2)::before { content: "Số người"; }
  .sme-quote-review-table tbody td:nth-child(3)::before { content: "Gói"; }
  .sme-quote-review-table tbody td:nth-child(4)::before { content: "Phí / người / năm"; }
  .sme-quote-review-table tbody td:nth-child(5)::before { content: "Tổng / năm"; }
  .sme-quote-estimate > strong,
  .sme-quote-estimate > strong b,
  .sme-quote-estimate > small { min-width: 0; overflow-wrap: anywhere; }
}

.sme-quote-success {
  border-color: #b8e3c2;
  background: #f1fbf3;
  text-align: center;
}
.sme-quote-success h3 { color: #19692c; }
.sme-quote-success p { color: #3f6547; }
.sme-quote-success .sme-quote-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 360px;
  margin: 22px auto 0;
  text-decoration: none;
}
