/* ViCargo: Partnership page. Loads after about.css and before headings.css. Every class here is
   prefixed pt- so nothing collides with home.css or about.css. */

/* ---------- 1. the fork: one line leaves ViCargo and splits, each lane ends in its own link ---------- */
.pt-first {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--bar-h) + clamp(32px, 6vh, 72px)); padding-bottom: clamp(40px, 7vh, 88px);
}
.pt-first .home-inner { display: grid; gap: clamp(32px, 6vh, 64px); }
.pt-first .au-h1 { color: #fff; }
.pt-lede { margin: 18px 0 0; max-width: 32em; font-size: 18px; line-height: 1.65; color: #9CB0C4; text-wrap: pretty; }

.pt-fork {
  position: relative; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-auto-rows: 1fr; min-height: clamp(280px, 40vh, 400px);
}
.pt-lanes { display: block; width: 100%; height: 100%; overflow: visible; }
.pt-lanes--h { grid-column: 1; grid-row: 1 / span 2; }
.pt-lanes--v { display: none; }
.pt-lanes path { fill: none; vector-effect: non-scaling-stroke; transition: opacity var(--dur-base) var(--ease-out), stroke-width var(--dur-base) var(--ease-out); }
.pt-lane-trunk { stroke: #9CB0C4; stroke-width: 1.5; }
.pt-lane-carrier { stroke: var(--cyan-400); stroke-width: 2; }
.pt-lane-company { stroke: #9CB0C4; stroke-width: 1.5; stroke-dasharray: 4 6; }
/* A node, not an SVG circle: the lanes stretch with preserveAspectRatio="none" and a circle would too. */
.pt-node { position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4px; border-radius: 50%; background: #9CB0C4; }

.pt-ways { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-auto-rows: 1fr; }
.pt-way {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 8px 0 8px clamp(18px, 2vw, 28px); border-radius: 4px; color: #fff; text-decoration: none;
  transition: opacity var(--dur-base) var(--ease-out), transform 120ms var(--ease-out);
}
.pt-way::before { content: ""; position: absolute; left: -4px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #9CB0C4; }
.pt-way--carrier::before { background: var(--cyan-400); }
.pt-way-title { font-size: clamp(21px, 2.1vw, 28px); font-weight: 300; line-height: 1.2; letter-spacing: -.01em; }
.pt-way--carrier .pt-way-title { font-size: clamp(28px, 3.2vw, 44px); font-weight: 400; }
.pt-way-go { font-size: 16px; font-weight: 500; color: #E6EDF5; }
.pt-way--carrier .pt-way-go { color: var(--cyan-400); }
.pt-way-go::after { content: ""; display: inline-block; width: .9em; height: 1.5px; margin-left: 10px; vertical-align: .28em; background: currentColor; transform-origin: left; transition: transform 240ms var(--ease-sweep); }
.pt-way:active { transform: scale(.985); }
.pt-way:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }

/* Choosing a lane quiets the other one. Keyboard focus does the same as a pointer. */
.pt-fork:has(.pt-way--carrier:focus-visible) .pt-lane-company,
.pt-fork:has(.pt-way--company:focus-visible) .pt-lane-carrier { opacity: .3; }
.pt-fork:has(.pt-way--carrier:focus-visible) .pt-way--company,
.pt-fork:has(.pt-way--company:focus-visible) .pt-way--carrier { opacity: .5; }
.pt-fork:has(.pt-way--carrier:focus-visible) .pt-lane-carrier,
.pt-fork:has(.pt-way--company:focus-visible) .pt-lane-company { stroke-width: 3; }
@media (hover: hover) and (pointer: fine) {
  .pt-way:hover .pt-way-go::after { transform: scaleX(1.5); }
  .pt-fork:has(.pt-way--carrier:hover) .pt-lane-company,
  .pt-fork:has(.pt-way--company:hover) .pt-lane-carrier { opacity: .3; }
  .pt-fork:has(.pt-way--carrier:hover) .pt-way--company,
  .pt-fork:has(.pt-way--company:hover) .pt-way--carrier { opacity: .5; }
  .pt-fork:has(.pt-way--carrier:hover) .pt-lane-carrier,
  .pt-fork:has(.pt-way--company:hover) .pt-lane-company { stroke-width: 3; }
}

/* The page's one authored moment: the road draws itself left to right, then each destination
   arrives. CSS only, and from a visible default: with no animation everything is simply there.
   Clip rather than stroke-dashoffset, because the company lane's dashes already use the dash array. */
@keyframes pt-road { from { clip-path: inset(-12px 100% -12px 0); } to { clip-path: inset(-12px -12px -12px 0); } }
@keyframes pt-road-v { from { clip-path: inset(0 -12px 100% -12px); } to { clip-path: inset(0 -12px -12px -12px); } }
@keyframes pt-arrive { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .pt-lanes--h { animation: pt-road 1100ms var(--ease-in-out) 150ms backwards; }
  .pt-lanes--v { animation: pt-road-v 1100ms var(--ease-in-out) 150ms backwards; }
  /* backwards, not both: a held end state would out-rank the hover dimming above. */
  .pt-way { animation: pt-arrive var(--dur-slow) var(--ease-sweep) 1000ms backwards; }
  .pt-way--company { animation-delay: 1080ms; }
}

/* ---------- 2. terms: two sides of one agreement, either side of a seam ---------- */
.pt-terms-head { margin-bottom: clamp(36px, 5vw, 64px); }
.pt-sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(48px, 8vw, 112px); }
.pt-seam { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--border-default); transform-origin: top; }
.pt-side { min-width: 0; }
.pt-side h3 { margin: 0 0 clamp(14px, 1.6vw, 20px); font-size: 16px; font-weight: 500; color: var(--blue-700); }
.pt-side ul { margin: 0; padding: 0; list-style: none; }
.pt-side li.bz-item {
  padding: clamp(16px, 1.7vw, 22px) 0; border-top: 1px solid var(--border-default);
  font-size: clamp(20px, 2vw, 26px); font-weight: 300; line-height: 1.3; color: var(--ink-900); text-wrap: balance;
}
.bz-pre .pt-seam { transform: scaleY(0); }
.bz-pre.is-in .pt-seam { transform: none; transition: transform var(--dur-deliberate) var(--ease-sweep); }

/* ---------- 3. carrier application ---------- */
.pt-apply { background: var(--steel-100); }
.pt-apply-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 88px); align-items: start; }
.pt-apply-side { position: sticky; top: calc(var(--bar-h) + 32px); min-width: 0; }
.pt-apply-side .section-head p { margin-top: 16px; color: var(--steel-700); }

.pt-summary { margin: clamp(28px, 3vw, 40px) 0 0; }
.pt-summary-t { margin: 0 0 6px; font-size: 14px; font-weight: 500; color: var(--ink-900); }
.pt-summary dl { margin: 0; }
.pt-summary dl > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-default); font-size: 14px; line-height: 1.45; }
.pt-summary dt { color: var(--steel-700); }
.pt-summary dd { margin: 0; color: var(--ink-900); overflow-wrap: anywhere; }
.pt-summary dd.is-empty { color: var(--steel-700); }

