/*
 *  FORMS & INPUTS
 */
.form:not(.custom) {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    font-size: 0.8rem;
}

/* Group */
.form-group {
    width: 100%;
}

/* Inputs */
.input:not(.custom) {
    width: 100%;
    font-size: inherit;
}
.input .input-element {
    font-size: 0.7rem;
}

/* Searchbar */
.input.searchbar {
    position: relative;
}
.input.searchbar .input-label {
    font-size: 0;
}
.input.searchbar .input-element {
    border-radius: 6px 0 0 6px;
    border: 1px solid rgba(44, 42, 42, 0.18);
    background: #fff;
    padding: 0.6rem;
    width: 100%;
}
.input.searchbar .input-button > svg {
    fill: #fff;
    height: 20px;
    width: 20px;
}
.input.searchbar .input-button {
    border-radius: 0 6px 6px 0;
    background: var(--background-light-blue);
    color: var(--background);
    padding: 0.6rem;
    border: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Normal */
.input:not(.custom) > .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.input:not(.custom) > .input-wrapper > .input-label {
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
}
.input:not(.custom) > .input-wrapper > .input-element {
    border-left: 1px solid #263B7E;
    border-right: 1px solid #263B7E;
    border-bottom: 1px solid #263B7E;
    border-top: 1px solid transparent;
    background: white;
    padding: 0.7rem 1rem;
    appearance: unset;
    border-radius: 0;
}

/* Phone */
.input:not(.custom) > .input-wrapper > .input-element-wrapper {
    display: flex;
    width: 100%;
}
.input:not(.custom) > .input-wrapper > .input-element-wrapper > .input-input-wrapper {
    background: white;
    position: relative;
    width: 145px;
}
.input:not(.custom) > .input-wrapper > .input-element-wrapper > .input-input-wrapper:last-child {
    width: 100%;
}
.input:not(.custom) > .input-wrapper > .input-element-wrapper > .input-input-wrapper > .input-element-svg {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    z-index: 0;
}
.input:not(.custom) > .input-wrapper > .input-element-wrapper > .input-input-wrapper > .input-element {
    border: 0;
    background: transparent;
    border-bottom: 1px var(--background-blue) solid;
    padding: 11px 2px;
    width: 100%;
    position: relative;
    appearance: none;
    border-radius: 0;
    z-index: 1;
}
.input:not(.custom) > .input-wrapper > .input-element-wrapper > .input-input-wrapper:first-child > .input-element {
    border-left: 1px var(--background-blue) solid;
    padding-left: 15px;
}
.input:not(.custom) > .input-wrapper > .input-element-wrapper > .input-input-wrapper:last-child > .input-element {
    border-right: 1px var(--background-blue) solid;
    padding-left: 10px;
    padding-right: 15px;
}
.input.phone ::-webkit-list-button {
    display: none !important;
    -webkit-appearance: none;
}

/* Textarea */
textarea.input-element {
    resize: vertical;
    min-height: 175px;
}

/* Button */
.input.button {
    width: auto;
}

/* Checkbox */
.input.checkbox {
    width: auto;
}
.input.checkbox > .input-wrapper > .input-label {
    gap: 8px;
    cursor: pointer;
    text-transform: initial;
    width: 100%;
}
.input.checkbox > .input-wrapper > .input-element {
    min-width: auto;
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.input.checkbox > .input-wrapper > .input-label > .checkmark {
    position: relative;
    display: inline-block;
    background: white;
    border: 1px var(--background-blue) solid;
    border-top: none;
    height: 16px;
    width: 16px;
    min-width: 16px;
    margin-top: 0.1em;
}
.input.checkbox:hover > .input-wrapper > .input-label > .checkmark {
    background-color: #f6f6f6;
}
.input.checkbox.full > .input-wrapper > .input-element:checked ~ .input-label > .checkmark {
    background-color: var(--background-blue);
}
.input.checkbox > .input-wrapper > .input-label > .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    font-size: 0.65rem;
    color: var(--background-blue);
}
.input.checkbox.full > .input-wrapper > .input-label > .checkmark:after {
    color: var(--background);
}
.input.checkbox > .input-wrapper > .input-element:checked ~ .input-label > .checkmark:after {
    content: "X";
    display: flex;
    justify-content: center;
    align-items: center;
}
.input.checkbox.full > .input-wrapper > .input-element:checked ~ .input-label > .checkmark:after {
    color: var(--background);
}

/* Radio */
.input.radio {
    width: auto;
}
.input.radio > .input-wrapper > .input-label {
    gap: 6px;
    text-transform: initial;
    cursor: pointer;
}
.input.radio > .input-wrapper > .input-element {
    min-width: auto;
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.input.radio > .input-wrapper > .input-label > .checkmark {
    position: relative;
    display: inline-block;
    background: white;
    border: 1px var(--background-blue) solid;
    border-top: none;
    border-radius: 10rem;
    height: 16px;
    width: 16px;
    min-width: 16px;
}
.input.radio:hover > .input-wrapper > .input-label > .checkmark {
    background-color: #f6f6f6;
}
.input.radio > .input-wrapper > .input-label > .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    height: 100%;
    width: 100%;
    font-size: 0.65rem;
    border-radius: 10rem;
    transform: translate(-50%, -50%);
}
.input.radio > .input-wrapper > .input-element:checked ~ .input-label > .checkmark:after {
    display: block;
    height: 30%;
    width: 30%;
    border: 1px solid var(--background-blue);
    background: var(--background-blue);
}

/* Select */
.input.select {
    width: 100%;
    font-size: 0.7rem;
}
.input.select > .input-wrapper > .input-element-wrapper > .input-input-wrapper > .input-element {
    border-top: 1px solid transparent;
}
.input.select  > .input-wrapper > .input-element-wrapper > .input-input-wrapper > .input-element-svg {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    z-index: 0;
}

.input.image {
    width: 100%;
}
.input.image > .input-wrapper > .input-element-upload {
    border: 1px solid var(--background-blue);
    /* border-top: transparent; */
    border-radius: 3px;
    height: 125px;
    background: #fff;
    overflow: hidden;
    z-index: 1;
}
.input.image > .input-wrapper > .input-element-upload > .input-element {
    background: #fff;
    padding: 2px 3px;
    border-radius: 7px;
    z-index: 1;
}
.input.image > .input-wrapper > .input-element-upload > .decoration {
    top: 50%;
    left: -10%;
    transform: translateY(-50%) rotate(15deg);
    height: 150%;
    width: 50%;
    z-index: -1;
}
.input.image > .input-wrapper > .input-element-upload > .actions {
    top: 4px;
    right: 4px;
    display: none;
    z-index: 0;
}
.input.image.active > .input-wrapper > .input-elementvupload > .actions {
    display: flex;
}
.input.image > .input-wrapper > .input-element-upload > .actions > .action {
    border: 1px solid var(--background-blue);
    padding: 2px;
    border-radius: 4px;
    background: #fff;
    min-width: 20px;
    height: 20px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--background-blue);
}
.input.image > .input-wrapper > .input-element-upload > .image-preview {
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    z-index: -1;
    filter: brightness(0.75);
}

