/*
Theme Name: New Mexico TAG
Author: Eastern Research Group
Author URI: https://www.erg.com
Description: Template created for New Mexico DFA TAG
Version: 1.0.0
*/

@import url("https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap");

body {
  margin: 0;
  font-family: "Source Sans Pro", Arial, sans-serif;
  background: #f8f9fa;
  color: #222;
  font-size: 18px;
  line-height: 1.5;
}

h2 {
  font-size: 32px;
  color: #0f4d4c;
}
h3 {
  font-size: 24px;
}
hr {
  width: 200px;
  height: 3px;
  background-color: #be511e;
  border: none;
  margin: 0.5rem auto;
  display: block;
}

.header {
  max-width: 1440px;
  background: #0f4d4c;
  color: #fff;
  padding: 1rem;
  text-align: center;
}
.container {
  max-width: 1440px;
  margin: 0 auto;
  background: #fff;
}
.footer {
  background: #0f4d4c;
  color: #fff;
  padding: 0;
  width: 100%;
  max-width: 1440px;
}

.grid-row {
  display: flex;
  position: relative;
}
.grid-col {
  flex: 0 1 auto;
}
.grid-col-2 {
  width: 16.6666666667%;
}
.grid-col-4 {
  width: 33.3333333333%;
}
.grid-col-5 {
  width: 41.6666666667%;
}
.grid-col-6 {
  width: 50%;
}
.grid-col-7 {
  width: 58.3333333333%;
}
.grid-col-8 {
  width: 66.6666666667%;
}
.grid-col-9 {
  width: 75%;
}
.grid-col-10 {
  width: 83.3333333333%;
}
.grid-col-12 {
  width: 100%;
}
.centered {
  text-align: center;
}
.intro {
  padding: 0 2rem;
}
.intro h1 {
  font-size: 46px;
  font-weight: 600;
  margin: 0;
}
.intro a {
  color: #fff !important;
}
.feature-container {
  padding: 1rem;
  background: url("assets/images/home-bg.jpg") no-repeat center center;
  background-size: cover;
  min-height: 500px;
  position: relative;
}
.howto {
  font-weight: 700;
  font-size: 32px;
  color: #fff;
  margin: 0;
  position: absolute;
  top: 2rem;
  left: 2rem;
  line-height: 1.2;
  background: #b13b23;
  padding: 5px 10px;
}
.video {
  margin-top: 120px;
  text-align: center;
}
.videoContainer {
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  max-width: 560px;
}
.video iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

a.button,
button.button,
.main-content input.acf-button {
  cursor: pointer;
  display: inline-block;
  font-size: 26px;
  padding: 0.5rem 5rem;
  font-weight: 700;
  text-decoration: none;
}
a.button.outline {
  border: 5px solid #fff;
  background: none;
  left: 50%;
  position: absolute;
  bottom: 2rem;
  transform: translateX(-50%);
  color: #fff;
}
a.button.default,
button.button.default,
.main-content input.acf-button {
  border: 5px solid #be511e;
  background-color: #be511e;
  color: #fff;
}
a.button.grey,
button.button.grey {
  border: 5px solid #777777;
  background-color: #777777;
  color: #fff;
  padding: 0.5rem 2rem;
}

.usa-fieldset {
  border: 0;
  margin: 0 0 2rem;
  padding: 0;
}
input[type="checkbox"] {
  background-color: initial;
  cursor: default;
  appearance: auto;
  box-sizing: border-box;
  margin: 3px 3px 3px 4px;
  padding: initial;
  border: initial;
}
.usa-checkbox__input {
  position: absolute;
  left: -999em;
  right: auto;
}
.usa-checkbox__input:checked + [class*="__label"]::before {
  background-position: center center;
  background-size: 0.75rem auto;
  background-color: #005ea2;
  box-shadow: 0 0 0 2px #005ea2;
  background-image: url("assets/images/correct.svg"),
    linear-gradient(transparent, transparent);
  background-repeat: no-repeat;
}
.usa-checkbox__label {
  font-size: 1.06rem;
  line-height: 1.3;
  cursor: pointer;
  display: inline-block;
  font-weight: 400;
  margin-top: 0.75rem;
  padding-left: 2rem;
  position: relative;
  color: #1b1b1b;
}
.usa-checkbox__label::before {
  content: " ";
  display: block;
  left: 0;
  margin-left: 2px;
  margin-top: 0.064rem;
  position: absolute;
  height: 1.25rem;
  width: 1.25rem;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 2px #1b1b1b;
}

.resource {
  padding: 2rem;
}
.submit-resource {
  background: #e8eae9;
}
.resource h2 {
  text-align: center;
  margin: 0;
}
.icon {
  display: block;
  width: 125px;
  height: 125px;
  background: url("assets/images/icons.png") no-repeat 0 11px;
  margin: 1rem auto;
}
.icon.submit {
  background-position: 0 -146px;
}

