:root {
  --quote-blue: #4285f4;
  --quote-blue-dark: #195fce;
  --quote-ink: #101828;
  --quote-muted: #5f6c7b;
  --quote-line: #d9e1ec;
  --quote-soft: #f4f7fb;
  --quote-white: #fff;
  --quote-accent: #ffb000;
}

.quote-launcher[hidden],
.quote-assistant[hidden],
.quote-step[hidden],
.quote-service__badge[hidden],
.quote-button[hidden] {
  display: none !important;
}

.quote-launcher {
  position: fixed;
  right: 24px;
  bottom: 174px;
  z-index: 12000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
}

.quote-launcher.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.quote-launcher__button {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 8px 18px 8px 9px;
  border: 0;
  border-radius: 999px;
  color: var(--quote-white);
  background: linear-gradient(125deg, #174ea6 0%, var(--quote-blue) 55%, #7968ed 100%);
  box-shadow: 0 14px 30px rgba(24, 79, 167, 0.36);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quote-launcher__button:hover,
.quote-launcher__button:focus-visible {
  color: var(--quote-white);
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(24, 79, 167, 0.46);
}

.quote-launcher__button:focus-visible {
  outline: 3px solid var(--quote-accent);
  outline-offset: 3px;
}

.quote-launcher__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-right: 10px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.17);
}

.quote-launcher__icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.quote-launcher__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 6px;
  width: 245px;
  padding: 12px 15px;
  border-radius: 12px;
  color: var(--quote-white);
  background: var(--quote-ink);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.25);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.quote-launcher__tooltip::after {
  position: absolute;
  right: -7px;
  bottom: 18px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 8px solid var(--quote-ink);
  content: "";
}

.quote-launcher.is-inviting .quote-launcher__tooltip,
.quote-launcher:hover .quote-launcher__tooltip,
.quote-launcher:focus-within .quote-launcher__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

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

.quote-assistant {
  position: fixed;
  inset: 0;
  z-index: 25000;
  display: grid;
  padding: 24px;
  place-items: center;
}

.quote-assistant__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 28, 0.76);
  backdrop-filter: blur(8px);
}

.quote-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
  width: min(1080px, 100%);
  height: min(750px, calc(100vh - 48px));
  height: min(750px, calc(100dvh - 48px));
  overflow: hidden;
  border-radius: 24px;
  background: var(--quote-white);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.38);
  animation: quoteDialogIn 0.32s ease both;
}

@keyframes quoteDialogIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
}

.quote-dialog__close {
  position: absolute;
  z-index: 4;
  top: 16px;
  right: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(16, 24, 40, 0.1);
  border-radius: 50%;
  place-items: center;
  color: var(--quote-ink);
  background: rgba(255, 255, 255, 0.94);
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.quote-dialog__close:hover,
.quote-dialog__close:focus-visible {
  color: var(--quote-blue-dark);
  border-color: var(--quote-blue);
}

.quote-dialog__close:focus-visible,
.quote-button:focus-visible,
.quote-choice input:focus-visible + .quote-choice__body,
.quote-service input:focus-visible + .quote-service__body,
.quote-field input:focus-visible,
.quote-field select:focus-visible,
.quote-field textarea:focus-visible,
.quote-consent input:focus-visible {
  outline: 3px solid rgba(66, 133, 244, 0.3);
  outline-offset: 2px;
}

.quote-dialog__visual {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #173b78;
}

.quote-dialog__visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-dialog__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 13, 28, 0.08) 15%, rgba(8, 25, 56, 0.92) 100%);
}

.quote-dialog__visual-copy {
  position: absolute;
  right: 34px;
  bottom: 38px;
  left: 34px;
  color: var(--quote-white);
}

.quote-dialog__visual-copy > span {
  display: inline-block;
  margin-bottom: 14px;
  color: #bcd4ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.quote-dialog__visual-copy strong {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.1;
}

.quote-dialog__visual-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.6;
}

.quote-dialog__content {
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 32px 42px 24px;
  flex-direction: column;
}

.quote-dialog__header {
  padding-right: 45px;
}

