:root {
  --callback-color-dark: #222222;
  --callback-color-light: #efefef;
  --callback-color-white: #fff;
  --callback-color-accent: #2cd986;
  --callback-color-accent-1: #7ff5af;
  --callback-color-accent-2: #80e1ee;
  --callback-box-shadow: 0 0 1.25rem rgba(0, 0, 0, 0.1);
}

.callback-field-input {
  display: block;
  width: 100%;
  color: var(--callback-color-dark);
  font-weight: 500;
  text-align: center;
  padding: 1.25rem;
  border: none;
  border-radius: 1rem;
  background: var(--callback-color-light);
}

.callback-form {
  display: block;
  max-width: 16.25rem;
  margin: 0 auto;
}

.callback-form-field+.callback-form-field {
  margin-top: 0.5rem;
}

.callback-button {
  position: relative;
  display: inline-block;
  color: var(--callback-color-white);
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  padding: 1.25rem;
  border: none;
  border-radius: 1rem;
  background: #30b67e;
  user-select: none;
  overflow: hidden;
  cursor: pointer;
}

.callback-button::after {
  content: '';
  position: absolute;
  display: block;
  left: -40px;
  top: -100px;
  width: 20px;
  height: 200px;
  margin-left: 50px;
  background: white;
  transform: rotate(45deg);
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0.5) 100%);
  animation: moving-flare 3s ease-in-out 0.05s infinite;
  z-index: 1;
}

.callback-form-submit {
  width: 100%;
  margin-top: 1.125rem;
}

.callback-button[disabled] {
  opacity: 0.5;
  cursor: default;
}

@keyframes moving-flare {
  0% {
    left: -30px;
    margin-left: 0px;
  }

  30% {
    left: 110%;
    margin-left: 80px;
  }

  100% {
    left: 110%;
    margin-left: 80px;
  }
}

.callback-form-timer {
  font-size: 0.875rem;
}

@-webkit-keyframes phone-button-animation {
  0%, 10%, 100% {
    -webkit-transform: rotate(0) scale(1) skew(1deg);
    transform: rotate(0) scale(1) skew(1deg);
  }

  2%, 6% {
    -webkit-transform: rotate(-15deg) scale(1) skew(1deg);
    transform: rotate(-15deg) scale(1) skew(1deg);
  }

  4%, 8% {
    -webkit-transform: rotate(15deg) scale(1) skew(1deg);
    transform: rotate(15deg) scale(1) skew(1deg);
  }
}

#phone-button {
  position: fixed;
  z-index: 3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100%;
  bottom: 5%;
  right: 3%;
  box-shadow: 0px 0px 15px hsl(0, 0%, 24%, 0.2);
  animation: phone-button 1.5s ease;
}

@keyframes phone-button {
  0% {
    transform: translateX(300%);
  }

  100% {
    transform: translateX(0%);
  }
}

#phone-button:before {
  content: '';
  width: 78px;
  height: 78px;
  background: hsl(116, 100%, 40%);
  display: block;
  border-radius: 100%;
}

#phone-button:active {
  background-color: transparent;
}

#phone-button svg.phone-button-icon {
  position: absolute;
  opacity: 0;
  width: 42px;
  height: 42px;
  background-image: none;
  -webkit-transition: opacity .8s cubic-bezier(.19, 1, .22, 1), transform .8s cubic-bezier(.19, 1, .22, 1);
  -moz-transition: opacity .8s cubic-bezier(.19, 1, .22, 1), transform .8s cubic-bezier(.19, 1, .22, 1);
  -o-transition: opacity .8s cubic-bezier(.19, 1, .22, 1), transform .8s cubic-bezier(.19, 1, .22, 1);
  transition: opacity .8s cubic-bezier(.19, 1, .22, 1), transform .8s cubic-bezier(.19, 1, .22, 1);
  -moz-transform: perspective(400px) rotateY(-180deg) scale(.4);
  -webkit-transform: perspective(400px) rotateY(-180deg) scale(.4);
  -o-transform: perspective(400px) rotateY(-180deg) scale(.4);
  transform: perspective(400px) rotateY(-180deg) scale(.4);
  -moz-transform: perspective(400px) rotateY(0) scale(1);
  -webkit-transform: perspective(400px) rotateY(0) scale(1);
  -o-transform: perspective(400px) rotateY(0) scale(1);
  transform: perspective(400px) rotateY(0) scale(1);
  opacity: 1;
}

