.tcp-roi *, .tcp-roi *::before, .tcp-roi *::after { box-sizing: border-box; margin: 0; padding: 0; }

.tcp-roi {
  --brand:        #003087;
  --brand-mid:    #0050b3;
  --accent:       #0078d4;
  --accent-light: #e8f1fb;
  --green:        #1a7a4a;
  --green-light:  #e6f4ed;
  --text:         #1a1a2e;
  --muted:        #6b7280;
  --border:       #d1d5db;
  --bg:           #f5f7fb;
  --white:        #ffffff;
  --radius:       12px;
  --shadow:       0 1px 4px rgba(0,48,135,.07), 0 4px 18px rgba(0,48,135,.06);
  --shadow-lg:    0 10px 40px rgba(0,20,60,.22);
}

.tcp-roi {
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

/* ════════ LAYOUT ════════ */
.tcp-roi .calc-outer {
  max-width: 1100px;
  margin: 36px auto 24px;
  padding: 0 20px;
}
.tcp-roi .calc-wrapper {
  background: var(--accent-light);
  border-radius: 18px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}
@media (max-width: 880px) {
  .tcp-roi .calc-wrapper { grid-template-columns: 1fr; padding: 16px; }
  .tcp-roi .results-col { order: 3; }
}

.tcp-roi .card {
  background: var(--white);
  border: 1px solid #e1e2e4;
  border-radius: var(--radius);
  padding: 22px;
}

/*.tcp-roi .card.company-profile label, .tcp-roi .card.company-profile .tip.edge-left { display: none; }*/

.tcp-roi .card-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}
.tcp-roi .card-title svg { color: var(--brand); flex-shrink: 0; margin-right:.5em }

/* ════════ FIELDS ════════ */
.tcp-roi .field { margin-bottom: 14px; }
.tcp-roi .field:last-child { margin-bottom: 0; }

.tcp-roi .label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.tcp-roi .label-row label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.tcp-roi select,
.tcp-roi input[type="number"],
.tcp-roi input[type="text"],
.tcp-roi input[type="email"] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 16px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.tcp-roi select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  padding-left: 16px;
  cursor: pointer;
}
.tcp-roi select:invalid { color: var(--muted); }
.tcp-roi select option { color: var(--text); }
.tcp-roi input[type="number"] { -moz-appearance: textfield; }
.tcp-roi input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.tcp-roi select:focus, .tcp-roi input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,120,212,.12);
}

.tcp-roi .input-wrap { position: relative; }
.input-wrap .prefix,
.tcp-roi .input-wrap .suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}
.tcp-roi .input-wrap .prefix { left: 12px; }
.tcp-roi .input-wrap .suffix { right: 12px; }
.tcp-roi .input-wrap input { padding-right: 40px; }
.tcp-roi .input-wrap input.has-prefix { padding-left: 26px; }

/* ════════ TOOLTIP ════════ */
.tcp-roi .tip {
  position: relative;
  display: inline-flex;
}

.tcp-roi .tip-btn {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #085DD4;
    background: #fff;
    color: var(--brand-mid);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: inherit;
    transition: background .15s, color .15s;
}
.tcp-roi .tip-btn:hover, .tcp-roi .tip.open .tip-btn { background: var(--brand); color: var(--white); }
.tcp-roi .tip-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.tcp-roi .tip-bubble {
  display: none;
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  background: #10214d;
  color: var(--white);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  padding: 10px 13px;
  border-radius: 8px;
  width: 230px;
  z-index: 60;
  box-shadow: 0 6px 20px rgba(0,20,60,.28);
  text-align: left;
}
.tcp-roi .tip-bubble::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #10214d;
  border-bottom: 0;
}
.tip:hover .tip-bubble,
.tip.open .tip-bubble,
.tcp-roi .tip-btn:focus-visible + .tip-bubble { display: block; }

/* keep bubbles inside viewport on narrow screens: shift left-anchored */
.tcp-roi .tip.edge-left .tip-bubble { left: 0; transform: none; }
.tcp-roi .tip.edge-left .tip-bubble::after { left: 8px; transform: none; }
.tcp-roi .tip.edge-right .tip-bubble { left: auto; right: 0; transform: none; }
.tcp-roi .tip.edge-right .tip-bubble::after { left: auto; right: 8px; transform: none; }

/* ════════ BENCHMARK NOTICE ════════ */
.tcp-roi .benchmark-notice {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  background: var(--accent-light);
  border: 1px solid #bdd8f2;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--brand);
  line-height: 1.5;
  margin-top: 16px;
}
.tcp-roi .benchmark-notice svg { flex-shrink: 0; margin-top: 2px; }