.company-info .grid {
  padding: 1rem 2rem;
}
.footer .company-info h2 {
  color: #fff;
}
.footer .company-info a {
  color: #fff;
}
ul.footer-links {
  list-style: none;
  padding: 1rem;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: #fff;
}
.social-links {
  text-align: center;
  margin: 0;
  background: #188f91;
}
.social-icon {
  display: inline-block;
  width: 66px;
  height: 66px;
  margin: 1rem;
  background: url("assets/images/icons.png") no-repeat 0 -292px;
}
.social-icon.x {
  background-position: -80px -292px;
}
.social-icon.instagram {
  background-position: -157px -292px;
}
.social-icon.linkedin {
  background-position: -237px -292px;
}
.copyright {
  background: #e8eae9;
  padding: 0 2rem;
}
.copyright p {
  margin: 0;
  padding: 1rem 0;
  color: #000;
}

.block {
  background-color: #e8eae9;
  margin: 1rem 1rem 0 0;
  padding: 1rem;
}

/* Submit Resource */
.acf-required {
  color: #cf0000 !important;
}
.main-content ul.acf-checkbox-list li {
  font-size: 18px;
}
.main-content .acf-form-submit {
  margin-top: 20px;
  text-align: center;
}
/* End Submit Resource */

/* Assisted Search form */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

.buttons {
  margin-top: 20px;
}

.buttons button {
  margin-right: 20px;
}

fieldset {
  border: none;
}
.form-step fieldset legend{
  display: none;
}

input {
  padding: 8px;
  margin: 10px;
}

#noSector,
#water,
#broadband,
#transportation,
#energy,
#general {
  display: none;
}

#sub-sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

#sub-sectors fieldset {
  flex: 1 1 calc(50% - 1rem);
  /* 2 columns with gap accounted for */
  box-sizing: border-box;
  min-width: 250px;
  /* optional: prevent too-narrow fields */
  padding: 0 1rem 1rem 1rem;
  border-radius: 6px;
}
/* End Assisted Search form */

/* Search Results */
.results-top {
  margin: 18px 0;
}
.results-top .facetwp-facet {
  margin-bottom: 0;
}
.results-top .facetwp-facet-sort_ {
  text-align: right;
}
.results-top a.printResources {
  background: #be511e;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  padding: 0.5rem 3rem;
  text-decoration: none;
}
.results-top .facetwp-facet-sort_ select {
  font-size: 16px;
}
.results-top p {
  margin: 0;
}
.facetwp-facet input.facetwp-search {
  min-width: 100px !important;
}
.facetwp-template a {
  color: #c8371f;
}
.facetwp-template a:hover {
  color: #ab2711;
}
.facetwp-template h3 {
  margin-top: 0;
}
.facetwp-facet-pager_ {
  margin: 20px 0 0 0;
  text-align: center;
}
/* End Search Results */

@media (max-width: 900px) {
  .container {
    max-width: 100%;
  }
  .grid-row {
    display: block;
  }
  .grid-col-2 {
    margin: auto;
  }
  .grid-col-4,
  .grid-col-5,
  .grid-col-6,
  .grid-col-7,
  .grid-col-8,
  .grid-col-9,
  .grid-col-10 {
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .header,
  .footer {
    padding: 0;
    font-size: 1rem;
  }
  .company-info .grid-col-6 {
    padding: 0;
  }
  .company-info .grid-col-6 p {
    padding: 1rem;
  }
  .block {
    margin-right: 0;
  }
  .intro {
    padding: 2rem;
  }

  #sub-sectors fieldset {
    flex: 1 1 100%;
  }
}

@media print {
  .wpcs_tab {
    display: none;
  }

  .header .grid-col-2 a {
    display: none;
  }
  .intro h1 {
    font-size: 22px !important;
    margin: 0;
  }

  .resource {
    padding-bottom: 30px;
  }
  .wp-block-post-title {
    font-size: 18px !important;
  }
  .resultCount .facetwp-facet {
    margin: 0;
  }
  .centerCol {
    display: none;
  }
  .sortResults {
    display: none;
  }
  .fwpl-layout {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  .fwpl-result {
    background: none !important;
    border: 2px solid #000;
    border-width: 0 0 2px 0;
    padding: 0 0 30px 0 !important;
  }
  .fwpl-result h3 {
    margin-bottom: 5px;
  }
  .fwpl-result a[href]::after {
    content: "\A("attr(href) ")";
    font-size: 16px;
    text-decoration: none;
    white-space: pre-wrap;
    word-break: break-all;
  }

  .newSearch {
    display: none;
  }

  .footer {
    display: none;
  }
}
