.eg-input,
.eg-textarea,
.eg-select {
  border-radius: 12px;
  border: 1px solid var(--elsel-grey-4);
  background-color: var(--elsel-white);
  width: 100%;
  padding: 1rem;
  color: var(--elsel-black);
  font-size: var(--font-16);
  font-weight: 400;
}

.eg-input,
.eg-select {
  height: 60px;
}

.eg-input::placeholder,
.eg-textarea::placeholder {
  color: inherit;
  font-weight: 300;
}

.eg-select {
  position: relative;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M16.25 6.875L10 13.125L3.75 6.875' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position-x: calc(100% - 1rem);
  background-position-y: 50%;
}

.eg-select::after {
  content: "";
  background-size: 20px;
  width: 20px;
  height: 20px;
  position: absolute;
  right: 0;
  top: 50%;
}

.eg-input:focus,
.eg-textarea:focus,
.eg-select:focus {
  border-color: var(--elsel-blue);
}

.eg-input:focus-visible,
.eg-textarea:focus-visible,
.eg-select:focus-visible {
  outline: 0;
}

.eg-textarea {
  resize: none;
}

.eg-input-group {
  width: 100%;
  display: flex;
  align-items: start;
  gap: 1rem;
}

.eg-label-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0.5rem;
}

.eg-radio-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.eg-radio-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.eg-label {
  font-size: var(--font-16);
  color: var(--elsel-grey-3);
  font-weight: 400;
}

.eg-checkbox {
  cursor: pointer;
  margin: 0;
  min-width: 25px;
  min-height: 25px;
  border-radius: 5px;
  border: 1px solid var(--elsel-grey-2);
}

.eg-checkbox:focus {
  border-color: var(--elsel-blue);
}

.eg-checkbox:checked {
  background-image: url("data:image/svg+xml, %3Csvg width='14px' height='14px' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='SVGRepo_iconCarrier'%3E%3Cpath d='M4 12.6111L8.92308 17.5L20 6.5' stroke='%23a9171e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 14px;
  background-position: center;
}

.eg-radio {
  cursor: pointer;
  margin: 0;
  min-width: 25px;
  min-height: 25px;
  border-radius: 100%;
  border: 1px solid var(--elsel-grey-4);
}

.eg-radio:focus {
  border-color: var(--elsel-blue);
}

.eg-radio:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13' fill='none'%3E%3Cpath d='M6.50684 12.5C9.82054 12.5 12.5068 9.81371 12.5068 6.5C12.5068 3.18629 9.82054 0.5 6.50684 0.5C3.19313 0.5 0.506836 3.18629 0.506836 6.5C0.506836 9.81371 3.19313 12.5 6.50684 12.5Z' fill='%23009EDB'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 13px;
  background-position: center;
}

.input-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.error-message {
  display: none;
  color: var(--elsel-red);
}

@media (max-width: 576px) {
  .eg-input-group {
    flex-direction: column;
  }
}