/* ════════ ADVANCED (Customize your inputs) ════════ */
.tcp-roi .advanced-card { padding: 0; overflow: visible; }
.tcp-roi .advanced-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 22px;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
}
.tcp-roi .advanced-toggle svg.icon { color: var(--brand); }
.tcp-roi .advanced-toggle svg { margin-right: .5em; }
.tcp-roi .advanced-toggle .chev {
  margin-left: auto;
  transition: transform .2s;
  color: var(--muted);
}
.tcp-roi .advanced-card.open .advanced-toggle .chev { transform: rotate(180deg); }
.tcp-roi .advanced-body {
  display: none;
  padding: 2px 22px 20px;
}
.tcp-roi .advanced-card.open .advanced-body { display: block; }
.tcp-roi .advanced-sub {
  font-size: 12px;
  color: var(--muted);
  margin: -6px 0 14px;
  line-height: 1.5;
}

/* ════════ RESULTS COLUMN ════════ */
.tcp-roi .results-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 16px;
}
@media (max-width: 880px) { .results-col { position: static; } }
.tcp-roi .results-col.empty .rc-metric { display: none; }

/* hero box */
.tcp-roi .rc-hero {
  background: var(--white);
  border: 2.5px solid var(--brand-mid);
  border-radius: 16px;
  padding: 20px 18px 18px;
  text-align: center;
}
.tcp-roi .rc-header {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.tcp-roi .rc-amount {
  font-size: clamp(40px, 4.5vw, 52px);
  font-weight: 900;
  color: var(--brand-mid);
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 8px;
}
.tcp-roi .rc-amount-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}

/* individual metric cards */
.tcp-roi .rc-metric {
  background: var(--white);
  border: 1px solid #e1e2e4;
  border-radius: 12px;
  padding: 14px 16px;
  text-align: center;
}
.tcp-roi .rc-metric .rm-label {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.tcp-roi .rc-metric .rm-value {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand-mid);
  line-height: 1.15;
}

/* categories: mint green box */
.tcp-roi .rc-categories {
  display: none;
  background: var(--green-light);
  border: 1.5px solid #bfe0cf;
  border-radius: 12px;
  padding: 14px 16px;
}
.tcp-roi .rc-categories.visible { display: block; }
.tcp-roi .rc-cat-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 4px 0;
  font-size: 15px;
}
.tcp-roi .rc-cat-row .cat-label { color: #5a6b60; font-weight: 600; }
.tcp-roi .rc-cat-row .cat-value { color: var(--green); font-weight: 800; white-space: nowrap; }

.tcp-roi .rc-cta {
  width: 100%;
  background: var(--brand-mid);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .1s;
}
.tcp-roi .rc-cta:hover:not(:disabled) { background: var(--global-palette4); }
.tcp-roi .rc-cta:disabled { opacity: .45; cursor: not-allowed; }

.tcp-roi .rc-empty-hint {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  background: var(--white);
  border: 1px solid #e1e2e4;
  border-radius: 12px;
  padding: 14px 16px;
}

/* ════════ DISCLAIMER ════════ */
.tcp-roi .page-disclaimer {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px 40px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
  text-align: center;
}

/* ════════ MODAL ════════ */
.tcp-roi .modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8,16,40,.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.tcp-roi .modal-overlay.open { display: flex; }

.tcp-roi .modal {
  background: #c5e4ff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 735px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px 28px 0;
  position: relative;
  animation: modal-in .22s ease;
}
.tcp-roi .modal.done form.mktoForm { display: none; }
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.tcp-roi .modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, color .15s;
}
.tcp-roi .modal-close:hover { border-color: var(--accent); color: var(--accent); }

.tcp-roi .modal h2 {
font-size: 22px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.4;
    margin: 0 auto 25px;
    padding-right: 0;
    text-align: center;
    width: 95%;
}

