.fkcalc-form {
  margin-bottom: 24px;
}

.fkcalc-form-1,
.fkcalc-form-2 {
  display: none;
}
.fkcalc-switcher {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.fkcalc-block {
  display: none;
}
.fkcalc-block.active {
  display: block;
}
.fkcalc-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}
.fkcalc-field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.fkcalc-row {
  display: flex;
  gap: 12px;
  flex-direction: column;
}
.fkcalc-row input,
.fkcalc-row select {
  width: 240px;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  box-sizing: border-box;
}

.fkcalc-select {
  display: flex;
  flex-direction: column;
  position: relative;
}

.fkcalc-select input:checked {
  visibility: hidden;
}

.fkcalc-select input:checked + span::before {
  content: "✓ ";
  color: #22c55e;
  font-weight: 700;
  position: absolute;
  left: 7px;
}

.fkcalc-select input {
  width: 24px;
  margin-right: 8px;
}

.fkcalc-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #666 50%),
    linear-gradient(135deg, #666 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.fkcalc-row select::-ms-expand {
  display: none;
}
.fkcalc-help {
  color: #666;
  font-size: 17px;
  flex-wrap: wrap;
}
.fkcalc-submit {
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: #1e73be;
  color: #fff;
  cursor: pointer;
}
.fkcalc-results,
.fkcalc-error {
  margin-top: 22px;
  border-radius: 10px;
}
.fkcalc-results {
  background: #f5f9ff;
  border: 1px solid #d7e6f7;
  padding-right: 16px;
  padding-left: 16px;
  padding-bottom: 16px;
}

.fkcalc-error {
  background: #fff2f2;
  border: 1px solid #f1b4b4;
  color: #a40000;
}

.fkcalc-result-list {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.fkcalc-result-row {
  padding: 14px 16px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fafafa;
  line-height: 1.5;
  margin-bottom: 4px;
}

.fkcalc-result-row-success {
  border: 1px solid #c2ffc2;
  background: #9feb96;
}

.fkcalc-result-label {
  font-weight: 700;
  color: #1f2937;
}

.fkcalc-result-help {
  font-style: italic;
  color: #6b7280;
}

.fkcalc-help-text p.is-active::before {
  content: "✓ ";
  color: #22c55e;
  font-weight: 700;
}

@media (max-width: 640px) {
  .fkcalc-row {
    flex-direction: column;
    align-items: stretch;
  }
  .fkcalc-row input[type="number"] {
    width: 100%;
  }
}
