/* ================================================================
   CleanQuote Pro — shared.css
   Common design system used across all pages.
   Tokens, Nav, Hero, Legal layout, Contact, Footer, Responsive.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
  --blue-900:    #0A1628;
  --blue-800:    #102040;
  --blue-700:    #1B3A6B;
  --brand:       #1B4FD8;
  --brand-dark:  #1640B0;
  --brand-glow:  rgba(27,79,216,0.40);
  --brand-soft:  rgba(27,79,216,0.10);
  --indigo:      #6366F1;
  --indigo-glow: rgba(99,102,241,0.25);
  --teal:        #0EA5E9;

  --white:    #FFFFFF;
  --gray-50:  #F8FAFF;
  --gray-100: #F1F5FB;
  --gray-200: #E2E8F4;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  --green:      #10B981;
  --green-soft: rgba(16,185,129,0.10);
  --amber:      #F59E0B;
  --red:        #EF4444;
  --red-soft:   rgba(239,68,68,0.10);

  --r-xl:   24px;
  --r-lg:   18px;
  --r-md:   12px;
  --r-sm:   8px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.05);

  --ease: cubic-bezier(.4,0,.2,1);
  --t:    .22s;
}

/* ── RESET ───────────────────────────────────────────────── */
*,*::before,*::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--gray-800);
  background: var(--gray-50);
  overflow-x: hidden;
  line-height: 1.65;
}
img { display:block; max-width:100%; }
a  { color: inherit; }

/* ════════════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════════════ */
nav {
  position: fixed; top:0; left:0; right:0; z-index:500;
  background: rgba(10,22,40,0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-inner {
  max-width: 1200px; margin:0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items:center; justify-content:space-between;
}
.logo {
  font-size:1.15rem; font-weight:800;
  color:#fff; text-decoration:none;
  display:flex; align-items:center; gap:8px;
  letter-spacing:-0.02em;
  flex-shrink: 0;
}
.logo span { color:var(--teal); }

.nav-links { display:none; align-items:center; gap:4px; }
.nav-links a {
  padding:.38rem .82rem; border-radius:var(--r-sm);
  text-decoration:none; color:rgba(255,255,255,0.58);
  font-size:.85rem; font-weight:500;
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
  white-space: nowrap;
}
.nav-links a:hover  { color:#fff; background:rgba(255,255,255,0.09); }
.nav-links a.active { color:#fff; background:rgba(255,255,255,0.11); font-weight:600; }
.btn-nav {
  background: var(--brand) !important;
  color: #fff !important;
  padding: .42rem 1.1rem !important;
  border-radius: var(--r-sm) !important;
  font-weight: 600 !important;
  font-size: .85rem !important;
  box-shadow: 0 2px 14px var(--brand-glow) !important;
  transition: filter var(--t) var(--ease) !important;
}
.btn-nav:hover { filter:brightness(1.12) !important; }

/* ════════════════════════════════════════════════════════
   PAGE WRAPPER — offsets fixed nav
════════════════════════════════════════════════════════ */
.page-wrap { padding-top: 64px; }

/* ════════════════════════════════════════════════════════
   HERO — full dark band (used on index / legal / contact)
════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(160deg, var(--blue-900) 0%, var(--blue-800) 55%, #1a1060 100%);
  padding: 9rem 2rem 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before, .hero::after {
  content:''; position:absolute; border-radius:50%; pointer-events:none;
}
.hero::before {
  width:700px; height:700px; top:-220px; left:-160px;
  background: radial-gradient(circle, rgba(27,79,216,0.20) 0%, transparent 65%);
}
.hero::after {
  width:600px; height:600px; bottom:-220px; right:-120px;
  background: radial-gradient(circle, rgba(99,102,241,0.16) 0%, transparent 65%);
}

/* Mini hero — smaller, for legal/contact pages */
.hero-sm {
  padding: 7rem 2rem 4.5rem;
}
.hero-eyebrow {
  display: inline-flex; align-items:center; gap:6px;
  background: rgba(27,79,216,0.22);
  border: 1px solid rgba(27,79,216,0.38);
  color: var(--teal);
  font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  padding: 5px 16px; border-radius: var(--r-pill);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2rem,5vw,3.2rem);
  font-weight: 900; line-height: 1.12;
  color: #fff; letter-spacing:-0.04em;
  margin-bottom: 1rem;
}
.hero h1 em { font-style:normal; color:var(--teal); }
.hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.52);
  max-width: 480px; margin: 0 auto;
  font-weight:400; line-height:1.7;
}
.hero-btns {
  display: flex; gap:.85rem; justify-content:center; flex-wrap:wrap;
  margin-top: 2.2rem;
}
.btn-hero-primary {
  background: #fff; color: var(--brand);
  padding: .85rem 2rem; border-radius: var(--r-md);
  font-weight: 800; font-size:.97rem;
  text-decoration: none; border:none; cursor:pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  transition: all var(--t) var(--ease);
}
.btn-hero-primary:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(0,0,0,0.24); }
.btn-hero-outline {
  background: transparent; color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.28);
  padding: .85rem 2rem; border-radius: var(--r-md);
  font-weight: 600; font-size:.97rem;
  text-decoration: none; cursor:pointer;
  transition: all var(--t) var(--ease);
}
.btn-hero-outline:hover { background:rgba(255,255,255,0.10); border-color:rgba(255,255,255,0.50); }

