.voice-search-main-modal .modal-dialog {
  max-width: 380px;
}

.voice-search-main-modal .modal-content {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.18);
}

.voice-search-main-modal .modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid #eeeeee;
}

.voice-search-main-modal .modal-header .btn-close {
  font-size: 12px;
}
.voice-search-main-modal .voice-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.voice-search-main-modal .voice-title-icon {
  width: 35px;
  height: 35px;

  border-radius: 9px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #fd0300;
  color: #fff;

  font-size: 15px;
}

.voice-search-main-modal .modal-title {
  font-size: 18px;
  font-weight: 700;
  color: #000;
}

.voice-search-main-modal .modal-body {
  padding: 0 !important;
}
.voice-search-main-modal .voice-search-modal {
  padding: 20px 18px;
}
.voice-search-main-modal .voice-mic-wrapper {
  width: 120px;
  height: 120px;

  margin: 0 auto 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  border-radius: 50%;

  background: rgba(253, 3, 0, 0.06);
}

.voice-search-main-modal .voice-mic-wrapper::before {
  content: "";

  position: absolute;

  width: 95px;
  height: 95px;

  border-radius: 50%;

  border: 1px solid rgba(253, 3, 0, 0.25);
}

.voice-search-main-modal .voice-mic {
  width: 65px;
  height: 65px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;
  z-index: 2;

  background: #fd0300;
  color: #fff;

  font-size: 24px;

  cursor: pointer;

  box-shadow: 0 8px 20px rgba(253, 3, 0, 0.3);

  transition: all 0.3s ease;
}

.voice-search-main-modal .voice-mic:hover {
  background: #000;
  transform: scale(1.08);
}

.voice-search-main-modal .voice-mic.listening {
  animation: voiceMicPulse 1.5s infinite;
}

.voice-search-main-modal .voice-mic.listening::before,
.voice-search-main-modal .voice-mic.listening::after {
  content: "";

  position: absolute;

  width: 100%;
  height: 100%;

  border-radius: 50%;

  border: 2px solid #fd0300;

  animation: voiceRipple 1.8s infinite;
}

.voice-search-main-modal .voice-mic.listening::after {
  animation-delay: 0.9s;
}

@keyframes voiceMicPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes voiceRipple {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.voice-search-main-modal .voice-status h5 {
  font-size: 17px;
  font-weight: 700;

  color: #000;

  margin-bottom: 8px;
}

.voice-search-main-modal .voice-status p {
  margin: 0 auto;

  max-width: 320px;

  min-height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 9px 12px;

  border-radius: 10px;

  background: #f8f8f8;

  border-left: 3px solid #fd0300;

  color: #555 !important;

  font-size: 13px;
}

.voice-search-main-modal .modal-footer {
  padding: 14px 18px;

  border-top: 1px solid #eeeeee;
}
.voice-search-main-modal .voice-action-buttons {
  width: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;
}
.voice-search-main-modal .voice-action-buttons .btn {
  border-radius: 0px;

  padding: 8px 12px;

  font-size: 13px;
  font-weight: 600;

  transition: all 0.3s ease;
}
.voice-search-main-modal .voice-action-buttons .btn-secondary {
  background: #fff;
  border: 1px solid #000;

  color: #000;
}
.voice-search-main-modal .voice-action-buttons .btn-secondary:hover {
  background: #000;
  color: #fff;

  border-color: #000;
}
.voice-search-main-modal .voice-action-buttons .btn-primary {
  background: #000;
  border: 1px solid #000;

  display: flex;
  align-items: center;
  gap: 6px;

  color: #fff;
}
.voice-search-main-modal .voice-action-buttons .btn-primary:hover {
  background: #fd0300;
  border-color: #fd0300;

  box-shadow: 0 6px 15px rgba(253, 3, 0, 0.25);
}
.voice-search-main-modal .voice-action-buttons .btn-success {
  background: #fd0300;
  border: 1px solid #fd0300;

  color: #fff;
}
.voice-search-main-modal
  .voice-action-buttons
  .btn-success:hover:not(:disabled) {
  background: #000;
  border-color: #000;

  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.voice-search-main-modal .voice-action-buttons .btn:disabled {
  opacity: 0.5;

  cursor: not-allowed;

  transform: none;

  box-shadow: none;
}
@media (max-width: 576px) {
  .voice-search-main-modal .modal-dialog {
    width: calc(100% - 30px);
    max-width: 380px;
    margin: 15px auto;
  }

  .voice-search-main-modal .modal-header {
    padding: 10px 14px;
  }
  .voice-search-main-modal .voice-search-modal {
    padding: 20px 16px;
  }

  .voice-search-main-modal .voice-mic-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 16px;
  }

  .voice-search-main-modal .voice-mic-wrapper::before {
    width: 80px;
    height: 80px;
  }

  .voice-search-main-modal .voice-mic {
    width: 55px;
    height: 55px;
    font-size: 24px;
  }

  .voice-search-main-modal .voice-status h5 {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .voice-search-main-modal .voice-status p {
    max-width: 225px;
    min-height: 35px;
  }

  .voice-search-main-modal .voice-status p {
    font-size: 13px;
    padding: 9px 10px;
  }

  .voice-search-main-modal .modal-footer {
    padding: 10px 14px;
  }

  .voice-search-main-modal .voice-action-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
  }

  .voice-search-main-modal .voice-action-buttons .btn {
    padding: 8px 9px;
    font-size: 12px;
    white-space: nowrap;
  }
}
