/* ============================================================
   JDM Engines - shared styles
   Blue #2296d8 theme. Reconstructed clean from the original.
   ============================================================ */

/* ---- Base ---- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-family: 'Roboto', sans-serif; color: #363636; background: #fff; }
body { margin: 0; overflow-x: hidden; }
a { text-decoration: none; color: #363636; }
p { margin: 0; line-height: 1.8; }
h1 { margin: 0 0 24px; font-size: 36px; line-height: 1.4; }
h2 { margin: 36px 0 12px; font-size: 28px; line-height: 1.4; }
li { list-style: none; }
img { max-width: 100%; }
input[type=number] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.blue { color: #2296d8; }
.black { color: #000; }

/* ---- Entrance animation ---- */
.fade-up {
  animation: fadeUp 1.1s cubic-bezier(.2,.6,.3,1) both;
  animation-delay: .2s;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }

/* ---- Navbar ---- */
.navbar { position: absolute; top: 0; left: 0; width: 100%; z-index: 10; }
.upper-navbar {
  height: 90px; width: 100%; background: #fff; padding: 0 50px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo-box { display: inline-flex; align-items: baseline; }
.large-font { font-size: 44px; font-weight: 800; line-height: .8; letter-spacing: -1px; }

.call-btn {
  display: inline-block; color: #fff; background: #2296d8;
  padding: 10px 22px; border-radius: 6px; font-size: 16px; font-weight: 600;
  transition: box-shadow .25s ease, transform .25s ease;
}
.call-btn:hover { box-shadow: 0 6px 14px rgba(34,150,216,.35); transform: translateY(-1px); }

.lower-navbar { width: 100%; background: #2296d8; }
.nav-content-box { display: flex; justify-content: center; flex-wrap: wrap; }
.nav-item {
  color: #fff; padding: 0 28px; line-height: 50px; font-weight: 500;
  font-size: 14px; letter-spacing: .6px; white-space: nowrap; transition: background .25s;
}
.nav-item:hover, .nav-item.active-tab { background: #1f8ac7; }

/* Mobile menu */
.hamburger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 26px; height: 3px; background: #2296d8; margin: 5px 0; border-radius: 2px; }
.mobile-menu { display: none; flex-direction: column; background: #fff; padding: 8px 0; border-top: 1px solid #eee; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 30px; font-weight: 500; color: #444; }
.mobile-menu a:hover { background: #f3f9fd; color: #2296d8; }

/* ---- Hero / cover ---- */
.background-shape {
  position: absolute; width: 550px; height: 550px; background: #dbf2ff;
  top: -150px; right: -150px; border-radius: 50%; z-index: -1;
}
.cover-container {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; width: 100%; padding: 0 72px; margin-top: 150px; padding-bottom: 60px;
}
.hero-image-box {
  width: 400px; height: 400px; margin: auto; border-radius: 50%;
  background: #d3efff; text-align: center; position: relative; top: 50%; transform: translateY(-50%);
}
.hero-image { width: 110%; padding-top: 25px; margin-left: -5%; }
.right-box { position: relative; display: flex; flex-direction: column; align-items: center; }
.main-title { font-size: 52px; line-height: 1.1; max-width: 520px; text-align: center; }
.description { font-size: 17px; color: #4a4a4a; max-width: 480px; text-align: center; margin-top: 14px; }

.hero-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin: 20px auto; padding: 12px 22px; border-radius: 10px;
}

/* ---- Form ---- */
.form-box {
  width: 100%; max-width: 500px; margin: 0 auto; border: 1px solid #f1f1f1;
  box-shadow: -1px 1px 10px rgba(0,0,0,.10); border-radius: 6px; background: #fff; padding-bottom: 6px;
}
.find-part-title {
  text-align: center; font-weight: 600; font-size: 26px; color: #363636;
  margin: 14px auto 4px; border-radius: 6px 6px 0 0;
}
.input-wrapper { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 8px 60px; }
.field { margin: 0; }
.form-control {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid #d8d8d8;
  border-radius: 6px; font-size: 15px; font-family: inherit; background: #fff; color: #363636;
}
.form-control:focus { outline: none; border-color: #2296d8; box-shadow: 0 0 0 3px rgba(34,150,216,.15); }
.field.err .form-control { border-color: #c51f1f; box-shadow: 0 0 0 3px rgba(197,31,31,.14); }
select.form-control { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23777' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
/* honeypot - hidden from users, visible to bots */
.hp { position: absolute !important; left: -9999px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }
/* preview-mode confirmation (only shown when testing on localhost) */
.formok { display: none; margin: 0 60px 14px; padding: 10px 14px; background: #eafaf0; color: #1f9d4d;
  border-radius: 6px; font-weight: 600; text-align: center; }

.find-part-button {
  display: block; width: 300px; max-width: calc(100% - 32px); margin: 18px auto 16px;
  background: #2296d8; padding: 12px 20px; border: 0; border-radius: 6px; cursor: pointer;
  color: #fff; font-weight: 600; font-size: 16px; font-family: inherit;
  transition: box-shadow .25s ease, transform .25s ease, background .2s;
}
.find-part-button:hover:not(:disabled) { box-shadow: 0 6px 14px rgba(34,150,216,.35); transform: translateY(-1px); }
.find-part-button:disabled { background: #8fc4e6; cursor: default; }
.find-part-btn-text { color: #fff; font-weight: 600; margin: 0; }

/* ---- Steps ---- */
.step-container-wrapper { background: #f1f1f1; padding: 48px 72px; margin-top: 8px; }
.step-title { font-size: 24px; text-align: center; margin: 0 0 40px; text-transform: uppercase; }
.steps-container { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; text-align: center; }
.step-img { max-width: 90px; }
.step-text { font-size: 18px; font-weight: 600; margin-top: 18px; }

/* ---- Top selling ---- */
.top-selling-container { padding: 72px 72px 0; text-align: center; }
.top-selling-title { font-size: 30px; text-transform: uppercase; margin-bottom: 0; }
.top-selling-description { margin: 8px 0 32px; color: #777; }
.top-selling-box { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 48px; }
.top-selling-item { padding-bottom: 24px; border-radius: 6px; box-shadow: 0 5px 16px rgba(0,0,0,.12); }
.top-selling-image-box { height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.top-selling-subtitle { font-size: 22px; margin: 24px 0 8px; }
.top-selling-feature-box { margin: 4px 0; }
.top-selling-feature { font-size: 14px; color: #555; }

/* ---- Content text ---- */
.why-choose-container { padding: 60px 72px; }
.why-choose-title { font-size: 28px; text-transform: uppercase; text-align: center; }
.why-choose-text { margin-top: 18px; text-align: left; color: #4a4a4a; }
.why-choose-text h1 { display: inline; font-size: 22px; }

/* ---- Footer ---- */
.footer { background: #363636; margin-top: 40px; }
.footer-wrapper { max-width: 900px; margin: auto; padding: 28px 20px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 14px; }
.footer-links a { color: #d6d6d6; font-size: 14px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-text { color: #9a9a9a; font-size: 13px; }

/* ============================================================
   Call button - fast, attention-grabbing
   (whole button heartbeat + expanding ripple + fast phone-shake + live dot)
   ============================================================ */
.ty-call-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 190px; padding: 11px 16px; border-radius: 10px; font-weight: 800; color: #fff;
  background: linear-gradient(180deg,#2ea4e1,#1f82c2);
  overflow: visible; z-index: 0;
  animation: tyBeat .9s infinite ease-in-out;   /* fast pulse to pull the eye */
}
/* heartbeat: quick scale + glow */
@keyframes tyBeat {
  0%, 100% { transform: scale(1);     box-shadow: 0 10px 18px rgba(31,130,194,.30); }
  50%      { transform: scale(1.045); box-shadow: 0 16px 30px rgba(31,130,194,.55), 0 0 0 4px rgba(46,164,225,.18); }
}
/* expanding ripple ring radiating outward */
.ty-call-btn::before {
  content: ""; position: absolute; inset: 0; border-radius: 10px;
  border: 2px solid rgba(46,164,225,.55);
  animation: tyRipple 1s infinite ease-out;
  z-index: -1; pointer-events: none;
}
@keyframes tyRipple {
  0%   { transform: scale(1);    opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}
.ty-call-text { font-size: 15px; letter-spacing: .2px; }
.ty-call-ic {
  width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
  background-repeat: no-repeat; background-position: center; background-size: 22px 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='%23fff' d='M18.4 8.4c1.1-1.1 2.9-1.1 4 0l7.1 7.1c1.1 1.1 1.1 2.9 0 4l-4 4c-.6.6-.7 1.5-.4 2.3 2.8 5.8 7.5 10.5 13.3 13.3.8.3 1.7.2 2.3-.4l4-4c1.1-1.1 2.9-1.1 4 0l7.1 7.1c1.1 1.1 1.1 2.9 0 4l-3.7 3.7c-3 3-7.4 4-11.3 2.7-11.3-4.2-20.2-13.1-24.4-24.4-1.3-3.9-.3-8.3 2.7-11.3l3.7-3.7z'/%3E%3C/svg%3E");
  transform-origin: 50% 60%; animation: tyRing .5s infinite ease-in-out;   /* fast, sharp shake */
}
@keyframes tyRing {
  0%, 60%, 100% { transform: rotate(0); }
  8%  { transform: rotate(-22deg); } 16% { transform: rotate(22deg); }
  24% { transform: rotate(-18deg); } 32% { transform: rotate(18deg); }
  40% { transform: rotate(-12deg); } 48% { transform: rotate(12deg); }
}
.ty-call-btn::after {
  content: ""; position: absolute; top: -6px; right: -6px; width: 14px; height: 14px;
  border-radius: 50%; background: #29c45a;
  box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 14px rgba(41,196,90,.85);
  animation: tyBlink .7s infinite ease-in-out; z-index: 5;
}
@keyframes tyBlink { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.5); opacity: .3; } }
.ty-call-btn-small { min-width: 170px; }

/* respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
  .ty-call-btn, .ty-call-btn::before, .ty-call-ic, .ty-call-btn::after { animation: none; }
}

/* ============================================================
   Thank-you page
   ============================================================ */
.ty-page { padding: 18px 0 28px; background: #f4f6f9; min-height: 60vh; }
.ty-container { max-width: 760px; margin: 0 auto; padding: 0 14px; margin-top: 160px; }
.ty-note-card, .ty-option-card, .ty-bottom-bar {
  background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 12px; box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.ty-note-card { padding: 26px 18px; text-align: center; margin: 14px 0 16px; }
.ty-check { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #eafaf0;
  display: flex; align-items: center; justify-content: center; }
.ty-check svg { width: 30px; height: 30px; }
.ty-note-title { font-weight: 900; color: #1f9d4d; font-size: 24px; margin-bottom: 6px; }
.ty-note-big { color: #c51f1f; font-weight: 800; font-size: 19px; line-height: 1.3; margin: 6px auto 8px; max-width: 620px; }
.ty-note-sub { color: #3a3a3a; font-size: 16px; margin-bottom: 4px; }
.ty-ref { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 8px;
  background: #f2f6fb; color: #1f82c2; font-weight: 700; font-size: 14px; }

.ty-option-card { padding: 18px 18px 14px; margin: 0 0 16px; }
.ty-opt-title { text-align: center; font-weight: 900; color: #1a1a1a; font-size: 22px; line-height: 1.15; margin: 4px 0 14px; }
.ty-rows { border-top: 1px solid rgba(0,0,0,.06); }
.ty-row { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center;
  padding: 12px 2px; border-bottom: 1px solid rgba(0,0,0,.06); }
.ty-row-ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background-repeat: no-repeat; background-position: center; background-size: 20px 20px; }
.ty-ic-shield { background-color: #f6f1f3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d21f1f' d='M12 2l7 3v6c0 5.1-3 9.8-7 11-4-1.2-7-5.9-7-11V5l7-3z'/%3E%3C/svg%3E"); }
.ty-ic-mile { background-color: #f0f5fb;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232c94d2' d='M12 3a9 9 0 100 18 9 9 0 000-18zm0 16a7 7 0 117-7 7 7 0 01-7 7z'/%3E%3Cpath fill='%232c94d2' d='M13 7h-2v6l5 3 1-1.7-4-2.3z'/%3E%3C/svg%3E"); }
.ty-ic-truck { background-color: #f5f7f2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%232c94d2' d='M3 6h11v9H3V6zm12 3h3.6L21 11.4V15h-2.1a2.4 2.4 0 01-4.8 0H10a2.4 2.4 0 01-4.8 0H3v-2h2.1A2.4 2.4 0 0110 13h4V9z'/%3E%3C/svg%3E"); }
.ty-row-strong { font-weight: 900; color: #151515; font-size: 16px; line-height: 1.15; }
.ty-row-sub { color: #6b6b6b; font-size: 12.5px; margin-top: 2px; }
.ty-opt-cta { text-align: center; margin-top: 16px; }

.ty-bottom-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; }
.ty-bottom-title { font-weight: 900; font-size: 20px; color: #1a1a1a; }
.ty-bottom-sub { color: #666; margin-top: 2px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1023px) {
  .upper-navbar { height: 76px; padding: 0 24px; }
  .large-font { font-size: 34px; }
  .call-btn.desktop-only { display: none; }
  .hamburger { display: block; }
  .lower-navbar { display: none; }
  .cover-container { grid-template-columns: 1fr; margin-top: 110px; padding: 0 24px 40px; }
  .hero-image-box { width: 300px; height: 300px; top: auto; transform: none; margin: 24px auto 0; }
  .main-title, .description { max-width: none; text-align: center; }
  .form-box { margin: 32px auto 0; border-radius: 6px; }
  .top-selling-container { padding: 48px 24px 0; }
  .top-selling-box { grid-template-columns: 1fr 1fr; }
  .why-choose-container { padding: 40px 24px; }
  .step-container-wrapper { padding: 40px 24px; }
  .input-wrapper { padding: 8px 24px; }
  .form-msg { margin: 4px 24px 0; }
  .ty-container { margin-top: 110px; }
}
@media (max-width: 600px) {
  .main-title { font-size: 38px; }
  .background-shape { width: 420px; height: 420px; top: -90px; right: -120px; }
  .top-selling-box { grid-template-columns: 1fr; }
  .steps-container { grid-template-columns: 1fr; gap: 28px; }
  .ty-bottom-bar { flex-direction: column; text-align: center; }
  .ty-bottom-bar .ty-call-btn { width: 100%; }
}

/* ---- Legal pages ---- */
.legal { max-width: 880px; margin: 0 auto; padding: 150px 24px 50px; }
.legal h1 { font-size: 32px; margin-bottom: 8px; }
.legal .why-choose-title { text-transform: none; text-align: left; font-size: 22px; margin: 30px 0 0; }
.legal .why-choose-text { margin-top: 14px; }
.legal .mt-3 { margin-top: 30px; }
@media (max-width: 1023px) { .legal { padding-top: 120px; } }
