/* CourierShip public styles */

:root {
  --cs-brand: #2563EB;
  --cs-yellow: #F59E0B;
  --cs-dark: #0F172A;
  --cs-ink: #1a1a1a;
  --cs-slate: #f5f5f5;
  --cs-navy: #0F172A;
  --cs-gold: #F59E0B;
  --cs-gold-soft: #ffe066;
}

html {
  scroll-behavior: smooth;
}

::selection {
  background: var(--cs-yellow);
  color: var(--cs-dark);
}

body.public-body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--cs-ink);
  background: var(--cs-slate);
}

/* Waybill map path animation */
@keyframes dashDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(34, 31, 31, 0.12);
}

.logo-hover {
  transition: opacity 0.2s ease;
}

.logo-hover:hover {
  opacity: 0.92;
}

.nav-glass {
  background: #221f1f;
  border-bottom: 3px solid #F59E0B;
}

.hero-mesh {
  background:
    linear-gradient(125deg, #221f1f 0%, #3a3535 55%, #1a1a1a 100%);
}

.btn-primary-brand {
  background: #F59E0B;
  color: #221f1f;
  font-weight: 700;
  transition: filter 0.2s ease;
}

.btn-primary-brand:hover {
  filter: brightness(1.05);
}

/* Map */
#waybill-map {
  min-height: 420px;
  height: 480px;
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(34, 31, 31, 0.06);
}

.leaflet-container {
  font-family: inherit;
  background: #e8e8e8;
}

.leaflet-control-attribution,
.leaflet-control-zoom,
.leaflet-bottom.leaflet-right {
  display: none !important;
}

/* Google Translate — compact, branded, no Google chrome */
.cs-translate {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}

.cs-translate .goog-te-gadget {
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
}

.cs-translate .goog-te-gadget > span,
.cs-translate .goog-te-gadget .goog-te-gadget-simple,
.cs-translate .goog-logo-link,
.cs-translate img,
.cs-translate a[href*="translate.google"] {
  display: none !important;
}

.cs-translate .goog-te-combo,
.cs-translate select.goog-te-combo {
  display: inline-block !important;
  min-width: 7.5rem;
  max-width: min(70vw, 16rem);
  height: 2.15rem;
  padding: 0 1.75rem 0 0.7rem;
  border: 1px solid rgba(255, 204, 0, 0.55) !important;
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23F59E0B' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 10px !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 2.15rem !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
  outline: none !important;
}

.cs-translate .goog-te-combo:focus,
.cs-translate select.goog-te-combo:focus {
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25);
}

.cs-translate .goog-te-combo option {
  color: #221f1f;
  background: #fff;
}

/* Kill Google top banner + body offset */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
div#goog-gt- {
  display: none !important;
}

body {
  top: 0 !important;
}

body > .skiptranslate,
.goog-te-banner-frame.skiptranslate {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

iframe.goog-te-banner-frame {
  display: none !important;
  height: 0 !important;
  visibility: hidden !important;
}

.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

.cs-translate-print .goog-te-combo,
.cs-translate-print select.goog-te-combo {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 204, 0, 0.55) !important;
  color: #fff !important;
}

@media (max-width: 640px) {
  .cs-translate .goog-te-combo,
  .cs-translate select.goog-te-combo {
    min-width: 5.5rem;
    max-width: 36vw;
    height: 2rem;
    font-size: 11px !important;
    line-height: 2rem !important;
    padding-right: 1.45rem;
  }
}

@media (max-width: 380px) {
  .cs-translate .goog-te-combo,
  .cs-translate select.goog-te-combo {
    min-width: 4.75rem;
    max-width: 32vw;
    font-size: 10px !important;
  }
}

.route-draw {
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: dashDraw 2.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.route-remain {
  stroke-dasharray: 10 8;
}

.pulse-dot {
  position: relative;
}

.print-doc-pattern,
.doc-pattern {
  background-color: #fff;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(255, 204, 0, 0.08) 0, transparent 28%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 18px,
      rgba(34, 31, 31, 0.018) 18px,
      rgba(34, 31, 31, 0.018) 19px
    );
}

.print-seal {
  width: 72px;
  height: 72px;
  border: 2px dashed var(--cs-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cs-brand);
  text-align: center;
}

.cs-timeline {
  position: relative;
  padding-left: 1.75rem;
}

.cs-timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: linear-gradient(180deg, var(--cs-yellow), rgba(34, 31, 31, 0.12));
}

.cs-timeline-item {
  position: relative;
  margin-bottom: 1.35rem;
}

.cs-timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.4rem;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: var(--cs-brand);
  box-shadow: 0 0 0 4px rgba(212, 5, 17, 0.15);
}

.stepper-fill {
  transition: width 0.6s ease;
}

.prose-cs a {
  color: #2563EB;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose-cs h2,
.prose-cs h3 {
  color: #221f1f;
  margin-top: 1.25rem;
}

.page-banner {
  background: linear-gradient(120deg, #221f1f 0%, #3a3535 55%, #1a1a1a 100%);
  border-bottom: 4px solid #F59E0B;
}

.section-container {
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .section-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .route-draw {
    animation: none !important;
  }
}
