/* GetPower: field formats — invalid state and a short hint under the field. */
.gp-ios input.gp-invalid { border-color: #b32bcc !important; box-shadow: 0 0 0 3px rgba(179, 43, 204, .22); }
.gp-field-hint {
  display: block; max-height: 0; overflow: hidden; opacity: 0;
  margin: 0; font-size: 13px; line-height: 1.35; color: #e9a7f5; text-align: left;
  transition: max-height .3s ease, opacity .25s ease, margin .3s ease;
}
.gp-field-hint.is-on { max-height: 40px; opacity: 1; margin: 6px 2px 0; }
@media (prefers-reduced-motion: reduce) { .gp-field-hint { transition: none; } }

/* Power, kW: under the field one row with − / slider / +, like an iOS stepper. */
.gp-power { position: relative; margin-bottom: 40px; }
.gp-power > .form-input { font-variant-numeric: tabular-nums; }
.gp-power-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.gp-step-btn {
  flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
  border: .5px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
  color: #fff; font: 400 24px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Arial, sans-serif;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform .35s cubic-bezier(.32, .72, 0, 1), background-color .2s ease;
}
.gp-step-btn:hover { background: rgba(255, 255, 255, .16); }
.gp-step-btn:active { transform: scale(.88); background: rgba(109, 238, 255, .22); transition-duration: .08s; }
.gp-step-btn:focus-visible { outline: 2px solid #6deeff; outline-offset: 2px; }

.gp-range {
  -webkit-appearance: none; appearance: none; display: block; flex: 1; min-width: 0; height: 28px; margin: 0; padding: 0;
  background: transparent; cursor: pointer; --gp-fill: 0%;
}
.gp-range:focus { outline: none; }
.gp-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, #b32bcc 0%, #6deeff var(--gp-fill), rgba(255, 255, 255, .22) var(--gp-fill));
}
.gp-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -11px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: 0 2px 8px rgba(0, 8, 20, .45), 0 0 0 .5px rgba(0, 0, 0, .06);
  transition: transform .3s cubic-bezier(.32, .72, 0, 1);
}
.gp-range:active::-webkit-slider-thumb { transform: scale(1.12); }
.gp-range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }
.gp-range::-moz-range-progress { height: 4px; border-radius: 2px; background: linear-gradient(90deg, #b32bcc, #6deeff); }
.gp-range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 8, 20, .45); }
.gp-range-scale { display: flex; justify-content: space-between; margin: 2px 56px 0; font-size: 12px; line-height: 1.2; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }

/* "Суммарная мощность" is calculated: shown, not typed. */
.gp-auto > .form-input { border-style: dashed; border-color: rgba(255, 255, 255, .45); color: #bff6ff; cursor: default; }
.gp-auto::after { content: "считается автоматически"; display: block; margin-top: 6px; font-size: 12px; color: rgba(255, 255, 255, .5); text-align: left; }
@media (prefers-reduced-motion: reduce) { .gp-step-btn, .gp-range::-webkit-slider-thumb { transition: none; } }
