/* Quote page Template */

.mb-moving-form-shell {
    width: 100%;
    margin: 120px auto 0;
    min-height: 0;
    height: 75vh;
    flex: 1;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 1.5rem;
    border: 1px solid rgb(43, 78, 134);
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
    transition: opacity 320ms ease;
}

.mb-moving-form-sidebar {
    min-width: 0;
    height: 100%;
    background: rgb(245, 245, 245);
    border-right: 1px solid rgba(17, 70, 54, 0.12);
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
}

.mb-moving-form-main {
    position: relative;
    min-width: 0;
    min-height: 0;
}

.mb-moving-form-sidebar__label {
    margin: 0 0 34px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
}

.mb-moving-form-sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mb-moving-form__step {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 80px;
    gap: 20px;
    padding: 10px 18px;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.mb-moving-form__step.is-active {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

@property --progress {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.mb-moving-form__step-donut {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    --progress: 0deg;

    background: conic-gradient(
        #ec8c22 0deg var(--progress),
        #bdcbc7 var(--progress) 360deg
    );

    transition: --progress 0.5s ease, background 0.4s ease, transform 0.4s ease;
    
}
.mb-moving-form__step-donut::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #fff;
    transition: background-color 0.4s ease;

}

/* Step 1 */
.mb-moving-form__step--1.is-active .mb-moving-form__step-donut,
.mb-moving-form__step--1.is-filled .mb-moving-form__step-donut {
    --progress: 135deg;
}


/* Step 2 */
.mb-moving-form__step--2.is-active .mb-moving-form__step-donut,
.mb-moving-form__step--2.is-filled .mb-moving-form__step-donut {
    --progress: 225deg;
}


/* Step 3 */
.mb-moving-form__step--3.is-active .mb-moving-form__step-donut {
    --progress: 360deg;
}

.mb-moving-form__step.is-complete .mb-moving-form__step-donut{
    background: #ec8c22;
    transform: scale(1.05);
}

.mb-moving-form__step.is-complete .mb-moving-form__step-donut::before {
    background-color: #2b4e86;
}

.mb-moving-form__step.is-complete .mb-moving-form__step-donut::after {
    content: "";
    position: absolute;
    top: 19px;
    left: 25px;
    width: 9px;
    height: 17px;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(45deg);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}
.mb-moving-form__step.is-complete .mb-moving-form__step-number {
    opacity: 0;
}

.mb-moving-form__step-number {
    position: relative;
    z-index: 1;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.mb-moving-form__step-copy {
    display: flex;
    flex-direction: column;
}

.mb-moving-form__step-label {
    margin-bottom: 5px;
    color: rgb(236, 140, 34);
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mb-moving-form__step-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.05;
}

.mb-moving-form-sidebar__help {
    margin-top: auto;
    padding-top: 34px;
    border-top: 2px dashed rgb(43, 78, 134);
    text-align: center;
}

.mb-moving-form-sidebar__help h3 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mb-moving-form-sidebar__help a {
    justify-content: center;
}

.mb-moving-form-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 1.8rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(17, 70, 54, 0.3) transparent;
}

.mb-mv-scroll-mask {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 95px;
    pointer-events: none;
    opacity: 1;
    transition: opacity 220ms ease;
    mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 25%, rgba(0, 0, 0, 1) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.2) 25%, rgba(0, 0, 0, 1) 100%);
    background: #fff;
}

.mb-moving-form__section-title {
    font-size: 30px;
    line-height: 2;
}

.mb-moving-form-content.estimate-form-wrapper input, .estimate-form-wrapper textarea, .estimate-form-wrapper select {
    padding-top: 7px;
    padding-bottom: 7px;
}

