body.sidebar-open {
    overflow: hidden;
}

html:has(body.sidebar-open) {
    scrollbar-gutter: stable;
}

.sidebar-wrapper {
    width: 100vw;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 100%;
    background-color: rgba(0, 0, 0, .6);
    display: flex;
    justify-content: end;
    z-index: 100;
}

body.sidebar-open .sidebar-wrapper {
    left: 0;
}

.sidebar-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    width: 450px;
    padding: 32px 40px 48px 64px;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #fff;
    color: #222;
    user-select: none;
}

.sidebar-top {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

#sidebar-close {
    display: block;
    background-position: 50% 50%;
    border: none;
    background-repeat: no-repeat;
    padding: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' class='close-form-icon' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M18.7219 3.21479L12.0007 9.93305L5.28101 3.21479C5.00193 2.93571 4.53583 2.93571 4.24799 3.22355L3.22374 4.24488C2.92275 4.54733 2.93297 4.99882 3.21497 5.28082L9.9347 11.9991L3.21497 18.7203C2.9359 18.9994 2.9359 19.4655 3.22374 19.7533L4.24799 20.7775C4.54752 21.0771 4.99901 21.0683 5.28101 20.7863L12.0007 14.0651L18.7219 20.7863C18.9995 21.0654 19.4671 21.0654 19.7549 20.7775L20.7792 19.7533C21.0787 19.4538 21.07 19.0023 20.788 18.7203L14.0682 11.9991L20.788 5.28082C21.0656 5.00175 21.067 4.53272 20.7792 4.24488L19.7549 3.22355C19.6044 3.07306 19.4174 3 19.2319 3C19.0434 3 18.8607 3.07306 18.7219 3.21479Z' fill='currentColor'%3E%3C/path%3E%3C/svg%3E");
    width: 24px;
    height: 24px;
    cursor: pointer;
}

#sidebar-back {
    display: block;
    visibility: hidden;
    background-position: 50% 50%;
    border: none;
    background-repeat: no-repeat;
    padding: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' class='cursor-pointer' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M15.569 2.17879L6.17411 11.5748C6.05935 11.6896 6.00136 11.843 6.00015 11.9989C5.99653 12.1619 6.05693 12.313 6.17411 12.4313L15.569 21.8262C15.8009 22.0581 16.1911 22.0593 16.4279 21.8214L17.2747 20.9782C17.5223 20.7281 17.5139 20.3536 17.2771 20.1192L9.16278 12.0025L17.2771 3.88815C17.5091 3.65621 17.5115 3.26722 17.2747 3.02924L16.4279 2.18483C16.3034 2.05919 16.15 2 15.9966 2C15.8408 2 15.6873 2.0604 15.569 2.17879Z' fill='currentColor'%3E%3C/path%3E%3C/svg%3E");
    width: 24px;
    height: 24px;
    cursor: pointer;
}

#sidebar-back.active {
    visibility: visible;
}

#sidebar-nav {
    display: none;
    padding-top: 36px;
    padding-right: 24px;
    height: calc(100% - 24px);
}

#sidebar-nav.open {
    display: flex;
    flex-direction: column;
}

.sidebar-nav-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: calc(100% - 24px);
}

.sidebar-form,
.sidebar-success {
    display: none;
    padding-top: 36px;
    padding-right: 24px;
}

.sidebar-form.open {
    display: block;
}

.sidebar-success.open {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 100%;
    gap: 16px;
}

.sidebar-inner-container:has(.sidebar-success.open) {
    height: 100%;
}

.sidebar-title,
.sidebar-success-title,
.clutch-landing-form-title {
    font-size: 32px;
    line-height: 48px;
    font-weight: 600;
    text-transform: capitalize;
}

.sidebar-title {
    margin-bottom: 32px;
}

.sidebar-success-image {
    display: block;
    width: 100px;
    height: 100px;
}

.sidebar-form .wpcf7-checkbox .wpcf7-list-item input {
    width: 0;
    height: 0;
    border: none;
}

.sidebar-form .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sidebar-form .wpcf7-checkbox .wpcf7-list-item {
    display: flex;
    margin-left: 0;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.form-field {
    margin-bottom: 28px;
    position: relative;
}

.form-field.range > .wpcf7-form-control-wrap {
    padding: 28px 0;
}

.sidebar-form #file-info {
    display: none;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    min-height: 32px;
}

.sidebar-form #file-info svg{
    display: none;
    height: 32px;
}

.sidebar-form #file-info svg path{
    fill: #ffcb08;
}

.sidebar-form .form-field p,
.sidebar-form label,
.sidebar-form #file-name {
    color: #a1a1a1;
    font-size: 16px;
    line-height: 16px;
}

.sidebar-form .form-field p,
.sidebar-form label {
    margin-bottom: 8px;
    display: block;
}

.form-field .wpcf7-form-control-wrap {
    display: block;
}

