/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

#airtow-cfg {
  --at-red:       #214094;
  --at-red-dark:  #1a3378;
  --at-red-light: #e8edf7;
  --at-navy:      #1A2333;
  --at-border:    #E0E0E0;
  --at-muted:     #6B7280;
  --at-gray:      #DBDBDB;

  max-width: 680px;
  margin: 2rem auto;
  padding: 0 1rem 3rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  color: var(--at-navy);
  line-height: 1.5;
}

/* ── Header ── */
.at-header {
  background: var(--at-navy);
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  margin-bottom: 1.5rem;
}
.at-header h1 {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.01em;
}
.at-header p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 3px;
}

/* ── Progress ── */
.at-progress-wrap { margin-bottom: 1.5rem; }
.at-step-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.at-step-label { font-size: 12px; color: var(--at-muted); }
.at-dots { display: flex; gap: 5px; }
.at-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--at-border);
}
.at-dot.done { background: var(--at-red); }
.at-dot.active {
  background: var(--at-red-dark);
  box-shadow: 0 0 0 2px var(--at-red-light);
}
.at-track {
  height: 5px;
  background: var(--at-border);
  border-radius: 5px;
  overflow: hidden;
}
.at-fill {
  height: 100%;
  background: var(--at-red);
  border-radius: 5px;
  transition: width 0.4s ease;
}

/* ── Quiz ── */
.at-question {
  font-size: 19px;
  font-weight: 600;
  color: var(--at-navy);
  margin-bottom: 5px;
}
.at-sub {
  font-size: 14px;
  color: var(--at-muted);
  margin-bottom: 1.25rem;
}
.at-options { display: grid; gap: 10px; }
.at-opt {
  background: #fff;
  border: 1.5px solid var(--at-border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
  width: 100%;
}
.at-opt:hover { border-color: var(--at-red); background: #fff8f9; }
.at-opt.selected { border: 2px solid var(--at-red); background: var(--at-red-light); }
.at-opt-icon { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.at-opt-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--at-navy);
  display: block;
  margin-bottom: 2px;
}
.at-opt-desc { font-size: 13px; color: var(--at-muted); }

/* ── Nav ── */
.at-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 10px;
}
.at-btn-back {
  padding: 10px 20px;
  border-radius: 8px;
  border: 1.5px solid var(--at-border);
  background: transparent;
  color: var(--at-muted);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.at-btn-back:hover { background: var(--at-gray); }
.at-btn-back:disabled { opacity: 0.35; cursor: not-allowed; }
.at-btn-next {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  background: var(--at-red);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  flex: 1;
  max-width: 200px;
}
.at-btn-next:hover { background: var(--at-red-dark); }
.at-btn-next:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Results ── */
.at-result-intro { font-size: 13px; color: var(--at-muted); margin-bottom: 1.1rem; }
.at-rcard { background:#fff; border:1.5px solid var(--at-border); border-radius:12px; overflow:hidden; margin-bottom:12px; display:flex; flex-direction:row; align-items:center; }
.at-rcard-body { flex:1; padding:1.25rem 1.4rem; min-width:0; }
.at-rimg-wrap { width:220px; min-width:220px; flex-shrink:0; border-left:1px solid var(--at-border); display:flex; align-items:center; justify-content:center; padding:1rem; background:#f9f9f9; align-self:stretch; }
.at-rimg { width:100%; height:auto; max-height:180px; object-fit:contain; display:block; }
@media (max-width:520px) { .at-rcard { flex-direction:column; } .at-rimg-wrap { width:100%; min-width:0; border-left:none; border-top:1px solid var(--at-border); padding:1rem; } }
.at-badge { display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:600; padding:3px 10px; border-radius:6px; margin-bottom:10px; background:var(--at-red-light); color:var(--at-red-dark); }
.at-rname { font-size: 20px; font-weight: 600; color: var(--at-navy); }
.at-rsub { font-size: 13px; color: var(--at-muted); margin: 2px 0 12px; }
.at-specs { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
.at-spec strong { font-size: 15px; font-weight: 600; color: var(--at-navy); display: block; }
.at-spec span { font-size: 12px; color: var(--at-muted); }
.at-rcard-actions { display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
.at-btn-detail {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--at-border);
  background: #fff;
  color: var(--at-navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  display: inline-block;
}
.at-btn-detail:hover { background: var(--at-gray); }
.at-btn-quote {
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  background: var(--at-red);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.at-btn-quote:hover { background: var(--at-red-dark); }
.at-restart-row { text-align: center; margin-top: 1rem; }
.at-restart-link {
  font-size: 13px;
  color: var(--at-red);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
}

/* ── Embedded quote form ── */
.at-gf-wrap {
  background: #fff;
  border: 1.5px solid var(--at-border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 1rem;
}
.at-gf-hdr {
  padding: 1.1rem 1.4rem 1rem;
  border-bottom: 1px solid var(--at-border);
}
.at-gf-title { font-size: 17px; font-weight: 600; color: var(--at-navy); }
.at-gf-sub { font-size: 13px; color: var(--at-muted); margin-top: 2px; }
.at-prefill-notice {
  background: var(--at-red-light);
  border-bottom: 1px solid #b0bde0;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--at-red-dark);
}
.at-gf-form-wrap { padding: 1rem 1.4rem 1.5rem; }

/* ── Mobile ── */
@media (max-width: 520px) {
  .at-btn-next { max-width: none; }
  .at-question { font-size: 17px; }
}

/* ── Disclaimer ── */
.at-disclaimer { background: var(--at-gray); border:1px solid var(--at-border); border-radius:8px; padding:12px 16px; font-size:12px; color:var(--at-muted); line-height:1.6; margin-top:1.25rem; text-align:center; }
.at-disclaimer a { color:var(--at-navy); font-weight:600; text-decoration:underline; }
