/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/

.sidebar {
    background: #FFFFFF;
    position: fixed;
    width: 30rem;
    height: 100vh;
    z-index: 998;
    transition: width 200ms;
    top: 0;
    right: 0;
}

body:not(.sidebar-open) .sidebar {
    width: 0;
}

/* Make header buttons black when menu is open */
body.sidebar-open .header-btn-wrapper .button:not([data-hamburger]) {
    background: #000;
    color: #FFFFFF;
}
body.sidebar-open .header-btn-wrapper .button[data-hamburger] {
    background: none;
}
body.sidebar-open .header-btn-wrapper .button {
    box-shadow: none;
}

body.sidebar-open .sidebar {
    visibility: visible;
    width: 30rem;
}



/*--------------------------------------------------------------
# Sidebar content
--------------------------------------------------------------*/

.sidebar-content-wrapper {
    position: relative;
    top: 7.5rem;
    padding: 0 2.5rem;
    width: 30rem;
    height: 100%;
    overflow: hidden;
}
.sidebar-content-wrapper.has-scroll {
    overflow-y: auto;
    max-height: calc(100vh - 7.5rem);
}

.sidebar-content-wrapper.has-scroll .sidebar {
    height: calc(100vh + 7.5rem);
}

.sidebar-content-wrapper .article.has-title h2 {
    width: 300px;
    max-width: 100%;
    margin-top: 20px;
}

.sidebar-content-wrapper .send-cv-steps-list,
.sidebar-content-wrapper .actions {
    margin: 2.5rem 0;
}

.sidebar-content-wrapper .send-cv-steps-list ol li {
    margin: 10px 0;
}


/* CV file upload */

.sidebar-content-wrapper .form-wrap .field.file {
    padding: 2rem;
    border-radius: 1rem;
}


/* Form actions */

.sidebar-content-wrapper .actions {
    text-transform: uppercase;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}


/*--------------------------------------------------------------
# Different sidebar content
--------------------------------------------------------------*/

.send-cv-wrapper {
    transition: opacity 600ms, transform 300ms;
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    width: calc(100% - 5rem);
}
.send-cv-wrapper.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    height: 0;
}
.send-cv-wrapper.show {
    opacity: 1;
    transform: none;
    visibility: visible;
    height: auto;
}

.main-menu-content {
    opacity: 0;
    transition: opacity 600ms, transform 300ms;
    transform: translateX(100%);
}
.main-menu-content.hide {
    transform: translateX(100%);
    visibility: hidden;
    opacity: 0;
}

.main-menu-content.show {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}


/*--------------------------------------------------------------
# Media querys
--------------------------------------------------------------*/

@media all and (max-width: 768px) {

    .sidebar-content-wrapper {
        padding: 0 25px;
        width: 100%;
        top: 5.5rem;
    }


    body.sidebar-open .header-btn-wrapper .button[data-hamburger] {
        background: var(--red);
    }


    .send-cv-wrapper {
        position: absolute;
        top: 0;
        width: calc(100% - 50px);
    }


}

@media all and (max-width: 575px) {

    .sidebar, body.sidebar-open .sidebar {
        width: 100%;
    }

}