.hs-tests{container:hs-tests / inline-size}
.hs-tests .tcg-sim,.hs-tests .tcg-demo{
  --tcg-navy: #102447;
  --tcg-blue: #2a6bd6;
  --tcg-blue-dark: #1f54ac;
  --tcg-bg: #f6f8fb;
  --tcg-panel: #eaf2fc;
  --tcg-border: #dde6f2;
  --tcg-mut: #4b5366;
  --tcg-red: #d9442b;
  --tcg-red-dark: #b3331f;
  --tcg-red-bg: #fff4f2;
  color: var(--tcg-navy);
  font: 16px/1.55 "Open Sans", "Segoe UI", Helvetica, Arial, sans-serif;
}

.hs-tests .tcg-sim *,.hs-tests .tcg-demo *{ box-sizing: border-box; }
.hs-tests .tcg-sim{ min-width: 0; }
.hs-tests .tcg-sim h3{ margin: 0 0 12px; font-size: 23px; line-height: 1.3; }
.hs-tests .tcg-sim h4{ margin: 0; font-size: 17px; }
.hs-tests .tcg-sim h5{ margin: 0 0 12px; font-size: 17px; }
.hs-tests .tcg-sim p{ margin: 8px 0 16px; }
.hs-tests .tcg-sim small{ display: block; color: var(--tcg-mut); font-size: 13px; }
.hs-tests .tcg-sim .tcg-task{ padding: 22px; margin-bottom: 24px; background: var(--tcg-panel); border: 1px solid var(--tcg-border); border-radius: 10px; }
.hs-tests .tcg-sim .tcg-eyebrow{ margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--tcg-blue-dark); }
.hs-tests .tcg-sim .tcg-field{ display: grid; gap: 6px; margin: 0 0 17px; min-width: 0; }
.hs-tests .tcg-sim label{ font-size: 15px; font-weight: 600; }
.hs-tests .tcg-sim input,.hs-tests .tcg-sim select{ width: 100%; min-width: 0; max-width: 100%; min-height: 48px; border: 1px solid #a8b8ce; border-radius: 8px; background: #fff; color: var(--tcg-navy); font: inherit; padding: 9px 11px; }
.hs-tests .tcg-sim input[type="checkbox"],.hs-tests .tcg-sim input[type="radio"]{ width: 19px; min-height: 19px; height: 19px; margin: 3px 0; flex: 0 0 19px; accent-color: var(--tcg-blue); }
.hs-tests .tcg-sim button,.hs-tests .tcg-demo button{ min-height: 48px; padding: 10px 17px; border: 1px solid var(--tcg-border); border-radius: 8px; background: #fff; color: var(--tcg-navy); font: inherit; font-weight: 600; cursor: pointer; }
.hs-tests .tcg-sim button:hover:not(:disabled),.hs-tests .tcg-demo button:hover{ border-color: var(--tcg-blue); background: var(--tcg-panel); }
.hs-tests .tcg-sim .tcg-primary{ background: var(--tcg-blue); border-color: var(--tcg-blue); color: #fff; }
.hs-tests .tcg-sim .tcg-primary:hover:not(:disabled){ background: var(--tcg-blue-dark); color: #fff; }
.hs-tests .tcg-sim button:disabled,.hs-tests .tcg-sim select:disabled{ background: #edf0f4; color: #687489; border-color: var(--tcg-border); cursor: default; }
.hs-tests .tcg-sim :focus-visible,.hs-tests .tcg-demo button:focus-visible{ outline: 3px solid var(--tcg-blue); outline-offset: 3px; }
.hs-tests .tcg-sim form[data-form="start"]{ max-width: 440px; padding: 22px; border: 1px solid var(--tcg-border); border-radius: 10px; background: #fff; }
.hs-tests .tcg-sim .tcg-state-hint{ color: var(--tcg-mut); font-size: 14px; }
.hs-tests .tcg-sim .tcg-error{ color: var(--tcg-red-dark); }
.hs-tests .tcg-sim .tcg-policy-top{ display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 8px 16px; margin-bottom: 8px; }
.hs-tests .tcg-sim .tcg-policy-top p{ grid-column: 1 / -1; }
.hs-tests .tcg-sim [data-total]{ font-size: 30px; }
.hs-tests .tcg-sim .tcg-quoted-state{ padding: 8px 12px; border: 1px solid var(--tcg-border); border-radius: 8px; background: var(--tcg-panel); }
.hs-tests .tcg-sim .tcg-back{ margin-bottom: 20px; text-decoration: underline; }
.hs-tests .tcg-sim .tcg-policy-layout{ display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 20px; align-items: start; }
.hs-tests .tcg-sim .tcg-products{ min-width: 0; }
.hs-tests .tcg-sim .tcg-product{ border: 1px solid var(--tcg-border); border-radius: 10px; margin-bottom: 14px; background: #fff; overflow: visible; }
.hs-tests .tcg-sim .tcg-product h4 button{ display: flex; align-items: center; justify-content: space-between; gap: 14px; text-align: left; width: 100%; padding: 17px; border: 0; border-radius: 0; }
.hs-tests .tcg-sim .tcg-product h4 button[aria-expanded="true"]{ background: var(--tcg-panel); }
.hs-tests .tcg-sim .tcg-product h4 button span{ font-size: 24px; line-height: 1; }
.hs-tests .tcg-sim .tcg-product-body{ padding: 19px; }
.hs-tests .tcg-sim .tcg-product-premium{ color: var(--tcg-mut); }
.hs-tests .tcg-sim fieldset{ min-width: 0; border: 1px solid var(--tcg-border); border-radius: 10px; padding: 17px; margin: 0 0 18px; background: #fff; }
.hs-tests .tcg-sim legend{ padding: 0 6px; font-weight: 600; }
.hs-tests .tcg-sim .tcg-applicants{ min-width: 0; }
.hs-tests .tcg-sim .tcg-applicants > button{ width: 100%; }
.hs-tests .tcg-sim .tcg-applicants > p{ font-size: 13px; color: var(--tcg-mut); }
.hs-tests .tcg-sim .tcg-grid-scroll{ width: 100%; max-width: 100%; overflow-x: auto; margin: 16px 0; }
.hs-tests .tcg-sim .tcg-price-grid{ width: 100%; min-width: 560px; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.hs-tests .tcg-sim caption{ text-align: left; margin-bottom: 12px; color: var(--tcg-mut); }
.hs-tests .tcg-sim th{ font-weight: 600; }
.hs-tests .tcg-sim th:first-child{ width: 80px; }
.hs-tests .tcg-sim th,.hs-tests .tcg-sim td{ text-align: left; vertical-align: top; padding: 9px 5px; border-bottom: 1px solid var(--tcg-border); }
.hs-tests .tcg-sim .tcg-price-grid button{ width: 100%; padding: 11px 7px; font-size: 15px; }
.hs-tests .tcg-sim .tcg-price-grid button[aria-pressed="true"]{ background: var(--tcg-panel); border: 2px solid var(--tcg-blue); }
.hs-tests .tcg-sim .tcg-price-grid small{ font-size: 11px; font-weight: 400; }
.hs-tests .tcg-sim .tcg-tag{ display: inline-block; background: var(--tcg-panel); border: 1px solid var(--tcg-border); border-radius: 5px; color: var(--tcg-navy); padding: 2px 5px; font-size: 12px; font-weight: 400; }
.hs-tests .tcg-sim .tcg-levels{ display: flex; flex-wrap: wrap; gap: 16px; }
.hs-tests .tcg-sim .tcg-levels label{ flex: 1 1 105px; }
.hs-tests .tcg-sim .tcg-check{ display: flex; align-items: start; gap: 10px; margin: 12px 0; }
.hs-tests .tcg-sim .tcg-rider{ border-bottom: 1px solid var(--tcg-border); padding-bottom: 8px; margin-bottom: 14px; }
.hs-tests .tcg-sim .tcg-note{ background: var(--tcg-panel); border: 1px solid var(--tcg-border); border-radius: 8px; padding: 12px; color: var(--tcg-mut); font-size: 14px; }
.hs-tests .tcg-sim .tcg-stop{ border-left: 4px solid var(--tcg-blue); padding: 14px 18px; background: var(--tcg-panel); border-radius: 8px; }
.hs-tests .tcg-sim form[data-form="sim-grade"]{ margin-top: 24px; }
.hs-tests .tcg-sim .tcg-form-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.hs-tests .tcg-sim .tcg-result{ border: 1px solid var(--tcg-border); border-left: 5px solid var(--tcg-blue); border-radius: 10px; background: #fff; padding: 22px; margin-top: 24px; }
.hs-tests .tcg-sim .tcg-fail{ border-left-color: var(--tcg-red); background: var(--tcg-red-bg); }
.hs-tests .tcg-sim .tcg-result ul{ list-style: none; padding: 0; }
.hs-tests .tcg-sim .tcg-result li{ border-bottom: 1px solid var(--tcg-border); padding: 11px 0; }
.hs-tests .tcg-sim .tcg-result li > span:first-child{ display: inline-block; font-weight: 700; width: 20px; }
.hs-tests .tcg-sim .tcg-check-fail > span:first-child{ color: var(--tcg-red-dark); }
.hs-tests .tcg-sim .tcg-result li p{ margin: 7px 0 0 24px; }
.hs-tests .tcg-sim a{ color: var(--tcg-blue-dark); text-decoration: underline; }
.hs-tests .tcg-sim .tcg-explainer{ padding: 18px 0; }
.hs-tests .tcg-sim summary{ font-weight: 600; cursor: pointer; }
.hs-tests .tcg-sim .tcg-sr{ position: absolute; width: 1px; height: 1px; overflow: visible; clip-path: inset(50%); white-space: nowrap; }

.hs-tests .tcg-demo{ margin: 0; padding: 32px; background: var(--tcg-bg); }
.hs-tests .tcg-demo > header,.hs-tests .tcg-demo > main{ max-width: 1200px; margin: 0 auto; }
.hs-tests .tcg-demo > header{ margin-bottom: 32px; }
.hs-tests .tcg-demo > header img{ height: 36px; width: auto; max-width: 100%; object-fit: contain; }
.hs-tests .tcg-demo h1{ font-size: 32px; line-height: 1.25; }
.hs-tests .tcg-demo section.test{ padding: 24px; background: #fff; border: 1px solid var(--tcg-border); border-radius: 10px; margin-bottom: 32px; box-shadow: 0 4px 18px rgba(15, 36, 71, .18); }
.hs-tests .tcg-demo .tcg-tabs{ display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0; }
.hs-tests .tcg-demo .tcg-tabs button[aria-pressed="true"]{ color: #fff; background: var(--tcg-navy); }

@container hs-tests (max-width: 860px) {
  .hs-tests .tcg-sim .tcg-policy-layout{ grid-template-columns: minmax(0, 1fr); }
  .hs-tests .tcg-sim .tcg-applicants{ max-width: 520px; }
}

@container hs-tests (max-width: 520px) {
  .hs-tests .tcg-demo{ padding: 14px; }
  .hs-tests .tcg-demo section.test{ padding: 14px; }
  .hs-tests .tcg-demo h1{ font-size: 27px; }
  .hs-tests .tcg-sim .tcg-task,.hs-tests .tcg-sim .tcg-result{ padding: 16px; }
  .hs-tests .tcg-sim .tcg-form-grid{ grid-template-columns: minmax(0, 1fr); }
  .hs-tests .tcg-sim .tcg-product-body{ padding: 12px; }
  .hs-tests .tcg-sim .tcg-policy-top{ grid-template-columns: minmax(0, 1fr); }
  .hs-tests .tcg-sim .tcg-quoted-state{ justify-self: end; grid-row: 1; }
  .hs-tests .tcg-sim .tcg-policy-top h3{ grid-row: 1; grid-column: 1; padding-right: 100px; }
}

.hs-tests .tcg-sim .answer-group [role=radio][aria-checked=true]{border:2px solid #2A6BD6;background:#EAF2FC}.hs-tests .tcg-sim .brand-select>button{border:2px solid #DDE6F2;border-radius:10px}.hs-tests .tcg-sim .tcg-form-grid:has(.answer-group){grid-template-columns:minmax(0,1fr)}

.hs-tests .tcg-sim .tcg-product h4 button{border-radius:9px}.hs-tests .tcg-sim .tcg-product h4 button[aria-expanded=true]{border-radius:9px 9px 0 0}
