

:root{
    --green: #7ac142;
    --red: #ff0000;
}

.cform-modal-overlay{
	display: none;
	justify-content: center;
	align-items: center;
	background: rgb(0,0,0);
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	backdrop-filter: blur(4px);
}


.cform-modal-overlay.show{
	display: flex;
}

.cform-modal{
    position: relative;
    max-width: 95%;
    max-height: 70vh;
    background: rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 25px;
}

.cform-modal p{
    color: #efefef;
    text-align: center;
    margin-top: 2.2rem;
}

.cform-modal  .close_modal_btn{
    position: absolute;
    top: 15px;
    right:15px;
    appearance: none;
    background: transparent;
    outline: none;
    border: none;
    width: 22px;
    height: 22px;
}

.cform-modal  .close_modal_btn svg{
    width: 14px;
    fill: #efefef;
}



/* ==== CHECKMARK START ==== */
.cform-modal .checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  stroke-width: 2;
  stroke: #efefef;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--green);
}
  
.cform-modal .checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--green);
  fill: none;
}
  
.cform-modal  .checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
}
  
.cform-modal-overlay.show .cform-modal .checkmark{
  animation: fill__green 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.cform-modal-overlay.show .cform-modal .checkmark__circle{
    animation: check__stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.cform-modal-overlay.show .cform-modal .checkmark__check{
    animation: check__stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

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

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

@keyframes fill__green {
  100% {
    box-shadow: inset 0px 0px 0px 30px var(--green);
  }
}

/*  ==== CHECKMARK END ==== */




/* ====  CROOSMARK START ==== */

.cform-modal-overlay.show .crossmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: var(--red);
    fill: none;
   animation: cross__stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
  }
  
  .cform-modal-overlay.show .crossmark {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: var(--red);
    stroke-miterlimit: 10;
    margin: 10% auto;
    box-shadow: inset 0px 0px 0px var(--red);
    animation: fill__red .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
  }
  
  .cform-modal-overlay.show .crossmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: cross__stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
  }
  
  .cform-modal-overlay.show .cross__path {
    stroke: #efefef;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    transform-origin: 50% 50% 0;
  }
  .cform-modal-overlay.show .cross__path--right {
    animation: 0.3s ease 0.8s normal forwards 1 running cross__stroke;
  }
  .cform-modal-overlay.show .cross__path--left {
    animation: 1s ease 0.8s normal forwards 1 running cross__stroke;
  }

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

  @keyframes fill__red {
    100% {
      box-shadow: inset 0px 0px 0px 30px var(--red);
    }
    
  }

  
/* ====  CROOSMARK START ==== */
