.ota-calculator {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(26px, 3.5vw, 42px);
  background: #fffdf7;
  border: 1px solid #d8cfbc;
  border-radius: 2px;
  box-shadow: 0 18px 50px rgba(28, 26, 20, 0.13);
  color: #1c1a14;
}

.ota-calculator *,
.ota-calculator *::before,
.ota-calculator *::after {
  box-sizing: border-box;
}

.ota-calculator__eyebrow {
  margin: 0 0 10px;
  color: #9a7b3f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.ota-calculator__title {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.08;
  text-wrap: pretty;
}

.ota-calculator__intro {
  margin: 0 0 28px;
  color: #5c5748;
  font-size: 14px;
  line-height: 1.6;
}

.ota-calculator__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.ota-calculator__label {
  color: #3e3a2e;
  font-size: 13px;
  font-weight: 700;
}

.ota-calculator__revenue {
  color: #1c1a14;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  white-space: nowrap;
}

.ota-calculator__range {
  --range-progress: 14%;
  width: 100%;
  height: 8px;
  margin: 4px 0 0;
  appearance: none;
  background: linear-gradient(to right, #b4543a 0 var(--range-progress), #e3ddce var(--range-progress) 100%);
  border-radius: 999px;
  cursor: pointer;
}

.ota-calculator__range::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  appearance: none;
  background: #fffdf7;
  border: 3px solid #b4543a;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(28, 26, 20, 0.2);
}

.ota-calculator__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fffdf7;
  border: 3px solid #b4543a;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(28, 26, 20, 0.2);
}

.ota-calculator__range:focus-visible {
  outline: 3px solid rgba(154, 123, 63, 0.28);
  outline-offset: 5px;
}

.ota-calculator__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: #7a7565;
  font-size: 11px;
}

.ota-calculator__assumptions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.ota-calculator__field {
  display: grid;
  gap: 7px;
  color: #5c5748;
  font-size: 12px;
  line-height: 1.35;
}

.ota-calculator__select {
  width: 100%;
  padding: 11px 36px 11px 12px;
  appearance: none;
  background-color: #f6f3ec;
  background-image: linear-gradient(45deg, transparent 50%, #9a7b3f 50%), linear-gradient(135deg, #9a7b3f 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px;
  border: 1px solid #dcd5c2;
  border-radius: 2px;
  color: #1c1a14;
  font: 600 14px "Albert Sans", sans-serif;
  cursor: pointer;
}

.ota-calculator__select:focus-visible {
  outline: 3px solid rgba(154, 123, 63, 0.2);
  border-color: #9a7b3f;
}

.ota-calculator__results {
  padding: 22px;
  background: #f0e8d8;
  border-left: 3px solid #b4543a;
}

.ota-calculator__main-result {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d8cfbc;
}

.ota-calculator__result-label {
  max-width: 20ch;
  color: #5c5748;
  font-size: 13px;
  line-height: 1.4;
}

.ota-calculator__main-value {
  color: #b4543a;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: 0.95;
  white-space: nowrap;
}

.ota-calculator__secondary-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-top: 18px;
}

.ota-calculator__secondary-results span {
  display: block;
  margin-bottom: 5px;
  color: #6b6555;
  font-size: 11px;
}

.ota-calculator__secondary-results strong {
  color: #1c1a14;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  font-weight: 600;
}

.ota-calculator__note {
  margin: 14px 0 0;
  color: #7a7565;
  font-size: 11px;
  line-height: 1.55;
}

.ota-calculator__cta {
  display: block;
  margin-top: 20px;
  padding: 15px 20px;
  background: #9a7b3f;
  border-radius: 2px;
  color: #fffdf7;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-align: center;
  text-transform: uppercase;
}

.ota-calculator__cta:hover {
  background: #7c6230;
  color: #fffdf7;
}

@media (max-width: 520px) {
  .ota-calculator__label-row,
  .ota-calculator__main-result {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ota-calculator__assumptions {
    grid-template-columns: 1fr;
  }

  .ota-calculator__main-value {
    white-space: normal;
  }
}