.mb-moving-form-content.estimate-form-wrapper form label.mb-moving-form__field {
    position: relative;
    margin-bottom: 0.75rem;
    display: block;
    flex-basis: calc(50% - 5px);
}
.mb-moving-form-content.estimate-form-wrapper form .mb-moving-form__field--full {
    flex-basis: 100%;
}
.mb-moving-form__fields {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.mb-moving-form__choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.mb-moving-form__choice {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 80px;
    padding: 10px 65px 10px 70px;
    border: 2px solid #ec8c22;
    background: #fff;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}


/* CF7 wrapper */
.mb-moving-form__choice .wpcf7-form-control-wrap {
    position: static;
    width: 100%;
}

.mb-moving-form__choice .wpcf7-list-item {
    display: block;
    width: 100%;
    margin: 0;
}

.mb-moving-form__choice .wpcf7-list-item label {
    display: flex;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
}

.mb-moving-form__choice .wpcf7-list-item-label {
    display: block;
    width: 100%;
}


.mb-moving-form__choice input[type="checkbox"] {
    position: absolute;
    inset: 0;
    z-index: 10;

    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;

    appearance: none;
    -webkit-appearance: none;

    border: 0;
    border-radius: 24px !important;
    background: transparent;

    cursor: pointer;
}


.mb-moving-form__choice::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 24px;
    z-index: 2;

    width: 30px;
    height: 30px;

    border: 2px solid rgb(224, 224, 224);
    border-radius: 50%;
    background: #fff;

    transform: translateY(-50%);
    pointer-events: none;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.mb-moving-form__choice:has(input[type="checkbox"]:checked)::after {
    border-color: #ec8c22;
    background-color: #ec8c22;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4 4L19 7' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 17px 17px;
}

.mb-moving-form__choice:has(input[type="checkbox"]:checked) {
    border-color: rgb(211, 211, 211);
    background: rgb(211, 211, 211);
}


.mb-moving-form__choice:hover {
    border-color: #ec8c22;
}


.mb-moving-form__choice::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 12px;

    width: 32px;
    height: 32px;

    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;

    transform: translateY(-50%);
    pointer-events: none;
    z-index: 11;
}

.mb-moving-form__choice.icon-storage::before {
    background-image: url('../images/storage.svg');
}       

.mb-moving-form__choice.icon-disassembling-assembling::before {
    background-image: url('../images/disassembling.svg');
}

.mb-moving-form__choice.icon-furniture-disposal::before {
    background-image: url('../images/disposal.svg');
}

.mb-moving-form__label {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    display: inline-block;
}
.mb-moving-form__actions {
    margin-top: 30px;
}

.mb-moving-form__terms {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    width: 100%;
    padding: 5px 0;
    cursor: pointer;
}

.mb-moving-form__terms .wpcf7-form-control-wrap {
    display: flex;
    flex-shrink: 0;
    width: auto;
}

.mb-moving-form__terms .wpcf7-acceptance {
    display: flex;
}

.mb-moving-form__terms .wpcf7-list-item {
    display: flex;
    margin: 0;
}

.mb-moving-form__terms input[type="checkbox"] {
    position: relative;
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #d0d6d9;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.mb-moving-form__terms input[type="checkbox"]:checked {
    border-color: #2b4e86;
    background-color: #2b4e86;
}

.mb-moving-form__terms input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 0px;
    left: 5px;
    width: 7px;
    height: 13px;
    border-right: 4px solid #fff;
    border-bottom: 4px solid #fff;
    transform: rotate(45deg);
}

.mb-moving-form__terms > span:last-child {
    flex: 1;
}

.mb-moving-form__terms a {
    color: #2b4e86;
    text-decoration: none;
}

.mb-moving-form__terms a:hover {
    text-decoration: underline;
}


@media (max-width: 1023px) {
    .estimate-form-wrapper {
        margin: 0;
    }
    .mb-moving-form-shell {
        display: block;
        gap: 0;
        height: auto;
    }
    .mb-moving-form-sidebar__label {
        display: none;
    }
    .mb-moving-form-sidebar__help {
        display: none;
    }
    .mb-moving-form-sidebar__nav {
        justify-content: space-between;
        align-items: center;
        flex-direction: row;
        gap: 0;
        width: 100%;
    }
    aside.mb-moving-form-sidebar { 
        height: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0;
    }
    .mb-moving-form__step-title {
        font-size: 15px;
    }
    .mb-moving-form__step-donut {
        width: 40px;
        height: 40px;
    }
    .mb-moving-form__step-number {
        font-size: 20px;
    }
    .mb-moving-form__step.is-complete .mb-moving-form__step-donut::after {
        top: 11px;
        left: 16px;
    }
    .mb-moving-form__step {
        display: block;
        text-align: center;
        min-height: 115px;
    }
    .mb-moving-form__step-donut {
        margin: 0 auto 7px;
    }

    .mb-moving-form-scroll {
        padding: 10px 15px;
    }
}

@media (max-width: 767px) {
    .mb-moving-form-content.estimate-form-wrapper form label.mb-moving-form__field {
        flex-basis: 100%;
    }
    .mb-moving-form__choices {
        display: flex;
        flex-wrap: wrap ;
    }
    .mb-moving-form__choice {
        width: 100%;
    }
    .mb-moving-form__fields {
        padding: 30px 10px;
    }
    .mb-moving-form__terms {
        font-size: 14px;
        gap: 12px;
        min-height: 70px;
        padding: 14px 16px;
        border-radius: 14px;
    }

    .mb-moving-form__terms input[type="checkbox"] {
        width: 18px;
        height: 18px;
        min-width: 18px;
    }

    .mb-moving-form__terms input[type="checkbox"]:checked::after {
        top: 0px;
        left: 4px;
        width: 7px;
    }
}
/* Quote page Template END */