#phone-button svg.phone-button-icon path {
  fill: hsl(0, 0%, 95%);
  -webkit-animation: phone-button-animation 5s ease-in-out infinite;
  animation: phone-button-animation 5s ease-in-out infinite;
  transform-origin: 50% 50%;
}

#phone-button-tooltip {
  position: fixed;
  z-index: 3;
  width: 200px;
  padding: 10px 15px;
  background: hsl(116, 100%, 40%);
  color: hsl(0, 0%, 95%);
  right: 3%;
  bottom: calc(5% + 100px);
  font-size: 13px;
  line-height: 1.25;
  visibility: hidden;
  opacity: 0;
  transition: 0.5s ease-in-out;
  transition-property: visibility, opacity;
}

#phone-button-tooltip.is-visible {
  visibility: visible;
  opacity: 1;
}

#phone-button-tooltip .phone-button-tooltip-arrow {
  position: absolute;
  right: 30px;
  bottom: -14px;
  width: 18px;
  height: 14px;
  fill: hsl(116, 100%, 40%);
}

#phone-button-tooltip .phone-button-tooltip-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: block;
  width: 1em;
  height: 1em;
  color: hsl(0, 0%, 95%);
  font-size: 13px;
  cursor: pointer;
}

#phone-button-tooltip .phone-button-tooltip-close::before,
#phone-button-tooltip .phone-button-tooltip-close::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0.5em;
  height: 100%;
  width: calc(1em / 12);
  margin-left: calc(1em / -24);
  background-color: currentColor;
}

#phone-button-tooltip .phone-button-tooltip-close::before {
  transform: rotate(45deg);
}

#phone-button-tooltip .phone-button-tooltip-close::after {
  transform: rotate(-45deg);
}

#modal-edit-phone, #modal-save-phone {
  text-decoration: underline;
  cursor: pointer;
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

#modal-edit-phone svg, #modal-save-phone svg {
  width: 14px;
  height: 14px;
  position: relative;
  top: 2px;
}

#modal-seconds, #modal-mseconds {
  display: inline-block;
  width: 1.5rem;
}

/* Containers */
.callback-modal {
  display: none;
}

.callback-container {
  max-width: 375px;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  margin-left: auto;
  margin-right: auto;
}

.callback-modal .callback-modal-container,
.callback-modal .callback-modal-overlay {
  will-change: transform;
}

.callback-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(0.5rem);
  z-index: 1000;
}

.callback-modal-container {
  width: 100%;
  max-height: 100vh;
  max-height: var(--app-height);
  padding: 1.25rem;
  overflow-y: auto;
}

.callback-modal-container .callback-x-close {
  position: absolute;
  top: 2.25rem;
  right: 2.25rem;
  z-index: 10;
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  color: inherit;
  /* font-size: 1rem; */
  text-align: center;
  border-radius: 0.375rem;
  border: 0.125rem solid currentColor;
  padding: unset;
  background: none;
  cursor: pointer;
}

.callback-modal-container .callback-x-close svg {
  max-width: 0.875rem !important;
  max-height: 0.875rem !important;
  position: relative;
  /* bottom: 0.04rem; */
}

.callback-modal-container .section {
  padding: 0;
  overflow: visible;
}

.callback-modal-container:not(.callback-container) {
  height: 100vh;
  align-self: flex-start;
  color: var(--callback-color-dark);
  padding: 3rem 0 1.25rem;
  background: var(--callback-color-white);
}

.callback-modal-container:not(.callback-container) .callback-x-close {
  top: 1.25rem;
  right: 1.25rem;
}

.callback-modal[aria-hidden="false"] .callback-modal-overlay {
  animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.callback-modal[aria-hidden="false"] .callback-modal-container {
  animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.callback-modal[aria-hidden="true"] .callback-modal-overlay {
  animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.callback-modal[aria-hidden="true"] .callback-modal-container {
  animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.formbox {
  position: relative;
  color: var(--callback-color-dark);
  text-align: center;
  padding: 2rem;
  border-radius: 1.25rem;
  background: var(--callback-color-white);
  box-shadow: var(--callback-box-shadow);
}

.formbox-head {
  margin-bottom: 2rem;
}

.formbox-head h3 {
  padding-top: 0.2rem;
  font-weight: 400 !important;
  font: 0.8rem/1.2 'Montserrat', sans-serif
}

.formbox-head h4 {
  font-weight: 600 !important;
  font: 1.2rem/1.2 'Montserrat', sans-serif
}

.editform-notice {
  display: none;
  color: var(--callback-color-accent);
  padding-top: 0.25rem;
  font-size: 0.875rem;
}
