.ppcf-lock {
  overflow: hidden;
}

.ppcf-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: #1f7ae0;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.ppcf button.ppcf__open,
.ppcf .ppcf__open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 15px 30px 15px 30px !important;
  border-radius: 10px !important;
  cursor: pointer;
}

.ppcf__open-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.ppcf__open-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.ppcf-button:hover {
  background: #1765bd;
}

.ppcf-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ppcf-button--secondary {
  background: #e9eef5;
  color: #1e2a37;
}

.ppcf-button--secondary:hover {
  background: #dbe4ef;
}

.ppcf-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ppcf-modal[aria-hidden="false"] {
  display: flex;
}

.ppcf-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 31, 0.68);
}

.ppcf-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.ppcf-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f8;
  color: #1f2937;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.ppcf-form {
  padding: 28px 24px;
}

.ppcf-form[hidden],
.ppcf-success[hidden] {
  display: none;
}

.ppcf-form__step {
  display: none;
}

.ppcf-form__step.is-active {
  display: block;
}

.ppcf-form__title {
  margin: 0 36px 16px 0;
  color: #111827;
  font-size: 24px;
  line-height: 1.2;
}

.ppcf-form__text {
  margin: 0 0 16px;
  color: #4b5563;
  font-size: 15px;
}

.ppcf-field {
  display: block;
  margin-bottom: 10px;
}

.ppcf-field__control {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ppcf-field__control::placeholder {
  color: #8b97a8;
}

.ppcf-field__control:focus {
  border-color: #1f7ae0;
  box-shadow: 0 0 0 3px rgba(31, 122, 224, 0.16);
}

.ppcf-field__control.is-invalid {
  border-color: #d93025;
}

.ppcf-field--hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ppcf-slider {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 54px;
  margin: 18px 0;
  padding: 4px 58px;
  border-radius: 999px;
  background: #edf3fb;
  color: #435266;
  font-size: 14px;
  font-weight: 600;
  user-select: none;
  overflow: hidden;
}

.ppcf-slider::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #d8f4e3;
  transition: width 0.2s ease;
}

.ppcf-slider.is-passed::before {
  width: 100%;
}

.ppcf-slider__text {
  position: relative;
  z-index: 1;
  width: 100%;
  text-align: center;
}

.ppcf-slider__handle {
  position: absolute;
  z-index: 2;
  left: 4px;
  top: 4px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #1f7ae0;
  box-shadow: 0 8px 18px rgba(31, 122, 224, 0.26);
  cursor: grab;
  touch-action: none;
}

.ppcf-slider__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: translate(-65%, -50%) rotate(45deg);
}

.ppcf-slider__handle.is-dragging {
  cursor: grabbing;
}

.ppcf-slider.is-passed .ppcf-slider__handle {
  background: #1a9b53;
}

.ppcf-form__policy {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.ppcf-form__actions {
  display: flex;
  gap: 12px;
}

.ppcf-form__notice {
  min-height: 22px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
}

.ppcf-form__notice.is-info {
  color: #1f7ae0;
}

.ppcf-form__notice.is-success {
  color: #1a9b53;
}

.ppcf-form__notice.is-error {
  color: #d93025;
}

.ppcf-success {
  padding: 46px 34px 38px;
  text-align: center;
  outline: none;
}

.ppcf-success__icon {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #1a9b53;
  box-shadow: 0 14px 30px rgba(26, 155, 83, 0.22);
}

.ppcf-success__icon::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 27px;
  width: 17px;
  height: 29px;
  border-right: 5px solid #fff;
  border-bottom: 5px solid #fff;
  transform: rotate(45deg);
}

.ppcf-success__title {
  margin: 0 0 10px;
  color: #111827;
  font-size: 28px;
  line-height: 1.2;
}

.ppcf-success__text {
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 17px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .ppcf-modal {
    padding: 12px;
  }

  .ppcf-form,
  .ppcf-success {
    padding: 28px 20px;
  }

  .ppcf-form__title,
  .ppcf-success__title {
    font-size: 24px;
  }

  .ppcf-form__actions {
    flex-direction: column;
  }

  .ppcf-button {
    width: 100%;
  }

}
