
/* Accessibility focus */
*:focus {
  outline: 0.1rem solid var(--primary);
  outline-offset: 0;
}
body.using-mouse :focus {
  outline: 0;
  outline-offset: 0;
}

a {
  color: var(--primary);
}

/* hidden */
.hidden {
  display: none;
}

@media (max-width: 767px) {
  .hidden-md {
    display: none !important;
  }
}
@media (max-width: 1023px) {
  .hidden-lg {
    display: none !important;
  }
}
@media (min-width: 767px) {
  .vidible-md {
    display: none !important;
  }
}
@media (min-width: 1023px) {
  .visible-lg {
    display: none !important;
  }
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 0.1rem;
  margin: -0.1rem;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 0.1rem;
}


/* container */
.container {
  width: var(--xl);
  max-width: calc(100% - 2.5rem);
  margin: 0 auto;
  padding: 0 2.5rem;
}
@media (max-width: 767px) {
  .container {
    max-width: calc(100% - 1.5rem);
    margin: 0 auto;
    padding: 0 1.5rem;
  }
}

.container-center {
  width: var(--lg);
  max-width: calc(100% - 2.5rem);
  margin: 0 auto;
  padding: 0 2.5rem;
}
@media (max-width: 767px) {
  .container-center {
    max-width: calc(100% - 1.5rem);
    margin: 0 auto;
    padding: 0 1.5rem;
  }
}

/* page-center */
.page-center {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /* display: grid;
  place-items: center; */
  margin: 4.5rem 0;
  position: relative;
}

.page-center .image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
@media (max-width: 767px) {
  .page-center .image {
    width: 37.5rem;
  }
}

.page-center .content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1;
  text-align: center;
}
.page-center .content .icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  background-color: #F5F6F7;
  border-radius: 100vh;
  margin-top: 7.5rem;
}
.page-center .content .icon i {
  color: var(--black);
  font-size: var(--font-size);
}

.page-center .content h2 {
  padding-top: 2.5rem;
  padding-bottom: 1.25rem;
}

/* four columns */
.four-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(25rem, 1fr));
  gap: 1.5rem;
}

.grid-four {
  display: grid;
  grid-auto-columns: 1fr 0.5fr;
  gap: 1.5rem;
  grid-template-areas:
    "one two"
    "one three"
    "one four";
}
@media (max-width: 767px) {
  .grid-four {
    grid-auto-columns: 1fr;
    grid-template-areas: 
      "one"
      "two"
      "three"
      "four";
  }
}
.grid-four .one {
  grid-area: one;
  height: 100%;
}

.grid-four .two {
  grid-area: two;
}

.grid-four .three {
  grid-area: three;
}

.grid-four .four {
  grid-area: four;
}

/* input group */
.input-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22.5rem, 1fr));
  grid-gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.input-group.single {
  display: block;
}


/* label */
.label {
  position: relative;
  color: var(--secondary);
  font-size: var(--font-size);
  cursor: pointer;
  user-select: none;
}
span.required {
  position: relative;
}
span.required:after {
  content: '*';
  color: hsl(0, 75%, 55%);
  position: absolute;
  top: -0.25rem;
  left: auto;
  right: auto;
  font-size: 1.8rem;
}

.select-label {
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 2.25rem;
}


/* input */
.input {
  width: 100%;
  padding: 1.5rem;
  height: 4.5rem;
  margin-top: 0.5rem;
  text-align: left;
  font-family: var(--font-family);
  font-size: var(--font-size);
  background-color: var(--white);
  color: var(--black);
  border: 0.1rem solid #cecece;
  border-radius: var(--border-radius);
  transition: border 250ms ease;
}
.input:hover,
.input:focus {
  border: 0.1rem solid var(--thertiary);
}
.input::placeholder {
  color: #75756F;
}

.input:disabled {
  background-color: var(--thertiary);
}

/* input date */
.input-date {
  position: relative;
  width: 100%;
}
.input-date input {
  appearance: none;
  -webkit-appearance: none;
  text-align: right;
}
.input-date input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

.input-date input:disabled {
  background-color: var(--thertiary);
}

/* checkbox */
.label-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: #e5e5e5;
  font: inherit;
  color: currentColor;
  margin-top: 0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  border: 0.1rem solid #cecece;
  border-radius: var(--border-radius);
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
  cursor: pointer;
  transition: background-color 250ms ease, border-color 250ms linear;
}
input[type="checkbox"]::before {
  content: "";
  width: 0.75rem;
  height: 0.75rem;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--white);
  background-color: CanvasText;
}
input[type="checkbox"]:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
input[type="checkbox"]:checked::before {
  transform: scale(1);
}

input[type="checkbox"]:disabled {
  background-color: var(--secondary);
}

/* textarea */
.textarea {
  width: 100%;
  height: 10.5rem;
  padding: 1.5rem;
  margin-top: 1rem;
  font-family: var(--font-family);
  font-size: var(--font-size);
  background-color: var(--white);
  color: var(--black);
  border: 0.1rem solid #cecece;
  border-radius: var(--border-radius);
  transition: border 250ms ease;
}
.textarea:disabled {
  background-color: var(--thertiary);
}

