:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #eef2ff;
  color: #171827;
  font-family: Arial, Helvetica, sans-serif;
}

.vending-calculator {
  --green: #5145f4;
  --green-dark: #1f2a60;
  --green-soft: #eef1ff;
  --green-pale: #f7f8ff;
  --orange: #5145f4;
  --yellow: #b7791f;
  --red: #b42318;
  --ink: #171827;
  --muted: #5e6680;
  --line: #d9def2;
  --panel: #ffffff;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 18px 18px 34px;
}

.vc-header {
  position: relative;
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid #d9def2;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(81, 69, 244, 0.12), rgba(255, 255, 255, 0.72), rgba(245, 158, 11, 0.08)),
    #ffffff;
  box-shadow: 0 16px 44px rgba(31, 42, 96, 0.1);
}

.vc-header::after {
  content: "ROI + BREAK-EVEN TOOL";
  position: absolute;
  top: 24px;
  right: 26px;
  max-width: 190px;
  border: 1px solid #c9cdfc;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
  padding: 12px 14px;
  text-align: center;
}

.vc-kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.vc-header h1,
.vc-faq h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: 0;
}

.vc-subtitle {
  max-width: 660px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.vc-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 760px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.vc-trust-list li {
  border: 1px solid #d5daf5;
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  padding: 8px 11px;
}

.vc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.vc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  font-weight: 800;
  line-height: 1.2;
  padding: 10px 16px;
  text-decoration: none;
}

.vc-button-primary {
  background: var(--green);
  color: #ffffff;
}

.vc-button-primary:hover {
  background: var(--green-dark);
}

.vc-button-secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.vc-button-secondary:hover {
  background: #eef1ff;
}

.vc-roi,
.vc-shell,
.vc-results,
.vc-faq,
.vc-lead,
.vc-seo-content,
.vc-audience,
.vc-estimates {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(31, 42, 96, 0.08);
}

.vc-audience,
.vc-estimates {
  margin-bottom: 20px;
  padding: 18px;
}

.vc-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vc-check-grid li {
  position: relative;
  min-height: 44px;
  border: 1px solid #e0e4f5;
  border-radius: 8px;
  color: #34433d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  padding: 12px 12px 12px 36px;
}

.vc-check-grid li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.vc-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vc-feature-grid article {
  border: 1px solid #d5daf5;
  border-radius: 8px;
  background: #f7f8ff;
  color: var(--green-dark);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  padding: 16px;
}

.vc-roi {
  display: grid;
  grid-template-columns: minmax(225px, 0.27fr) minmax(0, 1fr);
  gap: 0;
  align-items: start;
  margin-bottom: 20px;
  overflow: hidden;
}

.vc-roi-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  margin: 18px;
  padding: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 92%, rgba(129, 140, 248, 0.22), transparent 32%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
    #1f2a60;
  color: #ffffff;
  border-radius: 8px;
}

.vc-roi-copy::after {
  content: "";
  width: 130px;
  height: 130px;
  position: absolute;
  right: -48px;
  bottom: -48px;
  border: 18px solid rgba(199, 210, 254, 0.18);
  border-radius: 50%;
}

.vc-roi-copy .vc-kicker {
  color: #c7d2fe;
}

.vc-roi-copy h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.12;
}

.vc-roi-copy p {
  margin: 0 0 10px;
  color: #e8ecff;
  font-size: 14px;
  line-height: 1.52;
}

.vc-note {
  font-size: 13px;
}

#machineDefaultNote {
  margin: 12px 0 0;
  color: var(--muted);
}

.vc-roi-panel {
  padding: 20px 20px 20px 2px;
  background: #ffffff;
}

.vc-roi-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.vc-roi-results {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 10px;
}

