﻿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 */

.roof-plan-container {
    height: 100dvh;
}

div.dimensions-list {
    display: grid;
    /* Create columns of 200px; grid auto-fits as many as possible */
    grid-template-columns: repeat(auto-fit, 300px);
    gap: 20px; /* gap between grid items */
    justify-content: center; /* centre the entire grid within the container */
    padding: 20px;
}

.dimension {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

    .dimension label {
        font-weight: bold;
        color: rgb(55 65 81);
        font-size: .875rem;
        line-height: 1.25rem;
    }

    .dimension .more-info {
        font-size: .75rem;
        color: var(--colour-primary);
        position: relative;
        margin-left: 10px;
        cursor: help;
    }

        .dimension .more-info .info-tooltip {
            background-color: white;
            border-radius: .25rem;
            border: 1px solid lightgray;
            box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
            padding: 5px;
            position: absolute;
            top: 0;
            left: 20px;
            z-index: 10;
            width: max-content;
            max-width: 250px;
            visibility: hidden;
        }

        .dimension .more-info:hover .info-tooltip {
            visibility: visible;
        }

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;
            vertical-align: text-bottom;
            font-size: 17px;
        }

/* 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;
}