*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #2E9E3E;
  --green-dark: #1e7a2c;
  --green-light: #E8F5EA;
  --yellow: #F5A623;
  --yellow-light: #FFF8EC;
  --blue: #1A5FA8;
  --blue-light: #E3EEF9;
  --red: #D94040;
  --gray: #8A96A8;
  --white: #fff;
  --bg: #F3F5F9;
  --text: #18191F;
  --text-2: #52576B;
  --border: #E2E6EE;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 2px 14px rgba(0,0,0,.07);
  --shadow-md: 0 6px 26px rgba(0,0,0,.12);
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
  position: fixed;
  inset: 0 0 auto;
  height: 66px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 400;
  box-shadow: 0 1px 8px rgba(0,0,0,.05);
}

.desktop-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desktop-logo img {
  height: 40px;
  object-fit: contain;
}

.logo-text-d {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 24px;
}

.logo-text-d span {
  color: var(--yellow);
}

.desktop-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.desktop-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}

.desktop-links a:hover {
  background: var(--bg);
  color: var(--text);
}

.desktop-links a.active {
  color: var(--green);
}

.desktop-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-outline-d,
.btn-solid-d {
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
}

.btn-outline-d {
  border: 2px solid var(--green);
  color: var(--green);
}

.btn-outline-d:hover {
  background: var(--green);
  color: #fff;
}

.btn-solid-d {
  background: var(--green);
  color: #fff;
}

.btn-solid-d:hover {
  background: var(--green-dark);
}

/* Mobile Topbar */
.topbar {
  position: fixed;
  inset: 0 0 auto;
  height: 62px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 400;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-logo img {
  height: 36px;
  object-fit: contain;
}

.logo-text {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 21px;
}

.logo-text span {
  color: var(--yellow);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notif-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.notif-badge {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  border: 2px solid var(--green-light);
}

/* Page */
.page {
  padding-top: 62px;
  padding-bottom: 84px;
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
}

.page-title-icon {
  font-size: 26px;
}

.page-title {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 22px;
}

/* Alerts */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 0 14px 14px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  gap: 8px;
  line-height: 1.5;
  animation: fadeUp .3s ease both;
}

.alert-success {
  background: var(--green-light);
  color: var(--green-dark);
  border: 1px solid #b6e0be;
}

.alert-error {
  background: #FEE2E2;
  color: var(--red);
  border: 1px solid #fca5a5;
}

/* Cards */
.section-card {
  background: var(--white);
  margin: 0 14px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  overflow: visible;
  animation: fadeUp .3s ease both;
}

.card-head {
  padding: 14px 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-head-icon {
  font-size: 19px;
}

.card-head-title {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 15px;
}

/* Location */
.loc-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.loc-pin {
  width: 22px;
  flex-shrink: 0;
  text-align: center;
  font-size: 18px;
}

.loc-input-wrap {
  flex: 1;
  position: relative;
}

.loc-input-wrap input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
}

.loc-input-wrap input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,158,62,.1);
}

.gps-pill {
  border: 1.5px solid var(--green);
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 50px;
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.gps-pill.red {
  background: #FEE2E2;
  border-color: var(--red);
  color: var(--red);
}

.swap-connector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 14px 2px 46px;
}

.connector-line {
  flex: 1;
  height: 1.5px;
  background: var(--border);
}

.swap-circle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--green);
  background: var(--white);
  color: var(--green);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.swap-circle-btn:hover {
  background: var(--green);
  color: #fff;
}

.area-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px 14px 12px;
  border-top: 1px solid var(--border);
}

.area-chip {
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  border-radius: 50px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.area-chip:hover {
  border-color: var(--green);
  background: var(--green-light);
  color: var(--green-dark);
}

/* County Picker */
.location-picker {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border);
}

.location-picker.show {
  display: flex;
}

.lp-picker-title {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--green-dark);
}

.lp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.lp-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 2px;
  display: block;
}

.lp-select,
.lp-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  background: var(--white);
}

.lp-select:focus,
.lp-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,158,62,.1);
}

.lp-apply-btn {
  width: 100%;
  border: none;
  border-radius: 50px;
  padding: 11px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
}

.lp-apply-btn.green {
  background: var(--green);
}

.lp-apply-btn.red {
  background: var(--red);
}

/* Call Toggle */
.call-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  cursor: pointer;
}

.call-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.call-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-light);
  display: grid;
  place-items: center;
  font-size: 18px;
}

.call-text-main {
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 14px;
}

.call-text-sub {
  font-size: 11.5px;
  color: var(--gray);
}

.toggle-sw {
  position: relative;
  width: 46px;
  height: 26px;
}

.toggle-sw input {
  display: none;
}

.toggle-track {
  width: 46px;
  height: 26px;
  border-radius: 13px;
  background: var(--border);
  display: block;
  position: relative;
}

.toggle-track::after {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
  transition: transform .22s;
  box-shadow: 0 1px 5px rgba(0,0,0,.25);
}

.toggle-sw input:checked + .toggle-track {
  background: var(--green);
}

.toggle-sw input:checked + .toggle-track::after {
  transform: translateX(20px);
}

/* Autocomplete */
.ac-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 500;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: var(--shadow-md);
  display: none;
}

.ac-list.show {
  display: block;
}

