@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

.main {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../images/mainbg.png");
  background-size: cover;
  background-position-x: center;
  background-position-y: top;
  flex-direction: column;
}

.main-page-title {
  font-size: 3.5vw;
  font-weight: 600;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -80px;
}

.main-page-title h1 {
  font-size: 3.5vw;
  font-weight: 900;
  line-height: 1.3;
  background-color: #444444;
  background-clip: text;
  text-align: center;
  -webkit-background-clip: text;
  color: transparent;
  text-transform: uppercase;
}

.main-page-title img {
  width: 120px;
  height: 90px;
  object-fit: contain;
}

.field-container {
  background-color: #ffffff;
  margin: 3vw 0;
  border-radius: 18px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 40px;
  width: 100%;
  position: relative;
  max-width: 90%;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.form-group select,
.form-group input,
.form-group textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  /* background-color: #f9f9f9; */
  transition: border-color 0.3s;
  width: 100%;
  box-sizing: border-box;
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
  border-color: #007bff;
  outline: none;
  background-color: #ffffff;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.simple-file-input {
  display: block;
  width: 50%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
}

.file-preview {
  margin-top: 10px;
  font-size: 14px;
  color: #555;
  display: none;
}

.file-preview.active {
  display: block;
}
#reset, #resumeReset{
  background-color: #fff;
  color: #31b7bc;
  border: 2px solid #31b7bc;
  border-radius: 5px;
  padding: 11px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.next-btn {
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  display: block;
  background-color: #21bfc1;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  margin: 0px auto;
  margin-top: 15px;
}
 .lead-btn {
   font-size: 16px;
   padding: 12px 20px;
   display: block;
    background-color: #21bfc1;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    /* margin: 5px auto; */
  }
#download-buttons{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0px 8px;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

#resumeReset{
  font-size: 29px !important;
  padding: 0px 8px !important;
  /* margin: 0px!important; */
}
#openMore{
  font-size: 21px !important;
  padding: 8px !important;
  /* margin: 0px!important; */
}

.chatbot-popup-overlay {
  height: 100vh;
  width: 100%;
  background-color: rgba(71, 71, 71, 0.561);
  position: fixed;
  top: 0;
  z-index: 99999;
  left: 0;
  display: none;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.5s ease-out;
}

.chatbot-popup {
  height: 80%;
  width: 80%;
  background-color: #f5f5f5;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  opacity: 0;
  animation: scaleIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes scaleOut {
  from {
    transform: scale(1);
    opacity: 1;
  }

  to {
    transform: scale(0.95);
    opacity: 0;
  }
}

.chatbot-popup.hidden {
  animation: fadeOut 0.5s ease-out;
}

.chatbot-popup.hidden .chatbot-popup {
  animation: scaleOut 0.5s ease-out forwards;
}

.chatbot-header {
  padding: 15px;
  background-color: #31b7bc;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.chatbot-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  /* background-image: url(./paperbg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; */
  align-content: end;
}

.chatbot-body .message {
  margin-bottom: 15px;
  display: flex;
}

.chatbot-body .message.user {
  justify-content: flex-end;
}

.chatbot-body .message.user .message-content {
  background-color: #f0f0f0;
  color: #333;
  border-radius: 15px 15px 0 15px;
}

.chatbot-body .message.bot {
  justify-content: flex-start;
}

.chatbot-body .message.bot .message-content {
  background-color: #31b7bc;
  color: #fff;
  border-radius: 15px 15px 15px 0;
}

.chatbot-body .message-content {
  max-width: 70%;
  padding: 10px 15px;
  font-size: 15px;
  word-wrap: break-word;
}

.chatbot-footer {
  padding: 15px;
  background-color: #ffffff;
  border-top: 1px solid #ddd;
  display: flex;
  align-items: center;
}

.chatbot-footer input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 20px;
  outline: none;
  margin-right: 10px;
  font-size: 14px;
  min-width: 160px;
}

.chatbot-footer button {
  background-color: #31b7bc;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
}

.chatbot-body::-webkit-scrollbar {
  width: 6px;
}

.chatbot-body::-webkit-scrollbar-thumb {
  background-color: #31b7bc;
  border-radius: 10px;
}

#bars {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bar {
  background: #31b7bc;
  bottom: 1px;
  height: 3px;
  width: 3px;
  margin: 0px 3px;
  border-radius: 5px;
  animation: sound 0ms -900ms linear infinite alternate;
}

