/* =========================================
   HORTON CONTACT PAGE ONLY
   Premium form restyle
========================================= */

body.page-id-2195 .elementor-widget form,
body.page-id-2195 .elementor form {
  max-width: 960px !important;
  width: 100% !important;
  margin: 28px auto 40px !important;
  padding: 32px 28px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7fafe 100%) !important;
  border: 1px solid #d7e2ee !important;
  border-radius: 26px !important;
  box-shadow:
    0 18px 40px rgba(13, 42, 74, 0.08),
    0 4px 14px rgba(13, 42, 74, 0.05) !important;
}

body.page-id-2195 .elementor-widget form .elementor-field-group,
body.page-id-2195 .elementor form .elementor-field-group {
  margin-bottom: 20px !important;
}

body.page-id-2195 .elementor-widget form label,
body.page-id-2195 .elementor form label {
  display: block !important;
  margin: 0 0 9px !important;
  color: #12385e !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

body.page-id-2195 .elementor-widget form input[type="text"],
body.page-id-2195 .elementor-widget form input[type="email"],
body.page-id-2195 .elementor-widget form input[type="tel"],
body.page-id-2195 .elementor-widget form input[type="number"],
body.page-id-2195 .elementor-widget form input[type="url"],
body.page-id-2195 .elementor-widget form select,
body.page-id-2195 .elementor-widget form textarea,
body.page-id-2195 .elementor form input[type="text"],
body.page-id-2195 .elementor form input[type="email"],
body.page-id-2195 .elementor form input[type="tel"],
body.page-id-2195 .elementor form input[type="number"],
body.page-id-2195 .elementor form input[type="url"],
body.page-id-2195 .elementor form select,
body.page-id-2195 .elementor form textarea {
  width: 100% !important;
  background: #ffffff !important;
  border: 1px solid #c9d7e5 !important;
  border-radius: 16px !important;
  min-height: 56px !important;
  padding: 15px 16px !important;
  color: #17324d !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  box-shadow:
    inset 0 1px 2px rgba(15, 23, 42, 0.02),
    0 1px 0 rgba(255, 255, 255, 0.7) !important;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    transform 0.22s ease !important;
}

body.page-id-2195 .elementor-widget form textarea,
body.page-id-2195 .elementor form textarea {
  min-height: 180px !important;
  resize: vertical !important;
}

body.page-id-2195 .elementor-widget form input:focus,
body.page-id-2195 .elementor-widget form select:focus,
body.page-id-2195 .elementor-widget form textarea:focus,
body.page-id-2195 .elementor form input:focus,
body.page-id-2195 .elementor form select:focus,
body.page-id-2195 .elementor form textarea:focus {
  outline: none !important;
  border-color: #0c4f86 !important;
  box-shadow:
    0 0 0 4px rgba(12, 79, 134, 0.12),
    0 10px 24px rgba(12, 79, 134, 0.08) !important;
}

body.page-id-2195 .elementor-widget form .elementor-field-type-acceptance,
body.page-id-2195 .elementor form .elementor-field-type-acceptance {
  margin-top: 4px !important;
  margin-bottom: 18px !important;
}

body.page-id-2195 .elementor-widget form input[type="checkbox"],
body.page-id-2195 .elementor form input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: auto !important;
  margin-right: 10px !important;
  accent-color: #0f4c81 !important;
  vertical-align: middle !important;
  box-shadow: none !important;
}

body.page-id-2195 .elementor-widget form .elementor-field-type-acceptance label,
body.page-id-2195 .elementor form .elementor-field-type-acceptance label {
  display: inline !important;
  color: #5d7188 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

body.page-id-2195 .elementor-widget form button,
body.page-id-2195 .elementor-widget form input[type="submit"],
body.page-id-2195 .elementor-widget form .elementor-button,
body.page-id-2195 .elementor form button,
body.page-id-2195 .elementor form input[type="submit"],
body.page-id-2195 .elementor form .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 56px !important;
  padding: 15px 30px !important;
  border: none !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #0f4f86 0%, #0b3e69 100%) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  box-shadow:
    0 14px 28px rgba(11, 62, 105, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}

@media (max-width: 767px) {
  body.page-id-2195 .elementor-widget form,
  body.page-id-2195 .elementor form {
    max-width: 100% !important;
    padding: 22px 18px !important;
    border-radius: 20px !important;
  }

  body.page-id-2195 .elementor-widget form textarea,
  body.page-id-2195 .elementor form textarea {
    min-height: 160px !important;
  }
}

/* Prevent horizontal overflow */
html,
body {
  overflow-x: clip;
}

/* =========================================
   HORTON HEADER
   Required Elementor classes:
     outer container  -> hdr-row
     logo container   -> hdr-logo   (currently NOT
       applied to the logo widget on the live site,
       see note below)
     menu container   -> hdr-menu
     button container -> hdr-cta
========================================= */

/* Book Now CTA */
.hdr-cta .elementor-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  white-space: nowrap !important;
  padding: 12px 22px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  border-radius: 999px !important;
  background: #0f4c81 !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(11, 62, 105, 0.22) !important;
  transition: background 0.2s ease, box-shadow 0.2s ease !important;
}

