.quick-consult-launch {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 17px 21px;
  border: 1px solid #ffffff38;
  border-radius: 100px;
  background: #1b365b;
  color: #fff;
  box-shadow: 0 8px 28px #142f5c30;
  font-size: 15px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
.quick-consult-launch:hover {
  background: #2864d4;
  transform: translateY(-3px);
}
.quick-consult-launch svg {
  width: 24px;
  height: 24px;
}
.quick-consult-launch b {
  margin-left: 5px;
  font-weight: 400;
}
body:has(dialog[open]) .quick-consult-launch {
  visibility: hidden;
}
.quick-consult-is-open {
  overflow: hidden;
}
.quick-consult-dialog {
  position: fixed;
  inset: auto 26px 94px auto;
  width: min(400px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 118px);
  margin: 0;
  padding: 0;
  border: 1px solid #dbe4f1;
  border-radius: 18px;
  background: #fff;
  color: #243b5b;
  box-shadow: 0 24px 70px #12264340;
  overflow-y: auto;
  scrollbar-width: thin;
}
.quick-consult-dialog::backdrop {
  background: #132b4859;
}
.quick-consult-dialog [hidden] {
  display: none !important;
}
.quick-consult-dialog[open] {
  animation: quick-consult-enter 0.28s ease-out backwards;
}
.quick-consult-heading {
  position: relative;
  padding: 26px 27px 23px;
  background: linear-gradient(125deg, #173151, #254a78);
  color: #fff;
}
.quick-consult-heading > p:first-child {
  font-size: 13px;
  color: #b7cff4;
  letter-spacing: 1px;
}
.quick-consult-heading h2 {
  margin: 13px 0 12px;
  font-size: 27px;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.9px;
}
.quick-consult-heading > p:last-of-type {
  font-size: 13px;
  line-height: 1.7;
  color: #d6e3f5;
}
.quick-consult-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  background: #ffffff09;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}
.quick-consult-body {
  padding: 23px 26px 0;
}
.quick-consult-body form > label,
.quick-consult-fields label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 550;
}
.quick-consult-fields {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 12px;
  margin-top: 17px;
}
.quick-consult-body input:not([type='hidden']):not([type='checkbox']) {
  min-width: 0;
  width: 100%;
  height: 46px;
  padding: 10px 11px;
  border: 1px solid #cfd9e6;
  border-radius: 6px;
  background: #fff;
  color: #243b5b;
  font-size: 15px;
  font-weight: 400;
  outline-offset: 3px;
}
.quick-consult-body input::placeholder {
  color: #6c7c92;
  opacity: 1;
  font-size: 14px;
}
.quick-consult-selection {
  margin-bottom: 18px;
  padding: 12px;
  background: #eef4fd;
  color: #32609b;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.65;
}
.quick-consult-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.quick-consult-privacy {
  margin-top: 21px;
  font-size: 13px;
  color: #576b85;
}
.quick-consult-privacy summary {
  cursor: pointer;
  padding: 5px 0;
}
.quick-consult-privacy p {
  padding: 10px 0;
  line-height: 1.8;
}
.quick-consult-body form > .quick-consult-consent {
  display: flex;
  align-items: start;
  gap: 8px;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
}
.quick-consult-consent input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: #2864d4;
}
.quick-consult-consent b {
  font-size: 13px;
  color: #2864d4;
  margin-left: 3px;
}
.quick-consult-feedback {
  color: #9a3029;
  font-size: 13px;
  line-height: 1.7;
}
.quick-consult-feedback:not(:empty) {
  margin-block: 12px;
}
.quick-consult-submit {
  display: block;
  width: 100%;
  min-height: 49px;
  margin-top: 20px;
  padding: 13px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #2864d4;
  font-size: 15px;
  font-weight: 600;
}
.quick-consult-submit:disabled {
  background: #e5ebf4;
  color: #536984;
  cursor: wait;
}
.quick-consult-retry {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid #ccd9ec;
  color: #285da7;
  background: #f7faff;
  border-radius: 7px;
  font-size: 14px;
}
.quick-consult-note {
  margin-top: 12px;
  color: #5b6e86;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}
.quick-consult-phone {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 21px 0 23px;
  margin-top: 20px;
  border-top: 1px solid #e2e8f0;
  font-size: 13px;
  color: #536984;
}
.quick-consult-phone strong {
  font-size: 15px;
  color: #264e83;
  font-weight: 600;
}
.quick-consult-success > span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 20px;
  background: #eaf3ff;
  color: #2864d4;
  border-radius: 50%;
  font-size: 25px;
}
.quick-consult-success h3 {
  font-size: 22px;
  line-height: 1.45;
  letter-spacing: -0.6px;
}
.quick-consult-success p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.8;
  color: #536984;
}
.quick-consult-success dl {
  margin-top: 22px;
  padding: 15px;
  border-radius: 7px;
  background: #f1f5fc;
  font-size: 13px;
  line-height: 1.7;
}
.quick-consult-success dd {
  margin-top: 6px;
  font-weight: 600;
  color: #2d568a;
  overflow-wrap: anywhere;
}
.quick-consult-dialog :focus-visible,
.quick-consult-launch:focus-visible {
  outline: 3px solid #4a88ef;
  outline-offset: 3px;
}
@keyframes quick-consult-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 700px) {
  .quick-consult-launch {
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    padding: 13px 17px;
    font-size: 14px;
  }
  .quick-consult-launch svg {
    width: 22px;
    height: 22px;
  }
  .view-detail .quick-consult-launch {
    bottom: calc(var(--detail-actions-height, 72px) + env(safe-area-inset-bottom) + 18px);
  }
  .quick-consult-dialog {
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 32px - env(safe-area-inset-bottom));
    border-radius: 16px;
  }
  .quick-consult-heading {
    padding: 24px;
  }
  .quick-consult-body {
    padding: 21px 22px 0;
  }
  .quick-consult-heading h2 {
    font-size: 26px;
  }
  .quick-consult-body input:not([type='hidden']):not([type='checkbox']) {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quick-consult-dialog[open] {
    animation: none;
  }
  .quick-consult-launch {
    transition: none;
  }
}
