:root {
  --hf-ink: #10251d;
  --hf-muted: #65776f;
  --hf-green: #176d50;
  --hf-green-dark: #0b3b2c;
  --hf-green-soft: #eaf5ef;
  --hf-lime: #d7ff57;
  --hf-line: #d8e4de;
  --hf-surface: #ffffff;
  --hf-wash: #f3f7f5;
  --hf-warning: #fff4d9;
  --hf-shadow-sm: 0 8px 24px rgba(13, 54, 39, 0.07);
  --hf-shadow: 0 22px 60px rgba(13, 54, 39, 0.12);
  --hf-radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--hf-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--hf-lime);
  color: var(--hf-green-dark);
}

a,
button,
input,
select,
textarea {
  transition: border-color 0.18s ease, box-shadow 0.18s ease,
    background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
[type="button"],
[type="submit"] {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(23, 109, 80, 0.24);
  outline-offset: 3px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #4e9a7f !important;
  box-shadow: 0 0 0 4px rgba(23, 109, 80, 0.1) !important;
  outline: 0;
}

.skiplink {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--hf-green-dark);
  color: #fff;
  font-weight: 850;
}

.skiplink:focus {
  top: 12px;
}

/* Shared navigation */
.publicnav,
.hirenav,
.portalnav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 78px;
  border-bottom: 1px solid rgba(207, 221, 214, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.publicnav,
.hirenav {
  background: rgba(255, 255, 255, 0.94);
}

.portalnav {
  background: rgba(11, 59, 44, 0.97);
}

.publicnav.nav-scrolled,
.hirenav.nav-scrolled,
.portalnav.nav-scrolled {
  box-shadow: 0 10px 30px rgba(13, 54, 39, 0.1);
}

.publicbrand,
.hirebrand,
.portalbrand {
  min-width: 0;
  letter-spacing: -0.02em;
}

.publicbrand img,
.hirebrand img,
.portalbrand img {
  display: block;
  width: auto;
  max-width: 150px;
  height: 42px;
  max-height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.publicnav nav,
.hirenav nav,
.portalnav nav {
  align-items: center;
}

.publicnav nav a,
.hirenav nav a,
.portalnav nav a {
  position: relative;
  padding: 10px 2px;
}

.publicnav nav a::after,
.hirenav nav a::after,
.portalnav nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 99px;
  background: var(--hf-lime);
  opacity: 0;
  transform: scaleX(0.4);
}

.publicnav nav a:hover::after,
.publicnav nav a[aria-current="page"]::after,
.hirenav nav a:hover::after,
.hirenav nav a[aria-current="page"]::after,
.portalnav nav a:hover::after,
.portalnav nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navtoggle {
  display: none;
  width: 43px;
  height: 43px;
  padding: 0;
  border: 1px solid var(--hf-line);
  border-radius: 10px;
  background: #fff;
  color: var(--hf-green-dark);
  font-size: 20px;
  font-weight: 900;
}

.portalnav .navtoggle {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* Marketing website */
.public {
  background: #fff;
}

.public .hero {
  position: relative;
  max-width: 1240px;
  min-height: 650px;
  padding: 90px 30px;
}

.public .hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 40px;
  right: 0;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  background: rgba(215, 255, 87, 0.2);
  filter: blur(4px);
}

.hero h1,
.pagehero h1,
.contactgrid h1,
.hirehero h1 {
  text-wrap: balance;
}

.herobuttons .cta,
.herobuttons .secondary,
.finalcta .cta,
.plans a,
.gcactions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta:hover,
.rate a:hover,
.portalcta:hover,
.contactcard button:hover,
.checkoutform > button:hover,
.bookingStep > button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(23, 109, 80, 0.2);
}

.secondary:hover {
  border-color: #7eac99;
  background: #f7fbf9;
}

