#form1.quote-form:not([data-wizard-ready="1"]) {
    visibility: hidden;
}

#form1.quote-form[data-wizard-ready="1"] {
    visibility: visible;
}

#content .quote-wizard-shell {
    display: grid;
    grid-template-columns: minmax(260px, 25%) minmax(0, 1fr);
    height: 680px;
    min-height: 0;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    color: #303247;
    font-family: 'Jost', Arial, sans-serif;
    box-sizing: border-box;
}

#content .quote-wizard-sidebar {
    position: relative;
    min-height: 100%;
    background: #26333a;
    overflow: hidden;
}

#content .quote-wizard-sidebar:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(28, 39, 46, .62), rgba(28, 39, 46, .72)), url('../img/product/slab.png') center/cover no-repeat;
    filter: grayscale(65%);
    transform: scale(1.02);
}

#content .quote-wizard-steps {
    position: sticky;
    top: 100px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 15px 24px;
    margin: 0;
}

#content .quote-wizard-steps li {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 82px;
    list-style: none;
}

#content .quote-wizard-steps li:not(:last-child):after {
    content: "";
    position: absolute;
    top: 57px;
    left: 20px;
    width: 2px;
    height: 30px;
    background: #c6c8c8;
    transition: background .25s;
}

#content .wizard-surface-choice {
    margin-top: 12px;
}

#content .wizard-surface-choice .material-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 24px 0;
}

#content .wizard-surface-choice .material-buttons button {
    min-width: 150px;
    min-height: 100px;
    padding: 20px 28px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #303247;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .2s, background .2s, color .2s;
}

#content .wizard-surface-choice .material-buttons button.active {
    border-color: #cf5c7c;
    background: #fdf2f5;
    color: #cf5c7c;
}

#content .wizard-gallery-step .image-gallery {
    max-height: 430px;
    overflow-y: auto;
    overflow-x: hidden;
}

#content .wizard-gallery-step .image-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 135px;
}

#content .wizard-gallery-step .image-container {
    min-width: 0;
    height: 135px;
}

#content .wizard-gallery-step .image-grid img {
    width: 100%;
    height: 105px;
    object-fit: cover;
    border-radius: 5px;
}

#content .quote-wizard-steps li.done:not(:last-child):after {
    background: #cf5c7c;
}

#content .quote-wizard-steps span {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #bfc1c2;
    color: #fff;
    font-weight: 700;
    border: 2px solid transparent;
}

#content .quote-wizard-steps li.active span {
    background: #cf5c7c;
    outline: 2px solid #cf5c7c;
    outline-offset: 4px;
}

#content .quote-wizard-main {
    min-width: 0;
    min-height: 0;
    padding: 30px clamp(22px, 4vw, 65px) 20px;
    background: #f9f9f9;
    overflow-y: visible;
    box-sizing: border-box;
}

#content .quote-wizard-heading {
    margin-bottom: 20px;
}

#content .quote-wizard-step-label {
    display: block;
    font-size: 18px;
    margin-bottom: 25px;
    color: #303247;
}

#content .quote-wizard-heading h2 {
    font-size: clamp(26px, 2.8vw, 44px);
    line-height: 1.2;
    font-weight: 700;
    color: #303247;
    margin: 0 0 18px;
}

#content .quote-wizard-heading p {
    font-size: 17px;
    line-height: 1.65;
    color: #666;
    margin: 0;
}

#content .quote-wizard-panel {
    display: none;
    animation: quoteWizardIn .35s ease both;
}

#content .quote-wizard-panel.active {
    display: block;
}

#content .quote-wizard-panel .step-new-kitchen {
    margin: 0 0 22px;
    padding: 0;
    border: 0;
    background: transparent;
}

#content .quote-wizard-panel h3 {
    color: #303247;
}

#content .quote-wizard-panel .step-select {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

#content .quote-wizard-panel .step-select h3 {
    font-size: 17px;
    margin-bottom: 9px;
}

#content .quote-wizard-panel .step-select select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    padding: 10px 36px 10px 12px;
}

#content .quote-wizard-panel .wizard-step-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px;
}

#content .quote-wizard-panel .wizard-step-description {
    color: #666;
    margin: 0 0 24px;
    line-height: 1.6;
}

#content .quote-wizard-panel .image-grid {
    min-height: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 150px;
}

#content .quote-wizard-panel .image-container {
    min-width: 0;
}

#content .quote-wizard-panel .image-container img {
    border-radius: 5px;
    cursor: pointer;
}

#content .quote-wizard-panel .gallery-nav button,
#content .quote-wizard-panel .button-about-quartz {
    border: 0;
    border-radius: 4px;
    padding: 12px 20px;
    background: #cf5c7c;
    color: #fff;
    cursor: pointer;
}


#content .quote-wizard-panel .gallery-nav button,
#content .quote-wizard-panel .button-about-quartz {
    border: 0;
    border-radius: 4px;
    padding: 12px 20px;
    background: #cf5c7c;
    color: #fff;
    cursor: pointer;
}

#content .quote-wizard-panel input:not([type=checkbox]):not([type=radio]):not([type=file]),
#content .quote-wizard-panel textarea,
#content .quote-wizard-panel select {
    max-width: 100%;
}

#content .quote-wizard-panel .quote-wizard-nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: -20px !important;
    padding-top: 18px;
}

#content .quote-wizard-panel .quote-wizard-nav button {
    min-width: 150px;
    min-height: 58px;
    padding: 14px 24px;
    border: 0;
    border-radius: 4px;
    background: #cf5c7c;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

#content .quote-wizard-panel .quote-wizard-nav button:hover {
    background: #000;
    transform: translateY(-1px);
}

