a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
em,
embed,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
i,
iframe,
img,
ins,
kbd,
label,
legend,
li,
mark,
menu,
nav,
object,
ol,
output,
p,
pre,
q,
ruby,
s,
samp,
section,
small,
span,
strike,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
time,
tr,
tt,
u,
ul,
var,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
  font-family: "Inter", serif;
  background-color: #f6f6f6;
  color: #09090b;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:after,
blockquote:before,
q:after,
q:before {
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

* {
  box-sizing: border-box;
}

.main-wrapper {
  max-width: 737px;
  margin: 34px auto 112px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: block;
  box-shadow: 0 4px 27px 0 #4c5b37;
  width: 88px;
  height: 88px;
  border-radius: 145.22px;
}

.form-wrapper,
.poll {
  border-radius: 20px;
  background-color: #fff;
}

.poll {
  text-align: center;
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  padding: 24px 0;
}

.form-wrapper {
  display: flex;
  flex-direction: column;
  row-gap: 25px;
  padding: 44px;
}

.separator {
  width: 100%;
  height: 1px;
  background-color: #e4e4e7;
}

.fieldset {
  border: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  row-gap: 32px;
}

.legend {
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  margin-bottom: 30px;
}

.field-wrapper {
  display: flex;
  flex-direction: column;
  row-gap: 8px;
}

.label {
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.field-container {
  position: relative;
  width: 100%;
}

.checkmark {
  display: none;
  position: absolute;
  top: 50%;
  right: -26px;
  transform: translateY(-50%);
}

.field {
  padding: 8px 12px;
  margin: 0;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  font-family: "Inter", serif;
  width: 100%;
  transition: 0.3s;
}

.field-container .field.valid {
  background-color: #e8f0fe;
}

.active-next-field {
  background-color: #e8f0fe;
}

.field-container .valid + .checkmark {
  display: inline;
}

.field:active,
.field:focus,
.field:focus-visible {
  border: 1px solid #1451f8;
  outline: 1px solid #1451f8;
}

input[type="radio"] {
  display: none;
}

.radio-group-container {
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
}

.radio-group-container .label {
  margin-bottom: 3px;
}

.radio-group {
  display: flex;
  align-items: center;
  position: relative;
  height: 16px;
}

.radio-field::after,
.radio-field::before {
  content: "";
  border-radius: 50%;
  transition: outline 0.3s, background-color 0.3s;
  position: absolute;
  font-size: 16px;
}

.radio-field::before {
  display: inline-block;
  outline: 1px solid #18181b;
  margin-right: 10px;
  width: 16px;
  height: 16px;
  left: 0;
  top: 0;
}

.radio-field::after {
  display: none !important;
  width: 10px;
  height: 10px;
  left: 8px;
  top: 8px;
  transform: translate(-50%, -50%);
  background-color: #677a4c;
}

.radio-field {
  padding-left: 28px;
  font-size: 14px;
  line-height: 14px;
}

input[type="radio"]:checked + .radio-field::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  outline: 1px solid #1451f8;
  border-radius: 50%;
  margin-right: 10px;
  transition: outline 0.3s, background-color 0.3s;
  position: absolute;
  left: 0;
}

input[type="radio"]:checked + .radio-field::after {
  display: block !important;
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: outline 0.3s, background-color 0.3s;
  position: absolute;
  left: 8px;
  top: 8px;
  transform: translate(-50%, -50%);
  background-color: #1451f8;
}

.send-button {
  padding: 8px 16px;
  color: #fafafa;
  background-color: #000;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
  width: max-content;
  font-family: "Inter", serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}

.send-button:hover {
  background-color: #18181be5;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='15' height='15' viewBox='0 0 15 15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z' fill='currentColor' fill-rule='evenodd' clip-rule='evenodd'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 30px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  line-height: 1.5;
  max-width: 100%;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

select option {
  background-color: white;
}

select::-ms-expand {
  display: none;
}

.background-image {
  background-image: url("../images/background.png");
  background-repeat: no-repeat no-repeat;
  background-position: center center;
  background-size: cover;
  position: relative;
  border-radius: 20px;
  width: 100%;
  height: 245px;
}

.chat-button {
  width: 64px;
  height: 64px;
  border-radius: 100%;
  border: 0;
  cursor: pointer;
  box-shadow: 0 1px 8px 0 #00000029;
  background-color: #1451f8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 50px;
  right: 80px;
}

.chat-button:hover {
  background-color: #0f3ec0;
}

.chat-window {
  position: fixed;
  bottom: 130px;
  right: 80px;
  display: flex;
  flex-direction: column;
  width: 302px;
  box-shadow: 0 4px 7px 0 #0000001a;
  border-radius: 10px;
  transition: width 0.3s, height 0.3s;
}

.chat-window-controls-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.toggle-sounds-button {
  position: absolute;
  right: 48px;
  top: 0;
  height: 51px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.slider-container {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: calc(50% + 16.5px);
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 113px;
  background-color: #ffffff;
  padding: 15px 10px 10px;
  box-shadow: 0px 1px 8px 0px #00000029;
  border-radius: 3px;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.slider-container .slider {
  width: 6px;
  height: 100%;
  writing-mode: vertical-lr;
  direction: rtl;
}

.toggle-sounds-button:hover .slider-container {
  opacity: 1;
  visibility: visible;
}

#toggleSoundsButtonImg {
  width: 16px;
  height: 16px;
}

.maximized-chat-window {
  width: 592px;
  transition: width 0.3s, height 0.3s;
}

#chatInput {
  transition: padding 0.3s;
}

.maximized-chat-window #chatInput {
  padding: 16px 24px;
  transition: padding 0.3s;
}

.chat-header {
  font-size: 20px;
  font-weight: 500;
  line-height: 14px;
  padding: 16px 16px 18px;
  background: #1451f8;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.maximize-button {
  cursor: pointer;
}

.chat-inside-window-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background-color: #fff;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

.chat-messages-wrapper {
  height: 259px;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  padding: 12px 0 12px 12px;
  overflow: hidden;
  transition: height 0.3s;
}

.chat-messages {
  font-size: 14px;
  line-height: 17px;
  color: #71717a;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  padding-right: 12px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.maximized-chat-window .chat-messages-wrapper {
  height: 322px;
  transition: height 0.3s;
}

.chat-messages::-webkit-scrollbar {
  width: 7px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 99999px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #e4e4e7;
  border-radius: 99999px;
}

.chat-input {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.chat-buttons-container {
  display: flex;
  align-items: center;
  gap: 24px;
}

.chat-send-button,
.chat-voice-button {
  color: #fafafa;
  background-color: #000;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
}

.chat-send-button {
  font-family: "Inter", serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  width: 100%;
  padding: 8px 16px;
}

.chat-send-button:hover {
  background-color: #18181be5;
}

.chat-voice-button {
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 110px;
  display: flex;
  padding: 0px;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 54px;
}

.chat-voice-button:hover {
  background-color: #1451f833;
}

.chat-voice-button-active {
  background-color: #1451f8;
  border: 0;
}

.chat-voice-button-active:hover {
  border: 0;
  background-color: #1451f8;
}

.micro-icon-active {
  animation: fadeInOut 1.5s infinite;
}

.micro-icon-active path {
  stroke: #ffffff;
}

.control-voice-responses-container {
  display: flex;
  align-items: center;
  gap: 10px;
  /* justify-content: space-between; */
}

.control-voice-responses-question {
  font-size: 14px;
  line-height: 16.94px;
}

.voice-responses-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: #f4f4f5;
  border-radius: 6px;
  cursor: pointer;
}

.voice-agree-button:hover {
  background-color: #0478574d;
}

.voice-agree-button__active {
  background-color: #047857;
}

.voice-agree-button__active svg path {
  fill: #ffffff;
}

.voice-agree-button__active:hover {
  background-color: #047857;
}

.voice-disagree-button:hover {
  background-color: #ff00004d;
}

.voice-disagree-button__active {
  background-color: #ce0000;
}

.voice-disagree-button__active svg path {
  fill: #ffffff;
}

.voice-disagree-button__active:hover {
  background-color: #ce0000;
}

.voiceModal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0s 0.5s;
}
.voiceModal.show {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0s;
}
.voiceModal-content {
  background-color: white;
  padding: 24px;
  border-radius: 8px;
  max-width: 548px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin: 0 16px;
  position: relative;
}

