* {
  box-sizing: border-box;
}

body {
  background: #fff;
  color: #222;
  font-family: Arial, sans-serif;
  margin: 0;
}

.home-body {
  background: #f3f3f3;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
}

.home-shell {
  background: #fff;
  display: flex;
  flex-direction: column;
  margin: 12px auto;
  max-width: 1180px;
  min-height: calc(100vh - 24px);
  overflow: hidden;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid #ef2027;
  padding: 20px 38px 13px;
}

.brand {
  display: block;
  line-height: 0;
  margin: 0;
  padding: 0;
  width: 205px;
}

.brand img {
  display: block;
  height: auto;
  max-width: 100%;
}

.site-nav {
  align-items: start;
  gap: 10px;
  justify-content: flex-start;
}

.site-nav .nav-link {
  border: 1px solid #9f9f9f;
  border-radius: 4px;
  color: #111;
  font-family: Abel, Arial, sans-serif;
  font-size: clamp(20px, 2.45vw, 24px);
  line-height: 1.25;
  min-width: 108px;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible,
.site-nav .nav-link.active {
  background: #fff3f3;
  border-color: #d71920;
  color: #d71920;
}

.site-nav .dropdown-menu {
  border-color: #9f9f9f;
  border-radius: 4px;
  font-family: Abel, Arial, sans-serif;
  font-size: 20px;
  margin-top: 6px;
  min-width: 100%;
  padding: 6px;
}

.site-nav .dropdown-item {
  border-radius: 3px;
  padding: 7px 12px;
}

.site-nav .dropdown-item:hover,
.site-nav .dropdown-item:focus,
.site-nav .dropdown-item.active {
  background: #fff3f3;
  color: #d71920;
}

.navbar-toggler {
  border-color: rgba(17, 17, 17, 0.28);
  border-radius: 4px;
  padding: 5px 8px;
}

@media (min-width: 1070px) {
  .navbar-expand-1070 {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .navbar-expand-1070 .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }

  .navbar-expand-1070 .navbar-nav {
    flex-direction: row;
  }

  .navbar-expand-1070 .navbar-nav .dropdown-menu {
    position: absolute;
  }

  .navbar-expand-1070 .navbar-toggler {
    display: none;
  }
}

@media (max-width: 1069.98px) {
  .navbar-expand-1070 > .container-fluid {
    flex-wrap: wrap;
  }

  .navbar-expand-1070 .navbar-collapse {
    flex-basis: 100%;
  }

  .navbar-expand-1070 .site-nav {
    padding-top: 18px;
    width: 100%;
  }
}

.home-main {
  flex: 1;
  padding: clamp(56px, 9vw, 86px) 24px clamp(120px, 19vw, 196px);
}

.company-grid {
  margin: 0 auto;
  max-width: 1080px;
}

.company-copy h1,
.company-copy h2 {
  font-size: 15px;
  line-height: 1.15;
  margin: 0 0 2px;
}

.company-copy p {
  font-size: 15px;
  line-height: 1.14;
  margin: 0 0 18px;
}

.company-copy p:last-child {
  margin-bottom: 0;
}

.image-grid {
  margin: clamp(54px, 7vw, 58px) auto 0;
  max-width: 1090px;
}

.image-grid img {
  aspect-ratio: 436 / 244;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.site-footer {
  align-items: center;
  background: #a00d0d;
  color: #fff;
  display: flex;
  justify-content: center;
  min-height: 47px;
  padding: 10px 10px;
  text-align: center;
}

.site-footer p {
  font-family: Abel, Arial, sans-serif;
  font-size: clamp(20px, 2.5vw, 24px);
  line-height: 1.2;
  margin: 0;
}

.portal-body {
  background: #f3f3f3;
  color: #111;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

.portal-shell {
  background: #fff;
  margin: 12px auto;
  max-width: 1520px;
  min-height: calc(100vh - 24px);
  overflow: hidden;
}

.booking-page {
  background: #fff;
  padding: 26px 12px 48px;
}

.booking-form {
  margin: 0 auto;
  max-width: 1470px;
}

.booking-title {
  border: 2px solid #ff0000;
  color: #000;
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 9px;
  padding: 8px 13px;
}

.booking-layout {
  display: grid;
  gap: 104px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.booking-section {
  margin-bottom: 10px;
}

.booking-section h2 {
  color: #111;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 2px 5px;
}

.booking-table {
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.1;
  table-layout: fixed;
  width: 100%;
}

.booking-table td {
  border: 1px solid #6f6f6f;
  height: 27px;
  padding: 4px 5px;
  vertical-align: top;
}

.booking-label-col {
  width: 170px;
}

.booking-short-col {
  width: 102px;
}

.booking-address-row td {
  height: 81px;
}

.booking-truck-row td {
  height: 54px;
}

.booking-handover-table tr:nth-child(2) td,
.booking-handover-table tr:nth-child(3) td {
  height: 54px;
}

.booking-table input {
  background: transparent;
  border: 0;
  color: #111;
  font: inherit;
  height: 100%;
  min-width: 0;
  outline: 0;
  padding: 0;
  width: 100%;
}

.booking-table input::placeholder {
  color: #0070c0;
  font-size: 14px;
  opacity: 1;
}

.booking-lines {
  display: grid;
  height: 100%;
  margin: -4px -5px;
}

.booking-lines > input,
.booking-lines > div {
  border-bottom: 1px dotted #9b9b9b;
  min-height: 26px;
  padding: 4px 5px;
}

.booking-lines > :last-child {
  border-bottom: 0;
}

.booking-inline {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.booking-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.booking-four {
  grid-template-columns: 1fr 0.7fr auto auto;
}

.booking-four label {
  align-items: center;
  color: #0070c0;
  display: inline-flex;
  font-size: 14px;
  gap: 6px;
  margin: 0;
}

.booking-four input[type="radio"] {
  accent-color: #0070c0;
  height: 13px;
  width: 13px;
}

.booking-flight-label {
  display: inline-block;
  width: 62px;
}

.booking-actions {
  align-items: center;
  display: grid;
  gap: 5px 10px;
  grid-template-columns: 173px minmax(0, 1fr);
  margin-top: 14px;
}

.booking-actions button {
  background: #cfe3f4;
  border: 1px solid #688ca8;
  border-radius: 6px;
  color: #111;
  font-size: 16px;
  height: 39px;
  padding: 0 10px;
  text-align: left;
}

.booking-actions span {
  color: #111;
  font-size: 16px;
}

.air-booking-page {
  background: #f7f7f7;
  padding: 32px 18px 56px;
}

.air-form {
  margin: 0 auto;
  max-width: 760px;
}

.air-paper {
  background: #fff;
  border: 1px solid #8d8d8d;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  padding: 28px 30px 34px;
}

.air-letterhead {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 150px;
  margin-bottom: 28px;
}

.air-letterhead img {
  display: block;
  height: auto;
  width: 150px;
}

.air-address-lines {
  display: grid;
  gap: 6px;
}

.air-recipient-row {
  align-items: center;
  display: grid;
  font-size: 14px;
  font-weight: 700;
  grid-template-columns: 72px 20px 1fr;
  min-height: 20px;
}

.air-recipient-row input,
.air-grid input {
  background: transparent;
  border: 0;
  color: #111;
  font: inherit;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.air-title {
  border: 1px solid #8d8d8d;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  padding: 5px 10px;
  text-align: center;
}

.air-section-title {
  border-left: 1px solid #8d8d8d;
  border-right: 1px solid #8d8d8d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  padding: 8px 10px 4px;
}

.air-grid {
  border-left: 1px solid #8d8d8d;
  border-top: 1px solid #8d8d8d;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
}

.air-grid > label,
.air-grid > input,
.air-grid > div {
  border-bottom: 1px solid #8d8d8d;
  border-right: 1px solid #8d8d8d;
  min-height: 28px;
  padding: 6px 8px;
}

.air-grid > label {
  align-items: center;
  display: flex;
  font-size: 14px;
  font-weight: 400;
  gap: 14px;
}

.air-grid > label span {
  white-space: nowrap;
}

.air-grid-four {
  grid-template-columns: 150px minmax(0, 1fr) 90px minmax(0, 1fr);
}

.air-grid-four > .air-subgrid {
  grid-column: span 3;
}

.air-address-field,
.air-stack {
  display: grid;
  gap: 0;
  padding: 0 !important;
}

.air-address-field > input,
.air-stack > .air-subgrid {
  border-bottom: 1px dotted #a9a9a9;
  min-height: 28px;
  padding: 6px 8px;
}

.air-address-field > :last-child,
.air-stack > :last-child {
  border-bottom: 0;
}

.air-subgrid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.air-subgrid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.air-subgrid-four {
  align-items: center;
  grid-template-columns: 1.4fr 0.8fr auto auto;
}

.air-grid input::placeholder {
  color: #0070c0;
  font-size: 12px;
  font-weight: 700;
  opacity: 1;
}

.air-radio {
  align-items: center;
  color: #0070c0;
  display: inline-flex;
  font-size: 12px !important;
  font-weight: 700 !important;
  gap: 5px !important;
  margin: 0;
  padding: 0 !important;
}

.air-radio input {
  accent-color: #0070c0;
  height: 13px;
  width: 13px;
}

.air-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 18px;
}

.air-actions button {
  background: #0c3d1a;
  border: 1px solid #0c3d1a;
  color: #fff;
  font-size: 14px;
  min-width: 105px;
  padding: 8px 14px;
}

.air-actions button:first-child {
  background: #fff;
  color: #0c3d1a;
}

.page {
  margin: 0 auto;
  max-width: 100%;
  padding: 5px 14px;
  width: 1429px;
}

.page-title {
  border: 2px solid #dc2626;
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  margin: 0 0 8px;
  padding: 4px 10px;
}

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

.section-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  margin-left: 6px;
  margin-bottom: 2px;
}

.section-gap-sm {
  margin-top: 10px;
}

.section-gap-md {
  margin-top: 14px;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1;
}

.form-table td {
  border: 1px solid #858585;
  height: 26px;
  padding: 4px 5px;
  vertical-align: top;
}

.label-col {
  width: 165px;
}

.flight-label-col {
  width: 100px;
}

.hint {
  color: #4e9acd;
  font-size: 12px;
  font-weight: 700;
}

.address-row td {
  height: 75px;
}

.address-lines {
  display: grid;
  height: 100%;
  grid-template-rows: 1fr 1fr 20px;
  margin: -4px -5px;
}

.address-lines > div {
  border-bottom: 1px dotted #aaa;
  padding: 5px;
}

.address-lines > div:last-child {
  align-items: end;
  border-bottom: 0;
  display: flex;
}

.address-footer {
  align-items: end;
  display: flex;
}

.postcode {
  width: 48%;
}

.flight-word {
  display: inline-block;
  width: 60px;
}

.flight-fields {
  display: grid;
  grid-template-columns: 34% 34% 1fr;
}

.time-fields {
  display: grid;
  grid-template-columns: 48% 20% 1fr;
}

.pickup-fields {
  display: grid;
  grid-template-columns: 47% 20% 1fr;
}

.truck-row td {
  height: 52px;
}

.truck-fields {
  display: grid;
  grid-template-columns: 47% 1fr;
  grid-template-rows: 22px 22px;
}

.handover-row td {
  height: 52px;
}

.action-button {
  width: 167px;
  height: 36px;
  border: 1px solid #688ca8;
  border-radius: 6px;
  background: #cfe3f4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #111;
  font-size: 16px;
  line-height: 1;
  padding: 0 9px;
  text-align: left;
}

.action-grid {
  align-items: center;
  column-gap: 10px;
  display: grid;
  grid-template-columns: 167px 1fr;
  margin-top: 14px;
  row-gap: 4px;
}

.action-grid p {
  font-size: 16px;
  margin: 0;
}

@media print {
  main.page {
    width: 1429px !important;
    max-width: none !important;
  }
}

@media (max-width: 820px) {
  .home-shell {
    margin: 0;
    min-height: 100vh;
  }

  .site-header {
    padding: 18px 22px 14px;
  }

  .brand {
    width: 170px;
  }

  .site-nav {
    gap: 8px;
  }

  .home-main {
    padding-left: 22px;
    padding-right: 22px;
  }

  .company-grid {
    row-gap: 32px;
  }
}

@media (max-width: 1250px) {
  .booking-layout {
    gap: 38px;
  }
}

@media (max-width: 980px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-form {
    max-width: 720px;
  }
}

@media (max-width: 640px) {
  .brand {
    width: 185px;
  }

  .site-nav {
    gap: 8px 20px;
    padding-top: 18px;
  }

  .site-nav .nav-link {
    font-size: 21px;
    min-width: 0;
    padding: 8px 10px;
  }

  .navbar-collapse {
    width: 100%;
  }

  .home-main {
    padding-bottom: 70px;
    padding-top: 42px;
  }

  .company-copy p {
    line-height: 1.22;
  }

  .portal-shell {
    margin: 0;
    min-height: 100vh;
  }

  .booking-page {
    padding: 18px 10px 34px;
  }

  .booking-title {
    font-size: 22px;
    padding: 7px 11px;
  }

  .booking-section h2,
  .booking-table,
  .booking-actions span,
  .booking-actions button {
    font-size: 14px;
  }

  .booking-label-col {
    width: 128px;
  }

  .booking-short-col {
    width: 82px;
  }

  .booking-table td {
    height: 30px;
    padding: 5px;
  }

  .booking-address-row td {
    height: 94px;
  }

  .booking-inline,
  .booking-three,
  .booking-four {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .booking-actions {
    grid-template-columns: 1fr;
  }

  .air-booking-page {
    padding: 18px 10px 34px;
  }

  .air-paper {
    padding: 18px 14px 24px;
  }

  .air-letterhead {
    grid-template-columns: 1fr;
  }

  .air-letterhead img {
    order: -1;
    width: 150px;
  }

  .air-grid,
  .air-grid-four {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .air-grid-four > label,
  .air-grid-four > input {
    grid-column: auto;
  }

  .air-grid-four > .air-subgrid {
    grid-column: auto;
  }

  .air-subgrid,
  .air-subgrid-three,
  .air-subgrid-four {
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .air-recipient-row {
    grid-template-columns: 54px 14px 1fr;
  }
}

@media print {
  .portal-body,
  .portal-shell,
  .air-booking-page {
    background: #fff;
  }

  .portal-shell {
    margin: 0;
    max-width: none;
  }

  .portal-shell .site-header,
  .air-actions {
    display: none;
  }

  .air-booking-page {
    padding: 0;
  }

  .air-form {
    max-width: none;
  }

  .air-paper {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}
