.nt-assistant-photo {
  position: relative;
}

.nt-assistant {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  z-index: 1;
  color: var(--ink);
}

.nt-assistant-trigger {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  gap: 12px;
  padding: 8px 13px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 7px 25px rgba(9, 43, 66, .22);
  cursor: pointer;
  list-style: none;
  transition: box-shadow .2s ease;
}

.nt-assistant-trigger::-webkit-details-marker { display: none; }
.nt-assistant-trigger::marker { content: ""; }
.nt-assistant-trigger:hover { box-shadow: 0 9px 28px rgba(9, 43, 66, .3); }

.nt-assistant:not([open]) .nt-assistant-when-open,
.nt-assistant[open] .nt-assistant-when-closed { display: none; }

.nt-assistant-trigger:focus-visible,
.nt-assistant button:focus-visible,
.nt-assistant a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.nt-assistant-bubble {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 50%;
  background: #eaf1f5;
  color: var(--navy);
}

.nt-assistant-bubble::after {
  position: absolute;
  inset: 0;
  border: 2px solid var(--navy);
  border-radius: inherit;
  content: "";
  opacity: 0;
  pointer-events: none;
}

.nt-assistant:not([open]) .nt-assistant-bubble::after {
  animation: nt-assistant-pulse 2.8s .5s ease-out 5;
}

@keyframes nt-assistant-pulse {
  0% { opacity: .63; transform: scale(1); }
  65%, 100% { opacity: 0; transform: scale(1.43); }
}

.nt-assistant-bubble svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nt-assistant-trigger-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.nt-assistant-trigger-copy strong {
  font: 700 1.1rem/1.1 Georgia, "Times New Roman", serif;
}

.nt-assistant-trigger-copy span {
  color: var(--navy);
  font-size: .81rem;
  line-height: 1.3;
}

.nt-assistant-arrow {
  margin-left: auto;
  color: var(--navy);
  font-size: 1.45rem;
}

.nt-assistant[open] {
  inset: 0;
  display: block;
  background: var(--white);
  animation: nt-assistant-appear .2s ease-out both;
}

.nt-assistant[open] .nt-assistant-trigger {
  height: 54px;
  min-height: 54px;
  padding: 6px 14px;
  border: 0;
  border-bottom: 2px solid var(--gold);
  border-radius: 0;
  background: var(--navy);
  box-shadow: none;
  color: var(--white);
}

.nt-assistant[open] .nt-assistant-trigger:focus-visible { outline-offset: -4px; }
.nt-assistant[open] .nt-assistant-bubble {
  width: 35px;
  height: 35px;
  flex-basis: 35px;
  background: var(--teal);
  color: var(--white);
}
.nt-assistant[open] .nt-assistant-arrow { color: var(--white); font-size: 1.65rem; }
.nt-assistant[open] .nt-assistant-trigger-copy strong { font-size: 1.03rem; }

@keyframes nt-assistant-appear {
  from { opacity: .25; }
  to { opacity: 1; }
}

.nt-assistant [hidden] { display: none; }

.nt-assistant:not([open]) .nt-assistant-panel {
  position: absolute;
  inset: 54px 0 0;
  overflow: hidden;
  background: #f7f9fa;
}

.nt-assistant-form {
  display: flex;
  height: 100%;
  min-width: 0;
  flex-direction: column;
  margin: 0;
}

.nt-assistant-progress {
  flex: 0 0 auto;
  padding: 10px clamp(13px, 3vw, 22px) 2px;
}

.nt-assistant-track {
  --nt-progress: 0%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 7px;
  padding: 0;
  list-style: none;
}

.nt-assistant-track::before,
.nt-assistant-track::after {
  position: absolute;
  top: 50%;
  right: 7px;
  left: 7px;
  height: 2px;
  border-radius: 2px;
  background: #cbd6dc;
  content: "";
  transform: translateY(-50%);
}

.nt-assistant-track::after {
  background: var(--teal);
  clip-path: inset(0 calc(100% - var(--nt-progress)) 0 0);
  transition: clip-path .2s ease;
}

