/* All screen sizes */

/****************************************
* Root variables
****************************************/

:root {
  --fni-font-1: 'Roboto';

  --fni-color-1: #F8F3A5; /* yellow */
  --fni-color-2: #addd6a; /* light green */
  --fni-color-3: #329F41; /* medium green */
  --fni-color-4: #3C170B; /* brown */

  --fni-nav-toggle-color: #F8F3A5;
}

/****************************************
* Boilerplate override
****************************************/

[type="radio"] + label::before,
[type="checkbox"] + label::before {
  top: 3px;
}

/****************************************
* Body
****************************************/

body.overlay-on {
  overflow: hidden;
}

/****************************************
* Typography
****************************************/

h1 {
  font: normal 400 20px/1em var(--fni-font-1);
  color: #FFFFFF;
  letter-spacing: 5px;
  text-transform: uppercase;
}

h1 span {
  font-weight: 400;
}

h2 {
  font: normal 300 28px/1.3em var(--fni-font-1);
  color: var(--fni-color-4);
}

h3 {
  font: normal 600 20px/1em var(--fni-font-1);
  color: var(--fni-color-3);
  text-transform: uppercase;
}

h4 {
  font: normal 200 32px/1em var(--fni-font-1);
  color: var(--fni-color-4);
  text-transform: uppercase;
}

h5 {
  font: normal 300 12px/1em var(--fni-font-1);
  color: #aec3cb;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: .75rem 0 .4rem 0;
}

hr {
  border-top: 1px solid #d3e0e5;
}

.icon svg {
  width: 30px;
  height: 30px;
  fill: var(--fni-color-3);
  margin-right: 1rem;
}

.icon svg:hover {
  fill: var(--fni-color-2);
}

h1 + h2,
h1 + p,
h2 + ul,
h3 + h3,
h3 + a.button,
h3 + .icons,
p + h2,
p + h3,
p + a.button,
p + form,
p + .accordion,
ul + h2,
ul + h3,
ul + blockquote,
ul + .accordion,
blockquote + .accordion,
blockquote + h3,
blockquote + p,
fieldset + h3,
label + h3,
form + h3,
img + h2,
input + h3,
.grid + h2,
.grid + h3,
.grid + .grid,
.grid + .accent-3,
.flex + h2,
.flex + h3,
.red + fieldset,
.accent-3 + p,
.accent-3 + h3,
.accent-3 + .grid,
.accent-3 + fieldset,
.attachment + h3,
.cc-inputs + .flex,
#ach-payment + h3,
.visible--desktop > h3,
.video + h3,
.disclaimer + h3 {
  margin-top: 2rem;
}

h2 + p,
h2 + form,
h2 + .grid,
h2 + label,
h2 + fieldset,
h3 + p,
h3 + ul,
h3 + form,
h3 + .flex,
h3 + .grid,
h3 + label,
h3 + fieldset,
h3 + .cc-inputs,
h3 + .styled-select,
h3 + [type="checkbox"] + label,
p + p,
p + ul,
p + ol,
p + fieldset,
p + blockquote,
p + .grid,
p + .flex,
li + ul,
img + p,
label + label,
input + .grid,
form .grid + .flex,
fieldset + .cc-inputs,
blockquote + blockquote,
.grid + label,
.grid + fieldset,
.address + fieldset,
[type="checkbox"] + label + .grid,
[type="checkbox"] ~ [type="checkbox"] + label {
  margin-top: 1rem;
}

fieldset label + p,
fieldset legend + p {
  margin: .5rem 0 .5rem 1rem;
}

h2 + h3,
li + li,
legend + [type="radio"] + label {
  margin-top: .5rem;
}

#cdcp-to-cna-alert {
  margin: 1rem 0;
}

p,
li,
label,
legend {
  font: normal 400 16px/1.3em var(--fni-font-1);
  color: #595959;
}

.subtitle {
  margin: .5rem 0 1rem 0;
  font-size: 14px;
  font-style: italic;
}

.small {
  font-size: 14px;
  font-style: italic;
  line-height: 1.2em;
}

strong {
  color: #000000;
}

.highlight {
  background-color: #f8f3a569;
  padding: .5rem 1rem;
}

.disclaimer {
  font-size: 14px;
  color: #aec3cb;
}

.red {
  color: #dd0000;
}

