﻿div.multi-step-form {
    width: calc(100% - 20px);
    max-width: 1300px;
    background-color: white;
    border-radius: 20px;
    border: 2px solid var(--colour-primary);
}

div.form-header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

    div.form-header div.form-stepper {
        width: 80%;
    }

div.form-content {
    padding: 30px 30px 60px;
}

    div.form-content > div {
        max-height: calc(100vh - 260px);
    }

div.options-list {
    display: grid;
    /* Create columns of 200px; grid auto-fits as many as possible */
    grid-template-columns: repeat(auto-fit, 200px);
    gap: 20px; /* gap between grid items */
    justify-content: center; /* centre the entire grid within the container */
    padding: 10px;
    max-height: inherit;
}

/* Style for each option button with a gentle gradient */
div.option-button {
    height: 250px;
    width: 200px;
    padding: 15px;
    border-radius: 10px;
    border: none; /* no solid border */
    background: linear-gradient(135deg, #ffffff, #f0f8ff); /* soft gradient from white to a hint of blue */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; /* smooth transitions */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* subtle shadow for separation */
}

    /* Hover effect with a slightly different gradient */
    div.option-button:hover {
        background: linear-gradient(135deg, #f9f9f9, #e4efff); /* a gentle tint on hover */
        transform: scale(1.03); /* slight zoom effect */
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* stronger shadow for emphasis */
    }

    /* Selected effect with a border and bold font */
    div.option-button.selected {
        border: 2px solid var(--colour-primary);
        font-weight: bold;
    }

    /* New styles for image container and overlay */
    div.option-button .image-container {
        position: relative;
        width: 168px; /* matching the image dimensions */
        height: 168px;
    }

    /* Ensures the image fills its container */
    div.option-button .tile-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Overlay style for when the product image is not available */
    div.option-button .overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4); /* darker tint */
        display: flex;
        justify-content: center;
        align-items: center;
        color: #fff;
        font-weight: bold;
        font-size: 1em;
        text-align: center;
    }

    div.option-button label {
        width: 168px;
        text-align: center;
        margin: auto 0;
        pointer-events: none;
    }

#myIframe {
    width: 100%;
    height: 99999px;
    max-height: inherit;
    border: 1px solid #ccc;
    margin: 0 auto;
    display: block;
}

div.dimensions-list {
    display: grid;
    /* Create columns of 200px; grid auto-fits as many as possible */
    grid-template-columns: repeat(auto-fit, 200px);
    gap: 20px; /* gap between grid items */
    justify-content: center; /* centre the entire grid within the container */
}

/* Client Styling */

div.roof-plan-container {
    display: flex;
    max-height: 100vh;
}

div.extra-section {
    flex-grow: 0;
    flex-shrink: 0;
}

    div.extra-section > div.extras-list {
        padding: 3px 3px !important;
        border: none !important;
        border-right: 1px solid gainsboro !important;
        height: 100% !important;
        width: 120px;
    }

        div.extra-section > div.extras-list.disabled > div {
            cursor: not-allowed;
            background-color: #f1f1f1;
            color: #888888;
        }

div.dimensions {
    margin-top: 5px;
    margin-right: 5px;
    flex-grow: 0;
    flex-shrink: 0;
}

div.roof-plan-area {
    flex-grow: 2;
    width: auto;
    height: auto;
}

    div.roof-plan-area > .roof-plan {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        div.roof-plan-area > .roof-plan > svg,
        div.roof-plan-area > .roof-plan > #canvas-container {
            width: auto;
            height: auto;
            max-width: 100%;
            max-height: 100%;
            aspect-ratio: 1 / 1;
            background-color: #FCFCFC;
            margin: 0;
        }
            
            div.roof-plan-area > .roof-plan > #canvas-container > canvas {
                border-radius: 0;
                margin-bottom: -7px; /* HACK - For some reason there is a margin at the bottom of the canvas that isn't detectable in the DOM */
            }

            div.roof-plan-area > .roof-plan > #canvas-container > div.drag-prompt {
                background-image: url(https://quotemyroof.blob.core.windows.net/sitecontent/images/misc/drag_square.png);
            }

            div.roof-plan-area > .roof-plan > #canvas-container > #canvas-overlay {
                position: absolute;
                top: 0;
                width: 100%;
                height: 100%;
                background-color: white;
                opacity: 0;
                transition: opacity 0.3s;
                pointer-events: none;
            }

