/* VIQQ custom lead form - visual parity with legacy CF7 popup */

.viqq-lead-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.viqq-lead-modal.is-open {
  display: flex;
}

.viqq-lead-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.viqq-lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #1a1a1a;
  border-radius: 16px;
  padding: 28px 40px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.viqq-lead-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.viqq-lead-form.cust_form p {
  margin: 0;
}

.viqq-lead-form .form_title {
  font-size: 26px;
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  color: #fff;
}

.viqq-lead-form .form_field {
  margin-bottom: 20px;
}

.viqq-lead-form .viqq-lead-input,
.viqq-lead-form textarea.viqq-lead-input {
  width: 100%;
  background: #292929;
  color: #bdbdbd;
  border: 0;
  padding: 15px;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.viqq-lead-form .viqq-lead-input:focus,
.viqq-lead-form textarea.viqq-lead-input:focus {
  outline: none;
}

.viqq-lead-form .viqq-lead-input::placeholder,
.viqq-lead-form textarea.viqq-lead-input::placeholder {
  color: #bdbdbd;
}

.viqq-lead-form .form_area textarea {
  min-height: 120px;
  resize: vertical;
}

.viqq-lead-form .form_row {
  display: flex;
  gap: 10px;
}

.viqq-lead-form .form_name {
  width: calc(40% - 5px);
}

.viqq-lead-form .form_mail {
  width: calc(60% - 5px);
}

.viqq-lead-form .form_file {
  width: 1px;
  height: 1px;
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.viqq-lead-form .form_file_label {
  padding: 15px 20px;
  border: 2px dashed #fff;
  border-radius: 10px;
  background: transparent;
  color: #bdbdbd;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  min-height: 80px;
  margin-bottom: 25px;
  cursor: pointer;
  box-sizing: border-box;
}

.viqq-lead-form .form_file_label img.paper_clip {
  width: 16px;
  filter: invert(1);
  margin: unset;
}

.viqq-lead-form .form_phone {
  margin-bottom: 20px;
}

.viqq-lead-form .form_phone .form_field {
  position: relative;
}

.viqq-lead-form .form_phone .viqq-lead-input {
  padding-left: 40px;
}

.viqq-lead-form .form_phone .form_field::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: url("/wp-content/uploads/2025/02/phonealt1.svg") no-repeat center center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: 1;
}

.viqq-lead-form .form_submit {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.viqq-lead-form .viqq-lead-submit {
  background: rgb(26, 102, 255);
  color: #fff;
  border-radius: 20px;
  padding: 15px 25px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: 100%;
  max-width: 100%;
}

.viqq-lead-form .viqq-lead-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.viqq-lead-form .viqq-lead-status {
  min-height: 1.2em;
  font-size: 13px;
  color: #9ad29a;
  text-align: center;
}

.viqq-lead-form .viqq-lead-status.is-error {
  color: #ff8d8d;
}

.viqq-lead-form .viqq-lead-accept {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.viqq-lead-form .viqq-lead-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
}

.viqq-lead-form .viqq-lead-check input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.viqq-lead-form .viqq-lead-check a {
  color: inherit;
  text-decoration: underline;
}

.viqq-lead-form .form_row-utm {
  display: none;
}

@media (max-width: 640px) {
  .viqq-lead-modal__dialog {
    padding: 24px 16px 18px;
  }

  .viqq-lead-form .form_row,
  .viqq-lead-form .form_phone {
    flex-direction: column;
  }

  .viqq-lead-form .form_name,
  .viqq-lead-form .form_mail {
    width: 100%;
  }

  .viqq-lead-form .form_title {
    font-size: 22px;
  }
}

/* Header trigger is a <button> now - keep visual of old div control */
button.btn-consultation {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  font: inherit;
  cursor: pointer;
  background: transparent;
  color: inherit;
}

/* Callback modal (name + phone) */
.viqq-callback-modal__dialog {
  width: min(420px, 100%);
  background: #111;
  padding: 28px 24px 22px;
}

.viqq-callback-form__title {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 8px;
  color: #fff;
}

.viqq-callback-form .ca_group {
  padding: 10px 0;
}

.viqq-callback-form .ca_input {
  width: 100%;
  padding: 17px 15px;
  border-radius: 16px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  box-sizing: border-box;
  font: inherit;
}

.viqq-callback-form .ca_input:focus {
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.viqq-callback-form .ca_btn {
  padding: 15px 35px;
  background: #247cff;
  color: #fff;
  border-radius: 26px;
  border: none;
  cursor: pointer;
  font: inherit;
}

.viqq-callback-form .ca_chb {
  font-size: 12px;
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.75);
}

.viqq-callback-form .ca_chb label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.viqq-callback-form .ca_chb a {
  color: #129ce6;
}

.viqq-callback-form .viqq-callback-status {
  margin-top: 8px;
  font-size: 13px;
  color: #9ad29a;
}

.viqq-callback-form .viqq-callback-status.is-error {
  color: #ff8d8d;
}

.viqq-callback-form .ca_btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

/* Hide legacy empty wpbean button wrappers when shortcode stripped */
.btn-consultation .wpbean_fopo_popup_wrapper:empty {
  display: none;
}
