:root {
  --layout--max-width: 991px;

  --color--dark-gray: #303030;
  --color--gray: #494949;
  --color--light-gray: #F7F7F7;
  --color--green: #A5FAD9;
  --color--blue: #105EEA;
  --color--dark-blue: #0C43A7;
  --color--alert-red: #E41B1E;
  --color--alert-red-bg: rgba(228, 27, 30, 0.08);

  --section-padding-top: 45px;
  --section-padding-bottom: 55px;
  --section-padding-sides: 20px;
}

@media screen and (min-width: 1000px) {
  :root {
    --section-padding-top: 55px;
    --section-padding-bottom: 65px;
    --section-padding-sides: 40px;
  }
}

/* Reset */

*, *:before, *:after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: white;
}

img {
  max-width: 100%;
}

p {
  margin-bottom: 1.25em;
}

ul, ol {
  margin-left: 2em;
}

p a, p a:visited {
  color: var(--color--dark-gray);
  font-weight: 600;
}

p a:hover {
  color: var(--color--dark-gray);
}

.sr-only {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Typography */

html {
  color: var(--color--dark-gray);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px; /* 162.5% */
}

body.page-font-roboto,
body.page-font-roboto .button,
body.page-font button {
  font-family: "Roboto", sans-serif !important;
  letter-spacing: 0.5px;
}

body.page-font-opensans,
body.page-font-opensans .button,
body.page-font-opensans button {
  font-family: "Open Sans", sans-serif !important;
}

.body-style-2 {
  font-size: 1rem;
  line-height: 1.313rem;
}

.body-style-3 {
  font-size: 0.875rem;
  line-height: 1.125rem;
}

h1 {
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 35px; /* 116.667% */
  margin-bottom: 25px;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  margin-bottom: 25px;
}

h2.section-heading {
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 35px; /* 116.667% */
  margin-bottom: 25px;
}

h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}

strong {
  font-weight: 700;
}

.acf-error {
  border: 1px solid var(--color--gray);
  color: var(--color--dark-gray);
  max-width: 300px;
  margin: 40px auto;
  padding: 10px 16px;
  text-align: center;
}

@media screen and (min-width: 769px) {
  h2 {
    font-size: 21px;
  }

  h3 {
    font-size: 18px;
  }
}

/* Elements */

.divider {
  height: 0.25px;
  background: #DADADA;
  margin: 18px auto; /* Center the divider */
}

/* Primary button */
.button {
  background: var(--color--dark-gray);
  border-radius: 11px;
  border: 1px solid var(--color--dark-gray);
  color: white;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  padding: 16px 40px;
  text-decoration: none;
  transition: all .05s ease-in-out;
}

.button:hover,
.button:target,
.button:focus {
  background: black;
}

/* Secondary button */
.button.secondary {
  background: white;
  color: var(--color--dark-gray);
}

.button.secondary:hover,
.button.secondary:target,
.button.secondary:focus {
  background: var(--color--dark-gray);
  color: white;
}

.ez-toc-sticky {
  display: none !important;
}

/* Layout */

.page-content {
  padding: 0 0 80px;
}

.add-section-padding {
  padding-top: var(--section-padding-top); 
  padding-right: var(--section-padding-sides);
  padding-bottom: var(--section-padding-bottom);
  padding-left: var(--section-padding-sides);
}

/* SECTION: Page Hero */

.section-hero {
  background: var(--color--gray);
}

.hero-info {
  margin: 0 auto;
  max-width: 300px;
  padding: 67px 0 39px;
}

.hero-logo {
  max-width: 300px;
  margin-bottom: 40px;
} 

.hero-info h1, 
.hero-info p {
  color: white;
}

