/* Normal fade */
.fade-enter-active, .fade-leave-active {
    transition: opacity .25s ease-in-out, transform .25s ease-in-out;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
    opacity: 0;
    transform: translateY(5px);
} 

.vue-diagnostiek {
    --color-green: #77b458;

    color: var(--e-global-color-text);
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);
    text-transform: var(--e-global-typography-text-text-transform);
    font-style: var(--e-global-typography-text-font-style);
    line-height: var(--e-global-typography-text-line-height);
}

.cpx-radio {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    position: relative;
}

.cpx-radio + .cpx-radio {
    margin-left: 1rem;
}

.cpx-radio + br + .cpx-radio {
    margin-top: .5rem;
}

.cpx-radio input[type="radio"] {
    opacity: 0;
    /* appearance: none;
    height: 0;
    width: 0; */
    position: absolute;
    left: 0;
    top: 0;
}

.cpx-radio label {
    position: relative;
    padding-left: 1.65rem;
}

.cpx-radio label:before {
    content: '';
    height: 21px;
    width: 21px;
    border-radius: 100%;
    background-color: #fff;
    border: 1px solid var( --e-global-color-primary );
    display: inline-block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.cpx-radio label:after {
    content: '';
    height: 15px;
    width: 15px;
    border-radius: 100%;
    background-color: var(--color-green);
    display: inline-block;
    position: absolute;
    left: 3px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    transition: transform .12s ease-in, opacity .12s ease-in;
}

.cpx-radio label:hover {
    cursor: pointer;
}

.cpx-radio label:hover:after {
    opacity: 1;
    transform: translateY(-50%) scale(.5);   
}

.cpx-radio input[type="radio"]:checked + label:after {
    opacity: 1;
    transform: translateY(-50%) scale(1);   
}

.vue-diagnostiek__title {
    font-size: 1.25em;
    font-weight: bold;
    margin-bottom: .25em;
}

.vue-diagnostiek__title > small {
    font-size: .5em;
}

.vue-diagnostiek__form-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 900px;
    width: 100%;
}

.vue-diagnostiek__content__input-group {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 30px;
    flex-wrap: nowrap;
}

.vue-diagnostiek__content__input {
    display: inline-block;
    width: 100%;
    margin-bottom: 1.25em;
}

.vue-diagnostiek__content__input.vue-diagnostiek__content__input--half {
    width: 50%;
}
.vue-diagnostiek__content__input.vue-diagnostiek__content__input--half:only-child {
    width: calc(50% - 15px); /* remove gap if only child */
}

@media screen and (max-width: 768px) {
    .vue-diagnostiek__content__input-group {
        flex-direction: column;
        gap: 0;
    }
    .vue-diagnostiek__content__input.vue-diagnostiek__content__input--half {
        width: 100% !important;
    }
}

.vue-diagnostiek__content__input input[type="text"],
.vue-diagnostiek__content__input input[type="email"],
.vue-diagnostiek__content__input input[type="tel"],
.vue-diagnostiek__content__input input[type="number"],
.vue-diagnostiek__content__input input[type="password"],
.vue-diagnostiek__content__input input[type="date"],
.vue-diagnostiek__content__input input[type="datetime"],
.vue-diagnostiek__content__input textarea,
.vue-diagnostiek__content__input label {
    width: 100%;
    display: block;
}

.vue-diagnostiek__content__input label {
    color: var(--e-global-color-primary);
}

.vue-diagnostiek__content__input label > input {
    margin-top: .25em;
}

.vue-diagnostiek__content__input input[type="text"],
.vue-diagnostiek__content__input input[type="email"],
.vue-diagnostiek__content__input input[type="tel"],
.vue-diagnostiek__content__input input[type="number"],
.vue-diagnostiek__content__input input[type="password"],
.vue-diagnostiek__content__input input[type="date"],
.vue-diagnostiek__content__input input[type="datetime"],
.vue-diagnostiek__content__input textarea {
    border-radius: 4px;
    border: 1px solid var(--e-global-color-primary);
}

.vue-diagnostiek__content__input input::-webkit-outer-spin-button,
.vue-diagnostiek__content__input input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

.vue-diagnostiek__content__input input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}