.sidebar-form .wpcf7-checkbox .wpcf7-list-item label {
    display: flex;
    margin-bottom: 0;
}

.sidebar-form .wpcf7-checkbox .wpcf7-list-item .wpcf7-list-item-label {
    cursor: pointer;
    background-color: #eee;
    padding: 10px 20px;
    user-select: none;
    color: #222;
}

.sidebar-form .wpcf7-checkbox .wpcf7-list-item input:checked ~ .wpcf7-list-item-label {
    background-color: #ffcb08;
    color: #222;
}

.sidebar-form .wpcf7-range {
    border: none;
    background-color: #eee;
    height: 4px;
    padding: 0;
    width: 100%;
}

.sidebar-form .form-field .start-range {
    position: absolute;
    bottom: 0;
    left: 0;
}

.sidebar-form .form-field .end-range {
    position: absolute;
    bottom: 0;
    right: 0;
}

.sidebar-form .form-field #current-range {
    position: absolute;
    top: 35px;
    left: 0;
    border-right-color: #FFF;
}

.sidebar-form input[type=range]::-moz-range-thumb,
.sidebar-form input[type=range]::-webkit-slider-thumb {
    border-radius: 0;
    width: 16px;
    height: 16px;
    background-color: #ffcb08;
    border: none;
}

.activate-sidebar-form,
input.wpcf7-submit {
    background-color: transparent;
    border: 2px solid #ffcb08;
    padding: 16px 24px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    color: #222;
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    transition: all .3s;
}

.activate-sidebar-form {
    margin-bottom: 20px;
}

.form-field:has(input.wpcf7-submit):before {
    content: "";
    width: 28px;
    height: 32px;
    display: block;
    opacity: 0;
    position: absolute;
    top: 14px;
    left: calc(50% - 75px);
    background: url('../../images/rock.svg') no-repeat;
    background-size: contain;
    transition: all .3s;
    cursor: pointer;
    pointer-events: none;
}

.wpcf7-textarea,
.wpcf7-text {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 2px solid rgba(34, 34, 34, 0.2);
    padding: 12px 16px;
    font-size: 16px;
    line-height: 20px;
    resize: none;
}

.wpcf7-text:-webkit-autofill,
.wpcf7-text:-webkit-autofill:hover,
.wpcf7-text:-webkit-autofill:focus,
.wpcf7-textarea:-webkit-autofill,
.wpcf7-textarea:-webkit-autofill:hover,
.wpcf7-textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #222;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 203, 8, 0.3) inset;
    border: 2px solid #ffcb08;
}

.wpcf7-text::placeholder,
.wpcf7-textarea::placeholder {
    color: rgba(34, 34, 34, 0.2);
    font-size: 16px;
}

.wpcf7-text:focus,
.wpcf7-textarea:focus {
    border: 2px solid #ffcb08;
}

.wpcf7-spinner {
    position: absolute;
    right: 10px;
    top: calc(50% - 12px);
}

.wpcf7 form .wpcf7-response-output {
    margin: 0;
    font-size: 14px;
    padding: 12px 16px;
}

.wpcf7 form.invalid .wpcf7-response-output {
    border: 2px solid #ffcb08;
}

.wpcf7-not-valid-tip {
    font-size: 13px;
    margin-top: 4px;
}

.form-field.file-upload label {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    border: 1px dashed #555;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    text-align: center;
    cursor: pointer;
    margin-bottom: 0;
    height: 48px;
    z-index: 2;
}
@media(max-width: 460px){
    .form-field.file-upload label {
        font-size: 14px;
    }
    .agile-excellence-section .form-field .wpcf7-form-control-wrap {
        max-width: calc(100vw - 100px);
    }
}
input.wpcf7-file {
    visibility: hidden;
    max-width: 100%;
    height: 48px;
}

.close-form-icon {
    cursor: pointer;
    margin-right: 0;
    margin-left: auto;
}

/*********************************************** Media Queries ********************************************************/
@media screen and (max-width: 768px) {
    .sidebar-inner {
        width: 100%;
        padding: 32px 24px;
    }
}

@media screen and (min-width: 1024px) {
    .sidebar-nav-title,
    .sidebar-title,
    .clutch-landing-form-title {
        font-size: 40px;
        line-height: 56px;
    }
}

@media screen and (hover: hover) {
    .activate-sidebar-form:hover {
        background-color: #ffcb08;
        color: #222;
    }

    input.wpcf7-submit:hover,
    .clutch-landing-form input.wpcf7-submit:hover,
    .form-field:has(input.wpcf7-submit):hover input.wpcf7-submit {
        border: 2px solid #222;
        background-color: #222;
        color: #FFFFFF;
    }

    .form-field:has(input.wpcf7-submit):hover:before {
        opacity: 1;
    }

    .sidebar-inner .social-links .social-links-single-item:hover svg path {
        fill: #222;
    }
}