a {
  color: var(--fni-color-3);
  text-decoration: none;
}

a:hover {
  color: var(--fni-color-2);
}

.bulleted {
  margin: 1rem 0 1rem .5rem;
}

.max-width {
  max-width: 1000px;
}

/****************************************
* Accents
****************************************/

.accent-1 {
  background-color: #f5f7f6;
}

.accent-2 {
  background-color: rgba(173, 221, 106, .9);
}

.accent-3 {
  background-color: #f5f7f6;
  padding: 2rem;
}

.accent-4 {
  background-color: var(--fni-color-3);
}

.intro {
  background: #f5f7f6 url('/images/layout/intro-background.png');
}

.intro h2 {
  font-size: 20px;
}

.ladder {
  grid-template-columns: 116px 1fr;
  padding-top: 2rem;
}

.ladder div:nth-child(odd) {
  padding-right: 1rem;
}

.ladder div:nth-child(even) {
  padding-left: 1rem;
  border-left: 1px solid #d3e0e5;
}

.divider {
  border-bottom: 1px solid #d3e0e5;
}

/****************************************
* Icons
****************************************/

.icons {
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  justify-content: center;
  text-align: center;
}

.icons > div {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #d3e0e5;
}

.icons > div > div {
  padding: 1rem 0;
}

.icons p {
  font-size: 15px;
}

/****************************************
* Blockquote
****************************************/

blockquote {
  position: relative;
  margin: 0;
  padding: 2rem 2rem 2rem 5rem;
  background-color: #f8f3a569;
}

blockquote::before {
  content: '\201C';
  position: absolute;
  top: 0;
  left: 0;
  font-family: 'Times New Roman';
  font-size: 100px;
  line-height: 80px;
  color: #FFFFFF;
  padding: 2rem .5rem .5rem .5rem;
  background-color: var(--fni-color-2);
  height: 100%;
}

blockquote::after {
  content: '';
  position: absolute;
  top: 0;
  left: 60px;
  background-color: var(--fni-color-2);
  width: 3px;
  height: 100%;
}

blockquote p {
  font-style: italic;
  color: #000000;
}

blockquote .author {
  font-style: normal;
  font-size: 14px;
}

/****************************************
* Header
****************************************/

header {
  position: relative;
  background-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(60,60,60,1), rgba(0,0,0,1));
  min-height: 70px; /* prevents header height from shifting while logo is loading */
  padding: .5rem 4rem .5rem 1rem;
}

header .flex {
  flex-direction: column;
  justify-content: center;
}

header .logo img {
  width: 100%;
  max-width: 250px;
}

/****************************************
* Navigation
****************************************/

.nav-toggle,
.nav-toggle svg {
  top: 8px;
  right: 5px;
  height: 55px;
  width: 55px;
}

nav {
  position: absolute;
  top: 70px;
  right: 0;
  z-index: 999;
  box-shadow: 0 10px 10px rgba(0, 0, 0, .5);
  background-color: #ffffff;
  width: 100%;
  height: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease-in;
}

nav.on {
  height: auto;
  max-height: calc(100vh - 70px);
  overflow-y: scroll;
}

nav ul {
  margin: 0.5rem 0 0 0;
  padding: 1rem;
}

nav li {
  display: flex;
  justify-content: center;
  margin: 0;
  width: 100%;
  padding: 0;
  text-align: center;
}

nav li:last-of-type {
  margin-bottom: 0;
}

nav li svg {
  width: 25px;
  height: 25px;
  fill: #ffffff;
}

nav a {
  background-color: #ffffff;
  color: var(--fni-color);
}

nav a,
nav a.button {
  width: 100%;
  padding: .5rem 0;
  font: normal normal 16px/1em var(--fni-font-1);
}

nav a.button {
  display: inline-block;
  margin: 1rem auto 0 auto;
  width: auto;
  padding: 1rem;
  font-size: 13px;
}

.nav-bar {
  margin-top: 1rem;
}

.nav-bar ul {
  margin: 0;
  background-color: var(--fni-color-2);
  padding: 1.5rem 0;
}

.nav-bar a {
  position: relative;
  background-color: transparent;
  padding: 1rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #000000;
}

.nav-bar a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, .2);
  width: 50px;
  height: 1px;
}

.nav-bar a:hover {
  color: #000000;
}

.nav-bar li:last-of-type a::before {
  display: none;
}

