/**************************
        MODAL UNREVEAL
***************************/


body.modal-active{
    overflow: hidden;
}
#modal-container {
    position: fixed;
    display: table;
    height: 100vh;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 999999;
  }
#modal-container.two {
    transform: scale(1);
  }
#modal-container.two .modal-background {
  background: rgba(0, 0, 0, 0);
  animation: fadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  will-change: transform, opacity;
  width: 100%;
}
#modal-container.two .modal-background .modal {
  opacity: 0;
  animation: scaleUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  will-change: transform, opacity;
  max-width: 520px;
}
#modal-container.two.out {
  animation: quickScaleDown 0s 0.5s linear forwards;
  will-change: transform, opacity;
}
#modal-container.two.out .modal-background {
  animation: fadeOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  will-change: transform, opacity;
}
#modal-container.two.out .modal-background .modal {
  animation: scaleDown 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  will-change: transform, opacity;
}
body.modal-active main.site-main {
  animation: scaleBack 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  will-change: transform, opacity;
}
body.modal-disable main.site-main {
  animation: scaleForward 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
  will-change: transform, opacity;
}


#modal-container .modal-background {
  display: table-cell;
  background: rgba(0, 0, 0, 0.8);
  vertical-align: middle;
  text-align: center;
}
#modal-container .modal-background .modal {
  display: inline-block;
  position: relative;
  width: auto;
  height: auto;
}
#modal-container .modal-background .modal.modal-search-form{
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 560px;
  gap: 10px;
  margin: auto;
}
#modal-container .modal-background .modal.modal-search-form > div{
    padding: 6px;
    border-radius: calc(var(--radius) * 1.5);
    background: var(--primary-gradient);
    box-shadow: 0px 10px 20px -15px rgba(0, 0, 0, 0.20);
}
#modal-container .modal-background .modal.modal-search-form > h3{
    color: var(--white);
    font-weight: 500;
}
#modal-container .modal-background .modal.modal-search-form form{
    display: flex;
    border-radius: calc(var(--radius) * 1.15);
    background-color: rgba(255,255,255,0.95);
}
#modal-container .modal-background .modal.modal-search-form form p{
    position: relative;
    margin: 0;
}
#modal-container .modal-background .modal.modal-search-form form p input{
    z-index: 1;
    position: relative;
    border-radius: calc(var(--radius) * 1.05);
    min-width: 350px;
    background: transparent;
    border: none;
}
#modal-container .modal-background .modal.modal-search-form form button.search-submit.btn-gradient-primary{
    position: absolute;
    z-index: 1;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    height: 55px;
    width: 55px;
    border: 1.5px solid var(--white);
    border-radius: calc(var(--radius) * 1.05);
    background: var(--primary-gradient);
    box-shadow: 0px 1px 14px 0px rgba(106, 106, 106, 0.25);
}
#modal-container .modal-background .modal.modal-search-form form p input::placeholder{
    opacity: 0;
    -webkit-transition: opacity 300ms ease-in-out;
    transition: opacity 300ms ease-in-out;
}
#modal-container .modal-background .modal.modal-search-form form p.input-selected input::placeholder{
    opacity: 1;
}
#modal-container .modal-background .modal.modal-search-form form p label{
    position: absolute;
    left: calc(var(--gap) * 1.5);
    top: calc(2 * var(--gap));
    transform: translateY(-50%);
    color: var(--primary);
    font-size: 16px;
    font-style: normal;
    line-height: normal;
    z-index: 0;
    -webkit-transition: font-size 300ms ease-in-out, transform 300ms ease-in-out, top 300ms ease-in-out, left 300ms ease-in-out;
    transition: font-size 300ms ease-in-out, transform 300ms ease-in-out, top 300ms ease-in-out, left 300ms ease-in-out;
}

#modal-container .modal-background .modal.modal-search-form form p.input-selected > label, #modal-container .modal-background .modal.modal-search-form form p.input-selected > label{
    top: 10px;
    left: 16px;
    transform: translateY(0);
    font-size: var(--small-font);
}