.close-modal-button {
  position: absolute;
  right: 24px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-text-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-text-header {
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
  color: #18181b;
}

.modal-text-paragraph {
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #71717a;
}

.modal-voice-state-button {
  width: max-content;
  margin-left: auto;
}

@media (max-width: 768px) {
  .main-wrapper {
    max-width: 737px;
    margin: 38px auto;
    padding: 0 16px;
  }

  .poll {
    padding: 16px;
    font-size: 20px;
  }

  .form-wrapper {
    display: flex;
    flex-direction: column;
    row-gap: 25px;
    border-radius: 20px;
    background-color: #fff;
    padding: 16px;
  }

  .send-button {
    margin-top: 25px;
  }

  .fieldset {
    row-gap: 16px;
  }

  #logoSVG,
  .logo {
    width: 66.96px;
    height: 66.96px;
  }

  .background-image {
    background-image: url("../images/background.png");
    background-repeat: no-repeat no-repeat;
    background-position: center center;
    background-size: cover;
    height: 135px;
  }

  .chat-button {
    bottom: 16px;
    right: 16px;
  }

  .chat-window {
    display: none;
    flex-direction: column;
    width: calc(100% - 32px);
    box-shadow: 0 4px 7px 0 #0000001a;
    border-radius: 10px;
    bottom: 96px;
    right: 16px;
  }

  .close-modal-button {
    right: 10px;
    top: 10px;
  }

  .field-container {
    display: flex;
    align-items: center;
    column-gap: 10px;
    width: 100%;
    justify-content: space-between;
  }

  .checkmark {
    position: static;
    width: 16px;
    height: 16px;
    transform: none;
  }
}

.message.bot {
  color: #000000;
  max-width: calc(100% - 12px);
  width: fit-content;
  background-color: #e8f0fe;
  padding: 10px;
  border-radius: 6px;
  align-self: flex-start;
}

.message.user {
  color: #000000;
  max-width: calc(100% - 12px);
  width: fit-content;
  background-color: #e4e4e7;
  padding: 10px;
  border-radius: 6px;
  align-self: flex-end;
  word-break: break-word;
}

.response-loader {
  display: flex;
  justify-content: center;
  padding: 5px;
  width: calc(100% - 12px);
}

.loader {
  width: 4px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: l5 1s infinite linear;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
}

.success-body {
  line-height: 1;
  font-family: "Inter", serif;
  background-color: #e8f0fe;
  color: #09090b;
}

.main-success-wrapper {
  max-width: 737px;
  margin: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.success-main-container {
  padding: 66px;
  background-color: #ffffff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  row-gap: 44px;
  align-items: center;
}

.success-thank-text {
  font-size: 24px;
  font-weight: 500;
  line-height: 44px;
  text-align: center;
}

.success-description-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 18px;
  text-align: center;
}

@media (max-width: 768px) {
  .main-success-wrapper {
    padding: 16px;
  }

  .success-main-container {
    padding: 32px 16px;
  }

  .error-message {
    margin-top: 0;
  }
}

@keyframes l5 {
  0% {
    box-shadow: 9px 0 #0000004d, -9px 0 #000;
    background: #0000004d;
  }
  33% {
    box-shadow: 9px 0 #0000004d, -9px 0 #000;
    background: #000;
  }
  66% {
    box-shadow: 9px 0 #000, -9px 0 #0000004d;
    background: #000;
  }
  100% {
    box-shadow: 9px 0 #000, -9px 0 #0000004d;
    background: #0000004d;
  }
}

@keyframes fadeInOut {
  0%,
  100% {
    opacity: 1; /* Початковий і кінцевий стан — повна непрозорість */
  }
  50% {
    opacity: 0.2; /* На середині циклу — прозорість 30% */
  }
}