/****************************************
* Container
****************************************/

.container {
  position: relative;
  margin: 0 auto;
  max-width: 1600px;
}

/****************************************
* Buttons
****************************************/

.button {
  background-color: var(--fni-color-3);
  border-radius: 0;
  padding: 1rem;
  font: normal bold 16px/1em var(--fni-font-1);
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
}

.button:focus,
.button:hover,
.button:disabled {
  background-color: var(--fni-color-2);
  color: #000000;
}

.button.secondary {
  margin: 0 -1rem;
  background-color: var(--fni-color-1);
  padding: 1.15rem; /* Needs to be at least 48px tall for ADA compliance on mobile */
  font-weight: normal;
  font-size: 14px;
  color: #000000;
}

.button.secondary:focus,
.button.secondary:hover,
.button.secondary:disabled {
  background-color: var(--fni-color-2);
}

.button.cancel {
  background-color: #959595;
  color: #ffffff;
}

.button.cancel:focus,
.button.cancel:hover {
  background-color: #111111;
}

.button.delete {
  background-color: #9f3232;
  color: #ffffff;
}

.button.delete:focus,
.button.delete:hover {
  background-color: #853030;
}

button.upload-button {
  background-color: var(--fni-color-3);
}

.icon-button {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background-color: transparent;
  padding: 1rem;
  line-height: 1.3em;
}

.icon-button:hover {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 1);
  background-color: #FFFFFF;
  color: var(--fni-color-3);
  padding: 1rem;
}

.icon-button svg {
  flex: 0 0 20px;
  margin-right: .5rem;
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.icon-button:hover svg {
  fill: var(--fni-color-3);
}

/****************************************
* Billboard
****************************************/

.billboard #billboard-slider,
.billboard .slip-n-slide {
  height: calc(600px + (555 - 600) * (100vw - 320px) / (576 - 320));
  max-height: 100vh;
}

.billboard .slip-n-slide.cover > .slide {
  background-color: #e8e7ef;
  background-size: 1737px;
  background-position-x: calc(-1024px + (-800 - -1024) * (100vw - 320px) / (767 - 320));
  background-position-y: calc(55px + (0 - 55) * (100vw - 320px) / (576 - 320));
}

.billboard #billboard-slider .slide {
  visibility: hidden;
  height: 100%;
}