.ac-item {
  padding: 11px 16px;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.ac-item:hover {
  background: var(--green-light);
}

/* Map */
.map-section {
  margin: 0 14px 14px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background: var(--white);
}

.map-mode-bar {
  display: flex;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.map-mode-btn {
  flex: 1;
  padding: 10px 8px;
  border: none;
  background: transparent;
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-2);
  cursor: pointer;
}

.map-mode-btn.active {
  background: var(--green-light);
  color: var(--green-dark);
}

.map-placeholder {
  height: 260px;
  background: linear-gradient(135deg,#c8dfc8,#a8c8a8 40%,#d4e8d4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--green-dark);
  gap: 10px;
  text-align: center;
  padding: 20px;
}

.map-placeholder .pi {
  font-size: 42px;
}

.map-placeholder p {
  font-size: 13px;
  font-weight: 700;
}

.map-placeholder code {
  font-size: 11px;
  background: rgba(0,0,0,.1);
  padding: 3px 8px;
  border-radius: 5px;
}

.route-info {
  display: flex;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.route-stat {
  flex: 1;
  padding: 10px 8px;
  text-align: center;
  border-right: 1px solid var(--border);
}

.route-stat:last-child {
  border-right: none;
}

.rs-label {
  font-size: 10px;
  color: var(--gray);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.rs-val {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 14px;
}

/* Vehicles */
.vehicle-options {
  padding: 6px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vehicle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 2px solid transparent;
}

.vehicle-row:hover {
  background: var(--bg);
}

.vehicle-row.selected {
  background: var(--green-light);
  border-color: var(--green);
}

.v-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.v-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 21px;
}

.v-name {
  font-size: 14px;
  font-weight: 700;
}

.v-desc {
  font-size: 11.5px;
  color: var(--gray);
}

.v-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.svc-pills {
  display: flex;
  gap: 4px;
}

.svc-pill {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-2);
  cursor: pointer;
}

.svc-pill.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.v-price {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--green);
  min-width: 60px;
  text-align: right;
}

/* Date */
.dt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
}

.dt-icon {
  font-size: 20px;
}

.dt-label {
  flex: 1;
  font-size: 14.5px;
  font-weight: 600;
}

.dt-input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.dt-chev {
  color: var(--gray);
  font-size: 18px;
}

/* Package Size */
.size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 14px 16px;
}

.size-opt {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.size-opt:hover,
.size-opt.active {
  border-color: var(--green);
  background: var(--green-light);
}

.size-opt input {
  display: none;
}

.s-icon {
  font-size: 26px;
}

.s-name {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 12.5px;
}

.s-desc {
  font-size: 10.5px;
  color: var(--gray);
}

/* Fields */
.field {
  margin: 0 14px 14px;
}

.field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.field-wrap {
  position: relative;
}

.field-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.field input,
.field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px 12px 42px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  resize: none;
}

.field textarea {
  padding-left: 14px;
  min-height: 82px;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46,158,62,.1);
}

/* Cost */
.cost-card {
  background: var(--white);
  margin: 0 14px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cost-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
}

.cost-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.cost-val {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 30px;
  color: var(--green);
}

.cost-breakdown {
  font-size: 11.5px;
  color: var(--text-2);
  margin-top: 4px;
}

.cost-note {
  background: var(--yellow-light);
  border-top: 1px solid #f0e0a0;
  padding: 9px 18px;
  font-size: 12px;
  color: #9a6500;
  font-weight: 700;
}

/* Submit */
.submit-btn {
  width: calc(100% - 28px);
  margin: 4px 14px 14px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 15px;
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(46,158,62,.35);
}

.submit-btn:hover {
  background: var(--green-dark);
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
  z-index: 300;
}

.bnav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gray);
  padding: 6px 10px;
  border-radius: 10px;
  flex: 1;
}

.bnav-item.active {
  color: var(--green);
}

.bnav-icon {
  font-size: 22px;
}

/* Services Menu */
.svc-menu-scrim {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 398;
  background: rgba(15,25,30,.52);
}

.svc-menu-scrim.open {
  display: block;
}

.svc-menu-popup {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%) translateY(16px) scale(.96);
  z-index: 399;
  width: calc(100% - 28px);
  max-width: 340px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,.18);
  opacity: 0;
  visibility: hidden;
  transition: .25s ease;
  overflow: hidden;
}

.svc-menu-popup.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.svc-menu-handle {
  display: flex;
  justify-content: center;
  padding: 10px 0 6px;
}

.svc-menu-handle-bar {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
}

.svc-menu-hdr {
  padding: 2px 18px 12px;
  text-align: center;
}

.svc-menu-hdr-title {
  font-family: "Nunito", sans-serif;
  font-weight: 900;
  font-size: 15px;
}

.svc-menu-hdr-sub {
  font-size: 11.5px;
  color: var(--gray);
  margin-top: 2px;
}

.svc-menu-opts {
  padding: 0 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.svc-menu-opt {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: #fff;
}

.svc-menu-opt.green {
  background: linear-gradient(135deg,#F0FAF2,#fff);
}

.svc-menu-opt.amber {
  background: linear-gradient(135deg,#FFFBF2,#fff);
}

.svc-menu-opt-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.svc-menu-opt-icon.green {
  background: var(--green-light);
}

.svc-menu-opt-icon.amber {
  background: var(--yellow-light);
}

.svc-menu-opt-body {
  flex: 1;
}

.svc-menu-opt-title {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 14.5px;
}

.svc-menu-opt-sub {
  font-size: 11.5px;
  color: var(--gray);
}

.svc-menu-opt-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
}

.svc-menu-cancel {
  margin: 0 12px 12px;
  padding: 13px;
  border-radius: 14px;
  background: var(--bg);
  border: none;
  width: calc(100% - 24px);
  font-family: "Nunito", sans-serif;
  font-weight: 800;
}

/* Animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 769px) {
  .desktop-nav {
    display: flex;
  }

  .topbar {
    display: none;
  }

  .page {
    max-width: 680px;
    margin: 0 auto;
    padding-top: 66px;
  }

  .bottom-nav {
    display: none;
  }
}