/* Consult popup module */
.vf-consult-popup {
  z-index: 120;
  padding: clamp(10px, 2.5vw, 22px);
  background: rgba(4, 15, 32, .7);
  backdrop-filter: blur(8px);
}

.vf-consult-popup-card {
  width: min(640px, 100%);
  max-height: calc(100vh - 24px);
  border-radius: 8px;
  overflow: auto;
  box-shadow: 0 26px 72px rgba(4, 15, 32, .26);
}

.vf-consult-popup-body {
  position: relative;
  padding: clamp(24px, 4vw, 36px) clamp(18px, 5vw, 38px) 28px;
}

.vf-consult-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  float: none;
  width: 34px;
  height: 34px;
  border: 1px solid #dce4ee;
  background: #fff;
  color: #2f3b4f;
  font-size: 14px;
}

.vf-consult-popup-brand {
  display: flex;
  justify-content: center;
  min-height: 34px;
  margin-bottom: 10px;
}

.vf-consult-popup-brand img {
  max-width: 156px;
  max-height: 34px;
  object-fit: contain;
}

.vf-consult-popup-brand span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.vf-consult-popup-head {
  text-align: center;
  margin-bottom: 20px;
}

.vf-consult-popup-head h2 {
  margin: 0 0 8px;
  color: #333b48;
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.14;
  text-transform: uppercase;
  letter-spacing: 0;
}

.vf-consult-popup-head p {
  max-width: 520px;
  margin: 0 auto;
  color: #444b58;
  font-size: 15px;
  line-height: 1.62;
}

.vf-consult-popup-form .field {
  margin-bottom: 12px;
}

.vf-consult-popup-form .field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.vf-consult-popup-form .field input {
  min-height: 50px;
  border-radius: 4px;
  border-color: #d7dee8;
  padding: 12px 15px;
  color: #333b48;
  font-size: 15px;
  font-weight: 600;
}

.vf-consult-popup-form .field input::placeholder {
  color: #343a46;
  opacity: .8;
}

.vf-consult-popup-form .field label span {
  color: #1d63ff;
}

.vf-consult-popup-interest {
  margin-top: 4px;
}

.vf-consult-popup-interest h3 {
  margin: 0 0 12px;
  color: #333b48;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}

.vf-consult-popup-models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 12px 16px;
  margin-bottom: 18px;
}

.vf-consult-popup-models label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #333b48;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}

.vf-consult-popup-models input {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  appearance: none;
  border: 1px solid #dce2ea;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 6px #fff;
}

.vf-consult-popup-models input:checked {
  border-color: #b9d0ff;
  background: #2f6cff;
  box-shadow: inset 0 0 0 6px #fff, 0 0 0 4px #d8e4ff;
}

.vf-consult-popup-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #c62828;
  font-size: 13px;
}

.vf-consult-popup-terms {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  margin: 2px 0 18px;
  color: #303844;
  font-size: 13px;
  line-height: 1.5;
}

.vf-consult-popup-terms input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #3266ff;
}

.vf-consult-popup-terms a {
  color: #155dff;
  text-decoration: none;
}

.vf-consult-popup-submit {
  width: 100%;
  min-height: 48px;
  justify-content: center;
  border-radius: 999px;
  font-size: 14px;
  text-transform: uppercase;
}

.vf-consult-popup-form .form-message {
  min-height: 18px;
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
}

.vf-consult-popup-form .form-message:empty {
  display: none;
}

.vf-consult-popup-form .form-message.is-error {
  color: #c62828;
}

.vf-consult-popup-success[hidden],
.vf-consult-popup-fields[hidden] {
  display: none !important;
}

.vf-consult-popup-success {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 28px 0 8px;
  text-align: center;
}

.vf-consult-popup-success-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f7ed;
  color: #128443;
  font-size: 20px;
}

.vf-consult-popup-success h3 {
  margin: 0;
  color: #333b48;
  font-size: clamp(24px, 4vw, 34px);
  text-transform: uppercase;
}

.vf-consult-popup-success p {
  max-width: 520px;
  margin: 0;
  color: #4d5968;
  font-size: 15px;
  line-height: 1.58;
}

body.vf-consult-popup-open {
  overflow: hidden;
}

body.dark .vf-consult-popup {
  background: rgba(2, 8, 20, .78);
}

body.dark .vf-consult-popup-card {
  background:
    radial-gradient(circle at 18% 14%, rgba(88, 166, 255, .2), transparent 17rem),
    #0c1f38;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .42);
}

