@keyframes hideForwardBtn {
  0% {
    opacity: 1;
    width: auto;
  }
  100% {
    opacity: 0;
    width: 0;
  }
}

@keyframes moveForwardSvg {
  0% {
    transform: rotate(180deg) translateX(0);
  }
  100% {
    transform: rotate(180deg) translateX(-15px);
  }
}

@keyframes showBackBtn {
  0% {
    opacity: 0;
    width: 0;
  }
  100% {
    opacity: 1;
    width: auto;
  }
}

.btn-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
    /*margin-top: 145px;*/
}

.btn-who-we-are {
  background-color: transparent;
  border: 1px solid transparent;
  color: var(--color-concrete-dark);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 21px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 1;
  width: auto;
  white-space: nowrap;
  transition: color 450ms ease-in-out;
  cursor: pointer;
}

.btn-who-we-are svg {
  width: 16px;
  height: 16px;
}

.btn-who-we-are:hover {
  color: var(--color-concrete-normal) !important;
}

.btn-who-we-are.back:active {
  transform: scale(1.1);
}

.btn-who-we-are.back:active svg {
  color: #FFFFFF !important;
}

.btn-who-we-are.forward {
  color: var(--color-concrete-dark);
}

.btn-who-we-are.forward svg {
  transform: rotate(180deg);
  transition: transform 1s ease;
}

.main-container.active .btn-who-we-are.forward span {
  animation: hideForwardBtn 1s ease forwards;
  pointer-events: none;
}

.main-container.active .btn-who-we-are.forward svg {
  transform: rotate(180deg) translateX(-15px);
}

.btn-who-we-are.back {
  opacity: 0;
  width: 0;
  pointer-events: none;
  transition: transform 0.15s ease;
}

.main-container.active .btn-who-we-are.back {
  animation: showBackBtn 1s ease forwards;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .btn-container {
    padding-right: 30px;
  }
}

@media (max-width: 450px) {
  .btn-container {
    font-size: 16px;
    padding-right: 0;
  }
  .btn-start-survey, .btn-who-we-are {
    font-size: 16px;
    padding-right: 0;
  }
}

@media (max-width: 361px) {
  .btn-container {
    /*margin-top: 60px;*/
  }
}










@keyframes shrinkExpandWrapper {
    0% {
        width: 100%;
    }
    50% {
        width: 31%;
    }
    100% {
        width: 100%;
    }
}

@keyframes shrinkExpandWrapper2 {
    0% {
        width: 100%;
    }
    50% {
        width: 31%;
    }
    100% {
        width: 100%;
    }
}

@keyframes slideOutTextOne {
    0% {
        opacity: 1;
        transform: translateX(0);
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}

@keyframes slideInTextOne {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}
  
@keyframes slideInTextTwo {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutTextTwo {
    0% {
        opacity: 1;
        transform: translateX(0);
        
    }
    100% {
        opacity: 0;
        transform: translateX(100px);
    }
}
  

.btn-start-survey {
  background-color: #C56844;
  border: 1px solid #C56844;
  color: var(--color-concrete-light);
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 21px;
  padding: 9px 17px;
  border-radius: 9999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  width: fit-content;
  transition: all .15s ease-in-out;
}

@media (max-width: 1300px) {
  .btn-start-survey {
    font-size: 16px;
    padding: 6px 12px;
  }

  .content-section {
    padding-top: 68px;
  }

  .content-section-inner {
    width: 100%;
  }
}

.btn-start-survey.ghost {
    background-color: transparent;
    border: 1px solid transparent;
}

.btn-start-survey.abs {
    min-width: 50px;
    animation: shrinkExpandWrapper 1.2s ease forwards;
    position: absolute;
    right: 0;
}

.main-container.active .btn-start-survey.abs {
    animation: shrinkExpandWrapper2 1.2s ease forwards;
    position: absolute;
    right: 0;
}

.btn-start-survey span {
  display: inline-block;
  white-space: nowrap;
}

.btn-start-survey .one {
  opacity: 1;
  animation: slideInTextOne 1.2s ease forwards;
}

.btn-start-survey .two {
  opacity: 0;
  position: absolute;
  animation: slideOutTextTwo 1.2s ease forwards;
}

.btn-start-survey:hover {
  background-color: #B15E3D;
  border-color: #B15E3D;
  color: var(--color-concrete-light);
}

/* Disable hover when mail panel is open */
.main-container:has(#mailInputPanel.active) .content-section .btn-start-survey:hover {
  background-color: transparent !important;
  border: 1px solid transparent !important;
  cursor: default;
}

.btn-start-survey:active {
  background-color: #9E5336;
  border-color: #9E5336;
}

.main-container.active .btn-start-survey .one {
  animation: slideOutTextOne 1.2s ease forwards;
}

.main-container.active .btn-start-survey .two {
  animation: slideInTextTwo 1.2s ease forwards;
}

@keyframes shrinkExpandWrapper3 {
    0% {
        width: 100%;
    }
    100% {
        width: 0;
    }
}

@keyframes shrinkExpandWrapper4 {
    0% {
        width: 0;
    }
    100% {
        width: 100%;
    }
}

/* انیمیشن fade out برای .two */
@keyframes fadeOutTwo {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

/* انیمیشن fade in برای .two */
@keyframes fadeInTwo {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* انیمیشن چشمک زدن و محو شدن باکس */
@keyframes blinkAndFadeBox {
    0% {
        opacity: 1;
    }
    25% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
    75% {
        opacity: 0.2;
    }
    100% {
        opacity: 0;
    }
}

/* انیمیشن چشمک زدن و ظاهر شدن باکس */
@keyframes blinkAndShowBox {
    0% {
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
    75% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

/* انیمیشن جمع شدن با بانس */
@keyframes shrinkWithBounce {
  0% {
      transform: scale(1);
      opacity: 1;
  }
  70% {
      transform: scale(0);
      opacity: 1;
  }
  85% {
      transform: scale(0.15);
      opacity: 1;
  }
  100% {
      transform: scale(0);
      opacity: 0;
  }
}

.main-container.active .btn-start-survey.abs.blink-fade-anim {
  animation: shrinkExpandWrapper3 1.2s ease forwards, shrinkWithBounce 1000ms ease 500ms forwards !important;           
}

.main-container.active .btn-start-survey .two.fade-out-anim {
    animation: fadeOutTwo 0.8s ease forwards;
}

.main-container.active .btn-start-survey .two.fade-in-anim {
    animation: fadeInTwo 0.8s ease forwards;
}

.main-container.active .btn-start-survey.abs.blink-show-anim {
    /*animation: shrinkExpandWrapper4 1.2s ease forwards, blinkAndShowBox 1.8s ease 0.6s forwards !important;*/
    animation: shrinkExpandWrapper4 1.2s ease forwards;
}