.billboard .slide .content {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.billboard .slip-n-slide.pagination .control {
  background-color: rgba(255, 255, 255, .5);
  padding: 0;
}

.billboard h1 {
  font: normal 300 25px/1.3em var(--fni-font-1);
  color: var(--fni-color-4);
  letter-spacing: 0;
  text-transform: none;
}

.billboard a {
  display: inline-block;
  margin-top: 1rem;
}

/****************************************
* Inside billboard
****************************************/

.inside-billboard {
  background: var(--fni-color-2) url('/images/layout/inside-billboard.png');
  text-align: center;
}

/****************************************
* Poster
****************************************/

.poster {
  position: relative;
}

.poster img {
  width: 100%;
}

.poster .box {
  position: relative;
  z-index: 1;
  margin: -5rem 2rem 2rem 2rem;
  padding: 1rem;
}

@media(min-width: 440px) {
  .poster .box {
    margin-top: -55px;
  }
}

/****************************************
* Latest Post
****************************************/

.social-buttons {
  padding: .5rem 0;
}

.social-buttons > div {
  display: inline-block;
  vertical-align: middle;
  font-size: 0;
}

.latest-post p > a {
  word-wrap: anywhere;
}

.latest-post p + img,
.latest-post p + .fb-video,
.latest-post img + p,
.latest-post .fb-video + p {
  margin-top: 1rem;
}

.latest-post img {
  max-height: 400px;
}

/****************************************
* Class widgets
****************************************/

.classes.padding {
  margin: 0 auto;
  max-width: 465px;
}

.class-widget {
  display: flex;
  flex-direction: column;
  border: 1px solid #d3e0e5;
  background-color: #ffffff;
  width: 100%;
  max-width: 465px;
}

.class-widget .title {
  padding: 1rem;
}

.class-widget h4 {
  margin-bottom: .25rem;
}

.class-widget .title p {
  color: var(--fni-color-4);
}

.class-widget .grid {
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  flex-grow: 1;
  border-top: 1px solid #d3e0e5;
  background-color: #d3e0e5;
}

@media(min-width: 940px) {
  .class-widget .grid {
    grid-template-columns: 1fr 205px;
  }
}

.class-widget .grid > div {
  background-color: #ffffff;
  padding: 1rem;
}

.class-widget .flex-column {
  justify-content: space-between;
  gap: 1rem;
}

.class-widget .flex-column > div:first-of-type {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.class-widget img {
  margin: 0 auto;
  border-radius: 50%;
  width: 100%;
  max-width: 110px;
}

.class-widget .button {
  margin: 0 -1rem;
}

.class-widget input.button {
  margin-bottom: -1rem;
  border-radius: 0;
  width: calc(100% + 2rem);
}

.class-widget .contents {
  padding: 2rem 1rem;
  text-align: center;
  background-color: #ffffff;
  border-top: 1px solid #d3e0e5;
}

.class-widget .contents hr {
  width: 140px;
  margin: .5rem auto;
}

.class-widget .title-locations {
  padding: 1.5rem 1rem 1rem 1rem;
}

/****************************************
* Newsletter card
****************************************/

.newsletter {
  min-height: 315px;
  padding: 2rem;
}

.newsletter h4 {
  margin-bottom: 1rem;
  text-transform: none;
  line-height: 1.3em;
  color: #ffffff;
}

/****************************************
* Job cards
****************************************/

.job.card {
  max-width: 300px;
}

.job.card img {
  margin: 0 auto;
  padding: 2rem;
}

.job.card .bar {
  background-color: var(--fni-color-2);
  padding: 1rem 2rem;
}

.job.card h2 {
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
}

/****************************************
* Job sponsors
****************************************/

.job-sponsors h3 {
  border-bottom: 2px solid #dfdfe1;
  padding-bottom: .25rem;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: #b7b7b9;
}

.job-sponsors a {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.job-sponsors img {
  width: auto;
  height: auto;
  max-height: 150px;
}

/****************************************
* Instructor
****************************************/

.instructor {
  flex-flow: row wrap;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.instructor img {
  margin: 0 auto;
  border-radius: 50%;
  width: 100%;
  max-width: 150px;
}

.instructor .button {
  margin-top: 1rem;
}

/****************************************
* Cart
****************************************/

.cart-class p + form {
  margin: 0;
}

.cart-class [type="submit"] {
  display: inline-block;
  border: none;
  background-color: transparent;
  width: auto;
  padding: 0;
  color: var(--fni-color-3);
}

.cart-class [type="submit"]:hover {
  text-decoration: underline;
  color: var(--fni-color-4);
}

.cart-summary {
  grid-template-columns: 1fr 80px;
  grid-gap: .5rem;
}

.cart-summary + .cart-summary {
  margin-top: 1rem;
  border-top: 1px solid #d3e0e5;
  padding-top: 1rem;
}

/****************************************
* Forms
****************************************/

.scroll-window {
  margin: 1rem 0;
  border: 1px solid #d3e0e5;
  max-height: 300px;
  padding: 1rem;
  overflow-y: auto;
}

.scroll-window ul {
  margin: 0;
}

.scroll-window li {
  margin-left: 1rem;
}

form .no-input-margin input,
form .grid .grid:not(.input-margin) input,
form .grid .grid .styled-select {
  margin: 0;
}

.credit-card-logos {
  display: flex;
  max-width: 55%;
  margin-top: -0.5rem;
  margin-left: auto;
}

.credit-card-logos > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.credit-card-logos svg {
  margin: 0 .25rem 4px;
  fill: #C6C6C6;
  height: 25px;
  width: 25px;
}

.credit-card-logos > div.selected svg {
  fill: #000000;
}

.address,
.cc-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  margin-top: 1rem;
}

.cc-inputs > div:first-of-type {
  grid-column: span 2;
}

.address input,
.cc-inputs input {
  margin: 0;
}

.pay-invoice {
  max-width: 900px;
}

.custom {
  display: grid;
  grid-template-columns: 1fr 100px;
  align-items: end;
  gap: 1rem;
}

/****************************************
* Registration Portal
****************************************/

.toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: 0 4px 4px -2px rgba(0, 0, 0, .2);
  padding: 0;
}

.toolbar .padding {
  justify-content: space-between;
  padding-top: .75rem;
  padding-bottom: .75rem;
}

.toolbar .flex {
  flex-flow: row wrap;
  gap: .5rem;
}

.toolbar > .flex {
  flex-direction: column;
}

.toolbar .actions {
  align-items: center;
  gap: 0 .5rem;
}

.toolbar .styled-select {
  margin: 0;
}

.toolbar a,
.toolbar p,
.toolbar button {
  display: flex;
  align-items: center;
  padding: .5rem;
  color: #000000;
}

.toolbar button {
  background-color: transparent;
  font-weight: normal;
}

.toolbar a:focus,
.toolbar a:hover,
.toolbar button:focus,
.toolbar button:hover,
.toolbar .dropdown:hover > button {
  border-radius: 3px;
  background-color: rgba(0, 0, 0, .02);
  color: var(--fni-color-3);
}

.toolbar a:focus svg,
.toolbar a:hover svg,
.toolbar button:focus svg,
.toolbar button:hover svg,
.toolbar .dropdown:hover > button svg {
  fill: var(--fni-color-3);
}

.toolbar .remove:focus,
.toolbar .remove:hover {
  color: #9f3232;
}

.toolbar .remove:focus svg,
.toolbar .remove:hover svg {
  fill: #9f3232;
}

.toolbar .success {
  color: #329F41;
}

.toolbar .success svg {
  fill: #329F41;
}

.toolbar svg {
  margin-right: .25rem;
  width: 18px;
  height: 18px;
}

.toolbar .dropdown {
  position: relative;
}

.toolbar .dropdown:hover .menu {
  display: flex;
}

.toolbar .dropdown .menu {
  display: none;
  flex-direction: column;
  justify-content: center;
  position: absolute;
  top: 30px;
  left: 0;
  border-radius: 3px;
  box-shadow: 3px 4px 6px -4px rgba(0, 0, 0, .2);
  background-color: #f0f2f1;
  width: 175px;
  padding: .5rem;
}

.toolbar .dropdown button {
  width: 100%;
}

.application .captcha {
  border-color: #d3e0e5 !important;
}

/****************************************
* Dollar amount
****************************************/

.amount {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: .25rem;
}

.amount #symbol {
  font-size: 24px;
  color: #C6C6C6;
}

.amount p,
.amount input {
  margin: 0;
  outline: none;
  border: none;
  min-width: 30px;
  padding-left: 0;
  padding-right: 0;
  font-size: 35px;
  line-height: 1.2em;
  color: var(--fni-color-3);
}

/****************************************
* Styled select
****************************************/

.styled-select {
  position: relative;
  margin-bottom: 1rem;
}

.arrow-down {
  position: absolute;
  top: 12px;
  right: 10px;
  transform: rotate(45deg);
  border: solid #000000;
  border-width: 0 3px 3px 0;
  padding: 3px;
  pointer-events: none;
}

.styled-select select {
  margin: 0;
  padding-right: 24px;
}

.class-type-filter .styled-select,
.class-type-filter .styled-select input {
  display: inline-block;
  width: auto;
}

/****************************************
* Checkmark
****************************************/

.checkmark {
  display: block;
  margin: 2rem auto;
  border-radius: 50%;
  box-shadow: inset 0px 0px 0px #4CAF50;
  width: 88px;
  height: 88px;
  stroke-width: 2;
  stroke: #ffffff;
  stroke-miterlimit: 10;
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: #4CAF50;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  transform-origin: 50% 50%;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fill {
  100% {
    box-shadow: inset 0px 0px 0px 60px #4CAF50;
  }
}

/****************************************
* Overlays
****************************************/

.overlay {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, .8);
  z-index: 9999;
  overflow: auto;
}

