/* ============================================
   UNIVERSAL QUOTE WIDGET — Cars With Fares
   Always visible. Always converting.
   ============================================ */

/* Top-of-page hero form (homepage + city/service pages) */
.qw-hero{
  position:relative;
  padding:100px 0 60px;
  background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);
  border-bottom:1px solid rgba(0,0,0,.04);
}
.qw-hero::before{
  content:'';position:absolute;top:0;left:50%;
  transform:translateX(-50%);
  width:1100px;height:500px;
  background:radial-gradient(ellipse at center top,rgba(30,86,160,.06),transparent 65%);
  pointer-events:none;
}
.qw-hero__mx{
  max-width:1200px;margin:0 auto;padding:0 24px;
  position:relative;z-index:1;
}
.qw-hero__grid{
  display:grid;
  grid-template-columns:1.05fr 1fr;
  gap:56px;
  align-items:center;
}
.qw-hero__copy h1{
  font-size:clamp(34px,5.2vw,56px);
  font-weight:800;
  line-height:1.05;
  letter-spacing:-.035em;
  margin:0 0 18px;
  color:#1A1A2E;
}
.qw-hero__copy h1 em{font-style:normal;color:#1E56A0}
.qw-hero__copy .qw-sub{
  font-size:clamp(16px,2vw,19px);
  color:#4a5568;
  line-height:1.6;
  margin:0 0 24px;
  max-width:560px;
}
.qw-hero__trust{
  display:flex;flex-wrap:wrap;gap:12px;margin:0 0 28px;
}
.qw-hero__trust span{
  display:inline-flex;align-items:center;gap:6px;
  font-size:13px;font-weight:600;color:#1E56A0;
  padding:6px 12px;background:rgba(30,86,160,.06);
  border:1px solid rgba(30,86,160,.12);border-radius:8px;
}
.qw-hero__alt{
  font-size:14px;color:#4a5568;margin:18px 0 0;
}
.qw-hero__alt a{
  color:#1E56A0;font-weight:700;text-decoration:none;
  border-bottom:1px solid rgba(30,86,160,.25);
}
.qw-hero__alt a:hover{border-bottom-color:#1E56A0}

/* The form card */
.qw-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:18px;
  padding:28px;
  box-shadow:0 20px 50px -20px rgba(30,86,160,.18),0 4px 12px rgba(0,0,0,.04);
  position:relative;
}
.qw-card__badge{
  position:absolute;top:-12px;left:24px;
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 14px;border-radius:50px;
  background:#1E56A0;color:#fff;
  font-size:12px;font-weight:700;letter-spacing:.03em;
  text-transform:uppercase;
  box-shadow:0 4px 12px rgba(30,86,160,.3);
}
.qw-card__badge::before{
  content:'';width:8px;height:8px;border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 3px rgba(34,197,94,.25);
  animation:qw-pulse 2s ease-in-out infinite;
}
@keyframes qw-pulse{
  0%,100%{box-shadow:0 0 0 3px rgba(34,197,94,.25)}
  50%{box-shadow:0 0 0 6px rgba(34,197,94,.1)}
}
.qw-card__title{
  font-size:22px;font-weight:800;color:#1A1A2E;
  margin:6px 0 4px;letter-spacing:-.02em;
}
.qw-card__sub{
  font-size:14px;color:#64748b;margin:0 0 20px;
}

/* Form fields */
.qw-form{display:grid;gap:14px}
.qw-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.qw-field{display:flex;flex-direction:column;gap:6px}
.qw-field label{
  font-size:12px;font-weight:600;color:#475569;
  letter-spacing:.02em;text-transform:uppercase;
}
.qw-field input,
.qw-field textarea,
.qw-field select{
  width:100%;
  padding:13px 14px;
  border:1.5px solid #e2e8f0;
  border-radius:10px;
  background:#fff;
  font-size:15px;
  font-family:inherit;
  color:#1A1A2E;
  transition:all .18s;
  outline:none;
  -webkit-appearance:none;
  appearance:none;
}
.qw-field textarea{resize:vertical;min-height:80px;line-height:1.5}
.qw-field input:focus,
.qw-field textarea:focus,
.qw-field select:focus{
  border-color:#1E56A0;
  box-shadow:0 0 0 4px rgba(30,86,160,.08);
}
.qw-field input::placeholder,
.qw-field textarea::placeholder{color:#94a3b8}
.qw-field select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:40px;
}

.qw-btn{
  width:100%;
  padding:16px 24px;
  background:#1E56A0;
  color:#fff;
  border:none;
  border-radius:10px;
  font-size:16px;
  font-weight:700;
  font-family:inherit;
  cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  transition:all .2s;
  box-shadow:0 4px 14px rgba(30,86,160,.25);
  margin-top:4px;
}
.qw-btn:hover{background:#174687;box-shadow:0 6px 20px rgba(30,86,160,.35);transform:translateY(-1px)}
.qw-btn:disabled{opacity:.7;cursor:not-allowed;transform:none}
.qw-honey{display:none}
.qw-note{
  font-size:12px;color:#64748b;text-align:center;
  margin:8px 0 0;line-height:1.5;
}
.qw-note a{color:#1E56A0;font-weight:600;text-decoration:none}

.qw-success{
  text-align:center;padding:24px 8px;
}
.qw-success__icon{
  width:56px;height:56px;border-radius:50%;
  background:rgba(34,197,94,.12);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 16px;color:#16a34a;
}
.qw-success h3{font-size:20px;font-weight:800;color:#1A1A2E;margin:0 0 8px}
.qw-success p{font-size:14px;color:#475569;line-height:1.6;margin:0}
.qw-success a{color:#1E56A0;font-weight:700;text-decoration:none}

/* Compact mid-page form (used elsewhere on landing pages) */
.qw-compact{
  margin:32px 0;
  background:linear-gradient(135deg,#1E56A0 0%,#174687 100%);
  border-radius:18px;
  padding:28px;
  box-shadow:0 20px 40px -16px rgba(30,86,160,.4);
  position:relative;
  overflow:hidden;
}
.qw-compact::before{
  content:'';position:absolute;top:-50%;right:-20%;
  width:400px;height:400px;
  background:radial-gradient(circle,rgba(212,135,42,.15),transparent 60%);
  pointer-events:none;
}
.qw-compact__inner{position:relative;z-index:1}
.qw-compact h3{
  font-size:22px;font-weight:800;color:#fff;
  margin:0 0 6px;letter-spacing:-.02em;
}
.qw-compact p{font-size:14px;color:rgba(255,255,255,.85);margin:0 0 18px}
.qw-compact .qw-field label{color:rgba(255,255,255,.85)}
.qw-compact .qw-field input,
.qw-compact .qw-field textarea{
  background:rgba(255,255,255,.95);
  border-color:transparent;
}
.qw-compact .qw-btn{
  background:#D4872A;
  box-shadow:0 4px 14px rgba(212,135,42,.4);
}
.qw-compact .qw-btn:hover{background:#b8731f;box-shadow:0 6px 20px rgba(212,135,42,.5)}
.qw-compact .qw-note{color:rgba(255,255,255,.75)}
.qw-compact .qw-note a{color:#fff;border-bottom:1px solid rgba(255,255,255,.4)}

/* Responsive */
@media(max-width:960px){
  .qw-hero{padding:90px 0 40px}
  .qw-hero__grid{grid-template-columns:1fr;gap:32px}
  .qw-hero__copy{order:0}
  .qw-card{order:1}
}
@media(max-width:640px){
  .qw-hero{padding:80px 0 32px}
  .qw-hero__mx{padding:0 16px}
  .qw-card{padding:22px;border-radius:14px}
  .qw-card__title{font-size:19px}
  .qw-row{grid-template-columns:1fr}
  .qw-compact{padding:22px;border-radius:14px}
}

/* Sticky mobile call + quote bar — injected by quote-widget.js on pages without one.
   The #1 mobile conversion is tap-to-call; this keeps it one thumb-tap away everywhere. */
.qw-sticky{
  position:fixed;left:0;right:0;bottom:0;z-index:980;
  display:none;gap:8px;padding:10px 12px;
  background:rgba(255,255,255,.97);
  -webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  border-top:1px solid rgba(0,0,0,.08);
  box-shadow:0 -4px 16px rgba(0,0,0,.08);
}
.qw-sticky a{
  flex:1;display:flex;align-items:center;justify-content:center;gap:7px;
  padding:14px;border-radius:11px;
  font-family:inherit;font-size:15px;font-weight:700;text-decoration:none;
  transition:background .15s;
}
.qw-sticky__call{background:#1E56A0;color:#fff;box-shadow:0 4px 12px rgba(30,86,160,.28)}
.qw-sticky__call:hover{background:#174687}
.qw-sticky__quote{background:rgba(30,86,160,.08);color:#1E56A0;border:1px solid rgba(30,86,160,.18)}
@media(max-width:768px){.qw-sticky{display:flex}body.qw-has-sticky{padding-bottom:76px}}