.hdr-cta .elementor-button:hover {
  background: #0b3e69 !important;
  box-shadow: 0 8px 20px rgba(11, 62, 105, 0.28) !important;
}

/* Mobile: logo left, hamburger centred, CTA right */
@media (max-width: 767px) {
  .hdr-row,
  .hdr-row > .e-con-inner {
    position: relative !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  .hdr-logo,
  .hdr-cta {
    flex: 0 0 auto !important;
  }

  .hdr-menu {
    position: static !important;
    flex: 0 0 auto !important;
    width: 0 !important;
    display: flex !important;
    justify-content: center !important;
  }

  .hdr-menu .elementor-menu-toggle,
  .hdr-menu .elementor-nav-menu__toggle {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
  }

  .hdr-row .elementor-nav-menu--dropdown,
  .hdr-menu .elementor-nav-menu--dropdown,
  .hdr-menu nav.elementor-nav-menu--dropdown,
  .hdr-menu .elementor-nav-menu__container.elementor-nav-menu--dropdown {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    background: #ffffff !important;
    box-shadow: 0 12px 24px rgba(11, 62, 105, 0.12) !important;
    z-index: 9999 !important;
  }

  .hdr-row .elementor-nav-menu--dropdown a,
  .hdr-menu .elementor-nav-menu--dropdown a,
  .hdr-menu nav.elementor-nav-menu--dropdown a {
    color: #12385e !important;
    padding: 14px 20px !important;
    font-size: 16px !important;
    border-bottom: 1px solid #eef2f7 !important;
  }
}

/* =========================================
   H-only logo on tablet and mobile

   FIX (20 Aug 2026): the old version masked
   the logo onto a ::before pseudo-element with
   no link, so the homepage link vanished on
   tablet/mobile whenever the swap fired. The
   pseudo-element now sits on the existing <a>
   inside .hdr-logo instead of on .hdr-logo
   itself, so the swapped mark stays clickable
   and still points home. The real <img> is
   hidden rather than the whole link, so the
   href is preserved.

   To reinstate: add the class hdr-logo to the
   logo widget's container in Elementor (it is
   not currently applied to anything on the
   live site).
========================================= */
@media (max-width: 1024px) {
  .hdr-logo {
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
  }

  .hdr-logo a {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
  }

  .hdr-logo img {
    display: none !important;
  }

  .hdr-logo a::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #0f4c81;
    -webkit-mask: url("https://hortonexecutivepark.co.uk/wp-content/uploads/2026/04/Horton-Logo-003.webp") center / contain no-repeat;
    mask: url("https://hortonexecutivepark.co.uk/wp-content/uploads/2026/04/Horton-Logo-003.webp") center / contain no-repeat;
  }
}

@media (max-width: 480px) {
  .hdr-logo {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }
}

/* Tablet: prevent nav link wrapping */
@media (min-width: 768px) and (max-width: 1024px) {
  .hdr-menu .elementor-nav-menu {
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
  }

  .hdr-menu .elementor-nav-menu > li > a {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* Apple-style soft-grey sticky header, with no border */
.elementor-location-header,
header.elementor-location-header,
[data-elementor-type="header"] {
  position: sticky !important;
  top: 0 !important;
  z-index: 9999 !important;
  background: #f5f5f7 !important;
}

/* Apply the same background to Elementor's visible row */
.elementor-location-header .hdr-row,
[data-elementor-type="header"] .hdr-row {
  background: #f5f5f7 !important;
}