.cbp {
  --cbp-accent: #fff;
  --cbp-accent-hover: #d9d6d6;
  --cbp-field: #fff;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s ease, visibility 0s linear .25s;
  font-family: inherit;
}
.cbp.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity .25s ease;
}
.cbp *, .cbp *::before, .cbp *::after { box-sizing: border-box; }

.cbp__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(2px);
}

.cbp__dialog {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px 48px;
  width: 100%;
  max-width: 920px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 44px 34px 40px 42px;
  border-radius: 6px;
  color: #fff;
  background: radial-gradient(120% 140% at 100% 100%, #3a3a3a 0%, #121212 45%, #000 100%);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  transform: translateY(16px);
  transition: transform .25s ease;
}
.cbp.is-open .cbp__dialog { transform: none; }

.cbp__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  opacity: .85;
}
.cbp__close:hover { opacity: 1; }

.cbp__title {
  margin: 0 0 40px;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 500;
}
.cbp__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.cbp__form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cbp__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cbp__field { display: block; }
.cbp__field input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--cbp-field);
  color: #111;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s;
}
.cbp__field input::placeholder { color: #9a9ca3; }
.cbp__field input:focus { border-color: var(--cbp-accent); }
.cbp__field input.is-invalid { border-color: #ff4d4f; }

.cbp__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.cbp__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 10px; }
.cbp__label { width: 100%; font-size: 15px; font-weight: 500; }
.cbp__radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: 16px; }
.cbp__radio input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  border: 0;
  cursor: pointer;
}
.cbp__radio input:checked { box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px #111; }
.cbp__radio input:focus-visible { outline: 2px solid var(--cbp-accent); outline-offset: 2px; }

.cbp__submit {
  height: 50px;
  margin-top: 14px;
  border: 0;
  border-radius: 6px;
  background: var(--cbp-accent);
  color: black;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background .15s, opacity .15s;
}
.cbp__submit:hover { background: var(--cbp-accent-hover); }
.cbp__submit:disabled { opacity: .6; cursor: default; }

.cbp__agree { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 600; line-height: 1.35; cursor: pointer; }
.cbp__agree input { flex: none; width: 14px; height: 14px; margin: 2px 0 0; accent-color: var(--cbp-accent); }
.cbp__agree a { color: var(--cbp-accent); text-decoration: none; }
.cbp__agree a:hover { text-decoration: underline; }
.cbp__agree.is-invalid span { color: #ff7a7c; }

.cbp__error { color: #ff7a7c; font-size: 14px; }

.cbp__success { grid-column: 2; align-self: center; }
.cbp__success .cbp__title { margin-bottom: 12px; }

html.cbp-lock { overflow: hidden; }

@media (max-width: 760px) {
  .cbp__dialog { grid-template-columns: 1fr; gap: 20px; padding: 36px 20px 24px; }
  .cbp__title { margin-bottom: 12px; font-size: 24px; padding-right: 28px; }
  .cbp__row { grid-template-columns: 1fr; gap: 14px; }
  .cbp__success { grid-column: 1; }
}
