:root {
  --kalkulator-color-bg: #f3f3f3;
  --kalkulator-color-surface: #ffffff;
  --kalkulator-color-text: #222222;
  --kalkulator-color-muted: #6f6f6f;
  --kalkulator-color-border: #fff;
  --kalkulator-color-primary: #bb1018;
  --kalkulator-color-primary-hover: #a20d14;
  --kalkulator-color-selected: #111111;
}

.kalkulator-oferty {
  color: var(--kalkulator-color-text);
  position: relative;
}

.kalkulator-preloader {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  color: var(--kalkulator-color-text);
  border-radius: 12px;
}

.kalkulator-preloader[hidden] {
  display: none !important;
}

.kalkulator-spinner {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #e8e8e8;
  border-top-color: var(--kalkulator-color-primary);
  animation: kalkulator-spin 0.7s linear infinite;
}

@keyframes kalkulator-spin {
  to {
    transform: rotate(360deg);
  }
}

.kalkulator-section {
  background: var(--kalkulator-color-bg);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
}

.kalkulator-section-title {
  font-size: 1.25rem;
  margin: 0 0 6px;
  font-weight: 700;
}

.kalkulator-section-subtitle {
  margin: 0 0 18px;
  color: var(--kalkulator-color-muted);
  font-size: 0.95rem;
}

.kalkulator-required-mark {
  color: var(--kalkulator-color-primary);
  font-weight: 700;
}

.kalkulator-card,
.kalkulator-option-card {
  background: var(--kalkulator-color-surface);
  border: 1px solid var(--kalkulator-color-border);
  border-radius: 10px;
  padding: 14px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kalkulator-card.is-selected,
.kalkulator-option-card.is-selected {
  border-color: var(--kalkulator-color-selected);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.kalkulator-card-image-wrap,
.kalkulator-option-image-wrap {
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.kalkulator-card-image,
.kalkulator-item-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.kalkulator-item-image--empty {
  width: 100%;
  height: 100%;
  background: #f7f7f7;
  border-radius: 8px;
}

.kalkulator-card-title,
.kalkulator-option-title {
  font-size: 0.95rem;
  margin: 0 0 8px;
  font-weight: 700;
  text-align: center;
}

.kalkulator-option-price,
.kalkulator-price {
  color: var(--kalkulator-color-primary);
  font-weight: 700;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 10px;
  margin-bottom: 10px;
}

.kalkulator-btn-select {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: var(--kalkulator-color-primary);
  color: #fff;
  font-weight: 600;
  padding: 8px 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.kalkulator-oferty .form-select {
  border-radius: 12px;
  border: 1px solid var(--kalkulator-color-border);
  background-color: #fff;
  min-height: 44px;
  padding-left: 14px;
  padding-right: 42px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: none;
  min-width: 50%;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23a20d14' d='M4.47 6.97a.75.75 0 0 1 1.06 0L8 9.44l2.47-2.47a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 0 1 0-1.06z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  font-size: 15px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.kalkulator-oferty .form-select:focus {
  border-color: var(--kalkulator-color-primary);
  box-shadow: 0 0 0 0.2rem rgba(187, 16, 24, 0.12);
}

.kalkulator-btn-select:hover {
  background: var(--kalkulator-color-primary-hover);
}

.kalkulator-btn-select:active {
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18);
}

.kalkulator-btn-select:disabled,
.kalkulator-btn-select[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.kalkulator-option-card.is-selected .kalkulator-btn-select,
.kalkulator-card.is-selected .kalkulator-btn-select {
  background: var(--kalkulator-color-selected);
}

.kalkulator-option-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.kalkulator-qty {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #141414;
  color: #fff;
  border-radius: 12px;
  padding: 7px 8px;
  min-width: 80px;
  justify-content: center;
}

.kalkulator-qty-btn {
  border: 0;
  background: transparent;
  color: #fff;
  width: 20px;
  height: 20px;
  line-height: 20px;
  padding: 0;
  text-align: center;
  font-weight: 700;
}

.kalkulator-label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.kalkulator-preview-box {
  border: 1px solid var(--kalkulator-color-border);
  background: var(--kalkulator-color-surface);
  border-radius: 10px;
  min-height: 160px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.kalkulator-preview-box.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.58);
}

.kalkulator-preview-box.is-loading::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #e7e7e7;
  border-top-color: var(--kalkulator-color-primary);
  animation: kalkulator-spin 0.7s linear infinite;
}

.kalkulator-preview-image {
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  transition: opacity 0.22s ease, transform 0.22s ease, filter 0.22s ease;
}

.kalkulator-preview-image.is-fading {
  opacity: 0.15;
  transform: scale(0.98);
  filter: blur(1px);
}

.kalkulator-summary {
  border: 1px solid rgba(187, 16, 24, 0.3);
}

.kalkulator-summary-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.kalkulator-summary-list li {
  margin-bottom: 6px;
}

.kalkulator-total {
  margin-top: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--kalkulator-color-primary);
  border-radius: 12px;
  display: inline-block;
  padding: 8px 18px;
}

.kalkulator-section.kalkulator-summary{
  background: #FFF;
}



.kalkulator-submit-wrap {
  margin-top: 16px;
}

.kalkulator-submit-actions button,
.kalkulator-submit-wrap button{
  padding-top: 18px;
  padding-bottom: 18px;
}

.kalkulator-required-note {
  margin: 10px 0 0;
  color: var(--kalkulator-color-primary);
  font-size: 0.9rem;
  font-weight: 600;
}

.kalkulator-submit-form-wrap {
  margin-top: 18px;
  background: var(--kalkulator-color-surface);
  border: 1px solid var(--kalkulator-color-border);
  border-radius: 10px;
  padding: 16px;
}

.kalkulator-submit-form .form-control {
  border-radius: 8px;
  border-color: var(--kalkulator-color-border);
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 15px;
}

.kalkulator-submit-form .form-control:focus {
  border-color: var(--kalkulator-color-primary);
  box-shadow: 0 0 0 0.2rem rgba(187, 16, 24, 0.12);
}

.kalkulator-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--kalkulator-color-text);
  border-radius: 12px;
  padding: 5px;
}

.kalkulator-consent input {
  margin-top: 2px;
}

.kalkulator-section b,
.kalkulator-section strong {
  font-weight: 600;
}

.mb-30px {
  margin-bottom: 30px !important;
}

.kalkulator-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.kalkulator-section.is-invalid-section {
  border: 1px solid #cf2b2b;
}

.kalkulator-submit-form .form-control.is-invalid,
.kalkulator-consent.is-invalid {
  border: 1px solid #cf2b2b !important;
}

.kalkulator-captcha-box {
  min-height: 65px;
}

[data-captcha-wrap].is-invalid .kalkulator-captcha-box {
  border: 1px solid #cf2b2b;
  border-radius: 8px;
  padding: 6px;
}

.kalkulator-form-error,
.kalkulator-form-success {
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.92rem;
}

.kalkulator-form-error {
  background: #fff1f1;
  color: #9a1212;
  border: 1px solid #f0c7c7;
}

.kalkulator-form-success {
  background: #effbf3;
  color: #116334;
  border: 1px solid #bfe6ce;
}

.kalkulator-submit-actions {
  margin-top: 14px;
}

.kalkulator-hidden {
  display: none;
}

.kalkulator-loading {
  opacity: 0.65;
  pointer-events: none;
}