.hero-photo {
  max-height: 321px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-photo img {
  flex-shrink: 1;
  min-width: 100%;
  min-height: 100%;
  max-width: none;
  object-fit: cover;
}

@media screen and (min-width: 769px) {
  .section-hero {
    display: grid;
    grid-template-columns: 1fr 1.26fr;
    grid-auto-rows: 1fr;
    max-height: 624px;
    overflow: hidden;
  }

  .hero-info {
    padding-bottom: 55px;
  }

  .hero-photo {
    max-height: none;
  }
}

@media screen and (min-width: 1150px) {
  .hero-info h1,
  .hero-info p {
    width: 120%;
  }
}

/* SECTION: Program Details */

.section-program-details {
  margin: 0 auto;
  max-width: var(--layout--max-width);
  text-align: center;
}

.section-program-details ul,
.section-program-details ol {
  text-align: left;
}

/* SECTION: Enrollment */

.section-enrollment {
  background: var(--color--light-gray);
}

.enrollment-intro {
  margin: 0 auto 30px;
  max-width: 990px;
  text-align: center;
}

.enrollment-intro h1 {
  margin-bottom: 18px;
}
 
/* Card group */ 

.card-group {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: max-content;
  margin: 0 auto;
  max-width: 990px;
}

.card-group.num-of-cards-4,
.card-group.num-of-cards-5,
.card-group.num-of-cards-6 {
  row-gap: 30px
}

.card-group .card-wrapper {
  width: 100%;
  max-width: 372px;
  position: relative;
  justify-self: center;
}

.card-group .card {
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Plus symbol between sets */
.card-group .card-wrapper:before {
  content: "+";
  content: "+" / "";
  speak: none;
  display: block;
  position: relative;
  font-size: 40px;
  font-weight: bold;
  color: #444;
  margin: 25px; /* Increase spacing between plus signs */
  text-align: center;
}

@media screen and (min-width: 550px) {
  .card-group {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 634px;
  }

  .card-group.num-of-cards-4,
  .card-group.num-of-cards-5,
  .card-group.num-of-cards-6 {
    gap: 60px;
  }

  .card-group .card-wrapper {
    max-width: 280px;
    background: #FFF;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  }

  .card-group .card {
    box-shadow: none;
  }

  .card-wrapper:nth-child(odd):last-of-type {
    grid-column: 1 / span 2;
  }

  .card-group .card-wrapper:before {
    margin: 0;
    position: absolute;
    left: -48px;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 30px;
  }
  
}

@media screen and (min-width: 1024px) {
  .card-group {
    grid-template-columns: repeat(6, 1fr);
    gap: 80px;
    max-width: 1000px;
  }
  
  .card-wrapper:nth-child(odd):last-of-type {
    grid-column: span 2;
  }

  .card-wrapper {
    grid-column: span 2;
  }

  .card-group.num-of-cards-1 .card-wrapper {
    grid-column: span 6;
  }

  .card-group.num-of-cards-2 .card-wrapper:nth-child(1) {
    grid-column: span 3;
    justify-self: end;
  }

  .card-group.num-of-cards-2 .card-wrapper:nth-child(2) {
    grid-column: span 3;
    justify-self: start;
  }

  .card-group.num-of-cards-4 .card-wrapper:nth-child(2n + 1) {
    grid-column: span 3;
    justify-self: end;
  }
  .card-group.num-of-cards-4 .card-wrapper:nth-child(2n) {
    grid-column: span 3;
    justify-self: start;
  }

  .card-group.num-of-cards-5 .card-wrapper:nth-child(4) {
    grid-column: span 3;
    justify-self: end;
  }

  .card-group.num-of-cards-5 .card-wrapper:nth-child(5) {
    grid-column: span 3;
    justify-self: start;
  }

  .card-group .card-wrapper:before {
    left: -54px;
  }
}

.card-group .card-wrapper:first-of-type:before,
.card-group.num-of-cards-4 .card-wrapper:before,
.card-group.num-of-cards-5 .card-wrapper:before,
.card-group.num-of-cards-6 .card-wrapper:before  {
  display: none;
  content: "";
}

.card-group .card {
  background: var(--color--green);
  margin: 0;
  border-radius: 20px;
  font-size: 18px; 
  font-style: normal; 
  font-weight: 500; 
  line-height: normal; 
  text-align: left; 
}

.card-group .enrollment-credit {
  padding: 15px 20px 8px;
}

.card-group .enrollment-credit p {
  font-size: 16px;
  margin: 0;
}

.page-font-opensans .card-group .enrollment-credit p {
  font-weight: 600;
}

.card-group .enrollment-credit strong {
  font-size: 24px;
  font-weight: 700;
  padding-right: .5px;
}

.page-font-opensans .card-group .enrollment-credit strong {
  font-weight: 600;
}


.card-group .inner-card {
  background: #FFF;
  width: 100%;
  border-radius: 20px;
  padding: 21px 20px;
  text-align: center;
  transform: translateY(2px);
}

.card-group .card-icon {
  width: 64px; 
  height: 64px; 
  display: block; 
  margin-left: 0;
}

.card-group .card-title {
  color: #323232; 
  font-size: 21px; 
  font-style: normal; 
  font-weight: 700; 
  line-height: 24px; 
  text-align: left; 
  margin: 20px 0 14px;
}

.card-group .card-details {
  margin-top: 7px;
}

.card-group .card-details p {
  color: #323232; 
  font-size: 16px; 
  font-style: normal; 
  font-weight: 400; 
  line-height: 21px; 
  text-align: left; 
}

.card-group .enroll-links {
  text-align: left; 
  margin-top: 10px;
}

.card-group .enroll-links h4 {
  color: #323232; 
  font-size: 16px; 
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 150% */
  margin-bottom: 9px;
}

.card-group .enroll-links ul {
  list-style-type: none;
  margin: 0;
}

.card-group .enroll-links li {
  transform: translateX(-5px); /*compensate for click padding */
  margin-bottom: 5px;
}

.card-group .enroll-link {
  background: none;
  border: 0;
  color: var(--color--blue); /* Default color */
  cursor: pointer;
  display: inline-block;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 21px;
  padding: 6px 5px; /* Provide big click area */
  text-align: left;
  text-decoration: none;
}

.card-group .enroll-link:hover {
  color: var(--color--dark-blue); /* Hover color */
  text-decoration: underline;
}

/* SECTION: FAQs */

.section-faq > h2,
.section-faq .faq-text  {
  max-width: var(--layout--max-width);
  margin: 0 auto;
  text-align: center;
}

/* FAQ Accordion */

.faq-accordion {
  margin: 50px auto 0;
  max-width: 1115px;
}

.faq-accordion:first-child {
  margin-top: 0;
}

.faq-accordion > h2 {
  margin-bottom: 30px;
  text-align: center;
}

.accordion .accordion-title {
  background: var(--color--light-gray);
  cursor: pointer;
  display: flex;
  list-style-type: none;
  margin-bottom: 3px;
  padding: 18px 26px;
}

.accordion .accordion-title::-webkit-details-marker {
  display:none;
}

.accordion .accordion-title h3 {
  margin-right: auto;
  font-weight: 700;
}

.accordion .accordion-content {
  padding: 18px 26px 40px;
}

/* icon container  */
.accordion details .accordion-icon {
  position: relative;
  width: 26px;
  height: 26px;
  cursor: pointer;
  transition: all .5s ease-in-out;
}

.accordion-icon:after {
  transform: rotate(90deg);
}

/* both icons */
.accordion details .accordion-icon:before,
.accordion details .accordion-icon:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 26px;
  height: 26px;
  transition: all .5s ease-in-out;
}

/* plus icon */
.accordion details .accordion-icon:before {
  background-image: url('svg/accordion-open.svg');
  opacity: 1;
  transform: rotate(0deg);
}

.accordion details.open .accordion-icon:before {
  opacity: 0;
  transform: rotate(90deg);
}

/* minus icon */
.accordion details .accordion-icon:after {
  background-image: url('svg/accordion-close.svg');
  opacity: 0;
  transform: rotate(-90deg);
}

.accordion details.open .accordion-icon:after {
  opacity: 1;
  transform: rotate(0);
}


/* Custom footer */

.custom-footer {
  background-color: #303030;
  color: white;
  font-size: 16px;
  line-height: 26px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 200;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.footer-left {
  transform: translateX(-9px);
  flex: 1;
}

.footer-right {
  flex: 1;
  text-align: right;
  transform: translateX(9px);
}

.footer-link {
  color: white !important;
  text-decoration: none;
  position: relative;
  padding: 3px 9px;
  text-underline-offset: 3px;
}

.footer-link:after {
  position: absolute;
  display: inline-block;
  content: "|";
  right: 0;
}

.footer-link:last-of-type:after {
  display: none;
  content: "";
}

.footer-link:hover {
  text-decoration: underline;
}

@media (max-width: 850px) {
  .custom-footer {
    font-size: 14px;
    height: auto;
    flex-direction: column;
    padding: 20px;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .footer-left {
    margin-bottom: 10px;
  }

  .footer-right {
    text-align: left;
    margin-top: 0;
    transform: translateX(-9px);
  }
}

/* Enrollment dialog modal */

.enrollment-dialog {
  border: 0;
  box-shadow: 0px 10px 20px 0px rgba(0, 0, 0, 0.30);
  color: #303030;
  max-width: 730px;
  width: 90%;
  margin: 5vh auto 0;
  padding: 30px 28px;
}

.enrollment-dialog h1 {
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 35px; /* 145.833% */
  margin-bottom: 5px;
  padding-right: 15px;
}

.enrollment-dialog p {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px; /* 162.5% */
}

.enrollment-dialog > p {
  padding-right: 15px;
}

.enrollment-dialog .close-button {
  position: absolute;
  border: 0;
  top: 16px;
  right: 13px;
  background: white;
  cursor: pointer;
}

.enrollment-dialog.oauth .divider {
  margin: 23px 0 35px;
}

.enrollment-dialog .dialog-options {
  display: flex;
  gap: 10px;
  justify-content: right;
}

.enrollment-dialog .dialog-cards {
  display: grid;
  gap: 23px;
  grid-template-columns: 1fr;
}

.enrollment-dialog .dialog-card {
  background: #FFF;
  border-radius: 11px;
  box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.20);
  max-width: 320px;
  margin: 0 auto;
  padding: 30px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.enrollment-dialog .dialog-card h2 {
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 13px;
}

.enrollment-dialog.oauth .dialog-card h2 {
  letter-spacing: -.02em;
}

.enrollment-dialog.oauth .button {
  align-self: center;
  margin-top: auto;
}

.enrollment-dialog::backdrop {
  background: black;
  opacity: 0.4;
}

@media screen and (min-width: 550px) {
  .enrollment-dialog {
    margin-top: 10vh;
  }

  .enrollment-dialog .dialog-cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* Thermostat warning modal */
.therm-warning {
  max-width: 624px;
  padding: 21px 31px 40px;
}

.therm-warning p {
  margin-bottom: 27px;
}

.therm-warning .divider {
  margin-bottom: 22px;
}

/* Thermostat app check modal */
.therm-app {
  max-width: 617px;
  padding: 31px 36px 48px;
}

.therm-app fieldset {
  border: 0;
}

.therm-app legend {
  margin-bottom: 36px;
}

.therm-app .modal-options {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  margin-bottom: 37px;
  gap: 8px;
}

@media screen and (min-width: 560px) {
  .therm-app .modal-options {
    gap: 19px;
  }
}

.therm-app label.modal-option {
  border: 3px solid #CCC;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  width: 170px;
  height: 170px;
  display: block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 72px 72px;
}

.therm-app .modal-option.firstalert {
  background-image: url(img/icon_hh_firstalert.png);
}
.therm-app .modal-option.resideo {
  background-image: url(img/icon_hh_resideo.png);
}
.therm-app .modal-option.tcc {
  background-image: url(img/icon_hh_tcc.png);
}

.therm-app label.modal-option:has(input:checked) {
  border: 3px solid #1E70FF;
}

.therm-app label.modal-option:has(input:focus-visible) {
  border: 3px solid #1E70FF;
  box-shadow: 0px 0px 2px 2px #1E70FF66;
}

/* Hide the default radio */
.therm-app .modal-option input {
  cursor: pointer;
  height: 0;
  opacity: 0;
  position: absolute;
  width: 0;
}

/* Create custom checkbox */
.therm-app .modal-option .modal-checkbox {
  background-image: url(svg/radio-empty.svg);
  background-repeat: no-repeat;
  position: absolute;
  top: 11px;
  left: 14px;
  height: 26px;
  width: 26px;
}

.therm-app label.modal-option:has(input:checked) .modal-checkbox {
  background-image: url(svg/radio.svg);
}

.therm-app .modal-option .modal-label {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
}

.therm-app .divider {
  margin-bottom: 26px;
  margin-top: 0;
}

.therm-app .validation-alert span {
  background: var(--color--alert-red-bg);
  color: var(--color--alert-red);
  display: block;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 18px; /* 128.571% */
  letter-spacing: 0.07px;
  padding: 12px 12px 12px 42px;
  margin-top: -23px;
  margin-bottom: 12px;
  position: relative;
}

.therm-app .validation-alert span:before {
  background-image: url('svg/icon-warning.svg');
  content: "" / "";
  display: inline-block;
  width: 22px;
  height: 22px;
  position: absolute;
  left: 12px;
  top: 9px;
}

.therm-app .validation-alert span.hidden {
  display: none;
}

