input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px white inset !important;
  -webkit-text-fill-color: #000 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.form-field {
    width: 100%;
    position: relative;
}
.form-field input , .form-field textarea , .combo-box .field-head {
    border: 1px solid var(--borderColor);
    border-radius: 10px;
    background: none;
    width: 100%;
    padding: 15px;
    height: 45px;
    font-size: 14px;
    font-family: rubik;
}
.form-field.text input {
    height: 47px;
}
.combo-box .field-head {
    border:none;
}
.combo-box {
    border: 1px solid var(--borderColor);
    border-radius: 10px;
    padding:0;
}
.combo-box .field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: 0.3s;
    font-family: rubik;
    overflow: hidden;
}
.form-field textarea {
    resize: none;
    height: 100px;
}
.form-field label {
    position: absolute;
    color: rgb(82, 100, 112);
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
    white-space: nowrap;
    overflow: hidden;
    padding: 0 20px;
    right: 0;
    top: 13px;
    transition: 0.3s;
    line-height:20px;
    user-select: none;
}
.form-field.date label {
    padding-right: 45px;
}
.form-field input:focus + label , .form-field textarea:focus + label, .form-field .combo-box:focus .field-head .field-title {
    color: var(--primary);
    font-size: 12px;
    top: -10px;
    background: #fff;
    padding: 0px 5px;
    right: 10px;
}
.field-head svg {
    transition: 0.3s;
    position: absolute;
    left: 15px;
}
.form-field .combo-box:focus .field-head svg {
    transform: rotate(180deg);
}
.form-field label.fill, .form-field .combo-box .field-title.fill {
    font-size: 12px;
    top: -10px;
    background: #fff;
    padding: 0px 5px;
    right: 10px;
}
.field-body {
    background: #fff;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60%;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    box-shadow: 0 0 10px #ccc;
    width: 100%;
    overflow: auto;
    max-height:220px;
    z-index: 10;
    visibility: hidden;
}
.form-field .combo-box:focus .field-body {
    opacity: 1;
    top: 58px;
    pointer-events: unset;
    visibility: visible;
}
.field-body .option {
    padding: 8px 15px;
    transition: 0.3s;
    cursor: pointer;
    font-size: 13px;
}
.field-body .option:hover {
    /*background: rgb(213 220 225 / 60%);*/
    background: rgb(213 220 225 / 21%);
}
.form-field.textarea {
    display: flex;
    flex-direction: column;
}
.option.active {
    color: var(--primary);
}
.active-option {
    pointer-events: none;
    user-select: none;
    font-weight: normal !important;
}
.field-actions {
    display: flex;
    position: absolute;
    top: 13px;
    left: 15px;
    cursor: pointer;
    background: #fff;
    padding-right: 10px;
}
.form-field input[type="password"] + label + div.field-actions .close-eye {
    display: none;
}
.form-field input[type="text"] + label + div.field-actions .open-eye {
    display: none;
}
.form-field input:focus,
.form-field input:focus-within,
.form-field textarea:focus,
.form-field textarea:focus-within,
.form-field .combo-box:focus,
.form-field .combo-box:focus-within {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}
.field-actions svg {
    width: 20px;
    height: 20px;
}
.field-actions svg path {
    fill: rgb(82, 100, 112);
}
.form-field input:focus + label + .field-actions svg path {
    fill: var(--primary);
}
/** checkbox style **/

.form-field.checkbox {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
    gap: 5px;
}
.checkbox-wrapper {
    padding: 8px;
    border-radius: 50%;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    position: relative;
}
.checkbox-wrapper:hover {
    background-color: #eaeced70;
}
.checkbox-wrapper svg {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    z-index: 1;
    fill: #fff;
    border: 1px solid #666666;
    transition: fill 0.15s;
}
.checkbox-wrapper.checked svg {
    border: none;
    fill: var(--primary);
}
.checkbox-wrapper input {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 2;
}
.checkbox-wrapper {
    position: relative;
    overflow: hidden;
}
.form-field.checkbox label {
    position: unset;
    display: block;
    padding: 0;
    pointer-events: unset;
    color: var(--textColor);
}
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(245, 124, 0, 0.28);
    transform: scale(0);
    animation: ripple-animation 600ms ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/** searchable select box **/