.quote-dialog__eyebrow {
  display: block;
  margin-bottom: 5px;
  color: var(--quote-blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.quote-dialog__header h2 {
  margin: 0 0 7px;
  color: var(--quote-ink);
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 750;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-transform: none;
}

.quote-dialog__header p {
  margin: 0;
  color: var(--quote-muted);
  font-size: 13px;
  line-height: 1.5;
}

.quote-progress {
  display: grid;
  margin: 20px 0 18px;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.quote-progress li {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  color: #8a96a8;
}

.quote-progress li:not(:last-child)::after {
  width: 100%;
  height: 2px;
  margin: 0 8px;
  background: #e6ebf2;
  content: "";
}

.quote-progress li.is-complete:not(:last-child)::after {
  background: var(--quote-blue);
}

.quote-progress li > span {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 1px solid #cbd4e0;
  border-radius: 50%;
  place-items: center;
  background: var(--quote-white);
  font-size: 11px;
  font-weight: 800;
}

.quote-progress li.is-current > span,
.quote-progress li.is-complete > span {
  color: var(--quote-white);
  border-color: var(--quote-blue);
  background: var(--quote-blue);
}

.quote-progress small {
  position: absolute;
  top: 29px;
  left: 0;
  display: none;
  font-size: 10px;
  white-space: nowrap;
}

.quote-progress li.is-current small {
  display: block;
  color: var(--quote-blue-dark);
  font-weight: 700;
}

.quote-form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.quote-step {
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 8px 5px 8px 0;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
}

.quote-step legend {
  width: auto;
  margin: 0 0 5px;
  padding: 0;
  border: 0;
  color: var(--quote-ink);
  font-size: 20px;
  font-weight: 750;
  line-height: 1.25;
}

.quote-step__intro {
  margin: 0 0 15px;
  color: var(--quote-muted);
  font-size: 13px;
  line-height: 1.45;
}

.quote-goals {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-choice,
.quote-service {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
}

.quote-choice input,
.quote-service input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.quote-choice__body {
  display: flex;
  min-height: 72px;
  padding: 11px 13px;
  align-items: center;
  border: 1px solid var(--quote-line);
  border-radius: 14px;
  background: var(--quote-white);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.quote-choice:hover .quote-choice__body {
  border-color: #9dbcf2;
  transform: translateY(-1px);
}

.quote-choice input:checked + .quote-choice__body {
  border-color: var(--quote-blue);
  background: #f0f6ff;
  box-shadow: inset 0 0 0 1px var(--quote-blue);
}

.quote-choice__icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin-right: 11px;
  flex: 0 0 38px;
  border-radius: 11px;
  place-items: center;
  color: var(--quote-blue-dark);
  background: #eaf2ff;
  font-size: 19px;
  font-weight: 700;
}

.quote-choice strong,
.quote-choice small {
  display: block;
}

.quote-choice strong {
  margin-bottom: 3px;
  color: var(--quote-ink);
  font-size: 13px;
  line-height: 1.2;
}

.quote-choice small {
  color: var(--quote-muted);
  font-size: 11px;
  line-height: 1.3;
}

.quote-recommendation {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-left: 3px solid var(--quote-blue);
  border-radius: 0 8px 8px 0;
  color: #27456f;
  background: #f0f6ff;
  font-size: 12px;
  line-height: 1.4;
}

.quote-services {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-service__body {
  position: relative;
  display: block;
  height: 108px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  background: #193456;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.quote-service:hover .quote-service__body {
  transform: translateY(-2px);
}

.quote-service input:checked + .quote-service__body {
  border-color: var(--quote-accent);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.2);
}

.quote-service.is-recommended .quote-service__body {
  border-color: #7fabf6;
}

.quote-service.is-recommended input:checked + .quote-service__body {
  border-color: var(--quote-accent);
}

.quote-service img,
.quote-service__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.quote-service img {
  object-fit: cover;
}

.quote-service__shade {
  background: linear-gradient(180deg, rgba(7, 20, 40, 0.08) 15%, rgba(7, 20, 40, 0.9) 100%);
}

.quote-service strong {
  position: absolute;
  right: 12px;
  bottom: 11px;
  left: 12px;
  color: var(--quote-white);
  font-size: 13px;
  line-height: 1.25;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.quote-service__badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 4px 7px;
  border-radius: 999px;
  color: #17355f;
  background: #dceaff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.quote-service__check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  place-items: center;
  color: transparent;
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
}

.quote-service input:checked + .quote-service__body .quote-service__check {
  color: #18345d;
  border-color: var(--quote-accent);
  background: var(--quote-accent);
}

.quote-fields {
  display: grid;
  gap: 13px;
}

.quote-fields--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-field {
  margin-bottom: 13px;
}

.quote-field label {
  display: block;
  margin-bottom: 6px;
  color: #29384d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.quote-field input,
.quote-field select,
.quote-field textarea {
  width: 100%;
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid #cfd8e5;
  border-radius: 10px;
  color: var(--quote-ink);
  background: var(--quote-white);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
}

.quote-field textarea {
  min-height: 78px;
  resize: vertical;
}

.quote-field input:hover,
.quote-field select:hover,
.quote-field textarea:hover {
  border-color: #9eb7dc;
}

.quote-field [aria-invalid="true"] {
  border-color: #c62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.1);
}

.quote-consent {
  display: flex;
  margin: 2px 0 0;
  align-items: flex-start;
  color: #445268;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.quote-consent input {
  width: 17px;
  height: 17px;
  margin: 1px 9px 0 0;
  flex: 0 0 17px;
  accent-color: var(--quote-blue);
}

.quote-consent a {
  color: var(--quote-blue-dark);
  text-decoration: underline;
}

.quote-required-note {
  margin: 8px 0 0;
  color: #758196;
  font-size: 11px;
}

.quote-form__footer {
  display: flex;
  min-height: 58px;
  padding-top: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #e7ebf1;
}

.quote-form__status {
  max-width: 55%;
  color: #b42318;
  font-size: 12px;
  line-height: 1.4;
}

.quote-form__status.is-progress {
  color: #23589d;
}

.quote-form__actions {
  display: flex;
  margin-left: auto;
  gap: 9px;
}

.quote-button {
  min-height: 42px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.quote-button--ghost {
  color: #43526a;
  border-color: #cad3df;
  background: var(--quote-white);
}

.quote-button--primary {
  color: var(--quote-white);
  border-color: var(--quote-blue);
  background: var(--quote-blue);
  box-shadow: 0 8px 18px rgba(66, 133, 244, 0.24);
}

.quote-button--primary:hover,
.quote-button--primary:focus-visible {
  color: var(--quote-white);
  border-color: var(--quote-blue-dark);
  background: var(--quote-blue-dark);
}

.quote-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* SweetAlert is used by the existing mailer. Its status must stay above this dialog. */
.swal2-container {
  z-index: 40000 !important;
}

@media (max-width: 900px) {
  .quote-dialog {
    grid-template-columns: minmax(210px, 29%) minmax(0, 1fr);
  }

  .quote-dialog__content {
    padding-right: 30px;
    padding-left: 30px;
  }

  .quote-dialog__visual-copy {
    right: 24px;
    left: 24px;
  }
}

@media (max-width: 700px) {
  .quote-launcher {
    right: 14px;
    bottom: 172px;
  }

  .quote-launcher__button {
    min-height: 54px;
    padding-right: 9px;
  }

  .quote-launcher__icon {
    width: 38px;
    height: 38px;
    margin-right: 0;
  }

  .quote-launcher__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .quote-launcher__tooltip {
    right: 0;
    bottom: calc(100% + 12px);
    width: min(245px, calc(100vw - 28px));
    transform: translateY(8px);
  }

  .quote-launcher__tooltip::after {
    top: 100%;
    right: 20px;
    bottom: auto;
    border-top: 8px solid var(--quote-ink);
    border-right: 7px solid transparent;
    border-bottom: 0;
    border-left: 7px solid transparent;
  }

  .quote-launcher.is-inviting .quote-launcher__tooltip,
  .quote-launcher:hover .quote-launcher__tooltip,
  .quote-launcher:focus-within .quote-launcher__tooltip {
    transform: translateY(0);
  }

  .quote-assistant {
    padding: 8px;
    align-items: end;
  }

  .quote-dialog {
    display: block;
    width: 100%;
    height: min(830px, calc(100vh - 16px));
    height: min(830px, calc(100dvh - 16px));
    border-radius: 22px 22px 14px 14px;
  }

  .quote-dialog__visual {
    display: none;
  }

  .quote-dialog__content {
    height: 100%;
    padding: 24px 18px 16px;
  }

  .quote-dialog__header {
    padding-right: 44px;
  }

  .quote-dialog__header h2 {
    font-size: 23px;
  }

  .quote-dialog__header p {
    display: none;
  }

  .quote-progress {
    margin: 15px 0 12px;
  }

  .quote-progress small {
    display: none !important;
  }

  .quote-step {
    padding-top: 5px;
  }

  .quote-step legend {
    font-size: 18px;
  }

  .quote-goals,
  .quote-services,
  .quote-fields--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .quote-choice__body {
    min-height: 66px;
  }

  .quote-service__body {
    height: 96px;
  }

  .quote-form__footer {
    min-height: 63px;
    padding-top: 9px;
    flex-wrap: wrap;
    gap: 6px;
  }

  .quote-form__status {
    width: 100%;
    max-width: none;
    min-height: 16px;
  }

  .quote-button {
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .quote-dialog__content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .quote-choice__body {
    padding: 9px;
  }

  .quote-choice__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-dialog,
  .quote-launcher,
  .quote-launcher__button,
  .quote-launcher__tooltip,
  .quote-choice__body,
  .quote-service__body {
    animation: none !important;
    transition: none !important;
  }
}
