/*
Lansweeper landing page — ported from the Twenty Twenty-Three child theme.
Plus Jakarta Sans is loaded by a <link> in the page head (no @import).
*/

html {
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  margin-block-start: 0 !important;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

header {
  padding-bottom: 20px;
  padding-top: 20px;
  position: fixed;
  z-index: 9999;
  width: 100%;
  top: 0;
}

body > div.wp-site-blocks > header.scrolled {
  -webkit-box-shadow: 1px 0px 42px -14px rgba(0,0,0,0.3);
  box-shadow: 1px 0px 42px -14px rgba(0,0,0,0.3);
  background-color: white;
}

.wp-site-blocks {
  padding-top: 0;
}

.wp-block-group {
  padding-bottom: 0 !important;
}

.grey_box {
  background: url('../img/deco-2.png') no-repeat right top;
  background-size: 10%;
  height: 90% !important;
}

.grey_box .wp-block-embed__wrapper {
  margin-bottom: -100px !important;
  -webkit-box-shadow: 0px 0px 35px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 0px 35px 0px rgba(0,0,0,0.2);
  box-shadow: 0px 0px 35px 0px rgba(0,0,0,0.2);
}

.wp-block-site-logo .custom-logo {
  width: 100%;
  height: auto;
  max-width: 240px;
}

.wp-block-separator {
  opacity: 0.1;
}

.wp-block-social-links li {
  background: rgba(0,0,0,0.03) !important;
  border-radius: 4px;
  color: #909090 !important;
}

.wp-element-button {
  border-radius: 90px;
}

.filler {
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: -1;
}

.approach {
  position: relative;
}

.muted {
  opacity: 0.2;
}

.orange-box {
  height: 474px;
}

.shift-up {
  margin-top: -100px !important;
}

.content-wrap {
  max-width: 670px;
}

.decor-1 {
  background: url('../img/deco-line-1.png') no-repeat right bottom;
  background-size: 20%;
}

.decor-2 {
  background: url('../img/deco-line-2.png') no-repeat left bottom;
  background-size: 15%;
}

.decor-3 {
  background: url('../img/solid-decor-3.png') no-repeat right bottom;
}

.card {
  border: 1px solid #D1D1D1;
  border-radius: 16px;
  background-color: white;
}

.flex {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wp-block-media-text__content {
  display: flex;
  align-items: center;
  justify-content: center;
}

.wp-site-blocks > * {
  margin-block-start: 0;
}

/* Contact popup — opened by any .contact-form-button */
.contact-modal {
  z-index: 99999 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0;
  bottom: 0 !important;
  right: 0;
  height: 100vh;
  padding: 20px;
  box-sizing: border-box;
  background-color: rgba(255, 255, 255, 0.9) !important;
  display: none;
  margin: 0 !important;
  overflow-y: auto;
}

.contact-modal.is-open {
  display: flex;
}

.contact-modal #support-form {
  position: relative;
  background: white;
  padding: 72px;
  -webkit-box-shadow: 0px 0px 35px 0px rgba(0,0,0,0.2);
  -moz-box-shadow: 0px 0px 35px 0px rgba(0,0,0,0.2);
  box-shadow: 0px 0px 35px 0px rgba(0,0,0,0.2);
  border-radius: 16px;
  width: 100%;
  max-width: 744px;
  box-sizing: border-box;
  /* auto margins centre the form but, unlike align-items, never clip it when it outgrows the window */
  margin: auto;
}

.contact-modal .form-title {
  font-size: 42px;
  text-align: center;
  margin-bottom: 20px;
}

.contact-modal .form-description {
  text-align: center;
  line-height: 160% !important;
  margin-bottom: 20px;
}

.contact-modal .form-field {
  margin-bottom: 16px;
}

.contact-modal .form-field .field-validation-error {
  display: block;
  color: red;
  font-size: 14px;
  margin: 6px 0 0 30px;
}

.contact-modal input[type='text'],
.contact-modal input[type='email'],
.contact-modal select,
.contact-modal textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #BFBFBF;
  border-radius: 27px;
  padding: 20px 30px;
  height: auto;
  font-family: inherit;
  font-size: 16px;
  background: white;
}

.contact-modal textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-modal .form-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: smaller;
}

.contact-modal .form-check input {
  width: auto;
  margin: 0;
}

.contact-modal .form-check a {
  color: inherit;
}

.contact-modal .submit-container {
  text-align: center;
}

.contact-modal #submit-btn {
  background: #f48221;
  color: #000;
  border: none !important;
  border-radius: 90px;
  padding: 20px 40px;
  width: auto !important;
  height: auto;
  font-weight: bold;
  font-size: 16px;
  margin-top: 20px;
  cursor: pointer;
}

.contact-modal #submit-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

.contact-modal #toggle {
  z-index: 99999;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
}

.contact-modal #toggle svg {
  width: 20px !important;
}

.contact-modal .alert {
  padding: 14px 20px;
  border-radius: 16px;
  margin-bottom: 16px;
  text-align: center;
}

.contact-modal .alert-success {
  background: #e7f6e7;
  color: #1e6b1e;
}

.contact-modal .alert-danger {
  background: #fdeaea;
  color: #a12222;
}

.contact-form-button {
  cursor: pointer;
}

@media only screen and (max-width: 960px) {

  .contact-modal {
    padding: 0;
  }

  .contact-modal #support-form {
    min-height: 100%;
    border-radius: 0;
    padding: 60px 20px 20px;
  }

  nav {
    display: none !important;
  }

  .wp-block-navigation__responsive-container-content {
    display: none !important;
  }

  .orange-box {
    height: auto;
    padding-right: 0 !important;
    margin-right: 0;
    padding-bottom: 0;
  }

  .shift-up {
    margin-top: 0 !important;
  }

  .numbers {
    text-align: center;
  }

  .grey_box {
    text-align: center;
    height: auto;
  }

  .grey_box * {
    align-items: center;
    justify-content: center;
  }
}

/* Mobile header: one row, logo left, button right (the nav is hidden below 960px) */
@media only screen and (max-width: 960px) {

  header .wp-container-core-group-is-layout-951168c3 {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 0 !important;
  }

  header .wp-block-site-logo {
    flex: 0 1 auto;
    min-width: 0;
  }

  header .wp-block-site-logo .custom-logo {
    max-width: 160px;
  }

  header .wp-block-button__link {
    white-space: nowrap;
  }
}

@media only screen and (max-width: 415px) {

  header {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  header .wp-block-site-logo .custom-logo {
    max-width: 130px;
  }

  header .wp-block-button__link {
    font-size: 14px;
    padding: 10px 16px !important;
  }
}
