/*
 * VanQuote
 * Global application styles
 */

:root {
  --vq-page: #f5f7fa;
  --vq-surface: #ffffff;
  --vq-ink: #172033;
  --vq-muted: #667085;
  --vq-border: #e4e7ec;
  --vq-primary: #172033;
  --vq-accent: #5274b8;
  --vq-positive-bg: #dcfae6;
  --vq-positive-text: #067647;
  --vq-pending-bg: #fef0c7;
  --vq-pending-text: #93370d;
  --vq-danger-bg: #fee4e2;
  --vq-danger-text: #b42318;
  --vq-card-radius: 16px;
  --vq-card-shadow: 0 4px 18px rgb(16 24 40 / 4%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--vq-ink);
  background: var(--vq-page);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #f5f7fa;
  color: #172033;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 36px;
  background: #f5f7fa;
}

html.landing-page-layout {
  --landing-header-offset: 84px;
  --landing-scroll-offset: var(--landing-header-offset);
  scroll-snap-type: y mandatory;
  scroll-padding-block-start: var(--landing-scroll-offset);
  scroll-behavior: smooth;
}

html.landing-page-layout.landing-authenticated {
  --landing-header-offset: 104px;
}

html.landing-page-layout:has(
  input:focus,
  textarea:focus,
  select:focus,
  gmp-place-autocomplete:focus-within
) {
  scroll-snap-type: y proximity;
}

.site-navigation {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  min-width: 0;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  width: 200px;
  max-width: 100%;
  color: #172033;
  text-decoration: none;
}

.site-brand-logo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 1;
  object-fit: contain;
  object-position: left center;
}

.carrier-header-logout-form {
  flex: 0 0 auto;
  margin: 0 auto 0 0;
}

button.carrier-header-logout {
  padding: 8px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.site-navigation-link {
  color: #344054;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.site-navigation-link:hover,
.site-brand:hover {
  color: #667085;
}

.site-brand:focus-visible,
.site-navigation-link:focus-visible {
  outline: 3px solid #5274b8;
  outline-offset: 4px;
}

button.site-navigation-link {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

button,
input {
  font: inherit;
}

.quote-page {
  min-height: 100vh;
  padding: 48px 20px;
}

.admin-page {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 36px 48px;
}

.admin-page h1 {
  margin: 0 0 24px;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.admin-metric,
.admin-leads {
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
}

.admin-metric h2,
.admin-leads h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.admin-metric p {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-leads table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-leads th,
.admin-leads td {
  padding: 12px;
  border-bottom: 1px solid #e4e7ec;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .admin-page {
    padding: 24px 16px;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }
}

/* Public quote landing */
.landing-site-header {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 22px max(36px, calc((100% - 1320px) / 2 + 36px));
}

html.landing-page-layout .landing-site-header {
  background: #ffffff;
}

html.landing-page-layout:has(.landing-page),
body:has(.landing-page) {
  background: #ffffff;
}

.landing-site-header .site-brand {
  width: 190px;
}

.landing-site-header .language-selector-button {
  font-size: 18px;
}

.landing-page {
  overflow-x: clip;
  background: #ffffff;
}

.landing-page > .landing-customer-slide,
.landing-page > #collaborator-section {
  min-width: 0;
}

.landing-intro-slide {
  display: grid;
  min-height: calc(100vh - var(--landing-header-offset));
  min-height: calc(100svh - var(--landing-header-offset));
  min-height: calc(100dvh - var(--landing-header-offset));
  place-items: center;
  padding: clamp(48px, 9vh, 96px) 36px;
  background: #ffffff;
  text-align: center;
}

.landing-intro-inner {
  width: min(100%, 880px);
  margin: 0 auto;
}

.landing-intro-inner .landing-eyebrow {
  margin-bottom: 22px;
  color: #5274b8;
}

.landing-intro-inner h1,
.collaborators-hero h1 {
  margin: 0;
  color: #172033;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.landing-intro-subtitle {
  max-width: 700px;
  margin: 24px auto 0;
  color: #667085;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.55;
}

.landing-intro-actions,
.collaborators-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

.landing-intro-actions a,
.collaborators-actions a {
  width: auto;
  min-width: 220px;
  text-decoration: none;
}

.landing-intro-actions .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-how-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 15px;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.landing-how-trigger:hover,
.landing-how-trigger:focus-visible {
  color: #172033;
}

.landing-how-trigger:focus-visible,
.landing-carousel-section button:focus-visible,
.landing-carousel-track:focus-visible {
  outline: 3px solid #5274b8;
  outline-offset: 3px;
}

.landing-carousel-section {
  display: flex;
  min-height: calc(100vh - var(--landing-header-offset));
  min-height: calc(100svh - var(--landing-header-offset));
  min-height: calc(100dvh - var(--landing-header-offset));
  flex-direction: column;
  padding: clamp(38px, 6vh, 72px) 0 30px;
  background: #ffffff;
}

.landing-carousel-heading {
  width: min(100% - 40px, 1160px);
  margin: 0 auto 24px;
  text-align: center;
}

.landing-carousel-heading h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.landing-carousel-heading p {
  margin: 14px 0 0;
  color: #667085;
  font-size: 17px;
  line-height: 1.5;
}

.landing-carousel-track {
  display: flex;
  width: 100%;
  flex: 1 0 auto;
  min-height: 380px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.landing-carousel-track::-webkit-scrollbar {
  display: none;
}

.landing-carousel-slide {
  display: grid;
  position: relative;
  min-width: 0;
  min-height: 380px;
  flex: 0 0 100%;
  align-items: center;
  padding: 24px clamp(20px, 7vw, 96px);
  scroll-snap-align: center;
  scroll-snap-stop: always;
}

.landing-how-slide {
  background: #ffffff;
}

.landing-carousel-slide.landing-use-cases {
  background: #f8fafc;
}

.landing-carousel-slide.landing-pricing {
  background: #ffffff;
}

.landing-carousel-slide-content {
  width: min(100%, 960px);
  margin: 0 auto;
}

.landing-carousel-slide-content h3 {
  margin: 0;
  color: #172033;
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.2;
  text-align: center;
}

.landing-carousel-step {
  display: block;
  margin: 0 0 14px;
  color: #5274b8;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-align: center;
}

.landing-carousel-slide-content > p {
  max-width: 760px;
  margin: 22px auto 0;
  color: #475467;
  font-size: clamp(18px, 2.6vw, 24px);
  line-height: 1.6;
  text-align: center;
}

.landing-carousel-arrow {
  position: absolute;
  top: 50%;
  right: clamp(18px, 4vw, 56px);
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 1px solid #d0d5dd;
  border-radius: 50%;
  background: #ffffff;
  color: #172033;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.landing-carousel-arrow:hover {
  border-color: #5274b8;
  background: #f8fafc;
}

.landing-how-slide .landing-carousel-slide-content,
.landing-use-cases-content {
  padding-right: clamp(42px, 7vw, 88px);
}

.landing-carousel-final-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

.landing-carousel-final-actions > a,
.landing-carousel-final-actions > button {
  width: auto;
  min-width: 220px;
  min-height: 48px;
}

.landing-use-cases-content {
  width: min(100%, 1160px);
}

.landing-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.landing-category-list li {
  padding: 24px 16px;
  border-bottom: 1px solid #d0d5dd;
  color: #344054;
  font-size: 20px;
  font-weight: 650;
  text-align: center;
}

.landing-carousel-progress-row {
  display: flex;
  width: min(100% - 40px, 1160px);
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 18px auto 0;
}

.landing-carousel-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.landing-carousel-indicator {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d0d5dd;
  cursor: pointer;
}

.landing-carousel-indicator.is-active {
  background: #5274b8;
  box-shadow: 0 0 0 3px rgb(82 116 184 / 16%);
}

.landing-carousel-progress {
  margin: 0;
  color: #667085;
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.landing-customer-slide {
  min-width: 0;
  background: #f8fafc;
}

.landing-page > section {
  min-width: 0;
}

.landing-page > .landing-intro-slide,
.landing-page > .landing-customer-slide,
.landing-page > .landing-carousel-section,
.landing-page > #collaborator-section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.landing-customer-slide > section {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.landing-hero {
  display: flex;
  min-height: calc(100vh - var(--landing-header-offset));
  min-height: calc(100svh - var(--landing-header-offset));
  min-height: calc(100dvh - var(--landing-header-offset));
  align-items: center;
  padding: 32px 36px 40px;
}

.landing-hero-inner,
.landing-section-inner {
  width: min(100%, 1160px);
  margin: 0 auto;
}

.landing-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.landing-copy {
  min-width: 0;
}

.landing-eyebrow {
  margin: 0 0 18px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.landing-copy h2 {
  max-width: 560px;
  margin: 0;
  color: #172033;
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.landing-subtitle {
  max-width: 560px;
  margin: 24px 0 0;
  color: #667085;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.landing-benefits {
  display: grid;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.landing-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #344054;
  font-size: 16px;
  font-weight: 600;
}

.landing-benefits li span {
  display: inline-flex;
  width: 24px;
  justify-content: center;
  color: #5274b8;
  font-size: 20px;
}

.landing-form-column {
  width: 100%;
  max-width: 620px;
  justify-self: end;
}

.quote-card.landing-form-card {
  padding: 30px;
  border-color: #eaecf0;
  box-shadow: 0 16px 42px rgba(16, 24, 40, 0.08);
}

.landing-form-card h2 {
  margin: 0 0 22px;
  color: #172033;
  font-size: 18px;
  font-weight: 700;
}

.landing-form-card .quote-form {
  gap: 12px;
}

.landing-form-card .quote-form-row {
  gap: 12px;
}

.landing-submit::after {
  margin-left: 10px;
  content: "→";
  font-size: 20px;
}

.quote-account-access.landing-account-access {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.quote-account-access.landing-account-access .quote-account-option p {
  margin-bottom: 6px;
  font-size: 13px;
}

.quote-account-access.landing-account-access .button-secondary {
  min-height: 42px;
  border-color: transparent;
  background: transparent;
  color: #475467;
  font-size: 14px;
}

.landing-content-section {
  display: flex;
  min-height: calc(100vh - var(--landing-header-offset));
  min-height: calc(100svh - var(--landing-header-offset));
  min-height: calc(100dvh - var(--landing-header-offset));
  align-items: center;
  padding: 96px 36px;
}

.landing-content-section h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.15;
  text-align: center;
}

.landing-carrier-cta {
  background: #f8fafc;
  text-align: center;
}

.landing-carrier-cta p {
  margin: 24px 0 30px;
  color: #475467;
  font-size: 18px;
}

.landing-carrier-actions {
  margin-top: 0;
}

.button-primary.landing-carrier-cta-button {
  width: auto;
  min-width: 260px;
}

.collaborators-page {
  overflow-x: clip;
  background: #f8fafc;
}

.collaborators-page > section {
  display: flex;
  min-height: calc(100vh - var(--landing-header-offset));
  min-height: calc(100svh - var(--landing-header-offset));
  min-height: calc(100dvh - var(--landing-header-offset));
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.collaborators-inner {
  width: min(100%, 1080px);
  margin: 0 auto;
}

.collaborators-hero,
.collaborators-content,
.collaborators-features,
.collaborators-final-cta {
  padding: clamp(64px, 9vw, 112px) 36px;
}

.collaborators-hero {
  background: #f8fafc;
  text-align: center;
}

.collaborators-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(38px, 5.5vw, 64px);
}

.collaborators-lead {
  max-width: 760px;
  margin: 24px auto 0;
  color: #667085;
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.6;
}

.collaborators-content,
.collaborators-final-cta {
  background: #ffffff;
}

.collaborators-content h2,
.collaborators-features h2,
.collaborators-final-cta h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.04em;
  text-align: center;
}

.collaborators-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.collaborators-steps li {
  display: flex;
  gap: 18px;
  padding: 24px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #f8fafc;
}

.collaborators-steps li > span {
  color: #5274b8;
  font-size: 18px;
  font-weight: 750;
}

.collaborators-steps h3 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 18px;
}

.collaborators-steps p,
.collaborators-final-cta p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

.collaborators-features {
  background: #eef2f8;
}

.collaborators-features ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.collaborators-features li {
  padding: 20px 22px;
  border-radius: 10px;
  background: #ffffff;
  color: #344054;
  line-height: 1.5;
}

.collaborators-final-cta {
  text-align: center;
}

.collaborators-final-cta p {
  margin: 20px 0 0;
}

@media (max-width: 760px) {
  html.landing-page-layout {
    --landing-header-offset: 96px;
    --landing-scroll-offset: max(132px, calc(var(--landing-header-offset) + 4px));
    scroll-snap-type: y proximity;
  }

  html.landing-page-layout.landing-authenticated {
    --landing-header-offset: 164px;
  }

  .landing-site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 18px 20px;
  }

  .landing-site-header .site-brand {
    width: min(38vw, 160px);
  }

  .landing-site-header .language-selector {
    align-self: center;
  }

  .landing-site-header .language-selector-button {
    font-size: 16px;
  }

  .landing-hero {
    min-height: calc(100vh - var(--landing-header-offset));
    min-height: calc(100svh - var(--landing-header-offset));
    min-height: calc(100dvh - var(--landing-header-offset));
    padding: 36px 20px 48px;
  }

  .landing-intro-slide {
    min-height: calc(100vh - var(--landing-header-offset));
    min-height: calc(100svh - var(--landing-header-offset));
    min-height: calc(100dvh - var(--landing-header-offset));
    padding: 52px 20px;
  }

  .landing-intro-inner h1 {
    font-size: clamp(38px, 10vw, 52px);
  }

  .landing-intro-subtitle {
    margin-top: 18px;
    font-size: 18px;
  }

  .landing-intro-actions,
  .collaborators-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 28px;
  }

  .landing-intro-actions a,
  .collaborators-actions a {
    width: 100%;
  }

  .landing-hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .landing-copy h2 {
    max-width: 580px;
    font-size: clamp(38px, 10vw, 52px);
  }

  .landing-subtitle {
    margin-top: 18px;
    font-size: 18px;
  }

  .landing-benefits {
    gap: 11px;
    margin-top: 24px;
  }

  .landing-form-column {
    max-width: none;
  }

  .landing-form-card {
    padding: 24px 20px;
  }

  .landing-content-section {
    min-height: calc(100vh - var(--landing-header-offset));
    min-height: calc(100svh - var(--landing-header-offset));
    min-height: calc(100dvh - var(--landing-header-offset));
    padding: 76px 20px;
  }

  .landing-carousel-section {
    padding-top: 42px;
  }

  .landing-carousel-track,
  .landing-carousel-slide {
    min-height: 340px;
  }

  .landing-carousel-slide {
    padding-right: 22px;
    padding-left: 22px;
  }

  .landing-carousel-slide.landing-has-next {
    padding-right: 64px;
    padding-left: 36px;
  }

  .landing-carousel-arrow {
    right: 10px;
    width: 44px;
    height: 44px;
  }

  .landing-carousel-final-actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 24px;
  }

  .landing-carousel-final-actions > a,
  .landing-carousel-final-actions > button {
    width: 100%;
  }

  .landing-category-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 28px;
  }

  .landing-category-list li {
    padding: 14px 12px;
    text-align: center;
  }

  .landing-carrier-cta-button {
    width: 100%;
  }

  .collaborators-hero,
  .collaborators-content,
  .collaborators-features,
  .collaborators-final-cta {
    padding: 64px 20px;
  }

  .collaborators-steps,
  .collaborators-features ul {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 32px;
  }

  .quote-account-access.landing-account-access {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .landing-carousel-progress-row {
    margin-top: 14px;
  }
}

@media (max-width: 900px) {
  .landing-form-card .quote-form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

.quote-container {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.quote-detail-container {
  max-width: 1160px;
}

.quote-continue-container {
  max-width: 1440px;
}

.quote-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 24px;
}

.quote-detail-budget-card,
.quote-map-card {
  min-width: 0;
}

.quote-map-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-map-title {
  margin: 0;
  color: #172033;
  font-size: 20px;
  font-weight: 700;
}

.quote-map-canvas {
  min-width: 0;
  min-height: 320px;
  flex: 1 1 auto;
  overflow: hidden;
  border-radius: 12px;
  background: #f2f4f7;
}

.quote-map-status {
  margin: 0;
  color: #475467;
  font-size: 14px;
  line-height: 1.5;
}

.quote-map-note {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .quote-detail-layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  }

  .quote-map-canvas {
    min-height: 480px;
  }
}

.quote-detail-layout.quote-continue-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 1024px) {
  .quote-detail-layout.quote-continue-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    align-items: stretch;
  }

  .quote-continue-layout .quote-map-canvas {
    min-height: clamp(360px, 40vw, 560px);
  }
}

