/* Source callback geometry; scoped to the independently implemented dialog. */
#callback.modal {
  z-index: 10000001;
  display: block;
  padding: 0 20px;
  align-items: center;
  background: rgb(0 0 0 / 60%);
}
#callback .modal-panel {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  margin: 0 auto;
  transform: translateY(-50%);
  flex: none;
  width: 560px;
  max-width: calc(100% - 40px);
  padding: 40px 45px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: #000;
}
#callback-title {
  margin: 0 0 24px;
  font: 400 20px/1.55 Inter, Arial, sans-serif;
  text-align: center;
}
#callback .lead-form { margin: 0; }
#callback .callback-name-field {
  position: relative;
  width: 100%;
  margin-bottom: 25px;
}
#callback-name {
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 60px;
  margin: 0;
  padding: 26px 20px 10px;
  border: 1px solid #c9c9c9;
  border-radius: 2px;
  background: transparent;
  color: #000;
  font: 400 16px/1.33 Inter, Arial, sans-serif;
}
#callback .callback-floating-label {
  position: absolute;
  top: 22px;
  left: 20px;
  width: calc(100% - 40px);
  height: 17px;
  overflow: hidden;
  color: #000;
  opacity: .5;
  font: 400 16px/1 Inter, Arial, sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  transform: translateZ(0);
  transform-origin: left;
  transition: transform .2s linear;
}
#callback-name:focus + .callback-floating-label,
#callback-name:not(:placeholder-shown) + .callback-floating-label {
  width: 100%;
  text-overflow: inherit;
  transform: translateY(-100%) scale(.7);
}
#callback .phone-field {
  box-sizing: border-box;
  width: 100%;
  height: 60px;
  margin: 0 0 25px;
  padding: 0 20px;
  border: 1px solid #c9c9c9;
  border-radius: 2px;
  background: transparent;
  color: #000;
  gap: 0;
  font: 400 16px/1.33 Inter, Arial, sans-serif;
}
#callback .phone-field input[type="tel"] {
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #000;
  background: transparent;
  font: inherit;
}
#callback .phone-field input[type="tel"]::placeholder { color: #000; opacity: .5; }
#callback .consent {
  --consent-offset: -1px;
  display: flex;
  align-items: start;
  box-sizing: content-box;
  width: 100%;
  margin: 0 0 25px;
  padding: 1px 0 0;
  gap: 10px;
  color: #000;
  font: 400 15px/1.2 Inter, Arial, sans-serif;
}
#callback .consent > span { min-width: 0; word-break: break-word; }
#callback .consent input[type="checkbox"] {
  appearance: none;
  position: relative;
  flex: none;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin: var(--consent-offset) 0 0;
  border: 2px solid #000;
  border-radius: 0;
  color: #000;
  background: transparent;
  opacity: .6;
  cursor: pointer;
}
#callback .consent input[type="checkbox"]:checked { opacity: 1; }
#callback .consent input[type="checkbox"]::after { content: none; }
#callback .consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  box-sizing: content-box;
  width: 8px;
  height: 3px;
  border: solid #000;
  border-width: 0 0 2px 2px;
  transform: translate(-50%, -70%) rotate(-45deg);
}
#callback .consent a { color: #9680ff; }
#callback .submit {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 18.8px 60px;
  border: 0;
  border-radius: 2px;
  background: #9680ff;
  color: #fff;
  box-shadow: none;
  font: 600 16px/1.4 Inter, Arial, sans-serif;
  text-transform: uppercase;
  transform: translateZ(0);
}
#callback .submit:hover { background: #9680ff; }
#callback .modal-close {
  position: fixed;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: block;
  box-sizing: content-box;
  width: 23px;
  height: 23px;
  padding: 10px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0;
}
#callback .modal-close svg { display: block; width: 23px; height: 23px; }
#callback .modal-close:has(svg)::before,
#callback .modal-close:has(svg)::after { content: none; }
#callback .modal-close:not(:has(svg))::before,
#callback .modal-close:not(:has(svg))::after {
  left: 6.5px;
  top: 20.5px;
  width: 30px;
  height: 2px;
}
#callback-name:focus-visible,
#callback .consent input:focus-visible { outline: 2px solid #2015ff; outline-offset: 4px; }
@media (max-width: 1200px) {
  #callback .consent { --consent-offset: -1.6px; padding-top: 1.6px; font-size: 14px; }
  #callback .submit { padding-left: 45px; padding-right: 45px; }
}
@media (max-width: 640px) {
  #callback .modal-panel { padding: 20px; }
  #callback-title { margin-bottom: 14px; line-height: 1.45; }
  #callback-name { height: 50px; padding: 22px 20px 10px; }
  #callback .callback-floating-label { top: 17px; }
  #callback .phone-field { height: 50px; padding-left: 14px; padding-right: 14px; }
  #callback .consent { --consent-offset: -2.8px; padding-top: 2.8px; font-size: 12px; }
  #callback .submit { padding: 13.8px 30px; }
}
@media (max-width: 560px) {
  #callback.modal { display: block; padding: 0; }
  #callback .modal-panel {
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    padding: 70px 20px 20px;
  }
  #callback::before {
    content: "";
    position: fixed;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: #000;
  }
  #callback .modal-close { top: 7px; right: 10px; width: 16px; height: 16px; }
  #callback .modal-close svg { width: 16px; height: 16px; }
  #callback .modal-close:not(:has(svg))::before,
  #callback .modal-close:not(:has(svg))::after { left: 7.5px; top: 17px; width: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  #callback .callback-floating-label { transition: none; }
}
