/* Allen Quick Quote — modal + sticky bar styles
 * L2b de-busy update (2026-06-10 night): tighter rhythm, paired field rows,
 * collapsed sport picker, Twilio disclosure, label-opt span.
 * Shares Allen design-system tokens via CSS custom properties. */

/* ── Overlay ─────────────────────────────────────────────────────── */
.aqq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22,19,15,.65);
  z-index: 9900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: aqq-fade-in .18s ease;
}
.aqq-overlay[hidden] { display: none; }

@keyframes aqq-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Modal card ──────────────────────────────────────────────────── */
.aqq-modal {
  background: #fff;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
  animation: aqq-slide-up .2s ease;
  display: flex;
  flex-direction: column;
}

@keyframes aqq-slide-up {
  from { transform: translateY(16px); opacity: .6; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Bar ─────────────────────────────────────────────────────────── */
.aqq-bar {
  background: #16130F;
  color: #fff;
  padding: 13px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 8px 0 0;
  flex-shrink: 0;
}
.aqq-bar-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
}
.aqq-close {
  background: none;
  border: none;
  color: #aaa;
  font-size: 18px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 3px;
  transition: color .15s;
}
.aqq-close:hover { color: #fff; }

/* ── Body ────────────────────────────────────────────────────────── */
.aqq-body {
  padding: 20px 22px 24px;
}

.aqq-heading {
  font-family: 'Archivo Black', 'Archivo', system-ui, sans-serif;
  font-size: 21px;
  margin: 0 0 4px;
  line-height: 1.15;
  color: #16130F;
}
.aqq-sub {
  color: #666;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  margin: 0 0 14px;
}

/* ── Context chip ────────────────────────────────────────────────── */
.aqq-ctx {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F7F6F4;
  border: 1px solid #E5E2DC;
  border-radius: 99px;
  padding: 5px 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 14px;
}
.aqq-ctx-name { color: #D71C24; }

/* ── Labels ──────────────────────────────────────────────────────── */
.aqq-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #555;
  margin: 12px 0 6px;
}
.aqq-label:first-child { margin-top: 0; }
.aqq-label-opt {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #888;
}

/* ── Chip rows ───────────────────────────────────────────────────── */
.aqq-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.aqq-chip {
  border: 1.5px solid #E5E2DC;
  border-radius: 7px;
  padding: 8px 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  background: #fff;
  transition: border-color .12s, background .12s, color .12s;
  user-select: none;
  line-height: 1.2;
}
.aqq-chip:hover { border-color: #999; }
.aqq-chip.aqq-sel {
  border-color: #16130F;
  background: #16130F;
  color: #fff;
}

/* sport picker chips */
.aqq-sport-chips { gap: 7px; }
.aqq-sport-chip  { font-size: 12.5px; padding: 7px 10px; }

/* expand chevron capsule — muted, visual affordance only */
.aqq-expand-chip {
  border-color: #E5E2DC;
  color: #888;
  font-size: 14px;
  padding: 6px 10px;
  line-height: 1;
}
.aqq-expand-chip:hover {
  border-color: #bbb;
  color: #555;
  background: #fff;
}

/* ── Inputs ──────────────────────────────────────────────────────── */
.aqq-input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #E5E2DC;
  border-radius: 7px;
  padding: 10px 12px;
  font-size: 14.5px;
  font-family: 'Inter', system-ui, sans-serif;
  color: #16130F;
  transition: border-color .15s;
  background: #fff;
}
.aqq-input:focus-visible {
  outline: 2px solid #D71C24;
  outline-offset: 2px;
  border-color: #16130F;
}
.aqq-input:focus:not(:focus-visible) {
  outline: none;
  border-color: #16130F;
}
.aqq-input::placeholder { color: #bbb; }

.aqq-row {
  display: flex;
  gap: 10px;
}
.aqq-row > div { flex: 1; min-width: 0; }

textarea.aqq-input {
  resize: vertical;
  min-height: 64px;
}

/* ── Twilio disclosure ───────────────────────────────────────────── */
.aqq-disclosure {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 11px;
  color: #999;
  margin: 5px 0 0;
  line-height: 1.4;
}

/* ── Error ────────────────────────────────────────────────────────── */
.aqq-err {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  color: #C00;
  margin-top: 10px;
}
.aqq-err:empty { display: none; }

/* ── Submit CTA ──────────────────────────────────────────────────── */
.aqq-cta {
  width: 100%;
  background: #D71C24;
  color: #fff;
  border: 0;
  border-radius: 7px;
  padding: 15px;
  font-size: 16px;
  font-family: 'Archivo Black', 'Archivo', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: .02em;
  margin-top: 16px;
  cursor: pointer;
  transition: background .15s;
}
.aqq-cta:hover { background: #b51a1c; }
.aqq-cta:disabled { background: #aaa; cursor: default; }

.aqq-fine {
  text-align: center;
  font-family: 'Inter', system-ui, sans-serif;
  color: #888;
  font-size: 12px;
  margin: 9px 0 0;
}

/* ── Success state ───────────────────────────────────────────────── */
.aqq-success {
  text-align: center;
  padding: 16px 0 8px;
}
.aqq-success-icon {
  font-size: 36px;
  margin-bottom: 10px;
}
.aqq-success h2 {
  font-family: 'Archivo Black', 'Archivo', system-ui, sans-serif;
  font-size: 22px;
  margin: 0 0 8px;
  color: #16130F;
}
.aqq-success p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  color: #555;
  margin: 0;
}

/* ── Mobile sticky bar ───────────────────────────────────────────── */
.aqq-sticky-bar {
  display: none;
}
@media (max-width: 768px) {
  .aqq-sticky-bar {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #E5E2DC;
    box-shadow: 0 -4px 16px rgba(0,0,0,.1);
    z-index: 9800;
  }
  .aqq-sticky-btn {
    width: 100%;
    background: #D71C24;
    color: #fff;
    border: 0;
    border-radius: 7px;
    padding: 14px;
    font-size: 16px;
    font-family: 'Archivo Black', 'Archivo', system-ui, sans-serif;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    transition: background .15s;
  }
  .aqq-sticky-btn:hover { background: #b51a1c; }
}

/* ── Mobile: sticky CTA inside modal ────────────────────────────── */
/* On phones the form is taller than the viewport; pin the CTA so    */
/* users never have to scroll down to discover it.                   */
@media (max-width: 480px) {
  .aqq-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .aqq-modal {
    max-height: 95dvh;
    border-radius: 12px 12px 0 0;
    overflow-y: hidden; /* body scrolls; modal itself does not */
  }
  .aqq-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
  }
  /* CTA + fine-print stick to the bottom of the scrollable body */
  .aqq-cta-wrap {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 10px 0 max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid #E5E2DC;
    margin-top: 12px;
  }
  .aqq-cta { margin-top: 0; }
  .aqq-fine { margin-bottom: 0; }
}