.tcp-roi .m-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.tcp-roi .m-field select { width: 100%; color: #41675f; }
@media (max-width: 660px) { .m-grid { grid-template-columns: 1fr !important; } }
.tcp-roi .m-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.tcp-roi .m-field input.error { border-color: #c0392b; }
.tcp-roi .m-err {
  display: none;
  font-size: 11px;
  color: #c0392b;
  margin-top: 3px;
}
.tcp-roi .m-err.show { display: block; }

.tcp-roi .m-checks { margin: 14px 0 18px; display: flex; flex-direction: column; gap: 10px; }
.tcp-roi .m-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.tcp-roi .m-check input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--brand-mid);
  cursor: pointer;
}
.tcp-roi .m-check.error-check { color: #c0392b; }

.tcp-roi .m-submit-wrap { display: flex; justify-content: flex-end; }

.tcp-roi .m-submit {
  background: var(--brand-mid);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.tcp-roi .m-submit:hover { background: var(--brand); }

/* success state */
.tcp-roi .m-success {
  display: none;
  text-align: center;
  padding: 12px 4px 6px;
}
.tcp-roi .modal.done .m-form { display: none; }
.tcp-roi .modal.done .m-success { display: block; }
.tcp-roi .modal.done h2 { display: none; }

.tcp-roi .m-success .s-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.tcp-roi .m-success h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.tcp-roi .m-success p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.tcp-roi .btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--global-palette-btn-bg);
  color: var(--white);
  border-radius: 8px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
  margin-bottom: 3em;
}
.tcp-roi .btn-download:hover { background: var(--global-palette4); }
[data-formid="2970"] > .mktoFormRow:nth-child(7),
[data-formid="2970"] > .mktoFormRow:nth-child(6) {
  display: block;
}
[data-formid="2970"] > .mktoFormRow:nth-child(7) .mktoHtmlText,
[data-formid="2970"] > .mktoFormRow:nth-child(6) .mktoHtmlText {
  width: auto !important;
  color: #5C5C5C;
}
[data-formid="2970"] > .mktoFormRow:nth-child(7) .mktoHtmlText strong,
[data-formid="2970"] > .mktoFormRow:nth-child(6) .mktoHtmlText strong {
  font-weight: 500;
}
[data-formid="2970"] > .mktoFormRow:nth-child(7) .mktoCheckboxList,
[data-formid="2970"] > .mktoFormRow:nth-child(6) .mktoCheckboxList {
    margin: 2px 0 0 0;
}
[data-formid="2970"] > .mktoFormRow:nth-child(7) .text-info,
[data-formid="2970"] > .mktoFormRow:nth-child(6) .text-info{
  color: var(--global-palette-highlight) !important;
}
[data-formid="2970"] > .mktoFormRow:nth-child(7) .text-info:hover,
[data-formid="2970"] > .mktoFormRow:nth-child(6) .text-info:hover{
  text-decoration: none;
}
[data-formid="2970"] > .mktoButtonRow button[type="submit"].mktoButton { min-width: 280px !important; padding: 8px 20px !important; }
[data-formid="2970"] > .mktoFormRow:nth-child(6) .mktoHtmlText { margin-left: 7px;  }
.mktoForm[data-formid="2970"] .mktoButtonRow button[type="submit"].mktoButton:hover {
  background: var(--global-palette4);
  color: #fff;
}
@media (max-width: 768px) {
    .tcp-roi .calc-wrapper { display: initial; background: transparent; }
    .tcp-roi .results-col { margin-top: 15px; }
    .tcp-roi .calc-outer { background: var(--accent-light); border-radius: var(--radius); margin-top:0; }
    [data-formid="2970"] > .mktoFormRow:nth-child(6),
    [data-formid="2970"] > .mktoFormRow:nth-child(7) {
      display: flex !important;
      gap: 0 !important;
    }
    [data-formid="2970"] > .mktoFormRow:nth-child(6) .mktoFormCol strong {
      padding-left: 0;
    }
    [data-formid="2970"] > .mktoFormRow:nth-child(7) .mktoFormCol strong {
      padding-left: 6px;
    }
    [data-formid="2970"] > .mktoFormRow:nth-child(6) .mktoFieldDescriptor,
    [data-formid="2970"] > .mktoFormRow:nth-child(7) .mktoFieldDescriptor {
      max-width: 20px;
    }
}
/* ════════ MULTI-SELECT (Challenges) ════════ */
.tcp-roi .msel { position: relative; }
.tcp-roi .msel-btn {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 34px 10px 16px;
  font-size: 16px;
  font-family: inherit;
  color: var(--muted);
  background: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s, box-shadow .2s;
}
.tcp-roi .msel-btn:focus-visible,
.tcp-roi .msel.open .msel-btn {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,120,212,.12);
}
.tcp-roi .msel-btn.has-value { color: var(--text); }
.tcp-roi .msel-btn.error { border-color: #c0392b; }
.tcp-roi .msel-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tcp-roi .msel-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,20,60,.14);
  padding: 6px;
  z-index: 80;
  max-height: 280px;
  overflow-y: auto;
}
.tcp-roi .msel.open .msel-panel { display: block; }
.tcp-roi .msel-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 15px;
  color: var(--text);
  cursor: pointer;
  line-height: 1.4;
}
.tcp-roi .msel-option:hover { background: var(--accent-light); }
.tcp-roi .msel-option input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand-mid);
  cursor: pointer;
}
.tcp-roi .msel-option.disabled { opacity: .45; cursor: not-allowed; }
.tcp-roi .msel-option.disabled input { cursor: not-allowed; }
.tcp-roi .msel-hint {
  font-size: 11px;
  color: var(--muted);
  padding: 4px 10px 6px;
}
.tcp-roi select.error { border-color: #c0392b; }
#challengeBtnLabel { font-weight: 500; }