.pt-form-sheet {
  min-width: 0; padding: clamp(22px, 3vw, 40px); border-radius: 14px; background: var(--white);
  box-shadow: 0 22px 48px -28px rgba(10, 23, 36, .32), 0 2px 6px rgba(10, 23, 36, .04);
}
.pt-form-sheet .form-grid { max-width: none; gap: 6px 20px; }
.pt-form-sheet .field { gap: 6px; min-width: 0; }
/* Error lines keep their slot, so the form does not jump while it is being filled in. */
.pt-form-sheet .field .error { display: block; min-height: 18px; visibility: hidden; }
.pt-form-sheet .field .error.is-on { visibility: visible; }
.pt-form-sheet .btn:disabled { opacity: .55; pointer-events: none; }
.pt-form-sheet .form-grid .btn { margin-top: 10px; }

.pt-group { margin: 0; padding: 0; border: 0; }
.pt-group legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.pt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-chip { position: relative; cursor: pointer; }
.pt-chip input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; }
.pt-chip span {
  display: block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--border-default);
  background: var(--white); color: var(--ink); font-size: 15px; line-height: 1.2;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform 120ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .pt-chip:hover span { border-color: var(--blue-400); } }
.pt-chip:active span { transform: scale(.97); }
.pt-chip input:checked + span { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.pt-chip input:focus-visible + span { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.pt-group.has-error .pt-chip input:not(:checked) + span { border-color: var(--red-600); }
.pt-routes-other { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.pt-routes-other label { font-size: 13px; font-weight: 400; color: var(--text-muted); }

/* Documents: a visually-hidden real file input plus a styled label, so it stays keyboard-reachable. */
.field .pt-file-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.pt-file-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.pt-file-drop {
  display: flex; align-items: center; gap: 14px; min-height: 50px; padding: 9px 16px; cursor: pointer;
  border-radius: 10px; border: 1.5px dashed var(--border-default); background: var(--white);
  font-size: 14px; color: var(--text-muted);
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), transform 120ms var(--ease-out);
}
.pt-file-cta { flex: none; padding: 6px 14px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .pt-file-drop:hover { border-color: var(--blue-400); background: var(--blue-100); } }
.pt-file-drop:active { transform: scale(.995); }
.pt-file-input:focus-visible + .pt-file-drop { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-color: var(--blue-500); }
.pt-docs { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pt-docs:empty { display: none; }
.pt-docs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 8px 7px 14px; border-radius: 8px; background: var(--steel-100); font-size: 14px; color: var(--ink); }
.pt-docs span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-docs button { flex: none; padding: 4px 10px; border: 0; border-radius: 6px; background: none; color: var(--blue-700); font: inherit; font-weight: 500; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .pt-docs button:hover { background: var(--steel-200); } }
.pt-docs button:active { transform: scale(.97); }
.pt-docs button:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

/* Consent: the input is a sibling of its label, never nested (see contact.html). */
.pt-check-row { display: flex; align-items: flex-start; gap: 12px; }
.pt-check label { font-size: 14px; font-weight: 400; line-height: 1.55; color: var(--ink); cursor: pointer; }
.pt-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; cursor: pointer; accent-color: var(--blue-700); }
.pt-check a { color: var(--blue-800); }
.pt-sent { margin: 0; padding: 18px 20px; border-radius: 10px; background: var(--green-100); color: var(--ink); font-size: 16px; line-height: 1.6; }

@media (max-width: 960px) {
  .pt-apply-grid { grid-template-columns: 1fr; gap: 28px; }
  .pt-apply-side { position: static; }
  .pt-summary { display: none; }
}
@media (max-width: 760px) {
  .pt-first { min-height: 0; }
  .pt-fork { grid-template-columns: 44px minmax(0, 1fr); min-height: 300px; }
  .pt-lanes--h, .pt-node { display: none; }
  .pt-lanes--v { display: block; grid-column: 1; grid-row: 1 / span 2; }
  .pt-way::before { left: -4px; }
  .pt-sheet { grid-template-columns: 1fr; row-gap: 40px; }
  .pt-seam { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-way, .pt-chip span, .pt-file-drop { transition: none; }
  .pt-way:active, .pt-chip:active span, .pt-file-drop:active, .pt-docs button:active { transform: none; }
}

/* Partnership form upgrade: four parts, country pickers, radio chips. Loads after partnership.css. */

.pt-form-sheet .form-grid { gap: 0; }
.pt-part { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; padding: 28px 0; border-top: 1px solid var(--border-hairline); }
.pt-part:first-child { padding-top: 0; border-top: 0; }
.pt-part-h { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; margin: 0 0 8px; font-size: 18px; font-weight: 500; color: var(--ink-900); }
.pt-part-h span { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--blue-700); letter-spacing: .06em; }
.pt-part .field.is-wide, .pt-part .pt-group { grid-column: 1 / -1; }

.pt-hint { margin: -2px 0 10px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.pt-geo .pt-chips + .pt-routes-other { margin-top: 10px; }
.pt-region { margin-top: 10px; border-radius: 10px; background: var(--steel-100); }
.pt-region summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; padding: 0 16px;
  font-size: 15px; font-weight: 500; color: var(--ink); cursor: pointer; list-style: none; border-radius: 10px;
}
.pt-region summary::-webkit-details-marker { display: none; }
.pt-region summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-left: 4px; border-right: 1.5px solid var(--steel-700); border-bottom: 1.5px solid var(--steel-700);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--dur-base) var(--ease-sweep);
}
.pt-region[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.pt-region summary em { margin-left: auto; font-style: normal; font-size: 13px; font-weight: 500; color: var(--blue-700); }
.pt-region summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .pt-region summary:hover { background: var(--steel-200); } }
.pt-region .pt-chips { padding: 4px 16px 16px; }
.pt-region .pt-chip span { background: var(--white); }
.pt-region .pt-chip input:checked + span { background: var(--blue-700); }

.pt-adr { align-self: end; }
.pt-adr-lbl { font-size: 14px; font-weight: 500; color: var(--ink); }
.pt-adr .pt-chip { align-self: flex-start; }
.pt-group.has-error .pt-chip input:not(:checked) + span { border-color: var(--red-600); }

@media (max-width: 760px) {
  .pt-part { grid-template-columns: minmax(0, 1fr); }
}

.pt-routes-other[hidden] { display: none; }
.pt-part .pt-group { margin-top: 14px; }
.pt-part .pt-part-h + .field, .pt-part .pt-part-h + .field + .field { margin-top: 0; }
.pt-geo + .field { margin-top: 18px; }