/* Wave divider */
.wave-divider {
  display:block; width:100%; overflow:hidden; line-height:0;
  margin-top: -1px;
}
.wave-divider svg { display:block; width:100%; }

/* Trust strip */
.trust-strip {
  display:flex; align-items:center; justify-content:center;
  gap:1.4rem; flex-wrap:wrap; margin-top:2.2rem;
}
.trust-item {
  display:flex; align-items:center; gap:7px;
  font-size:.8rem; font-weight:500; color:rgba(255,255,255,0.40);
}

/* ════════════════════════════════════════════════════════
   SECTION UTILITIES
════════════════════════════════════════════════════════ */
.section {
  max-width:1200px; margin:0 auto;
  padding: 5rem 1.75rem;
}
.section-sm { padding: 4rem 1.75rem; }

.section-eyebrow {
  display:inline-flex; align-items:center; gap:6px;
  background: var(--brand-soft); color:var(--brand);
  font-size:.72rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  padding:5px 14px; border-radius:var(--r-pill); margin-bottom:.85rem;
}
.section-header {
  text-align:center; margin-bottom:3.5rem;
  display:flex; flex-direction:column; align-items:center; gap:.5rem;
}
.section-header h2 {
  font-size: clamp(1.8rem,3.5vw,2.5rem);
  font-weight:800; letter-spacing:-0.03em; color:var(--gray-900); line-height:1.18;
}
.section-header h2 span { color:var(--brand); }
.section-header p { font-size:1rem; color:var(--gray-500); max-width:480px; }

