/* Loan Matrix section — Rates theme.
   Navy and cool blue. Cobalt #2456e6 only on buttons. No teal or green outlines. */
.pq-section {
  --pq-navy: #010319;
  --pq-navy-2: #02071b;
  --pq-ink: #e8f1fb;
  --pq-muted: #9db0c8;
  --pq-cool: #7cd2fb;
  --pq-cobalt: #2456e6;
  --pq-line: rgba(165, 211, 235, 0.18);
  position: relative;
  background:
    radial-gradient(ellipse 70% 240px at 50% 0, rgba(124, 58, 237, 0.14), transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(36, 86, 230, 0.12), transparent 65%),
    linear-gradient(180deg, #05040d 0%, #02071b 28%, #010319 100%);
  color: var(--pq-ink);
  padding: 3.4rem 0 5rem;
  border-top: 1px solid rgba(124, 58, 237, 0.22);
}
.pq-section .wrap { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.pq-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pq-cool);
}
.pq-section h2 {
  margin: 0 0 1.35rem;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 750;
  color: #f0f6ff;
}
.pq-copy { margin: 0 0 1rem; font-size: 1.05rem; line-height: 1.65; color: #c5d4e8; }
.pq-copy + .pq-copy { margin-bottom: 1.7rem; }

.pq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.4rem;
}
.pq-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font: 700 0.92rem/1.15 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--pq-cobalt);
  border: 1px solid #2456e6;
  box-shadow: 0 8px 22px rgba(36, 86, 230, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.pq-btn:hover, .pq-btn:focus-visible {
  background: #1d4ad0;
  border-color: #1d4ad0;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(36, 86, 230, 0.48);
  outline: none;
  color: #fff;
}
.pq-btn.is-open {
  box-shadow: 0 0 0 3px rgba(36, 86, 230, 0.35), 0 12px 28px rgba(36, 86, 230, 0.48);
}
.pq-btn-join {
  /* Same cobalt look; this is a hook to /join-team/, not a local form. */
}

.pq-panel {
  background: rgba(8, 16, 36, 0.78);
  border: 1px solid var(--pq-line);
  border-radius: 18px;
  padding: 1.35rem 1.35rem 1.2rem;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.pq-panel[hidden] { display: none !important; }
.pq-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}
.pq-panel-head h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: #f0f6ff;
}
.pq-intro { margin: 0.25rem 0 0; color: var(--pq-muted); font-size: 0.92rem; line-height: 1.5; }
.pq-close {
  appearance: none;
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--pq-line);
  background: rgba(2, 7, 27, 0.7);
  color: #e8f1fb;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.pq-close:hover, .pq-close:focus-visible {
  border-color: rgba(36, 86, 230, 0.7);
  outline: none;
}

.pq-form { display: grid; gap: 0.85rem; }
.pq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.pq-field { display: flex; flex-direction: column; gap: 0.35rem; }
.pq-field-full { grid-column: 1 / -1; }
.pq-field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c5d4e8;
}
.pq-opt { font-weight: 600; letter-spacing: 0.04em; text-transform: none; color: var(--pq-muted); }
.pq-field input,
.pq-field select,
.pq-field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: #f0f6ff;
  background: rgba(1, 3, 25, 0.85);
  border: 1px solid rgba(165, 211, 235, 0.28);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pq-field textarea { min-height: 5.2rem; resize: vertical; }
.pq-field input::placeholder,
.pq-field textarea::placeholder { color: #6d7d94; }
.pq-field input:focus,
.pq-field select:focus,
.pq-field textarea:focus {
  border-color: #2456e6;
  box-shadow: 0 0 0 3px rgba(36, 86, 230, 0.28);
}
.pq-run-fields[hidden] { display: none !important; }
.pq-run-fields { display: contents; }

.pq-submit {
  appearance: none;
  justify-self: start;
  padding: 0.8rem 1.3rem;
  border-radius: 12px;
  font: 700 0.95rem/1 "Segoe UI", system-ui, sans-serif;
  color: #fff;
  background: #2456e6;
  border: 1px solid #2456e6;
  box-shadow: 0 8px 22px rgba(36, 86, 230, 0.35);
  cursor: pointer;
}
.pq-submit:hover, .pq-submit:focus-visible {
  background: #1d4ad0;
  outline: none;
}
.pq-note, .pq-fine {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--pq-muted);
}
.pq-thanks { margin: 0; color: #e8f1fb; font-size: 1.02rem; line-height: 1.55; }
.pq-thanks[hidden] { display: none !important; }

@media (max-width: 640px) {
  .pq-section { padding: 2.6rem 0 3.6rem; }
  .pq-section .wrap { width: min(100% - 1.6rem, 820px); }
  .pq-grid { grid-template-columns: 1fr; }
  .pq-actions { flex-direction: column; }
  .pq-btn, .pq-btn-join { width: 100%; }
}

/* Path chooser: shown first; copy and action buttons stay hidden until a path is picked. */
.pq-question {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #f0f6ff;
}
.pq-chooser-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin: 0 0 1.6rem;
}
.pq-choice {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 4.4rem;
  padding: 1.05rem 1.15rem;
  border-radius: 14px;
  font: 700 1.05rem/1.25 "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0.01em;
  color: #fff;
  cursor: pointer;
  background: #2456e6;
  border: 1px solid #2456e6;
  box-shadow: 0 10px 24px rgba(36, 86, 230, 0.32);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, filter 0.15s ease;
}
.pq-choice:hover, .pq-choice:focus-visible {
  background: #1d4ad0;
  border-color: #1d4ad0;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(36, 86, 230, 0.46);
  outline: none;
}
.pq-choice[aria-pressed="true"] {
  box-shadow: 0 0 0 3px rgba(36, 86, 230, 0.4), 0 14px 30px rgba(36, 86, 230, 0.46);
  filter: brightness(1.06);
}
.pq-chooser.is-chosen .pq-chooser-actions { margin-bottom: 1.15rem; }
.pq-path[hidden] { display: none !important; }
.pq-path { margin: 0 0 0.2rem; }
.pq-path .pq-copy { margin-bottom: 1.35rem; }
.pq-fine[hidden] { display: none !important; }

@media (max-width: 640px) {
  .pq-chooser-actions { grid-template-columns: 1fr; }
  .pq-choice { min-height: 3.8rem; font-size: 1rem; }
}

.pq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pq-err { margin: 0.2rem 0 0; font-size: 0.92rem; line-height: 1.45; color: #fecdd3; }
.pq-err[hidden] { display: none !important; }
.pq-submit[disabled] { opacity: 0.7; cursor: wait; }

.pq-access {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #d5e2f2;
}
.pq-access[hidden] { display: none !important; }
.pq-lo-fields[hidden] { display: none !important; }
.pq-lo-fields { display: contents; }
