/* Anayanex — Multi-step quote popup (charcoal dark, matches header CTA) */
.ax-quote {
  --ax-q-ink: #f4f4f5;
  --ax-q-muted: rgba(244, 244, 245, 0.62);
  --ax-q-charcoal-a: #40454a;
  --ax-q-charcoal-b: #292c2e;
  --ax-q-charcoal-c: #0a0a0b;
  --ax-q-card: rgba(255, 255, 255, 0.045);
  --ax-q-line: rgba(255, 255, 255, 0.1);
  --ax-q-btn:
    radial-gradient(62.56% 62.56% at 28.14% -10.42%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(137.66deg, #40454a 21.13%, #292c2e 80.53%);
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.ax-quote.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ax-quote__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.ax-quote__dialog {
  position: relative;
  z-index: 1;
  width: min(960px, 100%);
  max-height: min(92vh, 820px);
  overflow: hidden;
  border-radius: 28px;
  background:
    radial-gradient(62.56% 62.56% at 18% -8%, rgba(255, 255, 255, 0.08) 0%, transparent 55%),
    linear-gradient(152deg, #2a2e32 0%, #1a1c1e 38%, #101112 72%, #0a0a0b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ax-quote.is-open .ax-quote__dialog {
  transform: translateY(0) scale(1);
}

.ax-quote__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ax-q-line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--ax-q-ink);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ax-quote__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.ax-quote__shell {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.25fr);
  max-height: min(92vh, 820px);
}

.ax-quote__brand {
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 32px);
  border-right: 1px solid var(--ax-q-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: auto;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    linear-gradient(160deg, #232628 0%, #141617 100%);
}

.ax-quote__eyebrow {
  display: inline-flex;
  align-self: flex-start;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(244, 244, 245, 0.82);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.ax-quote__brand-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  font-weight: 800;
}

.ax-quote__brand-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ax-q-muted);
}

.ax-quote__steps-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ax-quote__steps-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: rgba(244, 244, 245, 0.42);
  transition: color 0.2s ease;
}

.ax-quote__steps-list li::before {
  content: attr(data-ax-quote-step-label);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.ax-quote__steps-list li.is-active,
.ax-quote__steps-list li.is-done {
  color: #fff;
}

.ax-quote__steps-list li.is-active::before {
  background: var(--ax-q-btn);
  border-color: transparent;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -2px 0 #1a1a1a;
}

.ax-quote__steps-list li.is-done::before {
  content: "✓";
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.ax-quote__trust {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
}

.ax-quote__trust span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ax-q-line);
  font-size: 11px;
  font-weight: 600;
  color: rgba(244, 244, 245, 0.7);
}

.ax-quote__main {
  padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 36px) clamp(22px, 3vw, 32px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.ax-quote__progress {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 14px;
}

.ax-quote__progress-bar {
  display: block;
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5a6066 0%, #e8e8ea 100%);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ax-quote__step-meta {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(244, 244, 245, 0.42);
  text-transform: uppercase;
}

.ax-quote__heading {
  margin: 0 0 8px;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
  font-weight: 750;
}

.ax-quote__sub {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ax-q-muted);
}

.ax-quote__panel[hidden] {
  display: none !important;
}

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

.ax-quote__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 14px 14px 14px 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ax-q-line);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ax-quote__card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.ax-quote__card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ax-quote__card-check {
  position: absolute;
  left: 14px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  background: transparent;
}

.ax-quote__card:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.25);
}

.ax-quote__card:has(input:checked) .ax-quote__card-check {
  border-color: transparent;
  background: var(--ax-q-btn);
  box-shadow:
    inset 0 0 0 4px #1a1c1e,
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ax-quote__card-label {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.ax-quote__card-hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ax-q-muted);
}

.ax-quote__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.ax-quote__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.ax-quote__field--full {
  grid-column: 1 / -1;
}

.ax-quote__field label {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.72);
}