.quote-header {
  margin-bottom: 32px;
}

.quote-logo {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.quote-subtitle {
  margin: 0;
  color: #667085;
  font-size: 17px;
  line-height: 1.5;
}

.quote-continue-title {
  margin: 12px 0 0;
  color: #172033;
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.quote-continue-subtitle {
  margin: 8px 0 0;
  color: #475467;
  font-size: 16px;
  line-height: 1.5;
}

.continue-action-card {
  gap: 24px;
}

.continue-action-summary p {
  margin: 0;
  color: #475467;
  font-size: 16px;
  line-height: 1.55;
}

.continue-action-buttons {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 12px;
}

.continue-action-buttons form {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.quote-continue-action-button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
}

.continue-action-buttons .button-primary.quote-continue-action-button {
  min-height: 52px;
}

.quote-card {
  padding: 32px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(16, 24, 40, 0.06);
}

.quote-account-access {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.quote-account-option p {
  margin: 0 0 8px;
  color: #667085;
  font-size: 14px;
  text-align: center;
}

.quote-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.quote-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

/* Keep native Safari date/time controls inside their grid columns. */
.quote-schedule-row > .form-field {
  min-width: 0;
}

.quote-schedule-row .form-input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  height: 48px;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}

.quote-schedule-row .form-input::-webkit-date-and-time-value {
  min-height: 1.5em;
  text-align: left;
}

.quote-form .field-error {
  margin: 0;
  color: #b42318;
  font-size: 13px;
  line-height: 1.4;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.continue-action-card .field-error {
  margin: 0;
  color: #b42318;
  font-size: 14px;
  line-height: 1.4;
}

.volume-estimator {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.volume-estimator legend {
  margin-bottom: 4px;
  padding: 0;
  color: #344054;
  font-size: 16px;
  font-weight: 600;
}

.volume-estimator .volume-estimator-option {
  min-width: 0;
  align-items: center;
  gap: 20px;
}

.volume-estimator-option input[type="checkbox"] {
  margin: 0;
  flex: 0 0 18px;
}

.volume-estimator-option label {
  min-width: 0;
  white-space: normal;
}

@media (min-width: 1440px) {
  .volume-estimator {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    column-gap: 12px;
  }

  .volume-estimator legend {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1439px) {
  .volume-estimator {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    row-gap: 12px;
  }

  .volume-estimator legend {
    grid-column: 1 / -1;
  }
}

@media (max-width: 360px) {
  .volume-estimator {
    grid-template-columns: minmax(0, 1fr);
  }

  .volume-estimator legend {
    grid-column: 1;
  }
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #344054;
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-input::placeholder {
  color: #98a2b3;
}

.form-input:focus {
  border-color: #344054;
  box-shadow: 0 0 0 3px rgba(52, 64, 84, 0.1);
}

gmp-place-autocomplete {
  display: block;
  width: 100%;
  min-height: 48px;

  color-scheme: light;
  background-color: #ffffff;
  color: #172033;

  border: 1px solid #d0d5dd;
  border-radius: 10px;

  font-family: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.form-consent label {
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.landing-email-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landing-email-info {
  position: relative;
  align-self: flex-start;
}

.landing-email-info summary {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #98a2b3;
  border-radius: 50%;
  color: #475467;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.landing-email-info summary::-webkit-details-marker {
  display: none;
}

.landing-email-info summary:focus-visible {
  outline: 3px solid #5274b8;
  outline-offset: 3px;
}

.landing-email-info p {
  position: absolute;
  z-index: 4;
  top: 24px;
  left: -12px;
  width: min(290px, calc(100vw - 48px));
  margin: 0;
  padding: 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgb(23 32 51 / 12%);
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-page {
  min-height: calc(100vh - 80px);
  padding: 40px 20px 64px;
}

.dashboard-card {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgb(23 32 51 / 6%);
}

.dashboard-card h1 {
  margin: 0 0 28px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-action {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #ffffff;
  color: #172033;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dashboard-action:hover {
  border-color: #98a2b3;
  background: #f8fafc;
}

.dashboard-action:focus-visible {
  outline: 3px solid #5274b8;
  outline-offset: 3px;
}

.dashboard-logout {
  width: auto;
  margin-top: 20px;
}

.terms-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.terms-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #ffffff;
  line-height: 1.65;
}

.terms-card h1,
.terms-card h2 {
  color: #172033;
}

.terms-card section + section {
  margin-top: 24px;
}

.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: #172033;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.15s ease;
}

.button-primary:hover {
  background: #273449;
}

.button-primary:active {
  transform: translateY(1px);
}

.button-primary:disabled {
  background: #eaecf0;
  color: #667085;
  cursor: not-allowed;
  transform: none;
}

.oauth-cancel-button {
  margin-top: 12px;
  border: 1px solid #c74662;
  background: #f4a3b4;
  color: #4a001f;
}

.oauth-cancel-button:hover {
  border-color: #b93b56;
  background: #ea879c;
  color: #4a001f;
}

.oauth-cancel-button:active {
  background: #df718a;
  color: #4a001f;
}

.oauth-cancel-button:focus-visible {
  outline-color: #172033;
}

.oauth-cancel-button:disabled {
  border-color: #d0d5dd;
  background: #eaecf0;
  color: #667085;
  cursor: not-allowed;
}

.button-primary:focus-visible,
.button-secondary:focus-visible,
.action-link:focus-visible,
.language-selector-button:focus-visible {
  outline: 3px solid #5274b8;
  outline-offset: 3px;
}

.quote-result-card {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.route-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.route-summary-horizontal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(12px, 3vw, 40px);
  row-gap: 6px;
}

.route-summary-horizontal .route-arrow {
  grid-column: 2;
  align-self: center;
  margin-top: 18px;
}

.route-summary-horizontal .route-label {
  line-height: 1;
}

.route-point {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
}

.route-label {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-address {
  overflow-wrap: anywhere;
  color: #172033;
  font-size: 16px;
  line-height: 1.5;
}

.route-arrow {
  color: #98a2b3;
  font-size: 22px;
  line-height: 1;
  text-align: center;
}

.route-summary-horizontal .route-arrow {
  font-size: 26px;
  justify-self: center;
}

.quote-index-details {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 16px;
}

.customer-notifications-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.notification-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.customer-notification {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #e4e7ec;
}

.customer-notification.is-unread {
  font-weight: 650;
}

.carrier-payout-request-card {
  min-width: 0;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  overflow-wrap: anywhere;
}

.quote-schedule-summary {
  display: grid;
  gap: 12px;
  margin: 0;
}

.quote-schedule-summary dt,
.carrier-quote-card-facts dt {
  color: #667085;
  font-size: 13px;
  font-weight: 650;
}

.quote-schedule-summary dd {
  margin: 3px 0 0;
  line-height: 1.5;
}

.quote-schedule-legacy {
  margin: -12px 0 0;
  color: #667085;
  font-size: 13px;
}

@media (max-width: 520px) {
  .route-summary-horizontal .route-address {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .route-summary-horizontal {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .route-summary-horizontal .route-arrow {
    grid-column: 1;
    justify-self: center;
    align-self: center;
    margin-top: 0;
    transform: rotate(90deg);
  }
}

.carrier-quote-page {
  width: min(100% - 32px, 1320px);
}

.carrier-quote-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.carrier-quote-detail-main,
.carrier-quote-detail-map {
  min-width: 0;
}

.carrier-quote-detail-map .quote-map-canvas {
  width: 100%;
  min-height: 340px;
}

@media (max-width: 820px) {
  .carrier-quote-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .carrier-quote-detail-map .quote-map-canvas {
    min-height: 280px;
  }
}

.price-section {
  padding: 28px 20px;
  border-top: 1px solid #e4e7ec;
  border-bottom: 1px solid #e4e7ec;
  text-align: center;
}

.price-label {
  margin: 0 0 8px;
  color: #667085;
  font-size: 14px;
  font-weight: 600;
}

.price-value {
  margin: 0;
  color: #172033;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.price-description {
  margin: 8px 0 0;
  color: #98a2b3;
  font-size: 13px;
}

.contact-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-section h2 {
  margin: 0;
  color: #172033;
  font-size: 20px;
  font-weight: 700;
}

.contact-description {
  margin: -8px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-option {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.button-secondary:hover {
  border-color: #98a2b3;
  background: #f8fafc;
}

.button-secondary:active {
  transform: translateY(1px);
}

.contact-button {
  width: 100%;
}

.confirmation-message {
  padding: 16px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #f8fafc;
  color: #344054;
  font-size: 14px;
  line-height: 1.5;
}

.flash-notice {
  margin: 0 0 20px;
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.action-link {
  display: inline-block;
  color: #667085;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}

.action-link:hover {
  color: #172033;
  text-decoration: underline;
}

.new-quote-link {
  padding-top: 4px;
}

@media (max-width: 640px) {
  html.landing-page-layout.landing-authenticated {
    --landing-header-offset: 14rem;
  }

  .quote-page {
    padding: 24px 16px;
  }

  .quote-card {
    padding: 24px 20px;
    border-radius: 14px;
  }

  .quote-logo {
    font-size: 28px;
  }

  .quote-subtitle {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.landing-page-layout {
    scroll-snap-type: y proximity;
    scroll-behavior: auto;
  }

  .landing-carousel-track {
    scroll-behavior: auto;
  }
}

/* Authentication */

.auth-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 28px 20px 40px;
}

body.auth-screen-layout {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

body.auth-screen-layout > main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
}

body.auth-screen-layout > main > .auth-page {
  min-height: auto;
  flex: 1 0 auto;
  align-items: center;
  padding-block: clamp(8px, 1svh, 16px);
}

.auth-container {
  width: 100%;
  max-width: 440px;
}

.auth-container-registration {
  max-width: 1300px;
}

.auth-container-social:has(.auth-social-actions-with-apple) {
  max-width: 560px;
}

.auth-card {
  padding: 36px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.08);
}

.auth-header {
  margin-bottom: 28px;
  text-align: center;
}

.auth-header h1 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-header p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.auth-alert,
.auth-notice {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.auth-alert {
  border: 1px solid #fecdca;
  background: #fef3f2;
  color: #b42318;
}

.auth-notice {
  border: 1px solid #abefc6;
  background: #ecfdf3;
  color: #067647;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.registration-fields-grid,
.registration-consents-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.registration-consents-grid {
  gap: 12px 24px;
}

.registration-fields-grid > *,
.registration-consents-grid > * {
  min-width: 0;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-preference-value {
  margin: 0;
  color: #344054;
  font-size: 15px;
  line-height: 1.5;
}

.dashboard-page {
  display: flex;
  min-height: calc(100vh - 100px);
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

.dashboard-card {
  width: min(100%, 560px);
  padding: 40px;
  border: 1px solid #eaecf0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.08);
}

.dashboard-card h1 {
  margin: 0 0 28px;
  color: #172033;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.25;
}

.dashboard-actions {
  display: grid;
  gap: 12px;
}

.dashboard-actions form {
  width: 100%;
  margin: 0;
}

/* Shared, restrained account page styling */
.dashboard-page {
  min-height: calc(100svh - 96px);
  padding: clamp(28px, 6vw, 72px) 20px;
  background: #f8fafc;
}

.dashboard-card {
  width: min(100%, 760px);
  padding: clamp(24px, 5vw, 48px);
  border-color: #eaecf0;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.04);
}

.dashboard-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-actions > a,
.dashboard-actions > form button {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  justify-content: flex-start;
  padding: 16px 20px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #ffffff;
  color: #172033;
  text-align: left;
  text-decoration: none;
}

.dashboard-actions > a:hover,
.dashboard-actions > form button:hover {
  border-color: #98a2b3;
  background: #f9fafb;
}

.dashboard-actions > form button {
  font-weight: 650;
  cursor: pointer;
}

.profile-page {
  width: min(calc(100% - 40px), 760px);
  margin: 24px auto 64px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid #eaecf0;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.04);
}

.profile-header {
  margin-bottom: 28px;
}

.profile-header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.profile-header p {
  margin: 0;
  color: #667085;
  line-height: 1.6;
}

.profile-page form {
  display: grid;
  gap: 18px;
}

.profile-page .form-actions {
  margin-top: 4px;
}

.profile-page section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #eaecf0;
}

.profile-page section h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.profile-page .profile-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-page .profile-fields-grid .form-field {
  min-width: 0;
}

.profile-page .profile-personal-section > h2 {
  margin-bottom: 18px;
}

.admin-page h1 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: -0.04em;
}

.admin-metric,
.admin-leads {
  border-color: #eaecf0;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.035);
}

.admin-leads table {
  min-width: 920px;
}

.quotes-index-page .quote-container {
  max-width: 1440px;
}

.quotes-index-page .quote-header {
  margin-bottom: 24px;
}

.quotes-grid,
.quotes-new-link-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.quote-index-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border-color: #eaecf0;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(16, 24, 40, 0.04);
}

.quote-index-card .route-summary {
  gap: 14px;
}

.quote-index-card .route-address {
  overflow-wrap: anywhere;
}

.quote-index-card .button-secondary {
  margin-top: auto;
}

.quotes-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border-radius: 12px;
  background: #ffffff;
  color: #667085;
}

.quotes-new-link-row {
  margin-top: 28px;
}

.quotes-new-link {
  grid-column: 1;
}

@media (max-width: 1100px) {
  .quotes-grid,
  .quotes-new-link-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dashboard-actions,
  .quotes-grid,
  .quotes-new-link-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-card {
    padding: 24px 20px;
  }

  .profile-page {
    width: calc(100% - 32px);
    margin: 16px auto 40px;
    padding: 24px 20px;
  }

  .profile-page .profile-fields-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-leads {
    padding: 18px 14px;
  }

  .quotes-index-page {
    padding-right: 16px;
    padding-left: 16px;
  }

  .quote-index-card {
    padding: 20px;
  }

}

.auth-field label {
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  font-size: 16px;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.auth-field input::placeholder {
  color: #98a2b3;
}

.auth-field input:focus {
  border-color: #344054;
  box-shadow: 0 0 0 3px rgba(52, 64, 84, 0.1);
}

.auth-forgot-link {
  font-size: 13px;
}

.auth-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.auth-submit {
  margin-top: 4px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 20px;
  color: #98a2b3;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e4e7ec;
}

.auth-divider span {
  flex: 0 0 auto;
}

.auth-social-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 375px;
  margin-inline: auto;
}

.auth-social-actions-with-apple {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 496px;
}

.auth-container-registration .auth-social-actions-with-apple {
  max-width: 766px;
}

.auth-social-actions form {
  width: 100%;
  margin: 0;
}

.auth-social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 30px;
  height: auto;
  aspect-ratio: 375 / 48;
  padding: 0;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #ffffff;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.auth-social-button:hover {
  border-color: #98a2b3;
  background: #f8fafc;
}

.auth-social-button-google {
  border-color: #dadce0;
  background: #ffffff;
  color: #1f1f1f;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.3), 0 1px 3px rgba(60, 64, 67, 0.15);
  font-weight: 500;
}

.auth-social-button-apple {
  width: 100%;
  min-width: 140px;
  min-height: 30px;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  line-height: 0;
}

.auth-social-button-apple:hover {
  border: 0;
  background: transparent;
}

.auth-social-button-apple:active {
  transform: none;
}

.auth-social-button-apple:focus-visible {
  outline: 3px solid #5274b8;
  outline-offset: 4px;
}

.auth-social-apple-button-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.auth-social-button-google:hover {
  border-color: #c8cdd2;
  background: #f8faff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.3), 0 2px 5px rgba(60, 64, 67, 0.15);
}

.auth-social-google-logo {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.auth-social-button:active {
  transform: translateY(1px);
}

.auth-social-button:focus-visible {
  outline: 3px solid #5274b8;
  outline-offset: 3px;
}

.auth-container-registration .auth-social-button {
  min-width: 0;
  min-height: 30px;
  height: auto;
  aspect-ratio: 375 / 48;
  padding: 0;
}

.auth-container-registration .auth-social-button-apple {
  border-radius: 10px;
}

.auth-footer {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 28px;
  color: #667085;
  font-size: 14px;
}

.auth-register-link {
  color: #172033;
  font-weight: 700;
}

.auth-back-link .action-link {
  font-size: 14px;
}

.auth-back-link {
  margin: 24px 0 0;
  text-align: center;
}

.auth-back-home-link {
  display: inline-block;
  margin: 0 0 20px;
}

.language-selector-form {
  display: inline;
}

.language-selector {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.language-separator {
  margin: 0 0.5em;
}

.language-selector-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #667085;
  font: inherit;
  font-size: 26px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease;
}

.language-selector-button:hover,
.language-selector-button.active {
  color: #172033;
}

.language-selector-button:focus-visible {
  outline: none;
  color: #172033;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 640px) {
  .auth-social-actions-with-apple {
    grid-template-columns: minmax(0, 1fr);
    max-width: 375px;
  }

  .auth-container-registration .auth-social-button {
    min-height: 30px;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 16px;
  }

  .site-header > .site-brand {
    width: min(42vw, 160px);
  }

  .site-header > .carrier-header-logout-form {
    margin-right: auto;
  }

  .site-header > .site-navigation {
    order: 3;
    flex: 1 1 100%;
  }

  .site-header > .language-selector {
    order: 2;
    align-self: center;
    margin-left: auto;
  }

  .site-header .language-selector-button {
    font-size: 16px;
  }

  .site-navigation {
    gap: 12px 20px;
  }

  .site-brand {
    width: 100%;
    font-size: 28px;
  }

  .language-selector {
    align-self: flex-end;
  }

  .language-selector-button {
    font-size: 23px;
  }

  .auth-page {
    padding: 32px 16px;
  }

  body.auth-screen-layout > main > .auth-page {
    padding: 24px 16px;
  }

  .auth-card {
    padding: 28px 22px;
    border-radius: 14px;
  }

  .auth-header h1 {
    font-size: 25px;
  }

  .auth-field-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (min-width: 720px) {
  .registration-fields-grid,
  .registration-consents-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 16px;
  }
}

@media (max-width: 640px) {
  .landing-site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 18px 20px;
  }

  .landing-site-header .site-brand {
    width: min(38vw, 160px);
  }

  .landing-site-header .language-selector {
    align-self: center;
  }

  .landing-site-header .language-selector-button {
    font-size: 16px;
  }

  .quote-card.landing-form-card {
    padding: 24px 20px;
  }

  .quote-form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Anonymous quotes this browser made before signing in */
.quote-claim-offer {
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid #d0d5dd;
  border-radius: 12px;
  background: #f8fafc;
  color: #172033;
}

.quote-claim-offer h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.quote-claim-offer p {
  margin: 0 0 8px;
  line-height: 1.5;
}

.quote-claim-offer-hint {
  color: #475467;
  font-size: 14px;
}

.quote-claim-offer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* Private transporter profile and fleet management */
.carrier-page {
  width: min(100% - 32px, 1040px);
  margin: 0 auto;
  padding: 36px 0 64px;
  color: #172033;
}

.carrier-application-page {
  width: min(100% - 32px, 1300px);
}

.carrier-page-header {
  margin: 0 0 24px;
}

.carrier-page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.carrier-page-header p:last-child,
.carrier-section-heading p {
  margin: 0;
  color: #667085;
  line-height: 1.5;
}

.carrier-eyebrow {
  margin: 0 0 8px;
  color: #475467;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.carrier-card {
  margin: 0 0 20px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #e4e7ec;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgb(23 32 51 / 6%);
}

.carrier-dashboard-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.04em;
}

.carrier-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  flex: 1 1 auto;
  min-height: 0;
  gap: 20px;
  align-items: stretch;
}

.carrier-dashboard-page {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 10px 16px 16px;
}

body:has(.carrier-dashboard-page) {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}

body:has(.carrier-dashboard-page) > main {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.carrier-dashboard-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: clamp(18px, 2.5vw, 26px);
  overflow: auto;
  overflow-wrap: anywhere;
}

.carrier-dashboard-card h2 {
  font-size: clamp(18px, 2vw, 21px);
}

.carrier-dashboard-card > :last-child {
  margin-bottom: 0;
}

.carrier-dashboard-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.carrier-dashboard-card-header h2 {
  margin-bottom: 0;
}

.carrier-dashboard-highlight {
  color: #172033;
  font-weight: 700;
}

.carrier-dashboard-reviews {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.carrier-dashboard-no-activity {
  display: block;
  color: #667085;
  font-size: 13px;
  font-weight: 400;
}

.carrier-dashboard-calendar-empty {
  margin: 0 0 8px;
}

.carrier-dashboard-calendar-note {
  margin: 0 0 8px;
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
}

.carrier-dashboard-calendar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1 1 auto;
  min-height: 150px;
  margin: 0;
}

.carrier-dashboard-calendar-days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.carrier-dashboard-calendar-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 8px 5px;
  border-right: 1px solid #e4e7ec;
  border-bottom: 1px solid #e4e7ec;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.carrier-dashboard-calendar-heading:last-child,
.carrier-dashboard-calendar-cell:last-child {
  border-right: 0;
}

.carrier-dashboard-calendar-heading time {
  color: #172033;
  font-size: 14px;
  font-weight: 700;
  text-transform: none;
}

.carrier-dashboard-calendar-heading.is-today time {
  color: #d92d20;
}

.carrier-dashboard-calendar-cell {
  min-height: 0;
  gap: 5px;
  padding: 6px;
  border-right: 1px solid #f2f4f7;
  border-bottom: 0;
  overflow: auto;
}

.carrier-dashboard-calendar-cell .calendar-event {
  display: block;
  max-width: 100%;
}

.carrier-dashboard-calendar-cell .calendar-blocked-label {
  padding: 4px;
  border-radius: 4px;
  background: rgb(255 255 255 / 70%);
}

@media (max-width: 900px) {
  .carrier-dashboard-grid {
    grid-template-rows: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 680px) {
  .carrier-dashboard-page {
    padding: 10px 12px 12px;
  }

  .carrier-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(4, minmax(240px, auto));
    flex: 0 0 auto;
    gap: 14px;
  }

  .carrier-dashboard-card {
    overflow: auto;
  }

  .carrier-dashboard-calendar {
    min-width: 0;
  }

  .carrier-dashboard-calendar-heading {
    padding: 7px 2px;
    font-size: 9px;
  }

  .carrier-dashboard-calendar-heading time {
    font-size: 12px;
  }

  .carrier-dashboard-calendar-cell {
    padding: 4px 3px;
  }

  .carrier-dashboard-calendar-cell .calendar-event {
    padding: 3px;
    font-size: 9px;
  }
}

.carrier-dashboard-blocked {
  color: #b42318;
  font-size: 13px;
  font-weight: 650;
}

.carrier-dashboard-reviews li + li {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eaecf0;
}

.carrier-dashboard-reviews p {
  margin: 6px 0;
}

.carrier-dashboard-reviews time,
.carrier-dashboard-sales-note {
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.carrier-dashboard-reviews .carrier-rating {
  margin-top: 0;
}

.carrier-dashboard-sales-chart {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.carrier-dashboard-sales-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 12px;
  align-items: center;
  color: #344054;
  font-size: 14px;
}

.carrier-dashboard-sales-track {
  grid-column: 1 / -1;
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2f4f7;
}

.carrier-dashboard-sales-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #344f87;
}

.carrier-card h2,
.carrier-vehicle-form-section h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.carrier-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.carrier-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.carrier-status-approved,
.carrier-status-active {
  background: #dcfae6;
  color: #067647;
}

.carrier-status-pending {
  background: #fef0c7;
  color: #93370d;
}

.carrier-status-rejected,
.carrier-status-suspended,
.carrier-status-inactive {
  background: #fee4e2;
  color: #b42318;
}

.carrier-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.carrier-field {
  min-width: 0;
}

.carrier-field-wide,
.carrier-form-actions {
  grid-column: 1 / -1;
}

.carrier-field label {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.carrier-field input,
.carrier-field textarea,
.carrier-field select,
.carrier-admin-status-form select {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #ffffff;
  color: #172033;
  font: inherit;
}

.carrier-field textarea {
  resize: vertical;
}

.carrier-field input:focus-visible,
.carrier-field textarea:focus-visible,
.carrier-field select:focus-visible,
.carrier-admin-status-form select:focus-visible {
  outline: 3px solid rgb(82 116 184 / 35%);
  border-color: #5274b8;
}

.carrier-field small {
  display: block;
  margin-top: 5px;
  color: #667085;
}

.carrier-field small.field-error {
  color: #b42318;
}

.carrier-input-unit {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carrier-input-unit input {
  min-width: 0;
  flex: 1;
}

.carrier-input-unit span {
  min-width: 30px;
  color: #475467;
  font-size: 14px;
}

.carrier-form-actions,
.carrier-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.carrier-form .button-primary,
.carrier-inline-actions .button-secondary,
.carrier-admin-status-form .button-secondary {
  width: auto;
  min-height: 44px;
}

.carrier-vehicle-list {
  display: grid;
  gap: 14px;
}

.carrier-vehicle-card {
  padding: 18px;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  background: #fcfcfd;
}

.carrier-vehicle-card .carrier-section-heading {
  margin-bottom: 14px;
}

.carrier-vehicle-card h3 {
  margin: 0;
  font-size: 17px;
}

.carrier-vehicle-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.carrier-vehicle-specs div {
  min-width: 0;
}

.carrier-vehicle-specs dt {
  color: #667085;
  font-size: 12px;
}

.carrier-vehicle-specs dd {
  margin: 4px 0 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.carrier-vehicle-form-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #eaecf0;
}

.carrier-empty {
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475467;
}

.carrier-notice,
.carrier-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
}

.carrier-notice {
  border: 1px solid #abefc6;
  background: #ecfdf3;
  color: #067647;
}

.carrier-alert {
  border: 1px solid #fecdca;
  background: #fef3f2;
  color: #b42318;
}

.carrier-admin-status-form {
  display: flex;
  min-width: 240px;
  align-items: center;
  gap: 8px;
}

.carrier-admin-status-form select {
  min-height: 42px;
}

.carrier-application-card {
  padding: clamp(20px, 3vw, 34px);
}

.carrier-application-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}

.carrier-edit-panel > summary {
  display: inline-flex;
  cursor: pointer;
  list-style: none;
}

.carrier-edit-panel > summary::-webkit-details-marker {
  display: none;
}

.carrier-edit-panel[open] > summary {
  margin-bottom: 18px;
}

.carrier-document-upload-form {
  grid-template-columns: minmax(0, 1fr);
}

.carrier-review-notice {
  border-left: 4px solid #5274b8;
}

.carrier-application-section {
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
}

.carrier-application-section legend {
  padding: 0 8px;
  color: #172033;
  font-size: 18px;
  font-weight: 750;
}

.carrier-application-help,
.carrier-document-notice {
  margin: 0 0 18px;
  color: #667085;
  line-height: 1.55;
}

.carrier-document-notice {
  padding: 14px 16px;
  border-left: 3px solid #5274b8;
  border-radius: 8px;
  background: #f5f8ff;
  color: #344054;
}

.carrier-application-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}

.carrier-document-grid {
  gap: 18px 20px;
}

.carrier-application-section input[type="file"] {
  min-height: auto;
  padding: 9px;
}

.carrier-application-section input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin: 3px 9px 0 0;
  accent-color: #315caa;
}

.carrier-vehicle-availability,
.carrier-consent {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  color: #344054;
  line-height: 1.5;
}

.carrier-vehicle-availability label,
.carrier-consent label {
  margin: 0;
  font-weight: 500;
}

.carrier-application-declarations > p {
  line-height: 1.6;
}

.carrier-application-declarations .carrier-consent + .carrier-consent {
  margin-top: 12px;
}

.carrier-existing-documents {
  margin: 14px 0 0;
  padding-left: 20px;
}

.carrier-application-details {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  gap: 10px 18px;
}

.carrier-application-details dt {
  color: #667085;
}

.carrier-application-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.carrier-status-history {
  padding-left: 20px;
  line-height: 1.7;
}

@media (max-width: 680px) {
  .carrier-page {
    width: min(100% - 24px, 1040px);
    padding-top: 24px;
  }

  .carrier-application-page {
    width: min(100% - 24px, 1300px);
  }

  .carrier-form,
  .carrier-vehicle-specs,
  .carrier-application-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .carrier-application-section {
    padding: 16px;
  }

  .carrier-application-details {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .carrier-application-details dd {
    margin-bottom: 10px;
  }

  .carrier-field-wide,
  .carrier-form-actions {
    grid-column: auto;
  }

  .carrier-section-heading {
    align-items: flex-start;
  }

  .carrier-admin-status-form {
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
  }
}

/* Carrier area: waiting page, tools, received quotes, calendar, reviews */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-hint,
.carrier-help-text {
  display: block;
  margin: 8px 0 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

/* Waiting page: just a message in VanQuote's heading type, then the four tools. */
.carrier-waiting-page {
  padding-top: clamp(32px, 8vh, 96px);
}

.carrier-waiting-title {
  max-width: 900px;
  margin: 0 0 40px;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.carrier-waiting-subtitle {
  margin: 0 0 20px;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.carrier-waiting-text {
  max-width: 640px;
  color: #475467;
  font-size: 17px;
  line-height: 1.6;
}

.carrier-waiting-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.carrier-waiting-action {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 108px;
  padding: 22px;
  border: 1px solid #d0d5dd;
  border-radius: 14px;
  background: #ffffff;
  color: #172033;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.carrier-waiting-action:hover {
  border-color: #98a2b3;
  background: #f8fafc;
}

.carrier-waiting-action:focus-visible,
.carrier-tools-link:focus-visible,
.carrier-tab:focus-visible {
  outline: 3px solid #5274b8;
  outline-offset: 3px;
}

.carrier-waiting-action-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.carrier-waiting-action-help {
  color: #667085;
  font-size: 15px;
  line-height: 1.45;
}

.carrier-tools-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
}

.carrier-tools-link {
  padding: 8px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

button.carrier-tools-logout {
  margin: 0;
  font: inherit;
  cursor: pointer;
}

.carrier-tools-link.is-current {
  border-color: #172033;
  background: #172033;
  color: #ffffff;
}

.carrier-quotes-page h1 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.carrier-page-intro {
  margin: -12px 0 20px;
  color: #667085;
}

.carrier-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 16px;
  border-bottom: 1px solid #e4e7ec;
}

.carrier-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 2px solid transparent;
  color: #475467;
  font-weight: 600;
  text-decoration: none;
}

.carrier-tab.is-current {
  border-bottom-color: #172033;
  color: #172033;
}

.carrier-tab-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #f2f4f7;
  font-size: 12px;
  text-align: center;
}

.carrier-quote-section {
  margin: 24px 0 32px;
  scroll-margin-top: 24px;
}

.carrier-quote-section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.carrier-quote-section-heading h2 {
  margin: 0;
  font-size: 21px;
}

.carrier-quote-list {
  display: grid;
  gap: 14px;
}

.carrier-quote-card {
  margin: 0;
  padding: 20px;
}

.carrier-quote-card .carrier-section-heading {
  justify-content: space-between;
  gap: 12px;
}

.carrier-quote-date {
  color: #475467;
  font-weight: 600;
}

.carrier-quote-card .route-summary {
  margin: 18px 0;
}

.carrier-quote-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  margin: 0 0 18px;
}

.carrier-quote-card-facts dt {
  color: #667085;
  font-size: 13px;
}

.carrier-quote-card-facts dd {
  margin: 3px 0 0;
  font-weight: 700;
}

.carrier-table-button {
  width: auto;
  min-height: 36px;
}

.carrier-offer-offered { background: #fef0c7; color: #93370d; }
.carrier-offer-accepted { background: #dcfae6; color: #067647; }
.carrier-offer-rejected,
.carrier-offer-taken,
.carrier-offer-withdrawn { background: #f2f4f7; color: #475467; }

.carrier-back-link {
  color: #475467;
  font-weight: 600;
  text-decoration: none;
}

.carrier-quote-title {
  margin: 0;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.carrier-quote-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.carrier-quote-facts dt {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.carrier-quote-facts dd {
  margin: 4px 0 0;
  font-size: 17px;
}

.carrier-quote-facts dd.carrier-quote-payout {
  font-size: 24px;
  font-weight: 800;
}

/* Accept in green, reject in red. */
.carrier-offer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.carrier-offer-actions form {
  margin: 0;
}

.carrier-accept-button,
.carrier-reject-button {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.carrier-accept-button { background: #12b76a; }
.carrier-accept-button:hover { background: #039855; }
.carrier-reject-button { background: #f04438; }
.carrier-reject-button:hover { background: #d92d20; }

.carrier-customer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e4e7ec;
}

.carrier-customer h2 {
  font-size: 18px;
}

.carrier-customer p {
  margin: 4px 0;
}

/* Calendar, in the spirit of Apple Calendar. */
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calendar-title {
  margin: 0;
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.calendar-year {
  color: #f04438;
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.calendar-arrow,
.calendar-today-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #ffffff;
  color: #172033;
  font-weight: 700;
  text-decoration: none;
}

.calendar-grid {
  overflow: hidden;
  margin: 20px 0 24px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #ffffff;
}

@media (max-width: 680px) {
  .calendar-header {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .calendar-title { font-size: clamp(24px, 7vw, 32px); }
  .calendar-controls { width: 100%; justify-content: flex-end; }

  .calendar-arrow,
  .calendar-today-button {
    min-width: 44px;
    min-height: 44px;
    height: 44px;
  }

  .calendar-day-toggle {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 2px 1px;
    font-size: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
    align-self: center;
  }

  .calendar-day-toggle::before {
    content: "+";
    font-size: 20px;
    line-height: 1;
  }

  .calendar-day.is-blocked .calendar-day-toggle::before {
    content: "−";
  }
}

.calendar-weekdays,
.calendar-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
  padding: 10px 8px;
  border-bottom: 1px solid #e4e7ec;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  text-transform: uppercase;
}

.calendar-day {
  display: flex;
  min-height: 110px;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border-right: 1px solid #f2f4f7;
  border-bottom: 1px solid #f2f4f7;
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day.is-other-month {
  background: #fafbfc;
}

.calendar-day.is-other-month .calendar-day-number,
.calendar-day.is-past .calendar-day-number {
  color: #98a2b3;
}

.calendar-day.is-blocked {
  background: repeating-linear-gradient(135deg, #f8fafc, #f8fafc 6px, #f2f4f7 6px, #f2f4f7 12px);
}

.calendar-day-number {
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 600;
}

.calendar-day.is-today .calendar-day-number {
  background: #f04438;
  color: #ffffff;
}

.calendar-event {
  overflow: hidden;
  padding: 3px 6px;
  border-left: 3px solid #2e90fa;
  border-radius: 4px;
  background: #eff8ff;
  color: #175cd3;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-blocked-label {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.calendar-day form {
  margin-top: auto;
}

.calendar-day-toggle {
  padding: 2px 6px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}

@media (max-width: 820px) {
  .calendar-arrow,
  .calendar-today-button {
    min-width: 44px;
    min-height: 44px;
    height: 44px;
  }

  .calendar-day-toggle {
    width: min(100%, 96px);
    min-width: 44px;
    min-height: 44px;
    padding: 2px 1px;
    font-size: 9px;
    line-height: 1.15;
    overflow-wrap: anywhere;
    align-self: center;
    opacity: 1;
    transition: none;
  }
}

.calendar-day:hover .calendar-day-toggle,
.calendar-day-toggle:focus-visible,
.calendar-day.is-blocked .calendar-day-toggle {
  opacity: 1;
}

.calendar-block-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 24px;
}

.calendar-block-form input[type="date"] {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font: inherit;
}

.calendar-block-form .button-secondary {
  width: auto;
  min-height: 40px;
}

.calendar-upcoming-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.calendar-upcoming-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 10px 0;
  border-bottom: 1px solid #f2f4f7;
}

.calendar-upcoming-date {
  min-width: 180px;
  color: #667085;
  font-weight: 600;
}

/* Reviews */
.carrier-reviews-header {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}

.carrier-photo,
.quote-carrier-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
}

.carrier-photo-placeholder {
  background: #eaecf0;
  color: #475467;
  font-size: 44px;
  font-weight: 800;
}

.carrier-reviews-summary h1 {
  margin: 0 0 4px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.carrier-reviews-name {
  margin: 0 0 8px;
  color: #475467;
}

.rating-stars {
  color: #f79009;
  letter-spacing: 2px;
}

.carrier-rating {
  margin: 0 0 12px;
}

.carrier-photo-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.carrier-photo-form .button-secondary {
  width: auto;
}

.carrier-link-button {
  padding: 0;
  border: 0;
  background: none;
  color: #b42318;
  font-size: 14px;
  cursor: pointer;
}

.carrier-review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.carrier-review {
  padding: 16px 0;
  border-bottom: 1px solid #f2f4f7;
}

.carrier-review-comment {
  margin: 4px 0;
  line-height: 1.5;
}

.carrier-review-meta {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

/* Customer side: date, booking panel, review form */
.quote-preferred-date {
  margin: 12px 0 0;
}

.quote-booking {
  margin: 24px 0;
  padding: 20px;
  border: 1px solid #e4e7ec;
  border-radius: 14px;
  background: #f8fafc;
}

.quote-booking h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.quote-booking-text {
  margin: 0 0 8px;
  color: #475467;
  line-height: 1.5;
}

.quote-carrier {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.quote-carrier-photo {
  width: 56px;
  height: 56px;
}

.quote-carrier-name {
  margin: 0;
  font-weight: 800;
}

.quote-review-form {
  margin-top: 20px;
}

.quote-review-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 8px 0 12px;
  padding: 0;
  border: 0;
}

.quote-review-rating label {
  color: #f79009;
}

.profile-carrier-links a {
  color: #344054;
}

@media (max-width: 760px) {
  .carrier-waiting-actions,
  .carrier-offer-actions,
  .carrier-quote-facts {
    grid-template-columns: 1fr;
  }

  .calendar-day {
    min-height: 90px;
    padding: 4px;
  }

  .calendar-event {
    font-size: 10px;
  }

  .calendar-day-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 2px 1px;
    font-size: 0;
    line-height: 1.15;
    overflow-wrap: anywhere;
    opacity: 1;
  }

  .calendar-blocked-label {
    display: none;
  }

  .calendar-day.is-blocked .calendar-day-toggle {
    display: flex;
  }
}

@media (max-width: 900px) and (max-height: 500px) {
  .calendar-arrow,
  .calendar-today-button {
    min-width: 44px;
    min-height: 44px;
    height: 44px;
  }

  .calendar-day { min-height: 90px; }
  .calendar-day-toggle {
    width: 100%;
    min-height: 44px;
    opacity: 1;
    transition: none;
  }
}

/* Cancellations, refunds and review moderation */

.button-danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #f04438;
  border-radius: 10px;
  background: #ffffff;
  color: #d92d20;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.button-danger-outline:hover {
  background: #fef3f2;
}

.quote-cancel,
.carrier-cancel,
.carrier-review-report {
  margin-top: 20px;
}

.quote-cancel summary,
.carrier-cancel summary,
.carrier-review-report summary,
.admin-booking-actions summary {
  color: #b42318;
  font-weight: 600;
  cursor: pointer;
}

.carrier-review-report summary {
  color: #667085;
  font-size: 13px;
  font-weight: 500;
}

.quote-cancel-form,
.carrier-cancel .carrier-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.carrier-cancel textarea,
.carrier-review-report textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  font: inherit;
}

.admin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-links .button-secondary,
.admin-back,
.admin-inline-button,
.admin-review-button {
  width: auto;
}

.admin-failed-refunds {
  margin-bottom: 20px;
  border-color: #fecdca;
}

.admin-failed-refunds li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.admin-bookings td {
  white-space: normal;
  vertical-align: top;
}

.admin-booking-form {
  display: grid;
  min-width: 220px;
  gap: 6px;
  margin: 8px 0;
}

.admin-booking-form input,
.admin-booking-form select,
.admin-booking-form textarea,
.admin-review-form input[type="text"] {
  padding: 6px 8px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font: inherit;
}

.admin-review-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-review-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.admin-review-form input[type="text"] {
  flex: 1 1 240px;
}

.admin-review-button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 15px;
}

.carrier-review-pending { background: #fef0c7; color: #93370d; }
.carrier-review-approved { background: #dcfae6; color: #067647; }
.carrier-review-rejected { background: #f2f4f7; color: #475467; }
.carrier-table-link {
  display: inline-block;
  margin: 0.45rem 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link-color, #2456a6);
  text-decoration: underline;
  cursor: pointer;
}

.vehicle-reference-dialog {
  width: min(94vw, 72rem);
  max-width: 72rem;
  max-height: 90vh;
  padding: 1.25rem;
  border: 0;
  border-radius: 0.75rem;
}

.vehicle-reference-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.vehicle-reference-dialog-content { max-height: calc(90vh - 2.5rem); overflow: auto; }
.vehicle-reference-table-wrap { overflow-x: auto; }
.vehicle-reference-table-wrap table { width: 100%; border-collapse: collapse; }
.vehicle-reference-table-wrap th, .vehicle-reference-table-wrap td { padding: 0.6rem; border-bottom: 1px solid #d9dee7; text-align: left; }

.admin-dashboard-page {
  max-width: none;
  min-height: 100vh;
  padding: 32px clamp(16px, 4vw, 64px) 56px;
  background: #f5f7fa;
}
.admin-dashboard-content { width: 100%; max-width: 1440px; margin: 0 auto; }
.admin-dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}
.admin-dashboard-header h1 { margin: 0; color: #172b4d; font-size: clamp(1.7rem, 2.5vw, 2.15rem); letter-spacing: -0.035em; }
.admin-dashboard-eyebrow { margin: 0 0 5px; color: #667085; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; }
.admin-dashboard-subtitle { margin: 5px 0 0; color: #667085; font-size: 0.94rem; }
.admin-period-form { display: flex; align-items: center; gap: 9px; }
.admin-period-form label { color: #475467; font-size: 0.85rem; font-weight: 600; }
.admin-period-form select { min-height: 40px; padding: 0 34px 0 12px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; color: #344054; font: inherit; }
.admin-period-form input[type="submit"] { min-height: 40px; padding: 0 12px; }
.admin-dashboard-actions { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 20px; }
.admin-dashboard-actions a { width: auto; min-height: 40px; padding: 0 14px; font-size: 0.88rem; }
.admin-dashboard-section { margin: 0 0 20px; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-kpi-card, .admin-chart, .admin-pending-section, .admin-secondary-section, .admin-leads {
  min-width: 0;
  padding: 19px;
  border: 1px solid #e4e8ef;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 3%);
}
.admin-kpi-card h2 { margin: 0 0 11px; color: #475467; font-size: 0.83rem; font-weight: 600; }
.admin-kpi-value { margin: 0; color: #172b4d; font-size: clamp(1.8rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; }
.admin-kpi-hint { margin: 9px 0 0; color: #667085; font-size: 0.78rem; }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.admin-section-heading h2, .admin-secondary-section > h2 { margin: 0; color: #172b4d; font-size: 1.08rem; }
.admin-section-heading p { margin: 4px 0 0; color: #667085; font-size: 0.82rem; }
.admin-dashboard-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-chart { padding: 19px; }
.admin-chart-wide { grid-column: 1 / -1; }
.admin-chart h3 { margin: 0 0 15px; color: #344054; font-size: 0.94rem; font-weight: 650; }
.admin-chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.admin-chart-heading h3 { margin-bottom: 0; }
.admin-chart-total { color: #667085; font-size: 0.8rem; font-weight: 600; }
.admin-chart-row { display: grid; grid-template-columns: minmax(7rem, 1fr) 2.3rem minmax(80px, 1.8fr); align-items: center; gap: 10px; margin: 12px 0; color: #475467; font-size: 0.82rem; }
.admin-chart-row strong { color: #344054; font-variant-numeric: tabular-nums; text-align: right; }
.admin-chart-track { height: 7px; overflow: hidden; border-radius: 999px; background: #eef1f5; }
.admin-chart-fill { display: block; height: 100%; border-radius: inherit; background: #2d6cdf; }
.admin-chart-fill-accepted, .admin-chart-fill-approved { background: #12a06a; }
.admin-chart-fill-awaiting_response, .admin-chart-fill-pending { background: #e6a23c; }
.admin-chart-fill-cancelled, .admin-chart-fill-rejected, .admin-chart-fill-suspended { background: #d95757; }
.admin-daily-bars { display: flex; align-items: end; gap: 3px; height: 112px; margin-top: 18px; padding: 4px 1px 0; border-bottom: 1px solid #e4e8ef; }
.admin-daily-bars > span { flex: 1 1 0; min-width: 2px; height: max(2px, var(--bar-height)); border-radius: 3px 3px 0 0; background: #4d7fe0; }
.admin-chart-axis { display: flex; justify-content: space-between; margin-top: 7px; color: #667085; font-size: 0.73rem; }
.admin-chart-note { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #eef1f5; color: #667085; font-size: 0.78rem; }
.admin-chart-note strong { color: #344054; }
.admin-chart-empty { margin: 0; padding: 26px 8px; color: #667085; font-size: 0.87rem; text-align: center; }
.admin-text-link { color: #2456a6; font-size: 0.83rem; font-weight: 650; text-decoration: none; }
.admin-text-link:hover { text-decoration: underline; }
.admin-pending-list { overflow: hidden; border: 1px solid #e7ebf1; border-radius: 9px; }
.admin-pending-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(95px, auto) minmax(110px, auto) 16px; align-items: center; gap: 13px; min-height: 66px; padding: 10px 14px; color: inherit; text-decoration: none; }
.admin-pending-row + .admin-pending-row { border-top: 1px solid #eef1f5; }
.admin-pending-row:hover { background: #f8fafc; }
.admin-pending-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #edf3ff; color: #2456a6; font-size: 0.88rem; font-weight: 700; }
.admin-pending-main { display: grid; min-width: 0; gap: 3px; }
.admin-pending-main strong { overflow: hidden; color: #344054; font-size: 0.86rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-pending-main small { overflow: hidden; color: #667085; font-size: 0.76rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-pending-date { color: #667085; font-size: 0.78rem; }
.admin-pending-status { justify-self: start; padding: 4px 8px; border-radius: 999px; background: #fff4d6; color: #8c5b0b; font-size: 0.72rem; font-weight: 650; white-space: nowrap; }
.admin-pending-arrow { color: #98a2b3; font-size: 1.3rem; }
.admin-list-footer { margin: 12px 0 0; text-align: right; }
.admin-empty-state { display: flex; align-items: center; gap: 10px; margin: 0; padding: 19px; border: 1px solid #e7ebf1; border-radius: 9px; color: #475467; font-size: 0.86rem; }
.admin-empty-state-mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #e8f7ef; color: #087443; font-weight: 700; }
.admin-secondary-section { padding: 16px 19px; }
.admin-secondary-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 12px; }
.admin-secondary-metric { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 14px; color: #667085; font-size: 0.82rem; }
.admin-secondary-metric + .admin-secondary-metric { border-left: 1px solid #e7ebf1; }
.admin-secondary-metric strong { color: #344054; font-size: 1rem; font-variant-numeric: tabular-nums; }
.admin-leads { margin-top: 20px; padding: 19px; }
.admin-leads table { min-width: 820px; }
.admin-leads th, .admin-leads td { padding: 10px 12px; font-size: 0.8rem; }
@media (max-width: 820px) {
  .admin-leads .admin-leads-table { min-width: 0; }
  .admin-leads .admin-leads-table thead { display: none; }
  .admin-leads .admin-leads-table,
  .admin-leads .admin-leads-table tbody,
  .admin-leads .admin-leads-table tr,
  .admin-leads .admin-leads-table td { display: block; width: 100%; }
  .admin-leads .admin-leads-table tr { padding: 8px 0; }
  .admin-leads .admin-leads-table tr + tr { border-top: 1px solid #e4e8ef; }
  .admin-leads .admin-leads-table td {
    display: grid;
    grid-template-columns: minmax(88px, 34%) minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 8px 4px;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .admin-leads .admin-leads-table td::before {
    content: attr(data-label);
    color: #667085;
    font-size: 0.72rem;
    font-weight: 650;
  }
}
@media (max-width: 900px) {
  .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard-header { align-items: flex-start; }
}
@media (max-width: 640px) {
  .admin-dashboard-page { padding: 22px 14px 40px; }
  .admin-dashboard-header { flex-direction: column; gap: 14px; }
  .admin-period-form { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
  .admin-period-form select { width: 100%; }
  .admin-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .admin-kpi-card { padding: 14px; }
  .admin-kpi-card h2 { min-height: 2.3em; font-size: 0.76rem; }
  .admin-kpi-hint { font-size: 0.72rem; }
  .admin-dashboard-charts { grid-template-columns: minmax(0, 1fr); }
  .admin-chart-wide { grid-column: auto; }
  .admin-chart-row { grid-template-columns: minmax(6.5rem, 1fr) 2rem minmax(60px, 1.4fr); gap: 7px; font-size: 0.77rem; }
  .admin-section-heading { align-items: flex-start; }
  .admin-pending-row { grid-template-columns: 34px minmax(0, 1fr) 16px; gap: 10px; padding: 10px; }
  .admin-pending-avatar { width: 32px; height: 32px; }
  .admin-pending-date, .admin-pending-status { grid-column: 2; }
  .admin-pending-date { font-size: 0.73rem; }
  .admin-pending-status { margin-top: 2px; }
  .admin-pending-arrow { grid-column: 3; grid-row: 1 / span 3; }
  .admin-secondary-metrics { grid-template-columns: minmax(0, 1fr); }
  .admin-secondary-metric { padding: 8px 0; }
  .admin-secondary-metric + .admin-secondary-metric { border-top: 1px solid #e7ebf1; border-left: 0; }
  .admin-leads { padding: 14px; }
}

.admin-workspace-page {
  max-width: none;
  min-height: 100vh;
  padding: 30px clamp(16px, 4vw, 64px) 56px;
  background: var(--vq-page);
}

.admin-pending-section[aria-labelledby="special-need-review-heading"] .admin-pending-row {
  grid-template-columns: minmax(0, 1fr) minmax(95px, auto);
}

@media (max-width: 640px) {
  .admin-pending-section[aria-labelledby="special-need-review-heading"] .admin-pending-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px 10px;
  }

  .admin-pending-section[aria-labelledby="special-need-review-heading"] .admin-pending-date {
    grid-column: 1;
  }
}
.admin-workspace-content { width: 100%; max-width: 1440px; margin: 0 auto; }
.admin-workspace-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.admin-workspace-header h1 { margin: 0; color: #172b4d; font-size: clamp(1.55rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.admin-workspace-header p { max-width: 760px; margin: 6px 0 0; color: #667085; font-size: 0.9rem; line-height: 1.5; }
.admin-workspace-back { width: auto; min-height: 40px; padding: 0 13px; white-space: nowrap; }
.admin-workspace-card { min-width: 0; margin: 0 0 18px; padding: 18px; overflow: hidden; border: 1px solid var(--vq-border); border-radius: var(--vq-card-radius); background: var(--vq-surface); box-shadow: var(--vq-card-shadow); }
.admin-payout-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; }
.admin-payout-detail-grid > div { min-width: 0; }
.admin-payout-detail-grid dt { color: var(--vq-muted); font-size: .9rem; }
.admin-payout-detail-grid dd { margin: 4px 0 0; overflow-wrap: anywhere; font-weight: 600; }
.admin-workspace-empty { margin: 0; padding: 28px 12px; color: #667085; font-size: 0.9rem; text-align: center; }
.admin-filter-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.admin-filter-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid #e1e6ee; border-radius: 999px; background: #fff; color: #475467; font-size: 0.82rem; font-weight: 600; text-decoration: none; }
.admin-filter-link > span { display: inline-grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; border-radius: 999px; background: #f1f4f8; color: #475467; font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.admin-filter-link:hover { border-color: #aab8d1; }
.admin-filter-link.is-current { border-color: #c9d8f4; background: #eff4ff; color: #2456a6; }
.admin-filter-link.is-current > span { background: #dbe7fd; color: #2456a6; }
.admin-responsive-table-wrap { width: 100%; overflow-x: auto; }
.admin-workspace-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-workspace-table th { padding: 11px 12px; background: #f8fafc; color: #667085; font-size: 0.73rem; font-weight: 650; letter-spacing: 0.025em; white-space: nowrap; }
.admin-workspace-table td { padding: 13px 12px; border-top: 1px solid #eef1f5; color: #344054; font-size: 0.82rem; vertical-align: top; }
.admin-workspace-table tbody tr:hover { background: #fbfcfe; }
.admin-table-primary { display: block; color: #344054; font-weight: 650; }
.admin-table-secondary { display: block; margin-top: 4px; color: #667085; font-size: 0.75rem; overflow-wrap: anywhere; }
.admin-state-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 999px; background: #eef1f5; color: #475467; font-size: 0.72rem; font-weight: 650; line-height: 1.3; }
.admin-state-badge.is-pending, .admin-state-badge.is-booked { background: #fff4d6; color: #8c5b0b; }
.admin-state-badge.is-approved { background: #e8f7ef; color: #087443; }
.admin-state-badge.is-rejected, .admin-state-badge.is-suspended, .admin-state-badge.is-cancelled { background: #fef0f0; color: #b42318; }
.admin-state-badge.is-published { background: #e8f7ef; color: #087443; }
.admin-state-badge.is-waiting { background: #fff4d6; color: #8c5b0b; }
.admin-carrier-actions { display: grid; justify-items: start; gap: 9px; min-width: 155px; }
.admin-inline-link { color: #2456a6; font-size: 0.8rem; font-weight: 650; text-decoration: none; }
.admin-inline-link:hover { text-decoration: underline; }
.carrier-admin-status-form { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.carrier-admin-status-form select { min-height: 36px; max-width: 160px; padding: 0 9px; border: 1px solid #d0d5dd; border-radius: 7px; background: #fff; color: #344054; font: inherit; font-size: 0.78rem; }
.carrier-admin-status-form .button-secondary { width: auto; min-height: 36px; padding: 0 10px; font-size: 0.77rem; }
.admin-route { display: flex; align-items: flex-start; gap: 7px; min-width: 180px; }
.admin-bookings-table { min-width: 980px; }
.admin-booking-actions { min-width: 170px; }
.admin-booking-actions > a { display: inline-block; margin-bottom: 7px; }
.admin-booking-actions details { margin: 5px 0; }
.admin-booking-actions summary { color: #2456a6; font-size: 0.78rem; font-weight: 650; cursor: pointer; }
.admin-booking-form { min-width: 190px; padding: 10px; border: 1px solid #e7ebf1; border-radius: 8px; background: #fbfcfe; }
.admin-booking-form .button-secondary, .admin-booking-form .button-danger-outline { width: 100%; min-height: 38px; font-size: 0.8rem; }
.admin-failed-refunds { border-color: #fecdca; background: #fff; }
.admin-failed-refunds .admin-section-heading { margin-bottom: 8px; }
.admin-failed-refunds h2 { margin: 0; color: #8c2b23; font-size: 1rem; }
.admin-refund-list { margin: 0; padding: 0; list-style: none; }
.admin-refund-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid #f5d1ce; }
.admin-refund-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; min-width: 0; color: #475467; font-size: 0.82rem; }
.admin-refund-info small { color: #8c2b23; }
.admin-inline-button { width: auto; min-height: 36px; padding: 0 12px; }
.admin-review-cards { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.admin-review-cards .admin-review { min-width: 0; margin: 0; padding: 18px; border: 1px solid #e4e8ef; border-radius: 11px; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / 3%); }
.admin-review-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-review-heading .carrier-rating { margin: 0; }
.admin-review-comment { margin: 13px 0; color: #344054; font-size: 0.94rem; line-height: 1.55; overflow-wrap: anywhere; }
.admin-review-meta { color: #667085; font-size: 0.78rem; line-height: 1.5; overflow-wrap: anywhere; }
.admin-review-actions { display: flex; align-items: center; gap: 8px; margin-top: 13px; }
.admin-review-actions input[type="text"] { min-height: 40px; border-color: #d0d5dd; border-radius: 8px; }
.admin-review-actions .admin-review-button { width: auto; min-height: 40px; padding: 0 13px; }

/* Shared VanQuote workspaces: admin, account and transporter areas */
.dashboard-card,
.profile-page,
.carrier-card,
.quote-card,
.auth-card,
.admin-kpi-card,
.admin-chart,
.admin-metric,
.admin-leads,
.admin-workspace-card,
.admin-review-cards .admin-review {
  border-color: var(--vq-border);
  border-radius: var(--vq-card-radius);
  background: var(--vq-surface);
  box-shadow: var(--vq-card-shadow);
}

.carrier-page,
.dashboard-page,
.profile-page {
  color: var(--vq-ink);
}

.admin-dashboard-page {
  background: var(--vq-page);
}

.carrier-quotes-page .admin-leads {
  border-color: var(--vq-border);
  border-radius: var(--vq-card-radius);
  background: var(--vq-surface);
  box-shadow: var(--vq-card-shadow);
}

.carrier-application-section,
.carrier-vehicle-card {
  border-color: var(--vq-border);
  border-radius: 12px;
}

.carrier-field input,
.carrier-field textarea,
.carrier-field select,
.form-input {
  border-color: #d0d5dd;
  border-radius: 9px;
}

.carrier-status-approved,
.carrier-status-active,
.admin-state-badge.is-approved,
.admin-state-badge.is-published {
  background: var(--vq-positive-bg);
  color: var(--vq-positive-text);
}

.carrier-status-pending,
.admin-state-badge.is-pending,
.admin-state-badge.is-booked,
.admin-state-badge.is-waiting {
  background: var(--vq-pending-bg);
  color: var(--vq-pending-text);
}

.carrier-status-rejected,
.carrier-status-suspended,
.carrier-status-inactive,
.admin-state-badge.is-rejected,
.admin-state-badge.is-suspended,
.admin-state-badge.is-cancelled {
  background: var(--vq-danger-bg);
  color: var(--vq-danger-text);
}

.admin-primary-nav {
  flex: 1 1 100%;
  order: 3;
  gap: 6px;
  padding: 12px 0 0;
  border-top: 1px solid var(--vq-border);
}

.admin-primary-nav .site-navigation-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 11px;
  border-radius: 8px;
  color: #475467;
  font-size: 0.82rem;
  white-space: nowrap;
}

.admin-primary-nav .site-navigation-link:hover,
.admin-primary-nav .site-navigation-link.is-current {
  background: #eff4ff;
  color: #2456a6;
}

.admin-primary-nav .site-navigation-link:focus-visible {
  outline-color: var(--vq-accent);
}

.admin-primary-nav form { margin: 0; }
.admin-primary-nav button.site-navigation-link { width: auto; }

/* Compact optional customer notes and full-width special-needs disclosure. */
.cargo-description-field {
  gap: 4px;
}

.cargo-description-field .form-hint {
  margin: 0;
  font-size: 13px;
}

.cargo-description-input {
  min-height: 58px;
  resize: vertical;
}

.special-needs-disclosure {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 5px;
}

.special-needs-copy {
  min-width: 0;
}

.special-needs-copy h3 {
  margin: 0;
  color: #344054;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.35;
}

.special-needs-copy .form-hint {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.special-needs-toggle {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  margin-top: 6px;
  white-space: normal;
}

.special-needs-toggle:focus-visible {
  outline: 3px solid rgba(82, 116, 184, 0.35);
  outline-offset: 2px;
}

.special-needs-status {
  margin: 2px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.4;
}

.special-needs-dialog {
  position: fixed;
  inset: 0;
  display: grid;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  place-items: center;
  margin: 0;
  padding: max(20px, env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    max(20px, env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
  overflow: auto;
  border: 0;
  background: transparent;
  opacity: 0;
  transition: opacity 180ms ease, display 180ms allow-discrete;
}

.special-needs-dialog:not([open]) {
  display: none;
}

.special-needs-dialog[open] {
  opacity: 1;
}

@starting-style {
  .special-needs-dialog[open] {
    opacity: 0;
  }

  .special-needs-dialog[open] .special-needs-modal-panel {
    transform: translateY(8px) scale(0.99);
  }
}

.special-needs-dialog::backdrop {
  background: rgb(23 32 51 / 0%);
  transition: background-color 180ms ease;
}

.special-needs-dialog[open]::backdrop {
  background: rgb(23 32 51 / 48%);
}

.special-needs-modal-panel {
  display: flex;
  width: min(100%, 620px);
  max-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e4e7ec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 16px 42px rgb(16 24 40 / 18%);
  transform: translateY(8px) scale(0.99);
  transition: transform 180ms ease;
}

.special-needs-dialog[open] .special-needs-modal-panel {
  transform: translateY(0) scale(1);
}

.special-needs-modal-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 16px;
  border-bottom: 1px solid #eaecf0;
}

.special-needs-modal-header h2 {
  margin: 0;
  color: #172033;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.special-needs-modal-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  margin: -5px -7px 0 0;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
}

.special-needs-modal-close:focus-visible,
.special-needs-modal-actions button:focus-visible {
  outline: 3px solid rgb(82 116 184 / 38%);
  outline-offset: 2px;
}

.special-needs-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 14px 24px;
  overscroll-behavior: contain;
}

.special-needs-modal-help {
  margin: 0 0 10px;
}

.special-needs-fields {
  display: grid;
  gap: 12px;
}

.special-needs-dialog .form-input,
.special-needs-dialog .form-input::placeholder {
  font-family: inherit;
}

.special-needs-reasons {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.special-needs-reasons legend {
  margin-bottom: 8px;
  padding: 0;
  color: #344054;
  font-size: 14px;
  font-weight: 650;
}

.special-needs-modal-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 22px;
  border-top: 1px solid #eaecf0;
}

.special-needs-modal-actions button {
  width: auto;
  min-width: 132px;
  min-height: 44px;
}

.special-needs-modal-actions .button-primary {
  padding: 0 18px;
}

.quote-customer-cargo-notes {
  overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
  .special-needs-dialog,
  .special-needs-dialog::backdrop,
  .special-needs-modal-panel {
    transition: none;
  }
}

@media (max-width: 600px) {
  .special-needs-dialog {
    padding: max(12px, env(safe-area-inset-top, 0px))
      max(12px, env(safe-area-inset-right, 0px))
      max(12px, env(safe-area-inset-bottom, 0px))
      max(12px, env(safe-area-inset-left, 0px));
  }

  .special-needs-modal-panel {
    max-height: 100%;
  }

  .special-needs-modal-header {
    padding: 18px 18px 14px;
  }

  .special-needs-modal-header h2 {
    font-size: 18px;
  }

  .special-needs-modal-body {
    padding: 16px 18px;
  }

  .special-needs-modal-actions {
    padding: 12px 18px 18px;
  }

  .special-needs-modal-actions button {
    min-width: 0;
    flex: 1 1 0;
    padding: 0 10px;
  }
}

@media (max-width: 760px) {
  .admin-workspace-page { padding: 22px 14px 40px; }
  .admin-workspace-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .admin-workspace-card { padding: 12px; }
  .admin-carrier-table, .admin-bookings-table { min-width: 0; }
  .admin-workspace-table thead { display: none; }
  .admin-workspace-table, .admin-workspace-table tbody, .admin-workspace-table tr, .admin-workspace-table td { display: block; width: 100%; }
  .admin-workspace-table tr { padding: 8px 0; }
  .admin-workspace-table tr + tr { border-top: 1px solid #e4e8ef; }
  .admin-workspace-table td { display: grid; grid-template-columns: minmax(105px, 34%) minmax(0, 1fr); align-items: start; gap: 10px; padding: 8px 6px; border: 0; overflow-wrap: anywhere; }
  .admin-workspace-table td::before { content: attr(data-label); color: #667085; font-size: 0.72rem; font-weight: 650; }
  .admin-carrier-actions { min-width: 0; }
  .admin-booking-actions { min-width: 0; }
  .admin-route { min-width: 0; }
  .admin-review-actions { align-items: stretch; flex-wrap: wrap; }
  .admin-review-actions input[type="text"] { flex: 1 1 100%; }
  .admin-review-actions .admin-review-button { flex: 1 1 120px; }
  .admin-refund-list li { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
  .admin-payout-detail-grid { grid-template-columns: 1fr; }
  .admin-primary-nav {
    width: 100%;
    flex: 1 1 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    overscroll-behavior-inline: contain;
  }
}
