/* ==========================================================================
   Joen — Home page "Free Moving Quote" section (index.html only)
   Left: message, buttons, animated truck.  Right: Packers CRM quote form card.
   ========================================================================== */
.jp-hq { padding: 70px 0 60px; background: #f4f5f7; border-radius: 20px; margin: 0 15px; overflow: hidden; }
.jp-hq-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  grid-template-areas: "text form" "truck form"; column-gap: 56px; row-gap: 26px; align-items: start;
}
.jp-hq-text  { grid-area: text; }
.jp-hq-form  { grid-area: form; }
.jp-hq-truck { grid-area: truck; align-self: end; }

/* text */
.jp-hq-eyebrow { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 50px;
  background: #fde8e9; color: #e30613; font-size: 13px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.jp-hq-title { margin: 0 0 22px; font-size: clamp(34px, 4.1vw, 62px); line-height: 1.04; font-weight: 800;
  text-transform: uppercase; letter-spacing: -.5px; color: var(--tj-color-heading-primary, #0c1e21); }
.jp-hq-title span { color: #e30613; }
.jp-hq-lead { max-width: 640px; margin: 0 0 30px; font-size: 19px; line-height: 1.6; color: #4b5257; }

/* buttons */
.jp-hq-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.jp-hq-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 26px; border-radius: 12px;
  font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; }
.jp-hq-btn:active { transform: scale(.98); }
.jp-hq-btn-primary { background: #e30613; color: #fff; box-shadow: 0 10px 24px rgba(227, 6, 19, .25); }
.jp-hq-btn-primary:hover { background: #c10510; color: #fff; }
.jp-hq-btn-outline { background: #fff; color: #1d1f22; border: 1.5px solid #dfe2e6; }
.jp-hq-btn-outline:hover { border-color: #e30613; color: #e30613; }
.jp-hq-btn svg { flex-shrink: 0; }
.jp-hq-btn:focus-visible { outline: 3px solid rgba(227, 6, 19, .35); outline-offset: 2px; }

.jp-hq-facts { display: flex; flex-wrap: wrap; gap: 12px 28px; list-style: none; margin: 0; padding: 0; }
.jp-hq-facts li { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 500; color: #3d4348; }
.jp-hq-facts svg { color: #e30613; }

/* form card (the CRM form is an iframe inside it; it sizes itself) */
.jp-hq-card { background: #fff; border: 1px solid #eceef1; border-radius: 22px; padding: 26px 22px 18px;
  box-shadow: 0 24px 60px rgba(17, 24, 39, .08); transition: box-shadow .3s; }
/* The CRM form shows its fields one per row in this column. These heights fit that layout
   (same values the old page used); the script lets the form grow if it needs more room
   (e.g. error messages) but never adds empty space. Adjust --jp-form-h if the CRM form changes. */
.jp-hq-card { --jp-form-h: 920px; }
.jp-hq-card iframe { display: block; width: 100% !important; height: var(--jp-form-h) !important; min-height: 0 !important; border: 0; }
.jp-hq-card.jp-hq-flash { box-shadow: 0 0 0 4px rgba(227, 6, 19, .22), 0 24px 60px rgba(17, 24, 39, .08); }
.jp-hq-note { margin: 10px 4px 0; font-size: 13px; line-height: 1.5; color: #6b7177; }
.jp-hq-note a { color: #e30613; font-weight: 600; text-decoration: none; background: none; border: 0; }
.jp-hq-note a:hover { text-decoration: underline; }

/* truck */
.jp-truck-svg { display: block; width: 100%; max-width: 720px; height: auto; overflow: visible; }
.jp-wheel { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .jp-hq-truck.jp-anim .jp-truck { transform: translateX(-115%); }
  .jp-hq-truck.jp-anim.jp-in .jp-truck { transform: translateX(0); transition: transform 1.8s cubic-bezier(.2, .8, .25, 1); }
  .jp-hq-truck.jp-in .jp-wheel { animation: jpSpin .7s linear infinite; }
  .jp-hq-truck.jp-in .jp-truck-body { animation: jpBob .5s ease-in-out infinite alternate; }
  .jp-hq-truck.jp-in .jp-road-dash { animation: jpRoad .55s linear infinite; }
  .jp-hq-truck.jp-in .jp-speed line { animation: jpSpeed 1.1s ease-in-out infinite; }
  .jp-hq-truck.jp-in .jp-speed line:nth-child(2) { animation-delay: .25s; }
  .jp-hq-truck.jp-in .jp-speed line:nth-child(3) { animation-delay: .5s; }
  .jp-hq-truck.jp-paused * { animation-play-state: paused !important; }
}
@keyframes jpSpin  { to { transform: rotate(360deg); } }
@keyframes jpBob   { from { transform: translateY(0); } to { transform: translateY(-2.5px); } }
@keyframes jpRoad  { to { stroke-dashoffset: 60; } }
@keyframes jpSpeed { 0% { opacity: 0; transform: translateX(14px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateX(-24px); } }

/* tablet & mobile: text → form → truck */
@media (max-width: 991px) {
  .jp-hq { padding: 50px 0 40px; margin: 0 10px; }
  .jp-hq-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "form" "truck"; row-gap: 30px; }
  .jp-hq-truck { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 575px) {
  .jp-hq-lead { font-size: 17px; }
  .jp-hq-actions { flex-direction: column; }
  .jp-hq-btn { justify-content: center; width: 100%; }
  .jp-hq-card { padding: 20px 12px 14px; border-radius: 18px; }
}
@media (max-width: 400px) { .jp-hq-card { --jp-form-h: 980px; } }