.dashboardmock {
  transform: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.logos {
  gap: 28px;
  overflow: hidden;
}

.featureintro,
.featuregrid,
.plans,
.contactgrid {
  width: min(1180px, calc(100% - 40px));
}

.featurecards article,
.featuregrid article,
.plans article,
.contactcard,
.gcbenefits article {
  border-color: var(--hf-line);
  border-radius: var(--hf-radius);
  box-shadow: var(--hf-shadow-sm);
}

.featurecards article,
.featuregrid article,
.gcbenefits article {
  position: relative;
  overflow: hidden;
}

.featurecards article::before,
.featuregrid article::before,
.gcbenefits article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--hf-green);
  opacity: 0;
}

.featurecards article:hover::before,
.featuregrid article:hover::before,
.gcbenefits article:hover::before {
  opacity: 1;
}

.pagehero {
  position: relative;
  max-width: none !important;
  padding: 105px max(24px, calc((100vw - 900px) / 2)) 75px !important;
  background: radial-gradient(
      circle at 80% 15%,
      rgba(215, 255, 87, 0.34),
      transparent 28%
    ),
    linear-gradient(145deg, #f0f8f4, #fbfcfb);
}

.pagehero p {
  margin-inline: auto;
}

.plans article {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.plans article.popular {
  transform: translateY(-10px);
  border-color: var(--hf-green);
  box-shadow: 0 25px 55px rgba(13, 54, 39, 0.14);
}

.plans ul {
  flex: 1;
}

.contactgrid {
  padding: 25px 0;
  align-items: center;
}

.contactcard {
  padding: 32px;
}

.contactcard label,
.checkoutform label,
.profileform label,
.authcard label,
.buycard label {
  display: grid;
  gap: 7px;
}

.contactcard input,
.contactcard select,
.contactcard textarea,
.authcard input,
.profileform input,
.profileform select,
.profileform textarea,
.buycard input,
.buycard select,
.buycard textarea {
  min-height: 50px;
  margin-top: 0;
  border-radius: 11px;
}

.contactcard textarea,
.profileform textarea,
.buycard textarea {
  min-height: 115px;
  resize: vertical;
}

footer:not(.portalfooter):not(.receipt-footer) {
  position: relative;
}

/* End-business hire website */
.hirebody {
  background: #f7faf8;
}

.hirenav > span {
  padding: 7px 10px;
  border-radius: 99px;
  background: var(--hf-green-soft);
  color: var(--hf-green);
  font-size: 11px;
  font-weight: 850;
}

.hirehero {
  position: relative;
  overflow: visible;
}

.hirehero::after {
  content: "Live availability";
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  top: 30px;
  padding: 7px 11px;
  border: 1px solid #cfe2d8;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--hf-green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hiresearch {
  border-top: 5px solid var(--hf-green);
}

.hiresearch label {
  display: grid;
  gap: 6px;
}

.hiresearch input,
.hiresearch select {
  margin-top: 0;
}

.sectiontitle > span {
  white-space: nowrap;
}

.assetcards {
  align-items: stretch;
}

.hirecard {
  display: flex;
  flex-direction: column;
}

.assetimage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hirecontent {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.hirecontent .rate {
  margin-top: auto;
}

.noassets {
  border: 1px dashed #a8c5b8;
}

.how article {
  box-shadow: var(--hf-shadow-sm);
}

/* Booking and confirmation */
.checkout > a {
  align-items: center;
  gap: 6px;
}

.checkoutform,
.summary {
  border-color: var(--hf-line);
}

.bookingProgress button {
  overflow: hidden;
}

.bookingProgress button.active::after {
  content: "Current step";
  position: absolute;
  right: 10px;
  bottom: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bookingextras:has([name="payment_method"]) {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.bookingextras:has([name="payment_method"]) > h3,
.bookingextras:has([name="payment_method"]) > .formtwo {
  grid-column: 1 / -1;
}

.bookingextra:has(input:checked) {
  box-shadow: 0 0 0 3px rgba(23, 109, 80, 0.08) !important;
}

.summary {
  overflow: hidden;
}

.summary::before {
  content: "Your price updates as you make changes";
  display: block;
  margin: -23px -28px 22px;
  padding: 11px 28px;
  background: var(--hf-green-dark);
  color: #c7ded3;
  font-size: 11px;
  font-weight: 750;
}

.summary .deposit {
  border-radius: 12px;
}

.confirmation {
  position: relative;
  overflow: hidden;
  border-top: 7px solid var(--hf-green);
}

.confirmation::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(215, 255, 87, 0.2);
}

.confirmationbrand {
  position: relative;
  display: block;
  width: auto;
  max-width: 190px;
  max-height: 64px;
  margin: 0 auto 22px;
  object-fit: contain;
}

.confirmationbrand.text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  max-width: none;
  font-size: 17px;
  font-weight: 900;
}

.confirmationbrand.text b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--hf-lime);
}

.confirmationactions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

/* Authentication */
.authbody {
  position: relative;
  padding: 45px 20px;
  background: radial-gradient(
      circle at 15% 12%,
      rgba(215, 255, 87, 0.3),
      transparent 28%
    ),
    linear-gradient(145deg, #e9f3ee, #f8faf9);
}

.authcard {
  position: relative;
  overflow: hidden;
  width: min(490px, 100%);
  padding: 38px;
  border: 0;
  border-top: 6px solid var(--hf-green);
  border-radius: 20px;
  box-shadow: var(--hf-shadow);
}

.authcard::after {
  content: "Secure customer access";
  position: absolute;
  top: 17px;
  right: 22px;
  color: #71847b;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authcard .portalbrand {
  width: max-content;
  margin-bottom: 35px;
}

.authcard h1 {
  font-size: 38px;
  letter-spacing: -0.04em;
}

.authcard button {
  min-height: 52px;
  font-size: 15px;
}

.registerbody .authcard {
  width: min(760px, 100%);
}

.registerbody .authcard form {
  grid-template-columns: 1fr 1fr;
}

.registerbody .authcard form .check,
.registerbody .authcard form button {
  grid-column: 1 / -1;
}

/* Customer portal */
.portalnav .portalbrand span {
  overflow: hidden;
  max-width: 190px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portalnav nav {
  gap: 18px;
}

.portalnav nav a {
  font-size: 13px;
}

.portal {
  width: min(1180px, calc(100% - 32px));
}

.welcome {
  gap: 25px;
  padding: 28px 30px;
  border: 1px solid #d4e3dc;
  border-radius: var(--hf-radius);
  background: radial-gradient(
      circle at 85% 15%,
      rgba(215, 255, 87, 0.28),
      transparent 28%
    ),
    linear-gradient(135deg, #edf7f2, #fbfcfb);
}

.welcome h1 {
  font-size: 40px;
  letter-spacing: -0.04em;
}

.portalstats article,
.portalpanel {
  border-radius: 15px;
  box-shadow: var(--hf-shadow-sm);
}

.portalstats article {
  position: relative;
  overflow: hidden;
  min-height: 132px;
  padding: 21px;
}

.portalstats article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--hf-green);
}

.portalstats strong {
  font-size: 29px;
}

.portalpanel {
  padding: 23px;
}

.paneltitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 8px;
}

.bookingrow {
  margin-inline: -8px;
  padding-inline: 10px;
  border-radius: 10px;
}

.bookingrow.is-clickable {
  cursor: pointer;
}

.bookingrow:hover {
  background: #f3f8f5;
}

.bookingicon {
  background: var(--hf-green-soft);
  color: var(--hf-green);
}

.bookingrow > a,
.invoicetable a {
  text-decoration: underline;
  text-decoration-color: #b3cfc3;
  text-underline-offset: 3px;
}

.invoicetable > div:not(.invoicehead) {
  border-radius: 9px;
}

.invoicetable > div:not(.invoicehead):hover {
  background: #f4f8f6;
}

.helpbar,
.contactbooking {
  border-radius: 15px;
  box-shadow: var(--hf-shadow-sm);
}

.profilegrid {
  align-items: start;
}

.profilegrid > div:first-child {
  position: sticky;
  top: 105px;
}

.profileform {
  padding: 28px;
  border-radius: var(--hf-radius);
  box-shadow: var(--hf-shadow-sm);
}

.bookinghero {
  border: 1px solid #d3e3db;
  border-left: 6px solid var(--hf-green);
  border-radius: var(--hf-radius);
}

.detailgrid {
  align-items: start;
}

.detailgrid aside {
  position: sticky;
  top: 100px;
}

.finecard {
  overflow: hidden;
  border-left: 5px solid var(--hf-green);
}

.finedetails div,
.fineamounts div,
.creditnumbers div {
  border: 1px solid #e0e9e4;
  border-radius: 10px;
  background: #f7faf8;
}

.fineamounts .total {
  background: var(--hf-green-dark);
}

.finefoot {
  gap: 15px;
}

.creditstatus {
  border-top: 6px solid var(--hf-green);
}

.creditnumbers div {
  min-height: 92px;
  padding: 15px;
}

.creditnumbers b {
  margin-top: 6px;
  font-size: 21px;
}

.statementlist > a {
  border-radius: 9px;
}

.statementlist > a:hover {
  background: var(--hf-green-soft) !important;
}

/* Gift cards */
.gchero {
  position: relative;
  overflow: hidden;
}

.gchero::before {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(215, 255, 87, 0.28);
}

.gchero > * {
  position: relative;
}

.buycard {
  gap: 18px;
  border-radius: 20px;
  box-shadow: var(--hf-shadow);
}

.amounts button {
  min-width: 72px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 850;
}

.amounts button:hover {
  border-color: var(--hf-lime);
  background: var(--hf-lime);
}

.balancepage {
  width: min(900px, calc(100% - 30px));
}

.balancepage > img {
  filter: drop-shadow(0 15px 24px rgba(13, 54, 39, 0.14));
}

.balanceform,
.balancecard {
  box-shadow: var(--hf-shadow-sm);
}

.balanceform input,
.balanceform button {
  min-height: 52px;
  border-radius: 10px;
}

.balancecard {
  overflow-x: auto;
  background: #fff;
}

.gcresult {
  width: min(860px, calc(100% - 30px));
}

.giftprint {
  border: 1px solid rgba(255, 255, 255, 0.13);
}

.printactions button,
.printactions a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid var(--hf-line);
  border-radius: 10px;
  font-weight: 850;
}