.nt-assistant-track li {
  z-index: 1;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid #aebfc8;
  border-radius: 50%;
  background: #f7f9fa;
}

.nt-assistant-track .is-done,
.nt-assistant-track .is-current {
  border-color: var(--teal);
}

.nt-assistant-track .is-done { background: var(--teal); }
.nt-assistant-track .is-current { box-shadow: inset 0 0 0 2px #f7f9fa; background: var(--teal); }

.nt-assistant-scroll,
.nt-assistant-done {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  padding: 10px clamp(13px, 3vw, 22px) 12px;
  overflow: auto;
  overscroll-behavior: contain;
}

.nt-assistant-done { max-height: 100%; padding-block: 18px; }
.nt-assistant-done p { margin: 0 0 14px; }

.nt-assistant h3 {
  margin: 0 0 12px;
  font: 700 clamp(1.11rem, 3vw, 1.4rem)/1.17 Georgia, "Times New Roman", serif;
  overflow-wrap: anywhere;
}

.nt-assistant-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nt-assistant-methods { grid-template-columns: 1fr; }
.nt-assistant-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.nt-assistant button {
  min-height: 42px;
  min-width: 0;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font: 700 .88rem/1.26 Arial, "Segoe UI", sans-serif;
  overflow-wrap: anywhere;
  cursor: pointer;
}

.nt-assistant button:hover { background: #104967; }
.nt-assistant button:disabled { opacity: .7; cursor: wait; }

.nt-assistant button.nt-assistant-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  text-align: left;
}

.nt-assistant-option::after {
  flex: none;
  color: #b6e1e3;
  content: "→";
}

.nt-assistant button.is-selected {
  border-color: var(--teal-bright);
  box-shadow: inset 0 0 0 1px var(--teal-bright);
}

.nt-assistant-field { min-width: 0; }

.nt-assistant-field label {
  display: block;
  margin: 0 0 4px;
  color: var(--ink);
  font-size: .83rem;
  font-weight: 700;
}

.nt-assistant-field small {
  margin-inline-start: 3px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 400;
}

.nt-assistant-field input,
.nt-assistant-field textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #b7c8d0;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: 1rem/1.25 Arial, "Segoe UI", sans-serif;
}

.nt-assistant-field input {
  box-sizing: border-box;
  height: 42px;
  -webkit-appearance: none;
  appearance: none;
}

.nt-assistant-field textarea { resize: vertical; }
.nt-assistant-field input:focus,
.nt-assistant-field textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; }
.nt-assistant-field input::placeholder,
.nt-assistant-field textarea::placeholder { color: #667684; }

.nt-assistant-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 9px;
  min-height: 54px;
  padding: 5px clamp(13px, 3vw, 22px);
  border-top: 1px solid var(--line);
  background: var(--white);
}

.nt-assistant-actions .button:not(.nt-assistant-back) { margin-left: auto; }
.nt-assistant-actions .button { min-height: 40px; }

.nt-assistant-hint,
.nt-assistant-privacy { margin: 8px 0; color: var(--muted); font-size: .83rem; }
.nt-assistant-hint { margin-top: 0; }
.nt-assistant-privacy a { color: var(--teal); text-decoration: underline; }
.nt-assistant-status { margin: 10px 0 0; color: #8a3026; font-size: .88rem; }

.nt-assistant-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 700px), (max-width: 900px) and (hover: none) {
  .hero-photo.nt-assistant-photo:has(.nt-assistant[open]) {
    height: min(510px, calc(100vh - 24px));
    height: min(510px, calc(100svh - 24px));
    max-height: none;
    aspect-ratio: auto;
  }

  body:has(.nt-assistant[open]) #saleNotice { visibility: hidden; }

  .nt-assistant-trigger { gap: 9px; }
}

@media (max-width: 350px) {
  .nt-assistant button.nt-assistant-option { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .nt-assistant:not([open]) .nt-assistant-bubble::after,
  .nt-assistant[open] { animation: none; }
  .nt-assistant-trigger,
  .nt-assistant-track::after { transition: none; }
}
