.af_container {
    padding-top: 20px;
}

.af_tabbed-form {
    background: #ffffff;
}

.af_tabbed-form-tabs {
    display: none;
    &:focus {outline: none;}
}

.af_tabbed-form-item {
    border-bottom: 2px solid #b9b9b9;

    &:last-child {
      border: none;
    }
}

.af_tabbed-form-item__label {
    margin: 0;
    padding: 0 1.25rem 0 0;
    cursor: pointer;
    transition: padding .2s ease;
    position: relative;

    &:after {
        content: "";
        height: 4px;
        width: 4px;
        position: absolute;
        top: -4px;
        right: 1.25rem;
        bottom: 0;
        margin: auto;
        border: 3px solid transparent;
        border-radius: 2px;
        transform: rotate(45deg);
        border-color: transparent rgb(224, 156, 28) rgb(224, 156, 28) transparent;
        opacity: 1;
        transition: opacity .1s ease;
    }

    &:hover {
        background: lighten(rgb(224, 156, 28), 28);
    }
}

.af_tabbed-form-item__container {
    padding: 0 1.25em;
    height: 0;
    overflow: hidden_but_why;
    opacity: 0;
    transition:
        padding .2s ease,
        opacity .5s .15s ease;
}

.accordion-active {
    display: block !important;
    background: rgba(rgb(255, 168, 68), .1);

    &.af_tabbed-form-item__label {
        padding-bottom: 0;
        cursor: inherit;

        &:hover {
            background: none;
        }

        &:after {
            opacity: 0;
        }
    }
}

.accordion-active
.af_tabbed-form-item__container {
    padding: 1.25em;
    height: auto;
    opacity: 1;

    p, h1, h2, h3, h4, h5, h6 {
        &:first-child {
            margin-top: 0;
        }

        &:last-child {
            margin-bottom: 0;
        }
    }
}

@media (min-width: 600px) {

    .af_tabbed-form {
        max-width: 100%;
    }

    .af_tabbed-form-tabs {
        display: flex;
        background: rgba(68, 127, 255, 0.1);
    }

    .af_tabbed-form-tab {
        background: rgba(249, 255, 68, 0.1);
        padding: 1rem 2rem;
        font: inherit;
        flex: 1;
        border: none;
        cursor: pointer;
        transition: background .1s ease;
        text-align: center;

        &:hover{
            background: rgba(234, 234, 234, 0.01)
        }

        &:last-child {
            border-right: 0;
        }

        &.accordion-active {
            background: #ffffff;
        }
    }

    .af_tabbed-form-item {
        padding: 2.4rem;
        display: none;
        border: none;
        background: #ffffff;
        min-height: 260px;
    }
    .af_tabbed-form-item__label, &__container {
        padding: 0;
        transition: inherit;
    }

    .af_tabbed-form-item__label {
        margin-bottom: 1.5rem;
    }

    .accordion-active {
        display: block;
    }
    .accordion-active
    .accordion-item__container {
        padding: 0;
    }
}

.af_admin-logo
{
    width: 36px;
    height: auto;
    float: right;
    padding-right: 20px;
}

.af_spinner {
    display: none;
    position: fixed;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.5);
}

.af_spinner-show {
    display: block;
}
