/* InMotion design tokens applied to the TugVan pages (layout: layouts/inmotion/layout). */
:root {
  --im-bg: #F8F7FC;
  --im-card: #FFFFFF;
  --im-text: #1d1d24;
  --im-muted: #6C6C76;
  --im-primary: #6549E8;
  --im-primary-2: #A78BFA;
  --im-primary-dark: #3f23c4;
  --im-accent: #FFD500;
  --im-accent-text: #000000;
  --im-glass: rgba(101, 73, 232, 0.08);
  --im-radius: 14px;
  --im-shadow: 0 10px 30px rgba(31, 18, 92, 0.08);
}

body.inmotion { font-family: "Raleway", system-ui, sans-serif; color: var(--im-text); background: #fff; }
body.inmotion a { color: var(--im-primary); }
body.inmotion a:hover { color: var(--im-primary-dark); }

/* Highlighted words, as on the InMotion homepage ("riders choose") */
.im-mark { background: linear-gradient(transparent 55%, var(--im-accent) 55%, var(--im-accent) 90%, transparent 90%); padding: 0 .15em; }

/* Buttons */
.btn-im, body.inmotion .btn-primary {
  background: var(--im-primary); border-color: var(--im-primary); color: #fff;
  border-radius: 6px; font-weight: 600; letter-spacing: .02em;
}
.btn-im:hover, body.inmotion .btn-primary:hover { background: var(--im-primary-dark); border-color: var(--im-primary-dark); color: #fff; }
.btn-im-accent { background: var(--im-accent); color: var(--im-accent-text); border: 0; border-radius: 6px; font-weight: 700; }
.btn-im-accent:hover { filter: brightness(.95); color: var(--im-accent-text); }
.btn-im-outline { border: 2px solid var(--im-primary); color: var(--im-primary); background: transparent; border-radius: 6px; font-weight: 600; }
.btn-im-outline:hover { background: var(--im-primary); color: #fff; }

/* Cards */
.im-card { background: var(--im-card); border-radius: var(--im-radius); box-shadow: var(--im-shadow); border: 1px solid #eeecf7; }
.im-section { padding: 72px 0; }
.im-section-alt { background: var(--im-bg); }
.im-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--im-primary); background: var(--im-glass); padding: .35rem .75rem; border-radius: 999px; }

/* Forms (Bootstrap 4 markup used by TugVan pages, rendered with BS5 CSS) */
body.inmotion .form-group { margin-bottom: 1rem; }
body.inmotion .form-control, body.inmotion .custom-select { border-radius: 6px; border-color: #e3e1ee; min-height: 44px; }
body.inmotion .form-control:focus { border-color: var(--im-primary-2); box-shadow: 0 0 0 .2rem var(--im-glass); }
body.inmotion .float-right { float: right !important; }
body.inmotion .float-left { float: left !important; }
body.inmotion .text-right { text-align: right !important; }
body.inmotion .text-left { text-align: left !important; }
body.inmotion .ml-auto { margin-left: auto !important; }
body.inmotion .mr-auto { margin-right: auto !important; }
body.inmotion .badge-success { background: #198754; color: #fff; }
body.inmotion .badge-warning { background: #ffc107; color: #000; }
body.inmotion .badge-danger { background: #dc3545; color: #fff; }
body.inmotion .badge-info { background: #0dcaf0; color: #000; }
body.inmotion .badge-secondary { background: #6c757d; color: #fff; }
body.inmotion .badge-primary { background: var(--im-primary); color: #fff; }

/* Footer (from the InMotion footer) */
.im-footer { background: #fff; color: var(--im-muted); border-top: 1px solid #f0eef8; }
.im-footer .widget-title { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--im-text); margin-bottom: 1rem; }
.im-footer .list { list-style: none; padding: 0; }
.im-footer .list li { margin-bottom: .45rem; }
.im-footer .list a { color: var(--im-muted); }
.im-footer .list a:hover { color: var(--im-primary); }
.im-footer-phone { font-weight: 700; color: var(--im-primary) !important; }

/* Loader modal */
.im-loader { background: var(--im-primary); border-radius: 13px; color: #fff; padding: 1.5rem 1rem; }
.im-loader #loaderText { color: #fff; font-size: 16px; }

/* Auth pages */
.im-auth { max-width: 440px; margin: 64px auto; }
.im-auth h1, .im-auth h2 { font-weight: 500; margin-bottom: 1.25rem; }
.im-auth .btn-im, .im-auth .btn-google { width: 100%; padding: .75rem; text-transform: uppercase; }
.im-auth .btn-im { background: linear-gradient(180deg, #5b3df0, #3f1fd0); border: 0; }
.btn-google { background: #dd4b39; color: #fff; border: 0; border-radius: 6px; font-weight: 600; }
.btn-google:hover { background: #c23321; color: #fff; }
.im-auth small, .im-auth .im-auth-links { font-size: .85rem; color: var(--im-muted); }

/* ---------------------------------------------------------------
   Theme clashes: TugVan markup uses ThemeZaa utility classes whose
   names Polo reuses for display headings (Polo .text-medium = 50px).
   TugVan meaning wins, since these classes only appear in TugVan views.
---------------------------------------------------------------- */
body.inmotion .text-extra-small { font-size: 12px !important; line-height: 16px !important; }
body.inmotion .text-small { font-size: 13px !important; line-height: 22px !important; }
body.inmotion .text-medium { font-size: 14px !important; line-height: 20px !important; font-weight: inherit; letter-spacing: normal; }
body.inmotion .text-extra-medium { font-size: 16px !important; line-height: 28px !important; }
body.inmotion .text-large { font-size: 18px !important; line-height: 22px !important; }
body.inmotion .text-extra-large { font-size: 20px !important; line-height: 28px !important; }
body.inmotion .text-black { color: #1d1d24 !important; }
body.inmotion .font-weight-500 { font-weight: 500 !important; }
body.inmotion .font-weight-600 { font-weight: 600 !important; }
body.inmotion .font-weight-700 { font-weight: 700 !important; }
body.inmotion .ml-1 { margin-left: .25rem !important; }
body.inmotion .ml-2 { margin-left: .5rem !important; }
body.inmotion .mr-2 { margin-right: .5rem !important; }
body.inmotion .mr-5 { margin-right: 3rem !important; }
body.inmotion .pl-0 { padding-left: 0 !important; }
body.inmotion .pr-0 { padding-right: 0 !important; }

/* Polo styles any #book as a translucent "reservation form"; TugVan's #book
   is just the wrapper around its booking widget. */
body.inmotion section#book {
  background: var(--im-bg) !important; border: 0 !important; border-radius: 0;
  width: auto; padding: 0 0 48px !important;
}

/* ---------------------------------------------------------------
   Booking widget (views/widget/widget.ejs) under the Polo theme
---------------------------------------------------------------- */
/* Polo paints every <section> white with big padding; the widget's steps are
   <section class="form-step"> inside the purple input panel. */
body.inmotion #tugvanWidget section.form-step { background: transparent !important; padding: 0 7% !important; }
body.inmotion #tugvanWidget { background-color: var(--im-bg); }
body.inmotion #tugvanWidgetForm { box-shadow: var(--im-shadow); border-radius: 20px; }
/* Yellow buttons need dark text */
body.inmotion .btn-navigate-form-step,
body.inmotion .btn-navigate-form-step *,
body.inmotion #tyresizeModelBtn { color: #000 !important; font-weight: 700; letter-spacing: .04em; }
/* Issue chips: keep labels on one line */
body.inmotion #tugvanWidget .TugvanRadio__div label,
body.inmotion #tugvanWidget .btn-outline-warning { white-space: nowrap; }
/* InMotion's plugins.css forces .text-white to purple site-wide; TugVan markup
   uses it for real white text on dark/purple panels. */
body.inmotion .text-white { color: #fff !important; }
/* Accent text inside the purple input panel: yellow, as gold was on navy */
body.inmotion #TugvanWidget__InputSection .templateValues .template,
body.inmotion #TugvanWidget__InputSection .location-hint,
body.inmotion #TugvanWidget__InputSection #resetButton { color: #FFD500 !important; border-color: #FFD500; }
body.inmotion #TugvanWidget__InputSection .templateValues .template { white-space: nowrap; padding: 4px 12px; }

/* 404 */
.im-404-code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 700; line-height: 1; color: #1d1d24; }

/* Blog list */
.im-blog-card { color: inherit !important; text-decoration: none; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.im-blog-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(31, 18, 92, 0.12); }
.im-blog-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--im-bg); }
.im-blog-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.im-blog-cat { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--im-primary); }
.im-blog-card h2 { color: var(--im-text); }
.im-blog-more { font-weight: 600; color: var(--im-primary); font-size: .9rem; }
.im-pagination .page-link { color: var(--im-primary); border-color: #e3e1ee; }
.im-pagination .page-item.active .page-link { background: var(--im-primary); border-color: var(--im-primary); color: #fff; }
/* Blog post */
.im-post-hero { width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--im-radius); }
.im-post-body { font-size: 1.05rem; line-height: 1.8; color: #33333d; }
.im-post-body img { max-width: 100%; height: auto; border-radius: 8px; }
.im-post-body h2, .im-post-body h3 { margin-top: 2rem; }

/* Booking detail / tracking result: label-value rows inside a card */
.im-booking-detail .seperator { margin: 1.5rem 0 !important; border-top: 1px solid #eeecf7; height: 0; text-align: center; }
.im-booking-detail .seperator i { display: none; }
.im-booking-detail dl.row { margin: 0; }
.im-booking-detail dl.row > dt,
.im-booking-detail dl.row > dd { padding: .7rem 0; margin: 0; border-bottom: 1px solid #f1eff8; }
.im-booking-detail dl.row > dt { flex: 0 0 38%; max-width: 38%; font-weight: 600; color: var(--im-muted) !important; text-transform: capitalize; }
.im-booking-detail dl.row > dd { flex: 0 0 62%; max-width: 62%; padding-left: 1rem !important; color: var(--im-text) !important; }
@media (max-width: 575px) {
  .im-booking-detail dl.row > dt { flex-basis: 100%; max-width: 100%; border-bottom: 0; padding-bottom: 0; }
  .im-booking-detail dl.row > dd { flex-basis: 100%; max-width: 100%; padding-left: 0 !important; }
}
.im-booking-detail #realTime { border-radius: 12px; overflow: hidden; }
/* Polo's white-text button rule also hits the outline button */
body.inmotion .btn.btn-im-outline { color: var(--im-primary); background: transparent; }
body.inmotion .btn.btn-im-outline:hover { color: #fff; background: var(--im-primary); }
/* Polo's ".btn:not(.close)" white text breaks every light/outline Bootstrap button */
body.inmotion .btn.btn-outline-secondary { color: #4b4b55; border-color: #cfcbe0; background: transparent; }
body.inmotion .btn.btn-outline-secondary:hover { color: #fff; background: #6c757d; }
body.inmotion .btn.btn-outline-primary { color: var(--im-primary); border-color: var(--im-primary); background: transparent; }
body.inmotion .btn.btn-outline-primary:hover { color: #fff; background: var(--im-primary); }
body.inmotion .btn.btn-outline-dark { color: #1d1d24; border-color: #1d1d24; background: transparent; }
body.inmotion .btn.btn-outline-dark:hover { color: #fff; background: #1d1d24; }
body.inmotion .btn.btn-light,
body.inmotion .btn.btn-outline-light:not(.svc-landing .btn) { color: #1d1d24; }
body.inmotion .btn.btn-link { color: var(--im-primary); background: transparent; border: 0; }
body.inmotion .btn.btn-warning { color: #000; }

/* Mobile menu trigger: Polo draws white lines for transparent headers; ours is white */
body.inmotion #mainMenu-trigger .lines,
body.inmotion #mainMenu-trigger .lines:before,
body.inmotion #mainMenu-trigger .lines:after { background-color: #1d1d24 !important; }
body.inmotion #mainMenu-trigger { width: 32px; }
/* Long call-to-action labels (phone numbers) must wrap on small screens */
@media (max-width: 575px) {
  body.inmotion .svc-landing .btn-lg { letter-spacing: .01em; font-size: .95rem; white-space: normal; width: 100%; }
}