.edge-container {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
}

.edge-container > div {
    width: 300px;
    height: 150px;
    background-color: whitesmoke;
    padding: 5px;
    margin: 5px;
    cursor: pointer;
    border-radius: 20px;
    display: flex;
    align-items: center;
}

.edge-container > div:hover,
.edge-container > div.selected {
    background-color: var(--colour-primary);
    color: white;
}

.edge-container > div > img {
    height: 140px;
    float: left;
    margin-right: 10px;
}

.edge-container > div > div {
}

.edge-container > div > div > h1 {
    font-weight: bold;
    font-size: 18px;
}

.edge-container > div > div > p {
    font-weight: 500;
    font-size: 15px;
    margin: 0;
}

    div.roof-plan-area > .render-mode-selector {
        position: absolute;
        bottom: 20px;
        left: 20px;
    }

.extra-tab {
    height: calc(100% - 40px) !important;
}

    .extra-tab .e-toolbar::before {
        border: none !important;
    }

    .extra-tab .e-content {
        height: calc(100% - 35px) !important;
    }

.extra-tab .e-content,
.custom-scroll {
    overflow-y: auto;
}

    /* width */
    .extra-tab .e-content::-webkit-scrollbar,
    .custom-scroll::-webkit-scrollbar {
        width: 10px;
    }

    /* Track */
    .extra-tab .e-content::-webkit-scrollbar-track,
    .custom-scroll::-webkit-scrollbar-track {
        background: #f1f1f1;
    }

    /* Handle */
    .extra-tab .e-content::-webkit-scrollbar-thumb,
    .custom-scroll::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 5px;
    }

        /* Handle on hover */
        .extra-tab .e-content::-webkit-scrollbar-thumb:hover,
        .custom-scroll::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

div.btn-container {
    height: 40px;
    display: flex;
    align-content: center;
    justify-content: center;
    gap: 40px;
    padding: 5px 0;
}

    div.btn-container button.btn {
        padding: 3px 20px;
        background-color: var(--colour-primary);
        color: var(--colour-primary-light);
        font-weight: bold;
        border: none;
        border-radius: 4px;
    }

        div.btn-container button.btn.btn-alt {
            background-color: var(--colour-primary-light);
            color: var(--colour-primary);
        }

        div.btn-container button.btn:hover {
            background-color: var(--colour-primary-dark);
            color: var(--colour-primary-light);
        }

        div.btn-container button.btn i {
            margin-left: 5px;
        }

/* Syncfusion Overwrite */
.e-stepper .e-step-selected .e-indicator,
.e-stepper .e-step-completed .e-step {
    background: var(--colour-primary);
}

.e-stepper:not(.e-steps-focus) .e-step-selected .e-step {
    box-shadow: 0 0 0 2px #fff,0 0 0 4px var(--colour-primary),0 0 0 8px #fff
}

.e-stepper .e-step-selected:not(.e-step-error) .e-label,
.e-stepper .e-step-completed:not(.e-step-error) .e-label {
    color: var(--colour-primary);
}

.e-stepper .e-stepper-progressbar > .e-progressbar-value {
    background-color: var(--colour-primary);
}

.e-stepper:not(.e-step-type-label) .e-indicator:hover, .e-stepper:not(.e-step-type-label) .e-step:hover {
    background-color: var(--colour-primary-dark);
}

#estimate-result-grid .e-gridcontent .e-content {
    max-height: calc(-338px + 100vh); /* Set max height of material grid */
}

#estimate-result-grid .material-img {
    width: 34px;
    height: 34px;
}

/* SVG Override */
.extra-tab .shape.thumbnail {
    fill: whitesmoke;
}

.extra-tab .shape.focus {
    fill: var(--colour-button, var(--colour-primary, lightgray)) !important;
}

.extra-tab .line.thumbnail {
    stroke: white !important;
}

.extra-tab .line.focus {
    stroke: var(--colour-button, var(--colour-primary-dark, lightgray)) !important;
}