/* ════════════════════════════════════════════════════════
   CARDS (feature cards, etc.)
════════════════════════════════════════════════════════ */
.card {
  background:#fff; border:1px solid var(--gray-200);
  border-radius:var(--r-lg); padding:2rem 1.75rem;
  box-shadow:var(--shadow-sm);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.card:hover {
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
}
.card-icon {
  width:44px; height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.3rem; background:var(--brand-soft); margin-bottom:1.1rem;
}
.card h3 { font-size:1rem; font-weight:700; color:var(--gray-900); margin-bottom:.5rem; letter-spacing:-0.01em; }
.card p  { font-size:.88rem; color:var(--gray-500); line-height:1.65; }

/* ════════════════════════════════════════════════════════
   LEGAL PAGES
════════════════════════════════════════════════════════ */
.legal-wrap {
  max-width: 780px; margin:0 auto;
  padding: 4rem 1.75rem 5rem;
}
.legal-meta {
  display:flex; align-items:center; gap:.6rem;
  font-size:.8rem; color:var(--gray-400);
  margin-bottom:2.5rem;
  padding-bottom:1.25rem;
  border-bottom:1px solid var(--gray-200);
  flex-wrap:wrap;
}
.legal-meta-dot { width:3px; height:3px; background:var(--gray-300); border-radius:50%; }

.legal-wrap h2 {
  font-size:1.05rem; font-weight:700;
  color:var(--gray-900); letter-spacing:-0.02em;
  margin:2.25rem 0 .65rem;
  padding-left:.9rem;
  border-left:3px solid var(--brand);
}
.legal-wrap p, .legal-wrap li {
  font-size:.93rem; color:var(--gray-500);
  line-height:1.75; margin-bottom:.65rem;
}
.legal-wrap ul {
  padding-left:1.4rem; margin-bottom:.65rem;
}
.legal-wrap ul li::marker { color:var(--brand); }
.legal-wrap a { color:var(--brand); text-decoration:none; font-weight:500; }
.legal-wrap a:hover { text-decoration:underline; }
.legal-wrap strong { color:var(--gray-800); font-weight:600; }

.legal-contact-box {
  background:linear-gradient(135deg, var(--brand-soft), rgba(99,102,241,0.06));
  border:1px solid rgba(27,79,216,0.18);
  border-radius:var(--r-lg); padding:1.5rem 1.75rem;
  margin-top:2.5rem;
  display:flex; align-items:flex-start; gap:1rem;
}
.legal-contact-icon {
  font-size:1.5rem; flex-shrink:0; margin-top:.1rem;
}
.legal-contact-box p {
  margin:0; font-size:.9rem; color:var(--gray-600); line-height:1.6;
}
.legal-contact-box a { color:var(--brand); font-weight:600; }

/* ════════════════════════════════════════════════════════
   CONTACT PAGE
════════════════════════════════════════════════════════ */
.contact-grid {
  display:grid; grid-template-columns:1fr;
  gap:1.5rem;
  max-width:1000px; margin:0 auto;
  padding:0 1.75rem 5rem;
}

.info-card, .form-card {
  background:#fff; border:1px solid var(--gray-200);
  border-radius:var(--r-lg); padding:2rem 1.75rem;
  box-shadow:var(--shadow-sm);
}
.info-card h2, .form-card h2 {
  font-size:1.05rem; font-weight:700;
  color:var(--gray-900); margin-bottom:1.5rem;
  letter-spacing:-0.02em;
}

/* Contact info items */
.ci {
  display:flex; align-items:flex-start; gap:1rem;
  padding:.9rem 0; border-bottom:1px solid var(--gray-100);
}
.ci:last-of-type { border-bottom:none; }
.ci-icon-wrap {
  width:38px; height:38px; border-radius:10px;
  background:var(--brand-soft);
  display:flex; align-items:center; justify-content:center;
  font-size:1.1rem; flex-shrink:0;
}
.ci-body strong {
  display:block; font-size:.7rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.08em;
  color:var(--gray-400); margin-bottom:.22rem;
}
.ci-body a, .ci-body span {
  font-size:.92rem; color:var(--gray-700); font-weight:500; text-decoration:none;
}
.ci-body a:hover { color:var(--brand); }
.badge-green {
  display:inline-flex; align-items:center; gap:.35rem;
  background:var(--green-soft); color:var(--green);
  padding:.22rem .75rem; border-radius:var(--r-pill);
  font-size:.73rem; font-weight:700; margin-top:.4rem;
}
.contact-note {
  margin-top:1.5rem; padding:1rem 1.25rem;
  background:var(--gray-50); border-radius:var(--r-md);
  border:1px solid var(--gray-200);
  font-size:.84rem; color:var(--gray-500); line-height:1.6;
}
.contact-note a { color:var(--brand); text-decoration:none; font-weight:500; }

/* Form */
.f-group { margin-bottom:1rem; }
.f-group label {
  display:block; font-size:.73rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.07em;
  color:var(--gray-400); margin-bottom:.4rem;
}
.f-group input,
.f-group textarea,
.f-group select {
  width:100%; padding:.75rem 1rem;
  border-radius:var(--r-md); border:1.5px solid var(--gray-200);
  background:var(--gray-50); color:var(--gray-800);
  font-size:.92rem; font-family:inherit;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
  outline:none;
}
.f-group input:focus,
.f-group textarea:focus,
.f-group select:focus {
  border-color:var(--brand); background:#fff;
  box-shadow:0 0 0 3px var(--brand-soft);
}
.f-group textarea { resize:vertical; min-height:130px; }
.btn-submit {
  width:100%; padding:.9rem;
  background:linear-gradient(135deg,var(--brand),var(--indigo));
  color:#fff; border:none; border-radius:var(--r-md);
  font-weight:700; font-size:.97rem; cursor:pointer;
  box-shadow:0 4px 20px var(--brand-glow);
  transition:all var(--t) var(--ease);
}
.btn-submit:hover { transform:translateY(-2px); box-shadow:0 8px 30px var(--brand-glow); }
.btn-submit:disabled { opacity:.6; cursor:not-allowed; transform:none; }
.form-success {
  display:none; background:var(--green-soft); color:#065F46;
  border:1px solid rgba(16,185,129,0.25);
  border-radius:var(--r-md); padding:1.1rem 1.25rem;
  text-align:center; font-weight:600; font-size:.9rem; margin-top:1rem;
}
.form-error {
  display:none; background:var(--red-soft); color:#991B1B;
  border:1px solid rgba(239,68,68,0.20);
  border-radius:var(--r-md); padding:.9rem 1.1rem;
  font-size:.88rem; margin-bottom:1rem;
}

/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
footer {
  background: var(--blue-900);
  padding: 4.5rem 2rem 0;
  margin-top: 5rem;
}
.footer-inner {
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns:1fr;
  gap:2.5rem; padding-bottom:3rem;
}
.footer-logo {
  font-size:1.1rem; font-weight:800;
  color:#fff; text-decoration:none;
  display:flex; align-items:center; gap:8px;
  margin-bottom:.9rem;
}
.footer-logo span { color:var(--teal); }
.footer-desc  { font-size:.84rem; line-height:1.7; color:rgba(255,255,255,0.30); max-width:280px; margin-bottom:.7rem; }
.footer-email { font-size:.82rem; color:rgba(255,255,255,0.28); }
.footer-email a { color:rgba(255,255,255,0.38); text-decoration:none; transition:color var(--t); }
.footer-email a:hover { color:#fff; }
.footer-brand-label { font-size:.73rem; color:rgba(255,255,255,0.15); margin-top:.5rem; }

.footer-col h4 {
  font-size:.72rem; font-weight:700;
  letter-spacing:.09em; text-transform:uppercase;
  color:rgba(255,255,255,0.28); margin-bottom:1rem;
}
.footer-col a {
  display:block; font-size:.86rem;
  color:rgba(255,255,255,0.38); text-decoration:none;
  margin-bottom:.55rem; transition:color var(--t) var(--ease);
}
.footer-col a:hover { color:#fff; }

.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.06);
  padding:1.25rem 0;
  max-width:1200px; margin:0 auto;
  display:flex; flex-direction:column;
  align-items:center; text-align:center;
  gap:.4rem; font-size:.77rem; color:rgba(255,255,255,0.18);
}

/* ════════════════════════════════════════════════════════
   CTA BAND (reusable across pages)
════════════════════════════════════════════════════════ */
.cta-band {
  background:linear-gradient(135deg, var(--blue-800) 0%, #1a1060 100%);
  padding:5rem 2rem; text-align:center; position:relative; overflow:hidden;
}
.cta-band::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(ellipse 70% 80% at 50% 50%, rgba(27,79,216,0.22), transparent);
  pointer-events:none;
}
.cta-band h2 { font-size:clamp(1.7rem,3.5vw,2.4rem); font-weight:800; color:#fff; letter-spacing:-0.03em; margin-bottom:.8rem; }
.cta-band p  { font-size:1rem; color:rgba(255,255,255,0.52); margin-bottom:2rem; }

/* ════════════════════════════════════════════════════════
   SPINNER / LOADING
════════════════════════════════════════════════════════ */
.spinner {
  width:30px; height:30px;
  border:3px solid rgba(27,79,216,0.15);
  border-top-color:var(--brand);
  border-radius:50%;
  animation:spin .7s linear infinite;
  margin:0 auto;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (min-width:640px) {
  .contact-grid { grid-template-columns: 1fr 1.5fr; }
}
@media (min-width:960px) {
  .nav-links   { display:flex; }
  .footer-inner { grid-template-columns: 1.8fr 1fr 1fr; }
  .footer-bottom { flex-direction:row; justify-content:space-between; text-align:left; }
}


/* ════════════════════════════════════════════════════════
   HAMBURGER BUTTON (Mobile only)
════════════════════════════════════════════════════════ */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 8px;
  color: rgba(255,255,255,0.80);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  flex-shrink: 0;
}
.nav-hamburger:hover { background: rgba(255,255,255,0.13); color: #fff; }
.nav-hamburger svg  { pointer-events: none; }

/* ════════════════════════════════════════════════════════
   MOBILE NAV OVERLAY
════════════════════════════════════════════════════════ */
.nav-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 598;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s var(--ease), visibility 0.28s;
}
.nav-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

/* ════════════════════════════════════════════════════════
   MOBILE NAV DRAWER (slides in from right)
════════════════════════════════════════════════════════ */
.nav-drawer {
  display: none;
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(300px, 85vw);
  background: #080f20;
  border-left: 1px solid rgba(255,255,255,0.08);
  z-index: 599;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
  overflow-y: auto;
}
.nav-drawer.open { transform: translateX(0); }

.nav-drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem;
  min-height: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
}
.nav-drawer-close {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 7px;
  color: rgba(255,255,255,0.60);
  cursor: pointer; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.nav-drawer-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.nav-drawer-links {
  display: flex; flex-direction: column;
  padding: 1rem 0.75rem;
  gap: 3px; flex: 1;
}
.nav-drawer-links a {
  display: flex; align-items: center;
  padding: 0.72rem 0.9rem;
  border-radius: 9px;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 0.94rem; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.nav-drawer-links a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.nav-drawer-links a.active { background: rgba(27,79,216,0.18); color: #93c5fd; font-weight: 600; }

.nav-drawer-cta {
  padding: 1rem 1.25rem 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.btn-nav-drawer {
  display: block; text-align: center;
  padding: 0.8rem 1rem;
  background: var(--brand);
  color: #fff;
  border-radius: 10px;
  font-weight: 700; font-size: 0.94rem;
  text-decoration: none;
  box-shadow: 0 4px 16px var(--brand-glow);
  transition: filter 0.15s, transform 0.15s;
}
.btn-nav-drawer:hover { filter: brightness(1.12); transform: translateY(-1px); }

/* Show drawer + overlay on mobile only */
@media (max-width: 959px) {
  .nav-overlay,
  .nav-drawer { display: flex; }
}
@media (min-width: 960px) {
  .nav-hamburger { display: none; }
  .nav-overlay,
  .nav-drawer { display: none !important; }
}

/* ════════════════════════════════════════════════════════
   AUTH MODAL — CSS Classes (injected by auth.js)
════════════════════════════════════════════════════════ */
.cqp-modal-overlay {
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(5,12,28,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  animation: cqpFadeIn 0.2s var(--ease);
}
@keyframes cqpFadeIn { from { opacity:0 } to { opacity:1 } }

.cqp-modal-box {
  background: linear-gradient(160deg, #0d1b35 0%, #111827 100%);
  width: 100%; max-width: 440px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 25px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(27,79,216,0.12);
  overflow: hidden;
  position: relative;
  animation: cqpSlideUp 0.22s var(--ease);
}
@keyframes cqpSlideUp {
  from { opacity:0; transform:translateY(16px) }
  to   { opacity:1; transform:translateY(0) }
}

.cqp-modal-inner { padding: 1.75rem 1.75rem 1.5rem; }

.cqp-modal-header {
  text-align: center;
  padding: 1.5rem 1.75rem 0;
}
.cqp-modal-logo  { font-size: 2.2rem; margin-bottom: 0.4rem; }
.cqp-modal-title {
  font-size: 1.2rem; font-weight: 800;
  color: #60a5fa; letter-spacing: -0.02em;
  margin-bottom: 0.1rem;
}
.cqp-modal-sub   { font-size: .78rem; color: #475569; }

.cqp-modal-tabs {
  display: flex;
  background: #060d1e;
  border-radius: 11px; padding: 3px;
  gap: 3px; margin: 1.25rem 1.75rem 0;
}
.cqp-tab-btn {
  flex: 1; padding: .5rem;
  border: none; border-radius: 8px;
  font-size: .84rem; font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  background: transparent; color: #475569;
}
.cqp-tab-btn.active {
  background: #1e293b; color: #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.cqp-tab-btn:hover:not(.active) { color: #94a3b8; }

.cqp-modal-msg {
  display: none;
  padding: .7rem 1rem;
  border-radius: 9px;
  font-size: .84rem;
  font-weight: 500;
  margin-bottom: .9rem;
  line-height: 1.5;
}
.cqp-modal-msg.error   {
  background: rgba(127,29,29,0.6);
  color: #fca5a5;
  border: 1px solid rgba(239,68,68,0.30);
}
.cqp-modal-msg.success {
  background: rgba(5,46,22,0.6);
  color: #86efac;
  border: 1px solid rgba(16,185,129,0.30);
}

.cqp-field { margin-bottom: .9rem; }
.cqp-label {
  display: block;
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  color: #475569; margin-bottom: .35rem;
}
.cqp-label-hint {
  font-size: .72rem; font-weight: 400;
  color: #334155; text-transform: none; letter-spacing: 0;
}
.cqp-input {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: 9px;
  background: #060d1e;
  border: 1.5px solid #1e293b;
  color: #e2e8f0;
  font-size: .92rem;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.cqp-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(27,79,216,0.20);
}
.cqp-input::placeholder { color: #334155; }

.cqp-input-wrap { position: relative; }
.cqp-pwd-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #475569; font-size: .82rem; padding: 4px 6px;
  transition: color .15s;
}
.cqp-pwd-toggle:hover { color: #94a3b8; }

.cqp-forgot-row {
  text-align: right; margin: -.1rem 0 .9rem;
}
.cqp-forgot-link {
  background: none; border: none;
  color: #475569; font-size: .8rem;
  cursor: pointer; text-decoration: underline;
  transition: color .15s;
}
.cqp-forgot-link:hover { color: #94a3b8; }

/* Buttons */
.cqp-btn {
  display: block; width: 100%;
  padding: .88rem;
  border: none; border-radius: 10px;
  font-weight: 700; font-size: .95rem;
  cursor: pointer; font-family: inherit;
  transition: all .18s;
  letter-spacing: .01em;
}
.cqp-btn:hover   { opacity: .88; transform: translateY(-1px); }
.cqp-btn:active  { transform: scale(.98); }
.cqp-btn:disabled {
  opacity: .5; cursor: not-allowed;
  transform: none;
}
.cqp-btn-blue {
  background: linear-gradient(135deg,#1565C0,#1976D2);
  color: #fff;
  box-shadow: 0 4px 18px rgba(21,101,192,0.40);
}
.cqp-btn-green {
  background: linear-gradient(135deg,#15803d,#16a34a);
  color: #fff;
  box-shadow: 0 4px 18px rgba(21,128,61,0.35);
}
.cqp-btn-amber {
  background: linear-gradient(135deg,#b45309,#d97706);
  color: #fff;
  box-shadow: 0 4px 18px rgba(180,83,9,0.35);
}
.cqp-btn-blue2  { /* Continue to App */
  background: linear-gradient(135deg,#1565C0,#1976D2);
  color: #fff;
  box-shadow: 0 4px 18px rgba(21,101,192,0.40);
}
.cqp-btn-ghost {
  background: transparent;
  color: #64748b;
  border: 1px solid transparent;
  font-size: .86rem; font-weight: 500;
  text-decoration: underline; padding: .5rem;
}
.cqp-btn-ghost:hover { color: #94a3b8; transform: none; opacity: 1; }

.cqp-divider { margin: .85rem 0; text-align: center; }
.cqp-btn-demo {
  background: none; border: none;
  color: #475569; font-size: .84rem;
  cursor: pointer; text-decoration: underline;
  font-family: inherit;
  transition: color .15s;
}
.cqp-btn-demo:hover { color: #94a3b8; }

.cqp-terms {
  text-align: center; color: #374151;
  font-size: .76rem; margin-top: .8rem; line-height: 1.6;
}
.cqp-terms a { color: #60a5fa; text-decoration: none; }
.cqp-terms a:hover { text-decoration: underline; }

.cqp-modal-footer {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: .9rem 1.75rem 1.1rem;
  font-size: .78rem; color: #334155;
}
.cqp-modal-footer a {
  color: #60a5fa; font-size: .82rem;
  font-weight: 600; text-decoration: none;
}
.cqp-modal-footer a:hover { text-decoration: underline; }

/* Success panel */
.cqp-success-icon { font-size: 3rem; margin-bottom: .5rem; color: #10b981; }
.cqp-success-title {
  font-size: 1.1rem; font-weight: 800; color: #f8fafc;
  margin-bottom: .25rem;
}
.cqp-success-email {
  color: #60a5fa; font-weight: 600; font-size: 1rem; margin-bottom: .5rem;
}
.cqp-success-text {
  color: #94a3b8; font-size: .88rem;
  margin-bottom: 1.5rem; line-height: 1.55;
}
.cqp-success-btns {
  display: flex; gap: 10px; margin-bottom: 1rem;
}
.cqp-success-btns .cqp-btn {
  padding: .75rem; font-size: .85rem;
  background: transparent; color: #e2e8f0;
  border: 1px solid #334155;
  box-shadow: none; font-weight: 600;
}
.cqp-success-btns .cqp-btn:hover { background: rgba(255,255,255,0.05); border-color: #475569; }

.cqp-change-email-form {
  display: none;
  margin-bottom: 1rem;
  background: #060d1e;
  padding: 1rem; border-radius: 9px;
  border: 1px solid #1e293b;
  text-align: left;
}
.cqp-change-email-row {
  display: flex; gap: 8px; margin-top: .5rem;
}
.cqp-change-email-row .cqp-input { flex: 1; }
.cqp-change-email-row .cqp-btn-sm {
  background: var(--brand); color: #fff;
  border: none; padding: 0 1rem;
  border-radius: 7px; font-weight: 700;
  cursor: pointer; font-size: .85rem;
  flex-shrink: 0;
}