.textarea-resize {
  resize: none;
  overflow: hidden;
}

/* select */
select {
  appearance: none;
  width: 100%;
  height: 4.5rem;
  padding: 0 1.5rem;
  font-family: var(--font-family);
  font-size: var(--font-size);
  background-color: var(--white);
  color: var(--black);
  border: 0.1rem solid #cecece;
  border-radius: var(--border-radius);
  transition: border 250ms ease;
}
.select {
  position: relative;
  margin-top: 0.75rem;
}
.select::after {
  border-style: solid;
  border-width: 0.15rem 0.15rem 0 0;
  border-color: #555;
  content: "";
  position: absolute;
  height: 0.55rem;
  width: 0.55rem;
  right: 1.5rem;
  top: 1.95rem;
  transform: rotate(135deg);
  transition: transform .3s ease;
}
.select:hover::after,
.select:focus::after {
  border-color: #cecece;
}

.select select:disabled {
  background-color: var(--thertiary);
}


/* button group */
.button-group {
  padding: 1.5rem 0;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.button-group button:first-child {
  width: 15.5rem;
}
.button-group button {
  width: 10.5rem;
}

/* button */
.button-default {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4.5rem;
  padding: 0 1.5rem;
  font-family: var(--font-family);
  font-size: var(--font-size);
  font-weight: 400;
  background-color: var(--primary);
  border-radius: 3.5rem;
  border: 0.1rem solid transparent;
  color: var(--white);
  transition: background-color 250ms ease, border 250ms ease;
}
.button-default:hover,
.button-default:focus {
  --primary-l: 25%;
  background-color: var(--primary);
  border: 0.1rem solid var(--primary);
  color: var(--white);
}

.button-white {
  box-shadow: var(--box-shadow);
  background-color: var(--white);
  border: 0.1rem solid var(--thertiary);
  color: var(--black);
  transition: background-color 250ms ease, border 250ms ease, box-shadow 250ms ease;
}
.button-white:hover,
.button-white:focus {
  background-color: var(--white);
  border: 0.1rem solid var(--thertiary);
  color: var(--black);
}

.button-grey {
  background-color: var(--thertiary);
  border: 0.1rem solid var(--thertiary);
  color: var(--black);
  transition: background-color 250ms ease, border 250ms ease, box-shadow 250ms ease;
}
.button-grey:hover,
.button-grey:focus {
  background-color: var(--secondary);
  border: 0.1rem solid var(--secondary);
  color: var(--white);
}

.button-white:disabled {
  background-color: var(--thertiary);
  pointer-events: none;
}

.button-transparent {
  background-color: transparent;
  border: 0.1rem solid var(--primary);
  color: var(--primary);
}

.button-default span {
  padding: 0 0.5rem;
}
/* @media (max-width: 767px) {
  .button-default span {
    display: none;
  }
} */

.button-green {
  background-color: hsl(155, 65%, 45%);
  border: 0.1rem solid hsl(155, 65%, 45%);
  color: var(--white);
  transition: background-color 250ms ease, border 250ms ease, box-shadow 250ms ease;
}
.button-green:hover,
.button-green:focus {
  background-color: hsl(155, 65%, 35%);
  border: 0.1rem solid hsl(155, 65%, 35%);
}

.button-submit.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  border-top-color: transparent;
  animation: loading 0.8s linear infinite;
}
@keyframes loading {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.disabled {
  pointer-events: none;
}
.rounded {
  border-radius: 100vh;
}

/* h1 , h2 */
h1 {
  font-size: 4.25rem;
  line-height: 115%;
  color: var(--black);
  font-weight: bold;
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  h1 {
    font-size: 3.75rem;
  }
}
h2 {
  font-size: 3.75rem;
  line-height: 115%;
  color: var(--black);
  font-weight: bold;
  position: relative;
  z-index: 1;
}
@media (max-width: 767px) {
  h2 {
    font-size: 2.75rem;
  }
}
/* p */
p {
  font-size: var(--font-size);
  line-height: 155%;
  color: var(--secondary);
}

/* section */
section {
  padding: 10rem 0;
}
@media (min-width: 768px) and (max-width: 1023px) {
  section {
    padding: 7.5rem 0;
  }
}
@media (max-width: 767px) {
  section {
    padding: 5rem 0;
  }
}


/* loading */
.loading-content {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background-color: #fff;
}
.loading-content::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 0.25rem solid var(--primary);
  border-top-color: transparent;
  animation: loading-content 0.8s linear infinite;
}
@keyframes loading-content {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}



.title-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding-top: 10rem;
}
@media (max-width: 767px) {
  .title-centered {
    padding-top: 7.5rem;
  }
}

.title-holder h2 {
  max-width: 55%;
}
@media (max-width: 767px) {
  .title-holder h2 {
      max-width: 100%;
  }
}

.title-holder p {
  max-width: 45%;
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
}

@media (max-width: 767px) {
  .title-holder p {
      max-width:100%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .title-holder p {
      max-width:75%;
  }
}