.disabled {
    pointer-events: none;
    opacity: 0.4;
}
.hidden {
    display: none;
}
.form-field .icon-wrapper {
    position: absolute;
    top: 15px;
    left: 15px;
}
.form-field .icon-wrapper svg {
    transition: 0.3s;
    width: 15px;
    height: 15px;
}
.form-field input:focus + label + .icon-wrapper svg {
    transform: rotate(180deg);
}
.select-body {
    background: #FFF;
    box-shadow: 0 0 10px #cccccc96;
    border-radius: 10px;
    position: absolute;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    top: 60%;
    pointer-events: none;
    transition: 0.3s;
    z-index: 10;
}
.form-field:focus-within .select-body {
    opacity: 1;
    visibility: visible;
    pointer-events: unset;
    top: 58px;
}
.no-result-message {
    display: none;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    font-size: 14px;
    padding: 20px 10px;
    border-radius: 10px;
    font-weight: bold;
    color: #526470;
}
.button.add-item-button {
    background: var(--primary);
    color: #fff;
    border: none;
    outline: none;
    border-radius: 0 0 10px 10px;
    padding: 12px 20px;
    width: 100%;
    cursor: pointer;
}
.options-wrapper {
    display: flex;
    flex-direction: column;
    max-height: 250px;
    overflow: auto;
}
.options-wrapper .option {
    padding: 8px 15px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 13px;
}
.options-wrapper .option:hover {
    background-color: rgb(213 220 225 / 60%);
}
.options-wrapper .option.active {
    background-color: var(--primary);
    color: #fff;
}
.options-wrapper .option:first-child {
    border-radius: 10px 10px 0 0;
}
/** uploader **/
.uploader-wrapper {
    gap: 0;
}
.preview-box {
    background: #efefef;
    border-radius: 10px;
    display: flex;
    border: 1px solid var(--borderColor);
    cursor: pointer;
    position: relative;
}
.uploader-wrapper.avatar .preview-box {
    width: fit-content;
    padding: 9px 10px;
}
.uploader-wrapper.avatar .preview-box img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.uploader-wrapper.image .preview-box img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    height: 250px;
}
.uploader-wrapper.image .icon-wrapper svg {
    width: 30px;
    height: 30px;
}
.preview-box .icon-wrapper {
    background: #fff;
    position: absolute;
    bottom: 0;
    right: 10px;
    padding: 4px;
    border-radius: 50%;
    border: 1px solid var(--borderColor);
}
.uploader-wrapper.image .icon-wrapper {
    bottom: -20px;
    padding: 10px;
}
.uploader-wrapper.avatar .preview-box svg {
    width: 15px;
    height: 15px;
}
/** many to many select box **/
.multiple-choice-select-box .no-result-message {
    padding: 0;
    margin-top: 15px;
}
.multiple-choice-select-box .no-result-message button {
    border-radius: 10px;
}
.multiple-choice-select-box .no-result-message span {
    text-align: center;
    line-height: 25px;
    font-weight: 500;
}
.group.acitve {
    display: revert;
}
.multiple-choice-select-box {
    border: 1px solid var(--borderColor);
    border-radius: 10px;
    padding: 15px;
}
/** errors **/
.form-field.error input, .form-field.error textarea, .form-field.select.error .combo-box {
    border-color: var(--red) !important;
    outline-color: var(--red) !important;
}
.form-field.error label {
    color: var(--red) !important;
}
.form-field.password.error .field-actions svg path {
    fill: var(--red);
}
.errorlist li, .errorlist .error {
    padding: 10px 5px 0;
    font-size: 13px;
}
.captcha-wrapper {
    display: flex;
    gap: 50px;
}
.captcha-wrapper input[type="text"] {
    border: 1px solid var(--borderColor);
      border-radius: 10px;
      background: none;
      width: 100%;
      padding: 15px;
      height: 45px;
      font-size: 14px;
      font-family: rubik;
}
.captcha-wrapper input[type="text"]:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}
.captcha-wrapper img {
    width: 100%;
    object-fit: contain;
}
.refresh-captcha {
    padding: 5px;
    position: absolute;
    left: 19px;
    right: 0;
    width: fit-content;
    margin: auto;
    top: 8px;
}
.refresh-captcha svg {
    width: 15px;
    height: 15px;
}