.printactions button {
  border-color: var(--hf-green);
  background: var(--hf-green);
  color: #fff;
}

/* Stripe and payment status */
.stripepage {
  width: min(1120px, calc(100% - 30px));
}

.stripebrand {
  padding: 11px 14px;
  border: 1px solid var(--hf-line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.76);
}

.stripesummary,
.stripeform {
  border-radius: 20px !important;
  box-shadow: var(--hf-shadow) !important;
}

.stripesummary {
  border-top: 6px solid var(--hf-green) !important;
}

.stripeform button {
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #176f51, #0f573f);
  color: #fff;
  font-weight: 900;
}

body.install:has(.installer) {
  min-height: 100vh;
  padding: 30px 15px;
  background: radial-gradient(
      circle at 20% 15%,
      rgba(215, 255, 87, 0.28),
      transparent 25%
    ),
    #edf4f0;
}

body.install:has(.installer) .installer {
  width: min(620px, 100%);
  margin: 8vh auto;
  padding: 38px;
  border: 0;
  border-top: 6px solid var(--hf-green);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--hf-shadow);
}

/* Invoices, statements and receipts on screen */
.invoicebody,
body:has(> .statement-tools),
body:has(> .receipt-actions) {
  background: linear-gradient(145deg, #e8f1ed, #f5f8f6);
}

.invoice,
.statement-page,
.a4receipt {
  border: 1px solid #d7e2dc;
  border-top: 6px solid var(--hf-green);
  border-radius: 18px;
  box-shadow: var(--hf-shadow);
}

.statement-tools,
.receipt-actions,
.posinvoiceactions {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px;
  border: 1px solid rgba(210, 224, 217, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.statement-tools a,
.statement-tools button,
.receipt-actions a,
.receipt-actions button,
.posinvoiceactions a,
.posinvoiceactions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 1px solid var(--hf-line);
  border-radius: 9px;
  background: #fff;
  color: var(--hf-green-dark);
  font-weight: 850;
}

.statement-tools button:last-child,
.receipt-actions button:last-child,
.posinvoiceactions button:last-child {
  border-color: var(--hf-green);
  background: var(--hf-green);
  color: #fff;
}

.invoice table tbody tr:hover,
.statement-page table tbody tr:hover,
.a4receipt table tbody tr:hover {
  background: #f5f9f7;
}

/* Responsive */
@media (max-width: 1080px) {
  .publicnav nav,
  .hirenav nav,
  .portalnav nav {
    gap: 13px;
  }

  .portalnav nav a {
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .navtoggle {
    display: grid;
    place-items: center;
  }

  .publicnav nav,
  .hirenav nav,
  .portalnav nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none !important;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px;
    border: 1px solid var(--hf-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--hf-shadow);
  }

  .publicnav.menu-open nav,
  .hirenav.menu-open nav,
  .portalnav.menu-open nav {
    display: flex !important;
  }

  .publicnav nav a,
  .hirenav nav a,
  .portalnav nav a {
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--hf-ink);
  }

  .publicnav nav a:hover,
  .hirenav nav a:hover,
  .portalnav nav a:hover,
  .publicnav nav a[aria-current="page"],
  .portalnav nav a[aria-current="page"] {
    background: var(--hf-green-soft);
    color: var(--hf-green);
  }

  .publicnav nav a::after,
  .hirenav nav a::after,
  .portalnav nav a::after {
    display: none;
  }

  .customername span,
  .publicnav .textlink {
    display: none;
  }

  .hero,
  .contactgrid {
    gap: 38px;
  }

  .plans article.popular {
    transform: none;
  }

  .profilegrid > div:first-child,
  .detailgrid aside {
    position: static;
  }

  .welcome {
    align-items: flex-start;
  }
}

@media (max-width: 650px) {
  .publicnav,
  .hirenav,
  .portalnav {
    min-height: 70px;
  }

  .nav-actions .cta {
    display: none;
  }

  .hirehero::after,
  .hirenav > span {
    display: none;
  }

  .public .hero {
    min-height: 0;
    padding: 60px 20px;
  }

  .herobuttons {
    display: grid;
  }

  .logos {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagehero {
    padding: 70px 18px 50px !important;
  }

  .contactgrid {
    margin-block: 35px;
  }

  .contactcard,
  .authcard,
  .portalpanel,
  .profileform {
    padding: 21px;
  }

  .registerbody .authcard form {
    grid-template-columns: 1fr;
  }

  .registerbody .authcard form .check,
  .registerbody .authcard form button {
    grid-column: auto;
  }

  .authcard::after {
    display: none;
  }

  .welcome {
    flex-direction: column;
    padding: 23px;
  }

  .welcome h1 {
    font-size: 34px;
  }

  .welcome .portalcta {
    width: 100%;
    text-align: center;
  }

  .portalstats article {
    min-height: 120px;
    padding: 17px;
  }

  .portalstats strong {
    font-size: 24px;
  }

  .bookingProgress button.active::after {
    display: none;
  }

  .summary::before {
    margin-inline: -20px;
    padding-inline: 20px;
  }

  .gchero,
  .gcsection {
    padding-inline: 20px !important;
  }

  .balancepage {
    padding-inline: 0 !important;
  }

  .statement-tools,
  .receipt-actions,
  .posinvoiceactions {
    position: static;
    margin: 10px;
    flex-direction: column;
  }

  .statement-tools > *,
  .receipt-actions > *,
  .receipt-actions > div,
  .receipt-actions a,
  .receipt-actions button,
  .posinvoiceactions > * {
    width: 100%;
  }

  .invoice,
  .statement-page,
  .a4receipt {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

@media print {
  .skiplink,
  .navtoggle,
  .statement-tools,
  .receipt-actions,
  .posinvoiceactions {
    display: none !important;
  }

  .invoicebody,
  body:has(> .statement-tools),
  body:has(> .receipt-actions) {
    background: #fff !important;
  }

  .invoice,
  .statement-page,
  .a4receipt {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .invoice table tbody tr:hover,
  .statement-page table tbody tr:hover,
  .a4receipt table tbody tr:hover {
    background: transparent;
  }
}
