.mabilex-quote-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  overflow-y: auto;
  background: rgba(4, 15, 27, .76);
  backdrop-filter: blur(5px);
}

.mabilex-quote-modal.is-open {
  display: flex;
}

body.mabilex-quote-modal-open {
  overflow: hidden;
}

.mabilex-quote-dialog {
  position: relative;
  width: min(100%, 690px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid #dce1e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 65px rgba(0, 0, 0, .3);
  color: #142130;
  transform: translateY(-10px);
  transition: transform .22s cubic-bezier(.23, 1, .32, 1);
}

.mabilex-quote-modal.is-open .mabilex-quote-dialog {
  transform: translateY(0);
}

.mabilex-quote-close {
  position: absolute;
  z-index: 2;
  top: 17px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #dce1e6;
  border-radius: 50%;
  background: #fff;
  color: #142130;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.mabilex-quote-close:hover,
.mabilex-quote-close:focus-visible {
  border-color: var(--red, #e7131c);
  color: var(--red, #e7131c);
  outline: 0;
}

.mabilex-quote-header {
  padding: 32px 42px 22px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(112deg, #071a2c 0%, #0b2439 100%);
  color: #fff;
}

.mabilex-quote-eyebrow {
  margin: 0 0 8px;
  color: #f21a22;
  font-family: var(--display, Arial, sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.mabilex-quote-header h2 {
  margin: 0;
  font-family: var(--display, Arial, sans-serif);
  font-size: 32px;
  line-height: 1;
  text-transform: uppercase;
}

.mabilex-quote-product {
  min-height: 18px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.mabilex-quote-body {
  padding: 28px 42px 34px;
}

.mabilex-quote-body .wpcf7-form > p {
  margin: 0 0 18px;
}

.mabilex-quote-body .wpcf7-form > p:last-of-type {
  margin-bottom: 0;
}

.mabilex-quote-body .contact-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  margin-bottom: 18px;
}

.mabilex-quote-body .contact-field-row > p {
  display: contents;
}

.mabilex-quote-body .contact-field-row > p > br,
.mabilex-quote-body .wpcf7-form > p > br,
.mabilex-quote-body label > br {
  display: none;
}

.mabilex-quote-body label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #142130;
  font-size: 13px;
  font-weight: 700;
}

.mabilex-quote-body .wpcf7-form-control-wrap {
  display: block;
}

.mabilex-quote-body input:not([type="checkbox"]):not([type="submit"]),
.mabilex-quote-body select,
.mabilex-quote-body textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #cfd7df;
  border-radius: 7px;
  background: #fff;
  color: #1e2936;
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.mabilex-quote-body input:not([type="checkbox"]):not([type="submit"]),
.mabilex-quote-body select {
  height: 56px;
  padding: 0 16px;
}

.mabilex-quote-body textarea {
  min-height: 128px;
  padding: 15px 16px;
  resize: vertical;
}

.mabilex-quote-body input:focus,
.mabilex-quote-body select:focus,
.mabilex-quote-body textarea:focus {
  border-color: var(--red, #e7131c);
  box-shadow: 0 0 0 3px rgba(231, 19, 28, .1);
}

.mabilex-quote-body input::placeholder,
.mabilex-quote-body textarea::placeholder {
  color: #7e8b99;
  opacity: 1;
}

.mabilex-quote-body .contact-consent,
.mabilex-quote-body .wpcf7-acceptance {
  margin: 0;
}

.mabilex-quote-body .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.mabilex-quote-body .wpcf7-acceptance label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}

.mabilex-quote-body .wpcf7-acceptance input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--red, #e7131c);
}

.mabilex-quote-body input.contact-submit,
.mabilex-quote-body input.wpcf7-submit {
  box-sizing: border-box;
  width: 100%;
  min-height: 62px;
  padding: 0 24px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(100deg, #dc0f17, #f21921);
  color: #fff;
  font-family: var(--display, Arial, sans-serif);
  font-size: 19px;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 1;
  transition: transform .18s ease, background .18s ease;
}

.mabilex-quote-body input.contact-submit:hover,
.mabilex-quote-body input.wpcf7-submit:hover {
  background: linear-gradient(100deg, #c80e16, #e7131c);
  transform: translateY(-2px);
}

.mabilex-quote-body .wpcf7-spinner {
  display: none;
}

.mabilex-quote-body .wpcf7-not-valid-tip {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 400;
}

.mabilex-quote-body .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 560px) {
  .mabilex-quote-modal {
    align-items: flex-start;
    padding: 10px;
  }

  .mabilex-quote-dialog {
    max-height: calc(100vh - 20px);
  }

  .mabilex-quote-header {
    padding: 27px 22px 19px;
  }

  .mabilex-quote-header h2 {
    font-size: 27px;
  }

  .mabilex-quote-body {
    padding: 24px 22px 28px;
  }

  .mabilex-quote-body .contact-field-row {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .mabilex-quote-close {
    top: 12px;
    right: 13px;
  }
}
