/* Personal Auto Insurance quoter — styles scoped to .aq-wrap */
.aq-wrap {
  --aq-card: #ffffff;
  --aq-text: #1a1a2e;
  --aq-muted: #8892a4;
  --aq-border: #e2e8f0;
  --aq-accent: #2563eb;
  --aq-accent-hover: #1d4ed8;
  --aq-accent-light: #eff6ff;
  --aq-success: #059669;
  --aq-radius: 12px;
  --aq-shadow: 0 4px 40px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--aq-text);
}

/* Progress bar */
.aq-wrap .progress-bar { display: flex; align-items: center; margin-bottom: 1.5rem; padding: 0 0.5rem; }
.aq-wrap .step-item { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; }
.aq-wrap .step-item:not(:last-child)::after { content: ''; position: absolute; top: 14px; left: 50%; width: 100%; height: 2px; background: var(--aq-border); z-index: 0; transition: background 0.4s; }
.aq-wrap .step-item.done:not(:last-child)::after { background: var(--aq-accent); }
.aq-wrap .step-circle { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; position: relative; z-index: 1; transition: all 0.3s; border: 2px solid var(--aq-border); background: var(--aq-card); color: var(--aq-muted); }
.aq-wrap .step-item.done .step-circle { background: var(--aq-accent); border-color: var(--aq-accent); color: #fff; }
.aq-wrap .step-item.active .step-circle { background: var(--aq-accent); border-color: var(--aq-accent); color: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.15); }
.aq-wrap .step-label { font-size: 10px; font-weight: 600; color: var(--aq-muted); margin-top: 5px; text-align: center; letter-spacing: 0.04em; text-transform: uppercase; }
.aq-wrap .step-item.active .step-label { color: var(--aq-accent); }