@keyframes sound {
  0% {
    opacity: 0.35;
    height: 3px;
  }

  100% {
    opacity: 1;
    height: 25px;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.bar:nth-child(1) {
  left: 1px;
  animation-duration: 474ms;
}

.bar:nth-child(2) {
  left: 15px;
  animation-duration: 433ms;
}

.bar:nth-child(3) {
  left: 29px;
  animation-duration: 407ms;
}

.bar:nth-child(4) {
  left: 43px;
  animation-duration: 458ms;
}

.bar:nth-child(5) {
  left: 57px;
  animation-duration: 400ms;
}

.bar:nth-child(6) {
  left: 71px;
  animation-duration: 427ms;
}

.bar:nth-child(7) {
  left: 85px;
  animation-duration: 441ms;
}

.bar:nth-child(8) {
  left: 99px;
  animation-duration: 419ms;
}

.bar:nth-child(9) {
  left: 113px;
  animation-duration: 487ms;
}

.bar:nth-child(10) {
  left: 127px;
  animation-duration: 442ms;
}

.user audio {
  border-radius: 15px 15px 0 15px;
}

audio {
  border-radius: 15px 15px 15px 0;
  background-color: #f1f3f4;
}

audio::-webkit-media-controls-current-time-display {
  color: #333;
}

audio::-webkit-media-controls-time-remaining-display {
  color: #333;
}

audio::-webkit-media-controls-timeline {
  border-radius: 40px;
  background-color: e4e4e4;
}

audio::-webkit-media-controls-volume-slider {
  background-color: e4e4e4;
  border-radius: 50px;
  padding-left: 10px;
  padding-right: 10px;
}

audio::-webkit-media-controls-mute-button {
  background-color: e4e4e4;
  border-radius: 50%;
}

audio::-webkit-media-controls-more-button {
  display: none !important;
}

.hidden {
  display: none;
}

.popup-back-btn {
  width: 45px;
  height: 45px;
  background-color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 1%;
  left: 1%;
  cursor: pointer;
}

.popup-back-btn i {
  font-size: 20px;
  color: rgb(76, 76, 76);
}

.voice-animation-sec {
  display: none;
  animation: slideIn 0.5s ease-out forwards;
  animation: 0.5s ease-out 0s 1 normal forwards running slideIn;
  width: 100%;
  justify-content: space-between;
}

.delete-btn {
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  background-color: rgb(255, 87, 87);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.voice-bar {
  width: 120px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 5px;
}

.voice-btn {
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 50%;
  background-color: #21bfc1;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.typing {
  align-items: center;
  display: flex;
  height: 17px;
}

.typing .dot {
  animation: mercuryTypingAnimation 1.8s infinite ease-in-out;
  border-radius: 50%;
  height: 7px;
  margin-right: 4px;
  vertical-align: middle;
  width: 7px;
  display: inline-block;
}

.typing .dot:nth-child(1) {
  animation-delay: 200ms;
}

.typing .dot:nth-child(2) {
  animation-delay: 300ms;
}

.typing .dot:nth-child(3) {
  animation-delay: 400ms;
}

.typing .dot:last-child {
  margin-right: 0;
}




.pdf-container {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, height 0.5s ease, visibility 0.5s ease;
    background-color: #ffffff;
    margin: 2vw 0vw;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    position: relative;
    max-width: 90%;
    box-sizing: border-box;
  }
  .pdf-container.show {
    opacity: 1;
    visibility: visible;
    height: auto;
  }

  #pdf-viewer {
    width: 100%;
    height: 100%;
    overflow: auto;
    text-align: center;
    background-color: #f4f4f4;
  }

  .pdf-arrow {
    padding: 13px 20px;
    background-color: #21bfc1;
    color: #fff;
    border-radius: 50%;
    font-size: 25px;
    cursor: pointer;
  }
  canvas {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  #navigation-controls {
    margin: 20px 0;
    text-align: center;
  }
  .page-info {
    display: inline-flex;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 5px 15px;
    margin: 0 15px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
  }

  .page-info .icon {
    margin-right: 8px;
    font-size: 20px;
  }

  .page-info span {
    margin: 0 2px;
    font-weight: 700;
    color: #555;
  }

  .page-info .divider {
    color: #555;
    margin: 0 5px;
  }

  .pdf-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2vw 2vw;
  }

  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  #dobDiv{
    width: 50%;
  }


  .btn-divider {
    width: 1px;
    height: 49px;
    background-color: #000;
    margin: 0 10px;
  }

    @media (max-width: 768px) {
    .form-row {
      flex-direction: column;
    }
    #dobDiv{
      width: 100%;
    }

  }

@keyframes mercuryTypingAnimation {
  0% {
    transform: translateY(0px);
    background-color: #d9d9d9;
  }

  28% {
    transform: translateY(-7px);
    /* background-color:#6c6c6c; */
  }

  44% {
    transform: translateY(0px);
    /* background-color: #f0f0f0; */
  }
}

@media (max-width: 1024px) {
  .main-page-title h1 {
    font-size: 5vw;
  }

  .field-container {
    margin-top: 10vw;
    max-width: 90%;
    padding: 20px;
  }

  .form-row {
    flex-direction: column;
  }

  .chatbot-popup {
    width: 95%;
    height: 80vh;
  }

  .chatbot-body .message-content {
    font-size: 20px;
  }

  #nextBtnDiv,
  #resetBtnDiv,
  #resumeReset,
  #resumeNextBtnDiv {
    align-items: center !important;
  }
}

@media (max-width: 786px) {
  .chatbot-body .message-content {
    font-size: 14px;
  }
  
  .main-page-title h1 {
    font-size: 7vw;
  }
}

@media (max-width: 600px) {
  .lead-btn, .next-btn, #reset, #resumeReset, #resumeNextBtn, #nextBtn {
    font-size: 11px;
    padding: 8px;
  }
  #reset, #resumeReset, #nextBtn, #resumeNextBtn {
    margin-top: 0px;
  }
  
  .nav img {
    width: 100px;
  }
  #resumeReset, #openMore{
    font-size: 19px !important;
    padding: 0px 8px !important;
    margin: 0px !important;
  }
  /* #download-buttons{
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 100%;
      gap: 10px;
    } */
    .pdf-container {
    max-width: 90%!important;
    }

    .nav img{
      width: 100px;
    }

    .field-container {
      max-width: 90%;
    }
    #download-pdf, #send-email, #download-docx{
      padding: 6px 6px;
    }
}