#content .quote-wizard-panel .quote-wizard-nav button.prev {
    background: #e5e5e8;
    color: #303247;
}

#content .quote-wizard-panel .quote-wizard-nav button[hidden] {
    display: none;
}

#content .quote-wizard-panel .quote-wizard-submit {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

#content .quote-wizard-panel .quote-wizard-submit button {
    min-height: 58px;
    padding: 14px 25px;
    border: 0;
    border-radius: 4px;
    background: #cf5c7c;
    color: white;
    font-size: 17px;
    font-weight: 600;
}

#content .quote-wizard-panel .error {
    color: #c0392b;
    font-size: 12px;
}

@keyframes quoteWizardIn {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media(max-width:900px) {

    #content .quote-wizard-shell {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    #content .quote-wizard-main {
        padding: 35px 24px;
    }

    #content .quote-wizard-step-label {
        margin-bottom: 34px;
    }

    #content .quote-wizard-panel .image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: 130px;
    }

    #content .quote-wizard-steps {
        padding: 35px 10px 20px;
    }

    #content .quote-wizard-steps li {
        height: 76px;
    }

    #content .quote-wizard-steps li:not(:last-child)::after {
        top: 53px;
        height: 26px;
    }
}

@media(max-width:600px) {
    #content .quote-wizard-shell {
        display: block;
        height: auto;
        min-height: 0;
        max-height: none;
        border-radius: 6px;
    }

    #content .quote-wizard-sidebar {
        min-height: 75px;
        height: 75px;
    }

    #content .quote-wizard-steps {
        position: relative;
        top: auto;
        flex-direction: row;
        justify-content: center;
        padding: 14px 5px;
        gap: 0;
        margin: 0;
    }

    #content .quote-wizard-steps li {
        width: 42px;
        height: 38px;
    }

    #content .quote-wizard-steps span {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }

    #content .quote-wizard-steps li:not(:last-child):after {
        top: 18px;
        left: 32px;
        width: 20px;
        height: 2px;
    }

    #content .wizard-surface-choice .material-buttons {
        flex-direction: column;
        gap: 10px;
        margin: 16px 0;
    }

    #content .wizard-surface-choice .material-buttons button {
        width: 100%;
        min-height: 56px;
        padding: 12px 16px;
        font-size: 15px;
    }

    #content .wizard-gallery-step .image-gallery {
        max-height: 340px;
        padding: 6px;
    }

    #content .wizard-gallery-step .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 115px;
        gap: 8px;
    }

    #content .wizard-gallery-step .image-container {
        height: 115px;
    }

    #content .wizard-gallery-step .image-grid img {
        height: 88px;
    }

    #content .wizard-gallery-step .image-title {
        font-size: 11px;
        margin-top: 3px;
    }

    #content .quote-wizard-panel .button-about-quartz,
    #content .quote-wizard-panel .gallery-nav button {
        padding: 9px 12px;
        font-size: 13px;
    }

    #content .quote-wizard-panel .upload-options {
        gap: 8px;
    }

    #content .quote-wizard-main {
        padding: 20px 14px;
        overflow: visible;
    }

    #content .quote-wizard-step-label {
        font-size: 13px;
        margin-bottom: 12px;
    }

    #content .quote-wizard-heading {
        margin-bottom: 18px;
    }

    #content .quote-wizard-heading h2 {
        font-size: 25px;
        line-height: 1.25;
        margin-bottom: 10px;
    }

    #content .quote-wizard-heading p {
        font-size: 14px;
        line-height: 1.5;
    }

    #content .quote-wizard-panel h3 {
        font-size: 17px;
        line-height: 1.35;
        margin-bottom: 8px;
    }

    #content .quote-wizard-panel p,
    #content .quote-wizard-panel label {
        font-size: 13px;
        line-height: 1.5;
    }

    #content .quote-wizard-panel .step-select {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
        margin-bottom: 18px;
    }

    #content .quote-wizard-panel .step-select select,
    #content .quote-wizard-panel input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    #content .quote-wizard-panel select,
    #content .quote-wizard-panel textarea {
        font-size: 14px;
        min-height: 42px;
        padding: 9px 10px;
    }

    #content .quote-wizard-panel textarea {
        min-height: 85px;
    }

    #content .quote-wizard-panel .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 130px;
    }

    #content .quote-wizard-panel .quote-wizard-nav {
        gap: 8px;
        justify-content: space-between;
        margin-top: 10px;
        padding-top: 12px;
    }

    #content .quote-wizard-panel .quote-wizard-nav button {
        min-width: 0;
        flex: 1;
        min-height: 44px;
        padding: 10px 14px;
        font-size: 14px;
    }

    #content .quote-wizard-panel .quote-wizard-submit button {
        min-height: 46px;
        padding: 11px 18px;
        font-size: 14px;
    }

    #content .quote-wizard-panel .wizard-step-title {
        font-size: 23px;
        margin-bottom: 16px;
    }
}

@media (min-width: 601px) {
    #content .quote-wizard-shell {
        display: grid;
        grid-template-columns: minmax(260px, 25%) minmax(0, 1fr);
        height: 680px;
        overflow: hidden;
    }

    #content .quote-wizard-main {
        height: 680px;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        padding-bottom: 25px;
    }

    #content .quote-wizard-panels {
        min-height: 0;
        overflow: visible;
    }

    #content .quote-wizard-panel.active {
        display: block;
        height: auto;
        overflow: visible;
        animation: none;
    }

    #content .quote-wizard-panel .quote-wizard-nav {
        position: relative;
        clear: both;
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-top: 20px;
        padding: 15px 0 10px;
    }

    #content .wizard-gallery-step .image-gallery {
        max-height: 350px;
        overflow-y: auto;
        overflow-x: hidden;
    }


}
