/* smooth scroll */
html {
  scroll-behavior: smooth;
}

body {
margin: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Gilroy-ExtraBold, Arial, Helvetica, sans-serif;
}


#page-container {
  min-height: 100vh;
    display:flex; flex-direction:column; 
    justify-content:space-between;
  }
  
.form-label {
  color: #6c757d;
  font-size: 1.05rem;
  font-weight: 500;
}

.btn-primary {
  background-color: #198754;
  border-color: #198754;
}


.ethnic-group .optionset {
  column-count: 3;
}

.checkbox-lg {
transform: scale(1.1);
}
/* remove dot from ul */
/* ul {
  list-style-type: none;
} */

/* have item displayed in even columns */
.checkboxset {
  column-count: 3;
 


}

.optionSetField{
  column-count: 2;

}

/*  media queries for smaller screens only 2 columns */
@media (max-width: 768px) {
  .checkboxset {
    column-count: 2;
  }
  .optionSetField{
    column-count: 1;
  
  }
}

/*  media queries for extra  smaller screens only 1 column */
@media (max-width: 576px) {
  .checkboxset {
    column-count: 1;
  }
  .optionSetField{
    column-count: 1;
  
  }
}


/* CUSTOM STEPPER */
ol.stepper {
  --default-b: lightgrey;
  --default-c: black;
  --active-b: purple;
  --active-c: white;
  --circle: 3.5em; /* size of circle */
  --b: 5px; /* line thickness */
  
  display: flex;
  list-style: none;
  justify-content: space-between;
  background: 
    linear-gradient(var(--default-b) 0 0) no-repeat
    50% calc((var(--circle) - var(--b))/2)/100% var(--b);
  counter-reset: step;
  margin: 20px;
  padding: 0;
  font-size: 22px;
  font-weight: bold;
  counter-reset: step;
  overflow: hidden;
}
ol.stepper li {
  display: grid;
  place-items: center;
  gap: 5px;
  font-family: sans-serif;
  position: relative;
}
ol.stepper li::before {
  content: counter(step) " ";
  counter-increment: step;
  display: grid;
  place-content: center;
  aspect-ratio: 1;
  height: var(--circle);
  border: 5px solid #fff;
  box-sizing: border-box;
  background: var(--active-b);
  color: var(--active-c);
  border-radius: 50%;
  font-family: monospace;
  z-index: 1;
}
ol.stepper li.active ~ li::before{
  background: var(--default-b);
  color: var(--default-c);
}
ol.stepper li.active::after {
  content: "";
  position: absolute;
  height: var(--b);
  right: 100%;
  top: calc((var(--circle) - var(--b))/2);
  width: 100vw;
  background: var(--active-b);
}


@media (max-width: 600px) {
  ol.stepper {
   display: grid;
   gap: 20px;
  background: 
    linear-gradient(var(--default-b) 0 0) no-repeat
    calc((var(--circle) - var(--b))/2) 50%/ var(--b) 100%;
  }
  ol.stepper li {
    display: flex;
  }
  ol.stepper li.active::after {
    content: "";
    position: absolute;
    width: var(--b);
    bottom: 100%;
    left: calc((var(--circle) - var(--b))/2);
    top: auto;
    right: auto;
    height: 100vw;
    background: var(--active-b);
  }
}

/* Parsley validation */

.parsley-required {
  color: red;
  /* remove list dot */
  list-style-type: none;
}

.parsley-errors-list{
  color: red;
  /* remove list dot */
  list-style-type: none;
  padding-left: 0;
}

.pointer {
  cursor: pointer;
}

.a-tag {
  color: #297efd;
  text-decoration-line: underline;
  cursor: pointer;
}

.custom-tooltip {
  --bs-tooltip-bg: #000000d3; /* Fallback color if --bd-violet-bg is not defined */
  --bs-tooltip-color: #fff; /* Fallback color if --bs-white is not defined */
  /* width */
  --bs-tooltip-max-width: 200px;
}