/* form-fieldset */
.form-fieldset {
    border: none;
    padding: 0;
    display: none;
    flex-direction: column;
    gap: 1rem;
}
.form-fieldset.active {
    display: flex;
}
.fieldset-display {
    display: none;
}
.fieldset-display.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-fieldset {
    display: flex;
    gap: 2rem;
    padding: 1.75rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 0 20px -17px #000;
    width: 100%;
}

/* appointment */
.appointment_refresh {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--section-background);
}
.appointment_refresh svg {
    fill: var(--section-color);
    opacity: 0.3;
    height: 64px;
    width: 64px;

    animation: spinner 1.5s ease-in-out infinite;
}

@keyframes spinner {
    from {
        rotate: 0;
    }
    to {
        rotate: 360deg;
    }
}

/* Rich Text */
/* Change background and font */
.ql-container {
    border: none !important;
}
.ql-editor {
    background: #fff !important;
    border: none !important;
    border-left: 1px solid var(--background-blue) !important;
    border-right: 1px solid var(--background-blue) !important;
    border-bottom: 1px solid var(--background-blue) !important;
    font-size: 16px !important;
    min-height: 150px !important;
    max-height: 450px !important;
    overflow-y: auto !important;
}

/* Custom toolbar look */
.ql-toolbar.ql-snow {
    border: none !important;
    border-left: 1px solid var(--background-blue) !important;
    border-right: 1px solid var(--background-blue) !important;
    background: #fff !important;
}

/* Set Attributes */
.ql-editor p {
    font-size: 0.95rem !important;
}
.ql-editor ol li:not(.ql-direction-rtl), .ql-editor ul li:not(.ql-direction-rtl) {
    font-size: 0.95rem !important;
    color: var(--section-color-light);
}
.ql-snow .ql-editor h1,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before {
    font-size:  2.1rem !important;
}
.ql-snow .ql-editor h2,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before {
    font-size: 1.4rem !important;
}
.ql-snow .ql-editor h3,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before {
    font-size: 1.35rem !important;
}
.ql-snow .ql-editor h4,
.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before {
    font-size: 1.25rem !important;
}
