.calculator-card {
  padding: 34px;
  background:
    radial-gradient(circle at 100% 0%, rgba(31, 122, 77, 0.08), transparent 36%),
    #ffffff;
}

.calculator-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e8e2d5;
}

.calculator-title span {
  color: #667085;
}

.calculator-title strong {
  color: #1f7a4d;
  letter-spacing: 0.12em;
}

.field,
.field span,
.field input,
.field select {
  display: block;
  width: 100%;
}

.field {
  margin-bottom: 16px;
}

.field span {
  margin-bottom: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select {
  height: 48px;
  padding: 0 14px;
  color: #111827;
  background: rgba(244, 246, 240, 0.82);
  border: 1px solid rgba(31, 122, 77, 0.14);
  border-radius: 16px;
  font: inherit;
  font-weight: 750;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.field input:focus,
.field select:focus {
  background: #ffffff;
  border-color: rgba(31, 122, 77, 0.48);
  box-shadow: 0 0 0 4px rgba(31, 122, 77, 0.1);
}

.rate-panel {
  padding: 16px;
  margin-bottom: 16px;
  background: #e7f4ec;
  border: 1px solid rgba(31, 122, 77, 0.16);
  border-radius: 18px;
}

.rate-panel span,
.rate-panel strong,
.rate-panel small {
  display: block;
}

.rate-panel span {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.rate-panel strong {
  margin: 4px 0;
  color: #0f5132;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.rate-panel small {
  color: #667085;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

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

.multi-rate-card {
  margin: 4px 0 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 96% 0%, rgba(31, 122, 77, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 242, 0.82));
  border: 1px solid rgba(31, 122, 77, 0.14);
  border-radius: 20px;
}

.multi-rate-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 18px;
  padding: 16px 18px;
  color: #111827;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.multi-rate-toggle span,
.multi-rate-toggle small {
  display: block;
}

.multi-rate-toggle strong {
  display: block;
  margin-bottom: 4px;
  color: #0b2f22;
  font-size: 15px;
  line-height: 1.15;
}

.multi-rate-toggle small,
.multi-rate-body small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.multi-rate-toggle b {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #0f6a44;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 122, 77, 0.14);
  border-radius: 999px;
  font-size: 12px;
}

.multi-rate-card.is-open .multi-rate-toggle b {
  color: #ffffff;
  background: linear-gradient(135deg, #1f9b62, #0f6a44);
}

.multi-rate-body {
  padding: 0 18px 18px;
}

.multi-rate-head,
.multi-rate-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.1fr) 0.78fr 0.7fr 0.6fr 34px;
  gap: 8px;
  align-items: center;
}

.multi-rate-head {
  padding: 10px 0 8px;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.multi-rate-row {
  padding: 8px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 122, 77, 0.1);
  border-radius: 16px;
}

.multi-rate-row input {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  color: #111827;
  background: rgba(244, 246, 240, 0.82);
  border: 1px solid rgba(31, 122, 77, 0.14);
  border-radius: 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.multi-rate-row input:focus {
  background: #ffffff;
  border-color: rgba(31, 122, 77, 0.48);
  box-shadow: 0 0 0 3px rgba(31, 122, 77, 0.1);
  outline: 0;
}

.multi-rate-remove {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #667085;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 50%;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.multi-rate-remove:hover {
  color: #ffffff;
  background: #0f6a44;
}

.multi-rate-add {
  width: 100%;
  height: 42px;
  margin: 4px 0 10px;
  color: #0f6a44;
  background: rgba(255, 255, 255, 0.74);
  border: 1px dashed rgba(31, 122, 77, 0.28);
  border-radius: 14px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.multi-rate-add:hover {
  background: #ffffff;
  border-style: solid;
}

@media (max-width: 680px) {
  .field-grid {
    grid-template-columns: 1fr;
  }

  .multi-rate-toggle {
    align-items: flex-start;
    flex-direction: column;
  }

  .multi-rate-head {
    display: none;
  }

  .multi-rate-row {
    grid-template-columns: 1fr 1fr;
  }

  .multi-rate-row input:first-child {
    grid-column: 1 / -1;
  }

  .multi-rate-remove {
    width: 100%;
    border-radius: 12px;
  }
}
