/* Input */

.form-control,
.ms-options-wrap > button:focus, .ms-options-wrap > button {
    border-radius: 4px;
    border: 1px solid rgb(210, 214, 222) !important;
    outline: none;
}

input.error, select.error, textarea.error {
    border: 1px solid var(--secondary-color) !important;
    background: #fff;
}

input.error::placeholder {               /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: var(--secondary-color);
}

input.error:-ms-input-placeholder {      /* Internet Explorer 10-11 */
    color: var(--secondary-color);
}

input.error::-ms-input-placeholder {    /* Microsoft Edge */
    color: var(--secondary-color);
}

input[type="text"], input[type="password"], input[type="search"], input[type="email"], input[type="number"], select,
select.form-control,
.form-group select,
.ms-options-wrap.ms-has-selections > button,
.ms-options-wrap > .ms-options > ul label {
    color: #777;
}

.form-group label.error {
    color: var(--secondary-color);
}
/* Checkbox */
.ms-options-wrap > .ms-options > ul label,
.fill-checkbox {
    display: inline-flex;
    align-items: center;
}

.ms-options-wrap > .ms-options > ul label::before {
    content: "";
    margin-right: 5px;
}

.fill-checkbox .fill-control-label {
    margin-left: 5px;
}

.ms-options-wrap > .ms-options > ul label input,
.fill-checkbox input[type="checkbox"] {
    display: none !important;
}

.ms-options-wrap > .ms-options > ul label::before,
.fill-checkbox .fill-control-indicator {
    display: inline-block;
    border-radius: 3px;
    width: 16px;
    height: 16px;
    border: 1px solid #aaa;
    transition: background-size .1s, background-color .1s;
    background-color: #fff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 0%;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3E%3C/svg%3E");
}

.ms-options-wrap > .ms-options li.selected > label::before,
.fill-checkbox input[type="checkbox"]:checked ~ .fill-control-indicator {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-size: 80%;
}

/* Billing */
.form-group-switch-annual input {
    display: none;
}

.form-group-switch-annual .switch-annual {
    display: inline-flex;
    border-radius: 5px;
    padding: 2px;
    color: #ccc;
    cursor: pointer;
    user-select:none;
    -moz-user-select:none;
    -webkit-user-select:none;
    align-items: center;
}

.form-group-switch-annual .switch-annual .switch-knobs {
    height: 36px;
    width: 74px;
    position: relative;
    margin: 0 10px;
}

.form-group-switch-annual .switch-annual .switch-knobs::before {
    content: "";
    position: absolute;
    height: 100%;
    width: 100%;
    border-radius: 100px;
    background-color: var(--secondary-color9);
    transition: 0.4s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
    top: 0;
    left: 0;
}

.form-group-switch-annual input:checked + .switch-annual .switch-knobs::before {
    transform: rotateZ(180deg);
}

.form-group-switch-annual .switch-annual .switch-knobs .knobs-dot {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    transition: 0.4s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
}

.form-group-switch-annual .switch-annual .switch-knobs .knobs-dot::before {
    content: "";
    width: 25px;
    height: 25px;
    background-color: var(--primary-color);
    border-radius: 100%;
    position: absolute;
    left: 5px;
    top: 5px;
}

.form-group-switch-annual input:checked + .switch-annual .switch-knobs .knobs-dot {
    transform: rotateZ(-180deg);
}
.form-group-switch-annual input:checked + .switch-annual .switch-knobs .knobs-dot::before {
    background-color: var(--secondary-color);
}

.form-group-switch-annual input:checked + .switch-annual .switch-knobs::before {
    background-color: var(--primary-color6);
}

.form-group-switch-annual .switch-annual .switch-btn {
    font-size: 18px;
    transition: .4s;
    /* font-weight: bold; */
}

.form-group-switch-annual .switch-annual .switch-btn-off {
    color: var(--primary-color5);
}

.form-group-switch-annual input:checked +  .switch-annual .switch-btn-off {
    color: #ccc;
}

.form-group-switch-annual input:checked + .switch-annual .switch-btn-on {
    color: var(--secondary-color8);
}


/* common */
.modal {
    overflow-y: auto;
}

.btn-flat.btn-flat-pulse,
.btn-flat-pulse {
    -webkit-animation: pulse .8s;
    animation: pulse2 .8s;
    -webkit-animation-iteration-count: 5;
    animation-iteration-count: 5;
}

@keyframes pulse2 {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0px #00e1ff00;
    }

    15% {
        transform: scale(.93);
        box-shadow: 0 0 0 10px #00e1ff50;
    }

    100% {
        transform: scale(1);
        box-shadow: 0px 0px 0px 30px #00e1ff00;
    }
}