.overlay .wrapper {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  width: 90%;
  max-width: 650px;
  margin: auto;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 5px;
}

.overlay .close-overlay {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  background-color: transparent;
  cursor: pointer;
  padding: 0;
}

.overlay .close-overlay,
.overlay .close-overlay svg {
  width: 30px;
  height: 30px;
}

.overlay .close-overlay svg {
  fill: #000000;
}

.overlay .close-overlay:hover svg {
  fill: #dd0000;
}

.overlay .x-center img {
  margin: 0 auto;
  border-radius: 50%;
}

/****************************************
* Disclaimer
****************************************/

.disclaimer {
  margin: 1rem 0;
  background-color: #efefef;
  padding: 1rem;
}

.disclaimer p,
.disclaimer a {
  color: #686868;
}

.disclaimer a {
  font-weight: bold;
}

.disclaimer.error {
  background-color: #FB7878;
}

.disclaimer.error p,
.disclaimer.error a {
  color: #600000;
}

/****************************************
* Login
****************************************/

.login-box {
  margin: 0 auto;
  max-width: 300px;
}

/****************************************
* Search input
****************************************/

.search-input {
  flex-grow: 1;
  position: relative;
}

.search-input svg {
  position: absolute;
  top: 50%;
  left: .75rem;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  fill: #9f9f9f;
  pointer-events: none;
}

