:root {
  --roi3-bg: #f9f9f9;
  --roi3-ink: #000000;
  --roi3-muted: #6b7280;
  --roi3-card: #ffffff;
  --roi3-card-border: #ececf5;
  --roi3-result: #1e1e1e;
  /* --roi3-result-line: rgba(0, 0, 0, 0.25); */
  --roi3-result-line: #c2c2c2;
}

.roi-v3 {
  padding: clamp(24px, 4vw, 56px) 0;
  background: var(--roi3-bg);
}

.roi-v3__grid {
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  grid-template-columns: 1fr 1fr;
}

/* Panels */
.roi-v3__panel {
  border-radius: 22px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Inputs panel */
.roi-v3__panel--inputs {
  background: var(--roi3-card);
  border: 1px solid var(--roi3-card-border);
  padding: clamp(16px, 3vw, 28px);
  display: grid;
  gap: 12px;
}

.roi-v3__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.roi-v3__dots {
  color: #9aa1b2;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.roi-v3__head h3 {
  margin: 0;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--roi3-ink);
}

.roi-v3__label {
  font-size: 14px;
  color: #334155;
  font-weight: 600;
  margin-top: 6px;
}

.roi-v3__control {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid #e7e7ef;
  background: #f3f4f6;
  padding: 12px 14px;
  font-size: 18px;
  color: var(--roi3-ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

/* .roi-v3__control:focus {
    border-color: #8b5cf6;
    background: #fff;
} */

.roi-v3__intro {
  text-align: center;
  margin-bottom: clamp(16px, 3vw, 28px);
}

.roi-v3__intro .small-title {
  margin-bottom: 8px;
}

.roi-v3__intro .brands-title {
  /* margin: 0; */
  margin-bottom: 60px;
  font-size: 35px;
  font-weight: 700;
}

.roi-v3__btn {
  margin-top: 8px;
  align-self: start;
  height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  background: #1e1e1e;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

/* Results panel */
.roi-v3__panel--results {
  background: var(--roi3-result);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: clamp(18px, 3.2vw, 32px);
}

.roi-v3__head--results h3 {
  color: #ffffff;
}

.roi-v3__rows {
  margin-top: 8px;
}

.roi-v3__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--roi3-result-line);
  color: #ffffff;
}

.roi-v3__row--last {
  border-bottom: 0;
  padding-bottom: 6px;
}

.roi-v3__row span {
  opacity: 0.95;
  /* color: #fff; */
}

.roi-v3__row strong {
  font-size: 20px;
  font-weight: 800;
  text-align: right;
  /* color: #fff; */
}

/* savings block on the right */
.roi-v3__save {
  text-align: right;
}

.roi-v3__save strong {
  font-size: 22px;
}

.roi-v3__save em {
  font-style: normal;
  opacity: 0.9;
  margin-left: 6px;
}

.roi-v3__save span {
  display: block;
  margin-top: 4px;
  opacity: 0.95;
}

/* Stack on small screens */
@media (max-width: 960px) {
  .roi-v3__grid {
    grid-template-columns: 1fr;
  }
}

/* Nice, padded dropdown arrow */
select.roi-v3__control,
select.roi-input {
  /* fallback if you still use .roi-input */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 56px;
  /* space for the arrow */
  background-repeat: no-repeat;
  background-position: right 18px center;
  /* arrow inset from border */
  background-size: 14px 14px;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
}

/* Hide old IE arrow */
select.roi-v3__control::-ms-expand,
select.roi-input::-ms-expand {
  display: none;
}

/* Optional: tweak on focus to match your focus state */
select.roi-v3__control:focus,
select.roi-input:focus {
  background-color: #fff;
  background-position: right 18px center;
}