body.dark .vf-consult-popup-close {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #eaf3ff;
}

body.dark .vf-consult-popup-brand img {
  filter: brightness(0) invert(1);
  opacity: .95;
}

body.dark .vf-consult-popup-brand span,
body.dark .vf-consult-popup-head h2,
body.dark .vf-consult-popup-interest h3,
body.dark .vf-consult-popup-models label,
body.dark .vf-consult-popup-success h3 {
  color: #f4f9ff;
}

body.dark .vf-consult-popup-head p,
body.dark .vf-consult-popup-terms,
body.dark .vf-consult-popup-success p {
  color: #c9daf0;
}

body.dark .vf-consult-popup-form .field input {
  background: rgba(7, 20, 38, .88);
  border-color: rgba(255, 255, 255, .18);
  color: #edf6ff;
}

body.dark .vf-consult-popup-form .field input::placeholder {
  color: #b8c9df;
  opacity: .95;
}

body.dark .vf-consult-popup-models input {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 6px #0c1f38;
}

body.dark .vf-consult-popup-models input:checked {
  border-color: rgba(155, 215, 255, .65);
  background: #3c7df6;
  box-shadow: inset 0 0 0 6px #0c1f38, 0 0 0 4px rgba(88, 166, 255, .25);
}

body.dark .vf-consult-popup-terms input {
  accent-color: #58a6ff;
}

body.dark .vf-consult-popup-terms a {
  color: #9bd7ff;
}

body.dark .vf-consult-popup-form .form-message.is-error {
  color: #ffb4b4;
}

body.dark .vf-consult-popup-success-icon {
  background: rgba(22, 160, 93, .2);
  color: #6be39f;
}

@media (max-width: 720px) {
  .vf-consult-popup-card {
    max-height: calc(100dvh - 16px);
  }

  .vf-consult-popup-body {
    padding: 22px 16px;
  }

  .vf-consult-popup-brand {
    justify-content: flex-start;
    padding-right: 44px;
  }

  .vf-consult-popup-head {
    text-align: left;
    margin-bottom: 16px;
  }

  .vf-consult-popup-head h2 {
    font-size: 24px;
  }

  .vf-consult-popup-head p {
    font-size: 14px;
    line-height: 1.55;
  }

  .vf-consult-popup-form .field input {
    min-height: 48px;
    padding: 11px 13px;
    font-size: 14px;
  }

  .vf-consult-popup-models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px 12px;
  }

  .vf-consult-popup-models label {
    font-size: 13.5px;
  }

  .vf-consult-popup-models input {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    box-shadow: inset 0 0 0 5px #fff;
  }

  .vf-consult-popup-models input:checked {
    box-shadow: inset 0 0 0 5px #fff, 0 0 0 3px #d8e4ff;
  }

  .vf-consult-popup-terms {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    font-size: 12px;
  }

  .vf-consult-popup-terms input {
    width: 20px;
    height: 20px;
  }
}

@media (min-width: 721px) and (max-height: 780px) {
  .vf-consult-popup-body {
    padding: 22px 34px 24px;
  }

  .vf-consult-popup-brand {
    min-height: 34px;
    margin-bottom: 6px;
  }

  .vf-consult-popup-brand img {
    max-height: 30px;
  }

  .vf-consult-popup-head {
    margin-bottom: 14px;
  }

  .vf-consult-popup-head h2 {
    margin-bottom: 6px;
    font-size: 30px;
  }

  .vf-consult-popup-head p {
    font-size: 14px;
    line-height: 1.42;
  }

  .vf-consult-popup-form .field {
    margin-bottom: 12px;
  }

  .vf-consult-popup-form .field input {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .vf-consult-popup-interest h3 {
    margin-bottom: 9px;
    font-size: 15px;
  }

  .vf-consult-popup-models {
    gap: 10px 14px;
    margin-bottom: 14px;
  }

  .vf-consult-popup-models label {
    font-size: 13.5px;
  }

  .vf-consult-popup-models input {
    width: 20px;
    height: 20px;
    flex-basis: 20px;
    box-shadow: inset 0 0 0 5px #fff;
  }

  .vf-consult-popup-models input:checked {
    box-shadow: inset 0 0 0 5px #fff, 0 0 0 3px #d8e4ff;
  }

  .vf-consult-popup-terms {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    margin-bottom: 14px;
    font-size: 12px;
  }

  .vf-consult-popup-terms input {
    width: 20px;
    height: 20px;
  }

  .vf-consult-popup-submit {
    min-height: 44px;
    font-size: 13px;
  }
}
