.hiq {
  --hiq-navy: #1e3a8a;
  --hiq-blue: #2566b2;
  --hiq-blue-hover: #1976d2;
  --hiq-blue-dark: #124476;
  --hiq-text: #303030;
  --hiq-muted: #555555;
  --hiq-border: #d0d0d0;
  --hiq-progress: #ff8a00;
  --hiq-selected-bg: #f3f8ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--hiq-text);
  background: #fff;
  position: relative;
  min-height: 420px;
  padding: 24px 16px 48px;
}

.hiq-header,
.hiq-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.hiq-wrap:has(.hiq-options--logos) {
  max-width: 960px;
}

.hiq-title {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  line-height: 1.3;
}

.hiq-progress {
  margin-bottom: 28px;
}

.hiq-progress-bar {
  position: relative;
  width: 100%;
  height: 22px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
}

.hiq-progress-fill {
  position: relative;
  height: 100%;
  min-width: 0;
  background: var(--hiq-progress);
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hiq-progress-label {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .hiq-progress-fill {
    transition: none !important;
  }
}

.hiq-back {
  position: absolute;
  left: clamp(16px, 4vw, 48px);
  top: 46%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 10px 4px 10px 0;
  background: transparent;
  border: 0;
  color: #666;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
  transform: translateY(-50%);
}

@media (max-width: 719px) {
  .hiq-back {
    position: static;
    transform: none;
    display: flex;
    width: fit-content;
    margin: 20px auto 0;
  }
}

.hiq-back svg {
  margin-right: 4px;
  transition: transform 150ms ease-in-out;
}

.hiq-back:hover svg {
  transform: translateX(-3px);
}

.hiq-step-title {
  margin: 8px 0 28px;
  text-align: center;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--hiq-text);
}

.hiq-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 540px;
  margin: 0 auto;
}

.hiq-fields:has(.hiq-options--logos) {
  max-width: none;
}

.hiq-field-label {
  display: block;
  margin-bottom: 8px;
  color: rgb(55, 65, 81);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

.hiq-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.hiq-options:not(.hiq-options--logos) > .hiq-option {
  flex: 1 1 calc(50% - 8px);
  max-width: calc(50% - 8px);
}

.hiq-options--logos {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.hiq-option {
  width: 100%;
  min-height: 110px;
  padding: 16px 12px;
  background: #fff;
  border: 1px solid var(--hiq-border);
  border-radius: 8px;
  color: var(--hiq-blue);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.hiq-option--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 12px;
  background: #fff;
  font-size: 16px;
  font-weight: 500;
}

.hiq-option--logo img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}

@media (hover: hover) {
  .hiq-option:hover {
    background: #fff;
    border-color: var(--hiq-blue-hover);
    color: var(--hiq-blue);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.35);
    transform: translateY(-2px);
  }
}

.hiq-option.is-selected,
.hiq-option--logo.is-selected {
  background: var(--hiq-selected-bg);
  border: 2px solid var(--hiq-blue-hover);
  color: var(--hiq-blue);
  box-shadow: 0 3px 8px rgba(25, 118, 210, 0.3);
}

.hiq-option:focus-visible {
  outline: 2px solid var(--hiq-blue-hover);
  outline-offset: 2px;
}

.hiq-input {
  width: 100%;
  height: 56px;
  padding: 16px 14px;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.23);
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.87);
  text-align: center;
}

.hiq-input--left,
.hiq-input--left::placeholder {
  text-align: left;
}

.hiq-input:focus {
  outline: none;
  border-color: var(--hiq-blue);
  box-shadow: 0 0 0 2px rgba(3, 104, 195, 0.2);
}

.hiq-input::placeholder {
  color: #94a3b8;
}

.hiq-zip-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}

.hiq-zip-status[hidden] {
  display: none;
}

.hiq-zip-loading {
  color: #111827;
}

.hiq-zip-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #111827;
  border-top-color: transparent;
  border-radius: 50%;
  animation: hiq-zip-spin 1s linear infinite;
  flex-shrink: 0;
}

@keyframes hiq-zip-spin {
  to {
    transform: rotate(360deg);
  }
}

.hiq-zip-success {
  color: #15803d;
}

.hiq-error {
  display: block;
  margin-top: 6px;
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.hiq-error[hidden] {
  display: none;
}

.hiq-error--left {
  text-align: left;
}

.hiq-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 540px;
  margin: 16px auto 0;
  padding: 14px 20px;
  background: linear-gradient(90deg, #ff872b, #ef6700);
  color: #fff;
  border: 0;
  border-radius: 45px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(240, 100, 0, 0.35);
}

.hiq-next:hover {
  background: linear-gradient(90deg, #ff7a15, #e45f00);
  box-shadow: 0 6px 18px rgba(240, 100, 0, 0.45);
}

.hiq-trust {
  margin-top: 28px;
  padding: 8px 16px 0;
  text-align: center;
}

.hiq-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.hiq-trust-item {
  display: flex;
  align-items: center;
  color: #525252;
}

.hiq-trust-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  margin-right: 4px;
}

.hiq-trust-label {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.43;
  text-decoration: underline;
}

.hiq-agents {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #2e7d32;
}

.hiq-agents-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #2e7d32;
  animation: hiq-pulse-dot 1.5s infinite;
}

.hiq-agents-text {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.43;
  color: #2e7d32;
}

@keyframes hiq-pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

.hiq-done {
  text-align: center;
  padding: 24px 0 8px;
}

.hiq-done h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
}

.hiq-done p {
  margin: 0;
  color: var(--hiq-muted);
  font-size: 18px;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .hiq-options--logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .hiq-title {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .hiq-step-title,
  .hiq-done h2 {
    margin-bottom: 24px;
  }
}

@media (max-width: 560px) {
  .hiq-options--logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hiq .acir-loading-step[hidden] {
  display: none;
}

.hiq-renters {
  max-width: 560px;
  margin: 48px auto 0;
  padding: 8px 8px 24px;
  text-align: center;
}

.hiq-renters-title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--hiq-text);
}

.hiq-renters-body {
  margin: 0 auto 28px;
  max-width: 420px;
  color: var(--hiq-muted);
  font-size: 1.125rem;
  line-height: 1.5;
}

.hiq-renters-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: var(--hiq-blue);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
}

.hiq-renters-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(37, 102, 178, 0.25);
  border-top-color: var(--hiq-blue);
  border-radius: 50%;
  animation: hiq-zip-spin 0.8s linear infinite;
  flex-shrink: 0;
}

.hiq-renters-disclosure {
  margin: 20px 0 0;
  color: #6b7280;
  font-size: 0.8125rem;
  line-height: 1.45;
}