/* Card */
.aq-wrap .card { background: var(--aq-card); border-radius: 20px; box-shadow: var(--aq-shadow); padding: 2rem 2rem 2.5rem; border: 1px solid var(--aq-border); }
.aq-wrap .card-header { margin-bottom: 1.8rem; }
.aq-wrap .card-step { font-size: 11px; font-weight: 700; color: var(--aq-accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.aq-wrap .card-title { font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--aq-text); }
.aq-wrap .card-sub { font-size: 14px; color: var(--aq-muted); margin-top: 6px; }

/* Fields */
.aq-wrap .field { margin-bottom: 1rem; }
.aq-wrap .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.aq-wrap label { display: block; font-size: 11px; font-weight: 700; color: var(--aq-muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 5px; }
.aq-wrap input,
.aq-wrap select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--aq-border); border-radius: var(--aq-radius); font-family: inherit; font-size: 15px; color: var(--aq-text); background: #fff; outline: none; transition: border 0.2s, box-shadow 0.2s; appearance: none; -webkit-appearance: none; }
.aq-wrap input:focus,
.aq-wrap select:focus { border-color: var(--aq-accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.aq-wrap input::placeholder { color: #c0c8d4; }
.aq-wrap select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238892a4' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* Radio cards */
.aq-wrap .radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.aq-wrap .radio-card { flex: 1; min-width: 72px; padding: 12px 8px; border-radius: var(--aq-radius); border: 1.5px solid var(--aq-border); cursor: pointer; text-align: center; font-size: 14px; font-weight: 500; transition: all 0.2s; color: var(--aq-muted); user-select: none; }
.aq-wrap .radio-card:hover { border-color: var(--aq-accent); color: var(--aq-accent); }
.aq-wrap .radio-card.selected { background: var(--aq-accent-light); border-color: var(--aq-accent); color: var(--aq-accent); font-weight: 700; }
.aq-wrap .radio-card input { display: none; }

/* Buttons */
.aq-wrap .btn { width: 100%; padding: 14px; border-radius: var(--aq-radius); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; border: none; letter-spacing: 0.02em; }
.aq-wrap .btn-primary { background: var(--aq-accent); color: #fff; }
.aq-wrap .btn-primary:hover { background: var(--aq-accent-hover); }
.aq-wrap .btn-secondary { background: transparent; border: 1.5px solid var(--aq-border); color: var(--aq-muted); }
.aq-wrap .btn-secondary:hover { border-color: var(--aq-accent); color: var(--aq-accent); }
.aq-wrap .btn-row { display: flex; gap: 10px; margin-top: 0.5rem; }
.aq-wrap .btn-row .btn-primary { flex: 2; }
.aq-wrap .btn-row .btn-secondary { flex: 1; }
.aq-wrap .btn-solo { margin-top: 1.5rem; }

/* Loading */
.aq-wrap .loading-screen { text-align: center; padding: 2rem 0; }
.aq-wrap .spinner { width: 52px; height: 52px; border: 3px solid var(--aq-border); border-top-color: var(--aq-accent); border-radius: 50%; animation: aq-spin 0.8s linear infinite; margin: 0 auto 1.5rem; }
@keyframes aq-spin { to { transform: rotate(360deg); } }
.aq-wrap .loading-title { font-size: 22px; font-weight: 700; margin-bottom: 8px; color: var(--aq-text); }
.aq-wrap .loading-steps { list-style: none; text-align: left; display: inline-block; margin-top: 1.2rem; }
.aq-wrap .loading-steps li { font-size: 13px; color: var(--aq-muted); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.aq-wrap .loading-steps li.done { color: var(--aq-success); }
.aq-wrap .loading-steps li.active { color: var(--aq-accent); font-weight: 600; }
.aq-wrap .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* Results */
.aq-wrap .results-header { text-align: center; margin-bottom: 1.5rem; }
.aq-wrap .results-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--aq-text); }
.aq-wrap .results-sub { font-size: 14px; color: var(--aq-muted); }
.aq-wrap .quote-card { border: 1.5px solid var(--aq-border); border-radius: 14px; padding: 1.2rem 1.4rem; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: border 0.2s, box-shadow 0.2s; }
.aq-wrap .quote-card:hover { border-color: var(--aq-accent); box-shadow: 0 4px 16px rgba(37,99,235,0.08); }
.aq-wrap .quote-card.lowest { border-color: var(--aq-success); background: #f0fdf4; }
.aq-wrap .carrier-left { flex: 1; }
.aq-wrap .carrier-name { font-size: 18px; font-weight: 800; color: var(--aq-text); letter-spacing: -0.02em; }
.aq-wrap .quote-card.lowest .carrier-name { color: #065f46; }
.aq-wrap .carrier-term { font-size: 12px; color: var(--aq-muted); margin-top: 3px; }
.aq-wrap .quote-price { text-align: right; flex-shrink: 0; }
.aq-wrap .monthly-price { font-size: 24px; font-weight: 800; color: var(--aq-accent); }
.aq-wrap .quote-card.lowest .monthly-price { color: var(--aq-success); }
.aq-wrap .per-month { font-size: 12px; color: var(--aq-muted); }
.aq-wrap .contact-btn { margin-top: 1.5rem; width: 100%; padding: 14px; background: var(--aq-accent); color: #fff; border: none; border-radius: var(--aq-radius); font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.2s; text-decoration: none; display: block; text-align: center; box-sizing: border-box; }
.aq-wrap .contact-btn:hover { background: var(--aq-accent-hover); color: #fff; }
.aq-wrap .restart-btn { margin-top: 10px; width: 100%; padding: 12px; background: transparent; color: var(--aq-muted); border: 1.5px solid var(--aq-border); border-radius: var(--aq-radius); font-family: inherit; font-size: 14px; cursor: pointer; }

/* Trust bar */
.aq-wrap .trust { display: flex; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; }
.aq-wrap .trust span { font-size: 12px; color: var(--aq-muted); }

/* Animations */
.aq-wrap .pane { animation: aq-fadeUp 0.35s ease both; }
@keyframes aq-fadeUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* Misc */
.aq-wrap .error-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 12px 16px; font-size: 13px; color: #dc2626; margin-bottom: 1rem; }
.aq-wrap .vin-hint { font-size: 12px; color: var(--aq-muted); margin-top: 4px; }
.aq-wrap .privacy-note { font-size: 12px; color: var(--aq-muted); text-align: center; margin-top: 1rem; line-height: 1.6; padding: 10px; background: #f8fafc; border-radius: 8px; border: 1px solid var(--aq-border); }

/* Acknowledgment checkbox row */
.aq-wrap .acknowledge-row { display: flex; gap: 10px; align-items: flex-start; margin: 1rem 0 0.5rem; }
.aq-wrap .acknowledge-row input[type="checkbox"] { width: 18px; min-width: 18px; height: 18px; margin-top: 2px; cursor: pointer; appearance: auto; -webkit-appearance: auto; padding: 0; border: none; box-shadow: none; }
.aq-wrap .acknowledge-row label { font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--aq-text); line-height: 1.55; margin-bottom: 0; cursor: pointer; }

/* Confirmation box */
.aq-wrap .confirm-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
.aq-wrap .confirm-title { font-size: 18px; font-weight: 700; color: #065f46; margin-bottom: 6px; }
.aq-wrap .confirm-body { font-size: 14px; color: #047857; line-height: 1.6; }

/* Preliminary rates disclaimer */
.aq-wrap .rates-label { font-size: 11px; font-weight: 700; color: var(--aq-muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.aq-wrap .aq-disclaimer { font-size: 11.5px; color: var(--aq-muted); line-height: 1.65; margin-top: 0.75rem; padding: 10px 12px; background: #f8fafc; border-radius: 8px; border: 1px solid var(--aq-border); }

/* Responsive */
@media (max-width: 480px) {
  .aq-wrap .field-row { grid-template-columns: 1fr; }
  .aq-wrap .radio-group { flex-direction: column; }
  .aq-wrap .radio-card { min-width: unset; }
  .aq-wrap .card { padding: 1.5rem 1.25rem; }
  .aq-wrap .card-title { font-size: 22px; }
  .aq-wrap .btn-row { flex-direction: column; }
  .aq-wrap .btn-row .btn-primary,
  .aq-wrap .btn-row .btn-secondary { flex: unset; }
}
