.klima-dopyt {
  --klima-primary: #0f9f8f;
  --klima-button: #0f766e;
  --klima-bg: #f6faf9;
  --klima-text: #17211f;
  --klima-muted: rgba(23, 33, 31, 0.68);
  --klima-line: rgba(15, 118, 110, 0.16);
  color: var(--klima-text);
  font-family: inherit;
  margin: 36px auto;
  max-width: 900px;
}

.klima-dopyt * {
  box-sizing: border-box;
}

.klima-dopyt__shell {
  background: linear-gradient(180deg, #ffffff 0%, var(--klima-bg) 100%);
  border: 1px solid var(--klima-line);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(23, 33, 31, 0.12);
  padding: 32px;
}

.klima-dopyt__top {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.klima-dopyt__eyebrow,
.klima-dopyt__step-head p {
  color: var(--klima-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.klima-dopyt__heading,
.klima-dopyt__step-head h3,
.klima-dopyt__thanks h3 {
  color: var(--klima-text);
  line-height: 1.16;
  margin: 0;
}

.klima-dopyt__heading {
  font-size: 30px;
  font-weight: 800;
}

.klima-dopyt__counter {
  background: #ffffff;
  border: 1px solid var(--klima-line);
  border-radius: 999px;
  color: var(--klima-primary);
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 14px;
}

.klima-dopyt__progress {
  background: rgba(15, 118, 110, 0.12);
  border-radius: 999px;
  height: 8px;
  margin: 26px 0 28px;
  overflow: hidden;
}

.klima-dopyt__progress-bar {
  background: var(--klima-primary);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 220ms ease;
  width: 0;
}

.klima-dopyt__step-head {
  margin-bottom: 22px;
}

.klima-dopyt__step-head h3 {
  font-size: 32px;
  font-weight: 800;
}

.klima-dopyt__step-head span {
  color: var(--klima-muted);
  display: block;
  font-size: 16px;
  line-height: 1.55;
  margin-top: 9px;
}

.klima-dopyt__options {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.klima-dopyt__option {
  align-items: flex-start;
  appearance: none;
  background: #ffffff;
  border: 1px solid rgba(23, 33, 31, 0.12);
  border-radius: 8px;
  color: var(--klima-text);
  cursor: pointer;
  display: flex;
  gap: 14px;
  min-height: 112px;
  padding: 20px;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  width: 100%;
}

.klima-dopyt__option:hover,
.klima-dopyt__option.is-selected {
  background: #fbfffe;
  border-color: var(--klima-primary);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.15);
  transform: translateY(-1px);
}

.klima-dopyt__option:focus-visible,
.klima-dopyt__btn:focus-visible,
.klima-dopyt__field input:focus,
.klima-dopyt__field textarea:focus {
  outline: 3px solid rgba(15, 159, 143, 0.22);
  outline-offset: 2px;
}

.klima-dopyt__option-media {
  align-items: center;
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid var(--klima-line);
  border-radius: 8px;
  display: flex;
  flex: 0 0 58px;
  height: 58px;
  justify-content: center;
  overflow: hidden;
  width: 58px;
}

.klima-dopyt__option-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.klima-dopyt__option-body {
  display: block;
  min-width: 0;
}

.klima-dopyt__option strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 7px;
}

.klima-dopyt__option-desc {
  color: var(--klima-muted);
  display: block;
  line-height: 1.5;
}

.klima-dopyt__fields {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.klima-dopyt__pricing {
  background: #ffffff;
  border: 1px solid rgba(23, 33, 31, 0.10);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 20px;
}

.klima-dopyt__pricing-row,
.klima-dopyt__pricing-total {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.klima-dopyt__pricing-row {
  border-bottom: 1px solid rgba(23, 33, 31, 0.08);
  padding-bottom: 12px;
}

.klima-dopyt__pricing-label {
  display: grid;
  gap: 4px;
}

.klima-dopyt__pricing-label span {
  font-weight: 700;
}

.klima-dopyt__pricing-label small,
.klima-dopyt__pricing-empty {
  color: var(--klima-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.klima-dopyt__pricing-total {
  padding-top: 4px;
}

.klima-dopyt__pricing-total span {
  color: var(--klima-muted);
  font-size: 14px;
  font-weight: 700;
}

.klima-dopyt__pricing-total strong {
  font-size: 28px;
  line-height: 1.1;
}

.klima-dopyt__field {
  display: grid;
  gap: 8px;
}

.klima-dopyt__field span,
.klima-dopyt__consent {
  font-size: 14px;
  font-weight: 700;
}

.klima-dopyt__field input,
.klima-dopyt__field textarea {
  background: #ffffff;
  border: 1px solid rgba(23, 33, 31, 0.16);
  border-radius: 8px;
  color: var(--klima-text);
  font: inherit;
  min-height: 48px;
  padding: 12px 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.klima-dopyt__field input:focus,
.klima-dopyt__field textarea:focus {
  border-color: var(--klima-primary);
  box-shadow: 0 0 0 3px rgba(15, 159, 143, 0.12);
}

.klima-dopyt__field textarea {
  min-height: 110px;
  resize: vertical;
}

.klima-dopyt__field--wide,
.klima-dopyt__consent {
  grid-column: 1 / -1;
}

.klima-dopyt__consent {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  line-height: 1.45;
  margin-top: 2px;
}

.klima-dopyt__consent a {
  color: var(--klima-button);
  font-weight: 800;
}

.klima-dopyt__consent input {
  margin-top: 4px;
}

.klima-dopyt__actions {
  align-items: center;
  display: flex;
  border-top: 1px solid rgba(23, 33, 31, 0.08);
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 20px;
}

.klima-dopyt__btn {
  appearance: none;
  background: var(--klima-button);
  border: 1px solid var(--klima-button);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  min-height: 46px;
  padding: 12px 20px;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.klima-dopyt__btn:hover {
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.18);
  transform: translateY(-1px);
}

.klima-dopyt__btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.klima-dopyt__btn--ghost {
  background: transparent;
  color: var(--klima-button);
}

.klima-dopyt__btn--ghost:hover {
  background: rgba(15, 118, 110, 0.08);
  box-shadow: none;
}

.klima-dopyt__message {
  background: #fff4e5;
  border: 1px solid #ffd89b;
  border-radius: 8px;
  color: #693f00;
  margin-top: 18px;
  padding: 12px 14px;
}

.klima-dopyt__hp {
  left: -9999px;
  position: absolute;
}

.klima-dopyt__thanks {
  background: #ffffff;
  border: 1px solid var(--klima-line);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}

.klima-dopyt__submission-id {
  color: rgba(23, 33, 31, 0.65);
  font-size: 14px;
}

@media (max-width: 700px) {
  .klima-dopyt {
    margin: 18px auto;
  }

  .klima-dopyt__shell {
    padding: 22px;
  }

  .klima-dopyt__top {
    display: block;
  }

  .klima-dopyt__counter {
    display: inline-block;
    margin-top: 14px;
  }

  .klima-dopyt__heading,
  .klima-dopyt__step-head h3 {
    font-size: 25px;
  }

  .klima-dopyt__options,
  .klima-dopyt__fields {
    grid-template-columns: 1fr;
  }

  .klima-dopyt__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .klima-dopyt__btn {
    width: 100%;
  }
}