.ax-quote__field input,
.ax-quote__field select,
.ax-quote__field textarea {
  width: 100%;
  margin: 0 !important;
  margin-bottom: 0 !important;
  padding: 13px 14px !important;
  border-radius: 12px;
  border: 1px solid var(--ax-q-line) !important;
  background: rgba(0, 0, 0, 0.38) !important;
  background-color: rgba(0, 0, 0, 0.38) !important;
  background-image: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  color-scheme: dark;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#ax-quote-popup .ax-quote__field select,
.ax-quote__field select {
  background: rgba(0, 0, 0, 0.38) url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") no-repeat calc(100% - 8px) 50% / 22px !important;
  background-color: rgba(0, 0, 0, 0.38) !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 8px) 50% !important;
  background-size: 22px !important;
  padding-right: 40px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

#ax-quote-popup .ax-quote__field select option,
.ax-quote__field select option {
  background: #1a1c1e !important;
  background-color: #1a1c1e !important;
  color: #fff !important;
}

.ax-quote__field textarea {
  min-height: 110px;
  resize: vertical;
}

.ax-quote__field input::placeholder,
.ax-quote__field textarea::placeholder {
  color: rgba(244, 244, 245, 0.42) !important;
  -webkit-text-fill-color: rgba(244, 244, 245, 0.42) !important;
  opacity: 1;
}

.ax-quote__field input:focus,
.ax-quote__field select:focus,
.ax-quote__field textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.28) !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#ax-quote-popup .ax-quote__field select:focus,
.ax-quote__field select:focus {
  background: rgba(0, 0, 0, 0.5) url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") no-repeat calc(100% - 8px) 50% / 22px !important;
  background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 8px) 50% !important;
  background-size: 22px !important;
}

.ax-quote__summary {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ax-quote__summary > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ax-q-card);
  border: 1px solid var(--ax-q-line);
}

.ax-quote__summary dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.42);
}

.ax-quote__summary dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  word-break: break-word;
}

.ax-quote__error {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fecaca;
  font-size: 13px;
}

.ax-quote__error[hidden] {
  display: none !important;
}

.ax-quote__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.ax-quote__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s ease, filter 0.2s ease, background 0.2s ease;
}

.ax-quote__btn[hidden] {
  display: none !important;
}

.ax-quote__btn--primary {
  color: #fff !important;
  background: var(--ax-q-btn) !important;
  background-image: var(--ax-q-btn) !important;
  border: none !important;
  box-shadow:
    0 3px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 -3px 0 #1a1a1a,
    inset 0 -4px 0 1px rgba(255, 255, 255, 0.1) !important;
}

.ax-quote__btn--primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff !important;
}

.ax-quote__btn--primary.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.ax-quote__btn--ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ax-q-line);
}

.ax-quote__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ax-quote__success {
  text-align: center;
  padding: 28px 10px 10px;
}

.ax-quote__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--ax-q-btn);
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -3px 0 #1a1a1a;
}

.ax-quote__panel--success .ax-quote__sub {
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 860px) {
  .ax-quote {
    padding: 10px;
    align-items: flex-end;
  }

  .ax-quote__dialog {
    max-height: 94vh;
    border-radius: 24px 24px 16px 16px;
  }

  .ax-quote__shell {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }

  .ax-quote__brand {
    border-right: 0;
    border-bottom: 1px solid var(--ax-q-line);
    padding-bottom: 18px;
  }

  .ax-quote__steps-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .ax-quote__steps-list li {
    font-size: 0;
  }

  .ax-quote__steps-list li::before {
    margin: 0;
  }

  .ax-quote__trust {
    display: none;
  }

  .ax-quote__cards,
  .ax-quote__fields {
    grid-template-columns: 1fr;
  }

  .ax-quote__nav {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, transparent, #101112 28%);
    padding-bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-quote,
  .ax-quote__dialog,
  .ax-quote__progress-bar {
    transition: none !important;
  }
}