.vc-roi-card {
  min-height: 78px;
  border: 1px solid #d5daf5;
  border-radius: 8px;
  background: linear-gradient(180deg, #f2f4ff, #eaedff);
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.vc-roi-card-primary {
  grid-column: span 4;
  min-height: 94px;
  background: linear-gradient(180deg, #e7ebff, #dfe5ff);
}

.vc-roi-card:not(.vc-roi-card-primary) {
  grid-column: span 2;
}

.vc-roi-results span {
  display: block;
  min-height: 24px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.vc-roi-results strong {
  display: block;
  overflow-wrap: anywhere;
  color: var(--green-dark);
  font-size: 21px;
  line-height: 1.15;
}

.vc-roi-results [data-roi] {
  word-break: keep-all;
}

.vc-roi-card-primary strong {
  font-size: 30px;
}

.vc-roi-explanation {
  margin: 12px 0 8px;
  color: #34433d;
  font-size: 15px;
  line-height: 1.5;
}

.vc-shell {
  padding: 18px;
}

.vc-section-heading {
  margin-bottom: 14px;
}

.vc-section-heading h2 {
  margin: 0 0 8px;
  font-size: 28px;
}

.vc-section-heading p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.vc-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.vc-forecast-control {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.vc-forecast-control span {
  color: var(--ink);
  font-weight: 800;
}

.vc-forecast-control label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  min-height: 36px;
  border: 1px solid #cbd8d3;
  border-radius: 6px;
  background: #ffffff;
  padding: 8px 10px;
  cursor: pointer;
}

.vc-forecast-control input {
  width: auto;
  min-height: auto;
  margin: 0 6px 0 0;
}

.vc-step-indicator {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8faf9;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.vc-step-indicator span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
}

.vc-step-indicator.is-active {
  border-color: var(--green);
  background: #eef1ff;
  color: var(--green-dark);
}

.vc-step {
  display: none;
}

.vc-step.is-active {
  display: block;
}

.vc-step h2,
.vc-results h2,
.vc-results h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.vc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #34433d;
  font-size: 13px;
  font-weight: 700;
}

.vc-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid #cbd8d3;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 9px 11px;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(20, 122, 74, 0.25);
  border-color: var(--green);
}

.vc-custom-panel {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8faf9;
}

.vc-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 16px;
}

button:hover {
  background: var(--green-dark);
}

.vc-secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

#copyRoiToAdvanced {
  margin-top: 4px;
  border-color: transparent;
  background: linear-gradient(180deg, #6257ff, #463ee6);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(81, 69, 244, 0.3);
}

#copyRoiToAdvanced:hover {
  background: linear-gradient(180deg, #5147ec, #3730c7);
}

.vc-secondary:hover {
  background: #eef1ff;
}

.vc-form-errors,
.vc-lead-status {
  margin-top: 14px;
  color: var(--red);
  font-weight: 700;
}

.vc-results {
  margin-top: 22px;
  padding: 18px;
}

.vc-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
}

.vc-result-action-status {
  flex-basis: 100%;
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.vc-result-hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  align-items: stretch;
}

.vc-conclusion {
  border-left: 5px solid var(--green);
  background: #f2f4ff;
  padding: 18px;
  border-radius: 8px;
}

.vc-conclusion.is-warning {
  border-color: var(--yellow);
  background: #fff7e6;
}

.vc-conclusion.is-danger {
  border-color: var(--red);
  background: #fff1f0;
}

.vc-conclusion strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.vc-score {
  display: grid;
  place-items: center;
  min-height: 160px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vc-score-ring {
  width: 124px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) var(--score), #e6e9f7 0);
}

.vc-score-ring span {
  display: grid;
  place-items: center;
  width: 92px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #ffffff;
  font-size: 28px;
  font-weight: 800;
}

.vc-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.vc-metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.vc-metric span {
  display: block;
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.vc-metric strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 24px;
  line-height: 1.2;
}

.vc-table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: right;
}

th:first-child,
td:first-child {
  text-align: left;
}

