/*
 * Client portal theme: blue top bar, hero banner, colored front boxes.
 * Loaded after theme.css and overrides it.
 */
:root {
  --lsb-blue: #0473aa;
  --lsb-blue-dark: #035a86;
  --lsb-green: #4caf50;
  --lsb-green-dark: #3d8b40;
  --lsb-grey: #f5f5f5;
  --lsb-text: #2d3742;
  --lsb-wrap: 1170px;
}

/* Layout: sticky footer, full-width page */
html, body.lsb-theme {
  min-height: 100%;
}
body.lsb-theme {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: #fff;
  color: var(--lsb-text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
}
.lsb-theme #container {
  flex: 1 0 auto;
  width: auto;
  margin: 0;
  background: transparent;
  box-shadow: none;
}
.lsb-theme .wrap,
.lsb-theme #header,
.lsb-theme #content {
  max-width: var(--lsb-wrap);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}
.lsb-theme #content {
  padding-top: 0;
  padding-bottom: 40px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* Top bar */
.topbar {
  background: var(--lsb-blue);
  border-bottom: 1px solid var(--lsb-blue);
  color: #fff;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 40px;
}
.topbar .welcome-user {
  font-weight: bold;
  font-size: 14px;
  color: #fff;
}
.topbar .head-menu {
  display: flex;
  align-items: center;
  margin: 0 0 0 auto;
  padding: 0;
  list-style: none;
}
.topbar .head-menu li {
  margin: 0;
  padding: 0;
}
.topbar .head-menu a {
  display: block;
  padding: 10px 12px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}
.topbar .head-menu a:hover {
  text-decoration: underline;
}
.topbar .head-menu li.lang a.flag {
  display: inline-block;
  padding: 0;
  margin-right: 7px;
}
.topbar .head-menu li.lang a.flag:hover {
  background-color: transparent;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Logo row */
.lsb-theme #header {
  height: auto;
  padding-top: 10px;
  padding-bottom: 8px;
}
.lsb-theme #header #logo img {
  max-width: 200px;
  max-height: 70px;
}

/* Headings */
.lsb-theme #content h1 {
  background-color: var(--lsb-grey);
  padding: 5px 0 5px 10px;
  font-size: 26px;
  font-weight: normal;
  color: var(--lsb-blue);
}

/* Buttons */
.lsb-theme .button,
.lsb-theme input[type=submit],
.lsb-theme input[type=button],
.lsb-theme input[type=reset] {
  display: inline-block;
  padding: 7px 16px;
  height: auto;
  line-height: 1.4;
  border: 1px solid var(--lsb-blue);
  border-radius: 4px;
  background: var(--lsb-blue);
  color: #fff;
  font-size: 14px;
  text-shadow: none;
  box-shadow: none;
  cursor: pointer;
}
.lsb-theme .button:hover,
.lsb-theme input[type=submit]:hover,
.lsb-theme input[type=button]:hover {
  background: var(--lsb-blue-dark);
  border-color: var(--lsb-blue-dark);
  color: #fff;
  text-decoration: none;
}
.lsb-theme .blue.button,
.lsb-theme .blue.button:visited {
  background: var(--lsb-blue);
  border-color: var(--lsb-blue);
}
.lsb-theme .blue.button:hover {
  background: var(--lsb-blue-dark);
  border-color: var(--lsb-blue-dark);
}
.lsb-theme .green.button,
.lsb-theme .green.button:visited {
  background: var(--lsb-green);
  border-color: var(--lsb-green);
}
.lsb-theme .green.button:hover {
  background: var(--lsb-green-dark);
  border-color: var(--lsb-green-dark);
}
.lsb-theme input[type=reset],
.lsb-theme input[type=button][value="Cancel"] {
  background: #fff;
  border-color: #ccc;
  color: var(--lsb-text);
}

/* Form controls */
.lsb-theme input[type=text],
.lsb-theme input[type=email],
.lsb-theme input[type=password],
.lsb-theme input[type=tel],
.lsb-theme select,
.lsb-theme textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 14px;
  box-sizing: border-box;
}
.lsb-theme input:focus,
.lsb-theme select:focus,
.lsb-theme textarea:focus {
  border-color: var(--lsb-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(4, 115, 170, .15);
}

/* Landing: hero banner (full width) */
#landing_page .hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 0;
  aspect-ratio: 1920 / 378;
  display: flex;
  align-items: center;
  background: url('../images/support.jpg') center / cover no-repeat #8a9198;
  color: #fff;
}
#landing_page .hero-text {
  width: 64%;
  max-width: 960px;
  margin: 0 0 0 13%;
  padding: 20px 15px;
  box-sizing: border-box;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}
#landing_page .hero h1,
#landing_page .hero h2,
#landing_page .hero h3,
#landing_page .hero h4 {
  margin: 0 0 12px;
  padding: 0;
  background: none;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}
#landing_page .hero p,
#landing_page .hero span {
  color: #fff !important;
  font-size: 14px;
  line-height: 1.45;
}

#landing_page .search-form {
  padding-top: 25px;
}
#landing_page .search-form form {
  display: flex;
}
#landing_page .search-form .search {
  flex: 1;
  width: auto;
  height: 40px;
  border-radius: 0;
}
#landing_page .search-form .button {
  border-radius: 0;
  font-weight: bold;
}

/* Landing: front boxes */
.front-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}
.front-box {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--lsb-box);
  --lsb-box: var(--lsb-blue);
}
.front-box.green {
  --lsb-box: var(--lsb-green);
}
.front-box .corner {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-top: 120px solid var(--lsb-box);
  border-right: 120px solid transparent;
}
.front-box .corner img {
  position: absolute;
  top: -120px;
  left: 3px;
  width: 65px;
}
.front-box .box-body {
  padding: 25px 25px 30px 85px;
  text-align: center;
}
.front-box .box-body h2 {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 500;
  color: var(--lsb-blue);
}
.front-box .box-body p {
  margin: 0 0 20px;
  line-height: 1.5;
}

/* Ticket list header */
#ticketTable thead th,
#ticketTable thead td {
  background: var(--lsb-blue);
  color: #fff;
}
#ticketTable thead a {
  color: #fff;
}

/* Footer */
.lsb-theme #footer {
  flex-shrink: 0;
  background: var(--lsb-blue);
  color: #fff;
  text-align: center;
  font-size: 11px;
}
.lsb-theme #footer p {
  margin: 0;
  padding: 9px 0;
}

/* Mobile */
@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }
  .topbar .welcome-user {
    padding: 10px 0;
  }
  .topbar .head-menu {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 8px;
  }
  .topbar .head-menu.open {
    display: flex;
  }
  .topbar .head-menu li.lang {
    display: inline-block;
    padding: 8px 12px 0;
  }
  #landing_page .hero {
    aspect-ratio: auto;
    min-height: 250px;
  }
  #landing_page .hero-text {
    width: auto;
    margin: 0 3%;
  }
  #landing_page .hero h1,
  #landing_page .hero h2,
  #landing_page .hero h3,
  #landing_page .hero h4 {
    font-size: 18px;
  }
  #landing_page .hero p,
  #landing_page .hero span {
    font-size: 13px;
  }
  .front-boxes {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