.search-input input {
  margin: 0;
  min-width: 300px;
  height: 34px;
  padding-left: 34px;
  font-size: 16px;
}

/****************************************
* Registration page
****************************************/

.scroll-wrapper {
  max-height: calc(100vh - 375px);
  overflow-y: scroll;
}

.registrations {
  border: 1px solid rgba(0, 0, 0, .1);
  width: 100%;
  overflow-y: scroll;
  counter-reset: custom-counter;
}

.registrations th {
  text-align: left;
  background-color: var(--fni-color-3);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: .8rem .5rem;
  white-space: nowrap;
}

.registrations td {
  position: relative;
}

.registration [type="checkbox"] + label::before {
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.registrations .registration:not(.hidden) {
  counter-increment: custom-counter;
}

.registrations .registration:not(.hidden) .row-number::after {
  content: counter(custom-counter);
}

.registrations .row-number {
  font-size: 10px;
  color: rgba(0, 0, 0, .3);
}

.registrations th:hover {
  cursor: pointer;
}

.registrations td {
  padding: .5rem;
  vertical-align: middle;
  white-space: nowrap;
}

.registrations .registration {
  cursor: pointer;
}

.registrations .registration {
  border-bottom: 1px solid rgba(0, 0, 0, .14);
}

.registrations .registration.dark-stripe {
  border-bottom: 1px solid rgba(0, 0, 0, .1);
  background-color: rgba(0, 0, 0, .05);
}

.registrations .registration.balance-outstanding {
  background-color: rgba(255, 0, 0, .1);
}

.registrations .match,
.registrations .registration:hover {
  background-color: rgba(50, 159, 65, .2);
}

#search-error-text {
  padding: 1rem;
  text-align: center;
}

/****************************************
* Donate
****************************************/

.amount-grid {
  width: 100%;
}

.amount-grid fieldset + fieldset {
  margin-top: .75rem;
  border-top: 1px solid #efefef;
  padding-top: .75rem;
}

.amount-grid,
.donate .grid + .grid {
  margin-top: 1rem;
}

.donate .error-message + h3 {
  margin-top: 0;
}

.donate fieldset,
.donate .captcha {
  margin: 0;
  border: none;
  padding: 0;
}

.donate legend {
  margin-bottom: 4px;
}

.donate [type="radio"],
.donate [type="checkbox"] {
  width: auto;
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.donate [type="radio"]:checked,
.donate [type="radio"]:not(:checked) {
  left: -9999px;
}

.donate [type="radio"]:checked + label,
.donate [type="radio"]:not(:checked) + label:hover {
  background-color: var(--fni-color-3);
  color: #ffffff;
}

.donate [type="radio"]:checked + label,
.donate [type="radio"]:not(:checked) + label {
  margin: 0;
  border-radius: 4px;
  width: 100%;
  padding: 1rem;
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  vertical-align: middle;
  transition: all 300ms linear;
}

.donate [type="radio"].invalid + label {
  outline: 1px solid #dd0000;
}

.donate [type="radio"]:not(:checked) + label {
  background-color: #6c6c6c;
  color: #ffffff;
}

.donate [type="radio"] + label::before,
.donate [type="checkbox"] + label::before {
  display: none;
}

.other-amount {
  position: relative;
}

.other-amount input[type="text"] {
  position: absolute;
  top: 0;
  left: 22px;
  border-radius: 0px 4px 4px 0;
  width: calc(100% - 22px);
  height: 54.1px;
}

.other-amount input + label + .dollar {
  position: absolute;
  opacity: 0;
}

.other-amount input:checked + label + .dollar {
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  background-color: var(--fni-color-3);
  border-radius: 4px 0px 0px 4px;
  padding: 0 7px;
  color: #ffffff;
  font-weight: 700;
  line-height: 38.1px;
}

/****************************************
* Testimonial slider
****************************************/

.testimonials {
  position: relative;
  background: #ffffff url('/images/layout/intro-background.png');
  padding: 4rem 2rem 3rem 2rem;
}

.testimonials .slip-n-slide {
  margin: 0 auto;
  border: 1px solid #efefef;
  border-top: 10px solid var(--fni-color-2);
  background-color: #ffffff;
  max-width: 1140px;
  height: 550px;
}

.testimonials .slip-n-slide > .slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem 3rem 2rem;
}