.vc-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.vc-chart {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.vc-bars {
  display: grid;
  gap: 10px;
}

.vc-bar-row {
  display: grid;
  grid-template-columns: 150px 1fr 90px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}

.vc-bar-track {
  position: relative;
  height: 20px;
  background: #edf3f0;
  border-radius: 4px;
  overflow: hidden;
}

.vc-bar-fill {
  height: 100%;
  min-width: 2px;
  background: var(--green);
}

.vc-bar-fill.is-profit-negative {
  background: var(--red);
}

.vc-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.vc-list-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.vc-list-panel ul {
  margin: 0;
  padding-left: 18px;
}

.vc-list-panel li {
  margin: 8px 0;
  color: #34433d;
}

.vc-disclosure {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #f8faf9;
  color: var(--muted);
  line-height: 1.5;
}

.vc-lead {
  margin-top: 20px;
  padding: 18px;
}

.vc-message-field {
  grid-column: span 3;
}

.vc-consent {
  grid-column: span 3;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  line-height: 1.4;
}

.vc-consent input {
  width: auto;
  min-height: auto;
  margin-top: 2px;
}

.vc-consent a {
  color: var(--green-dark);
}

.vc-debug {
  display: none;
  max-height: 260px;
  overflow: auto;
  margin-top: 12px;
  padding: 12px;
  border-radius: 6px;
  background: #111b17;
  color: #d8f6e8;
  font-size: 12px;
  white-space: pre-wrap;
}

.vc-debug.is-visible {
  display: block;
}

.vc-faq {
  margin-top: 22px;
  padding: 18px;
}

.vc-seo-content {
  margin-top: 20px;
  padding: 18px;
}

.vc-seo-content h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.vc-seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.vc-seo-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.vc-seo-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

.is-hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .vc-header {
    padding: 26px 24px;
  }

  .vc-header::after {
    display: none;
  }

  .vc-roi,
  .vc-grid,
  .vc-metrics,
  .vc-charts,
  .vc-sections,
  .vc-seo-grid,
  .vc-feature-grid,
  .vc-result-hero {
    grid-template-columns: 1fr 1fr;
  }

  .vc-message-field {
    grid-column: span 2;
  }

  .vc-consent {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .vending-calculator {
    padding: 14px 10px 28px;
  }

  .vc-header {
    padding: 22px 18px;
  }

  .vc-header h1 {
    font-size: 27px;
  }

  .vc-subtitle {
    font-size: 15px;
  }

  .vc-roi-copy,
  .vc-roi-panel {
    padding: 18px;
  }

  .vc-roi-copy {
    margin: 12px;
  }

  .vc-hero-actions,
  .vc-result-actions {
    flex-direction: column;
  }

  .vc-button,
  .vc-result-actions button {
    width: 100%;
  }

  .vc-trust-list {
    gap: 7px;
  }

  .vc-trust-list li {
    width: 100%;
  }

  .vc-progress {
    grid-template-columns: 1fr;
  }

  .vc-step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
  }

  .vc-step-indicator span {
    margin: 0;
  }

  .vc-roi,
  .vc-roi-inputs,
  .vc-roi-results,
  .vc-grid,
  .vc-metrics,
  .vc-charts,
  .vc-sections,
  .vc-seo-grid,
  .vc-check-grid,
  .vc-feature-grid,
  .vc-result-hero {
    grid-template-columns: 1fr;
  }

  .vc-roi-card,
  .vc-roi-card-primary,
  .vc-roi-card:not(.vc-roi-card-primary) {
    grid-column: auto;
  }

  .vc-roi-card-primary strong {
    font-size: 26px;
  }

  .vc-message-field {
    grid-column: span 1;
  }

  .vc-consent {
    grid-column: span 1;
  }

  .vc-actions {
    flex-direction: column;
  }

  .vc-actions button {
    width: 100%;
  }

  .vc-bar-row {
    grid-template-columns: 1fr;
  }
}