.testimonials .quote {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: var(--fni-color-2);
  width: 80px;
  height: 80px;
}

.testimonials .quote svg {
  width: 40px;
  height: 40px;
  fill: #ffffff;
}

.testimonials p {
  margin: 0 auto;
  max-width: 900px;
  text-align: center;
  font-weight: 300;
}

.testimonials p + p {
  margin-top: .5rem;
}

.testimonials .author {
  font-size: 16px;
}

.testimonials .slip-n-slide > div > img {
  position: relative;
  top: 0;
  transform: none;
  margin: 2rem auto 0;
}

.testimonials .bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.testimonials img {
  width: 250px;
}

/****************************************
* Sponsors
****************************************/

.sponsors {
  position: relative;
}

.sponsors img {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: auto;
  height: auto;
  max-height: 60px;
}

/****************************************
* Marquee
****************************************/

.marquee {
  margin: 1rem auto 0 auto;
  white-space: nowrap;
  overflow: hidden;
  box-sizing: border-box;
}

.marquee ul {
  display: flex;
  gap: 2rem;
  margin: 0;
  list-style-type: none;
}

.marquee ul + ul {
  margin-top: 1rem;
}

.marquee ul:nth-of-type(odd) {
  justify-content: flex-start;
  animation: marquee-odd 10s linear infinite;
}

.marquee ul:nth-of-type(even) {
  justify-content: flex-end;
  animation: marquee-even 10s linear infinite;
}

.marquee ul:hover {
  animation-play-state: paused;
}

.marquee li {
  margin: 0;
  white-space: nowrap;
}

@keyframes marquee-odd {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-100%, 0); }
}

@keyframes marquee-even {
  0% { transform: translate(0, 0); }
  100%   { transform: translate(100%, 0); }
}

/****************************************
* Stats
****************************************/

.stats div {
  text-align:center;
  padding: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.2);
}

.stats div:last-child {
  border-bottom: none;
}

.stats h2,
.stats h2 span {
  font: normal 200 60px/.8em var(--fni-font-1);
  color: #ffffff;
}

.stats h3 {
  color: var(--fni-color-1);
  letter-spacing: 2px;
  font-size: 14px;
}

.stats h2 + h3 {
  margin-top: 1rem;
}

/****************************************
* Banner ads
****************************************/

.banner-ads.divider {
  border-top: 1px solid #d3e0e5;
}

.banner-ads img {
  margin: 0 auto;
  width: 100%;
  max-width: 970px;
}

@media (max-width: 575px) {
  .banner-ads .padding {
    padding: .5rem;
  }
}

/****************************************
* Footer
****************************************/

footer {
  background-color: rgba(0,0,0,1);
}

footer h2 {
  color: var(--fni-color-2);
}

footer h3 {
  font: normal 200 40px/1.3em var(--fni-font-1);
  color: #afac85;
  text-transform: none;
}

footer hr {
  border-top: 1px solid rgba(255, 255, 255, .2);
  margin: .6rem 0;
}

footer .contact-form .grid {
  gap: 0 2rem;
  padding: 0;
}

footer input,
footer textarea {
  background-color: rgba(255, 255, 255, .2);
  border: none;
  color: #ffffff;
  font-size: 14px;
}

footer textarea {
  min-height: 125px;
}

footer label,
footer p,
footer a {
  margin-bottom: 0;
  color: #FFFFFF;
}

footer .tagline {
 background-color: #111111;
}

/****************************************
* Attribution
****************************************/

.attribution {
  background-color: #363636;
  padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom));
}

.attribution a {
  color: #ffffff;
  font-weight: normal;
  text-transform: none;
}

.attribution p {
  margin: 0;
  font-size: 12px;
  color: #ffffff;
}