:root {
    --cerius-background: #F8F8F8;
    --cerius-black: #000000;
    --cerius-grey: #424242;
    --cerius-grey-dark: #272c34;
    --cerius-grey-mid: #D9D9D9;
    --cerius-grey-light: #9E9E9E;
    --cerius-green: #BABF7E;
    --cerius-white: #FEF7FF;
}

@font-face {
    /* Custom font definition: CURRENTLY NOT SUPPORTED */
    font-family: "Geogrotesque";
    src: url("https://stceriusentraweudev.blob.core.windows.net/fonts/Geogrotesque-Regular.woff") format("woff"), url("https://stceriusentraweudev.blob.core.windows.net/fonts/Inter-VariableFont_opsz_wght.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: "Geogrotesque";
    background-color: var(--cerius-background);
    height: 100%;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODM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NGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Main Layout css */
.mud-appbar {
    background: var(--cerius-black) !important;
    height: 64px !important;
    padding: 0 16px !important;
}

.mud-toolbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.mud-icon-button > span > svg,
.mud-button > span > svg {
    width: 32px !important;
    height: 32px !important;
    color: var(--cerius-white) !important;
}

.main-content {
    padding: 40px;
    margin-top: 64px;
}

.mud-container--gutters {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Homepage css */
.home-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.home-header-row .title h2 {
    color: var(--Color-Theme-mud-palette-text-primary, #424242);
    font-family: var(--Font-Family-family, Geogrotesque, sans-serif) !important;
    font-size: var(--Font-Size-h2, 60px);
    font-style: normal;
    font-weight: 500;
    line-height: var(--Font-Line-Height-lineheight-h2, 72px);
    letter-spacing: var(--Font-Spacing-spacing-h2, -0.5px);
    margin: 0;
}

.home-header-row .instructions button {
    text-decoration: underline;
    color: var(--Color-Theme-mud-palette-text-primary, #424242);
    text-transform: none !important;
    font-family: var(--Font-Family-family, Geogrotesque, sans-serif) !important;
}

.home-container-div {
    margin-top: 32px;
    display: flex;
    gap: 80px;
}

.text-list {
    list-style-type: none;
}

.inner-card {
    flex: 1;
    border-radius: 4px !important;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.inner-card.mud-elevation-1 {
    box-shadow: none !important;
}

.card-text {
    padding-top: 32px;
    padding-left: 40px;
    padding-right: 40px;
    flex: 1;
    color: var(--Cerius-grey, #424242);
}

.inner-card .mud-card-header {
    padding: 0 !important;
}

.inner-card .mud-card-header .mud-text,
.inner-card .mud-card-header .mud-typography {
    font-family: var(--Font-Family-family, Geogrotesque, sans-serif) !important;
    font-size: var(--Font-Size-h4, 34px);
    font-weight: 500 !important;
    line-height: var(--Font-Line-Height-lineheight-h4, 42.99px);
    letter-spacing: var(--Font-Spacing-spacing-h4, 0.25px);
    padding: 0 !important;
}

.inner-card .mud-card-content {
    padding: 0 !important;
}

.inner-card .mud-card-content .mud-text,
.inner-card .mud-card-content .mud-typography {
    font-family: var(--Font-Family-family, Geogrotesque, sans-serif) !important;
    font-size: var(--Font-Size-body1, 16px);
    font-weight: 400 !important;
    line-height: var(--Font-Line-Height-lineheight-body1, 24px);
    letter-spacing: var(--Font-Spacing-spacing-body1, 0.15px);
    padding: 0 !important;
    margin-top: 16px;
}

.inner-card .mud-card-actions {
    padding: 24px 32px;
}

.mud-card .mud-card-actions .mud-button-root {
    font-family: var(--Font-Family-family, Geogrotesque, sans-serif) !important;
    border-radius: var(--Border-Radius-mud-default-border-radius, 4px);
    text-transform: none;
}

/*Survey result tile css*/
.survey-result-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.survey-result-header-row .mud-typography {
    color: var(--White, #FFF);
    font-family: var(--Font-Family-family, Geogrotesque);
    font-size: var(--Font-Size-h5, 24px) !important;
    line-height: var(--Font-Line-Height-lineheight-h5, 32.02px) !important; /* 133.417% */
    font-weight: 500;
}

.survey-result-header-row .survey-number-filled {
    font-weight: 700;
}

.survey-result .mud-card-content .mud-typography,
.survey-result .mud-card-content ol {
    color: var(--White, #FFF);
    line-height: var(--Font-Line-Height-lineheight-body1, 24px);
    font-size: var(--Font-Size-h5, 16px) !important;
    margin-top: 0px;
}

.survey-result .icon-list {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.survey-result .icon-list .mud-icon-root {
    color: var(--cerius-green);
}

.survey-result ol {
    margin: 0;
    padding-left: 20px;
}

.survey-result .mud-card-actions {
    justify-content: flex-end;
    padding: 0;
}

.survey-result .save-button {
    background-color: var(--cerius-green);
    color: var(--cerius-grey-dark);
    padding: 8px 20px;
    font-size: var(--Font-Size-input, 16px) !important;
}

/*Tool explanation pop sup css*/
.tool-dialog .tool-dialog-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tool-dialog .mud-dialog-title {
    padding: 24px 24px 12px 24px !important;
    font-size: var(--Font-Size-h5, 24px);
    font-weight: 500;
}

.tool-dialog .tool-dialog-close-icon {
    width: 20px;
    height: 20px;
    color: black;
    cursor: pointer;
}

.tool-dialog .mud-dialog-content {
    padding: 12px 24px !important;
    margin: 0 !important;
}

.tool-dialog .mud-dialog-actions {
    padding: 12px 24px 24px 24px !important;
}

.tool-dialog .tool-subtitle {
    font-size: var(--Font-Size-h6, 20px);
    font-weight: 600;
}

.tool-dialog .tool-content {
    font-size: var(--Font-Size-body1, 16px);
    font-weight: 400;
}

.tool-dialog .tool-footer {
    background-color: var(--cerius-green);
    width: 100%;
    box-sizing: border-box;
    font-size: var(--Font-Size-h6, 20px);
    font-weight: 600;
    padding: 0 8px;
}

.tool-dialog .tool-footer-phone {
    font-weight: 400;
}

.mud-button > span > svg.home-copy-button {
    height: 20px !important;
    color: var(--cerius-grey-dark);
}

/* if screen width is smaller than a typical tablet */
@media (max-width: 768px) {
    /*Homepage cards*/
    .home-container-div {
        display: flex;
        flex-direction: column;
        gap: 80px;
    }

    .home-container-div .inner-card {
        width: 100%;
    }

    /* Intake header */
    .intake-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .intake-header-row .title {
        text-align: left;
        width: 100%;
    }

    .intake-header-row .actions {
        display: flex;
        width: 100%;
        justify-content: flex-start;
    }
}

/* Intake css */
.back-button {
    color: #272C34;
    font-family: var(--Font-Family-family, Geogrotesque, sans-serif);
    font-size: var(--Font-Size-body1, 16px);
    font-weight: 400;
    line-height: var(--Font-Line-Height-lineheight-body1, 24px);
    text-transform: none;
    letter-spacing: var(--Font-Spacing-spacing-body1, 0.15px);
    text-decoration: underline;
    text-underline-position: from-font;
    padding: 0 !important;
}   

.intake-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 10px;
}

.intake-header-row .title {
    color: var(--Color-Theme-mud-palette-text-primary, #424242);
    font-family: var(--Font-Family-family, Geogrotesque);
    font-size: var(--Font-Size-h3, 48px);
    font-style: normal;
    font-weight: 500;
    line-height: var(--Font-Line-Height-lineheight-h3, 56.02px);
}

.intake-header-row .actions {
    display: flex;
}

.intake-action-button {
    font-family: var(--Font-Family-family, Geogrotesque);
    background-color: var(--cerius-green, #BABF7E);
    color: #272C34;
    height: var(--width-height-button-lg, 42px);
    padding: var(--padding-margin-padding-2-xs, 8px) var(--padding-margin-padding-xl, 20px);
    text-transform: none;
}

.intake-page-container {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 40px;
}

.intake-left-column {
    flex: 1;
    background-color: #FFF;
    border: var(--Border-Width-border-xs, 1px) solid rgba(0, 0, 0, 0.12);
    padding: 40px;
    box-shadow: none !important;
}

.intake-left-column .mud-card-content {
    padding: 0 !important;
}

.intake-right-column {
    gap: 32px;
    position: sticky;
    top: 104px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    width: 500px;
}

.finalize-intake {
    background-color: #FFF;
    border: var(--Border-Width-border-xs, 1px) solid rgba(0, 0, 0, 0.12);
    box-shadow: none !important;
    padding: 24px 32px;
}

.finalize-intake .mud-typography {
    font-family: var(--Font-Family-family, Geogrotesque);
    font-size: var(--Font-Size-body1, 16px);
    font-weight: 400;
}

.intake-report {
    background-color: var(--cerius-black);
    padding: 24px 32px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1000px) {
    .intake-page-container {
        flex-direction: column;
    }

    .intake-left-column {
        width: 100%;
    }

    .intake-right-column {
        width: 100%;
        position: static;
        align-self: auto;
    }
}

.intake-section-title {
    font-size: 20px;
    font-weight: 600;
}

.text-field-question {
    margin-bottom: 16px;
}

.text-field-question .mud-input-label {
    font-size: 12px;
}

.text-field-question input {
    font-size: 16px;
}

.intake-divider {
    margin: 32px 0;
}

.numeric-question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.numeric-question-row .question-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.numeric-question-row .numeric-field {
    width: 100px;
    height: 56px;
    flex: 0 0 auto;
}

.numeric-question-row .numeric-field .mud-input-label {
    font-size: 12px;
}

.survey-result,
.intake-result {
    background-color: var(--cerius-black);
    padding: 24px 32px;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    gap: 16px;
}

.intake-result-button {
    background-color: var(--cerius-green);
    color: var(--cerius-grey-dark) !important;
    text-transform: none;
}

.intake-result-button:hover {
    background-color: var(--cerius-green) !important;
    color: var(--cerius-grey-dark) !important;
}

.intake-result-title {
    color: var(--White, #FFF);
    font-size: var(--Font-Size-h5, 24px) !important;
    font-weight: 500 !important;
    line-height: var(--Font-Line-Height-lineheight-h5, 32.02px) !important;
    font-family: var(--Font-Family-family, Geogrotesque);
}

.intake-result-subtitle {
    color: var(--White, #FFF);
    font-size: var(--Font-Size-body1, 16px) !important;
    font-weight: 400 !important;
    line-height: var(--Font-Line-Height-lineheight-body1, 24px) !important;
    letter-spacing: var(--Font-Spacing-spacing-body1, 0.15px) !important;
    margin-top: 4px !important;
    font-family: var(--Font-Family-family, Geogrotesque);
}

/*Score Tile*/

.score {
    font-family: var(--Font-Family-family, Geogrotesque, sans-serif) !important;
    font-size: var(--Font-Size-h5, 24px);
    font-style: normal;
    font-weight: 700;
    line-height: var(--Font-Line-Height-lineheight-h5, 32.02px); /* 133.417% */
    letter-spacing: var(--Font-Spacing-spacing-h5, 0);
}

.score-label {
    font-family: var(--Font-Family-family, Geogrotesque, sans-serif) !important;
    font-size: var(--Font-Size-body1, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: var(--Font-Line-Height-lineheight-body1, 24px); /* 150% */
    letter-spacing: var(--Font-Spacing-spacing-body1, 0.15px);
}

.score-size {
    font-family: var(--Font-Family-family, Geogrotesque, sans-serif) !important;
    background: var(--cerius-grey-mid);
}

.score-button,
.score-button:hover {
    background-color: #BABF7E;
    padding: 8px 20px;
    text-transform: none;
    font-family: var(--Font-Family-family, Geogrotesque);
    font-size: var(--Font-Size-input, 16px) !important;
}

/*Survey css*/
.survey-container {
    width: 567px;
    max-width: 90%;
    margin: 0 auto;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    box-shadow: none !important;
    border-radius: var(--Border-Radius-mud-default-border-radius, 4px);
    border: var(--Border-Width-border-xs, 1px) solid var(--Color-Theme-mud-palette-lines-default, rgba(0, 0, 0, 0.12));
    font-family: var(--Font-Family-family, Geogrotesque);
}

.page-title {
    font-size: var(--Font-Size-h3, 48px);
    color: var(--cerius-grey);
    font-weight: 500;
    line-height: var(--Font-Line-Height-lineheight-h3, 56.02px);
}

.progress-indicator {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 40px 0;
}

.progress-page {
    flex: 1 1 0;
    height: 12px;
    background-color: #ccc;
    border-radius: 0;
    transition: background-color 0.3s;
    min-width: 0;
}

.progress-page.active {
    background-color: var(--cerius-green);
}

.survey-page-display-name {
    color: var(--cerius-black);
    font-size: var(--Font-Size-h6, 20px);
    font-weight: 600;
    line-height: var(--Font-Line-Height-lineheight-h6, 32px);
    letter-spacing: var(--Font-Spacing-spacing-h6, 0.15px);
    margin-bottom: 16px;
}

.survey-page-description {
    color: var(--cerius-grey);
    font-size: var(--Font-Size-body1, 16px);
    font-weight: 400;
    margin-bottom: 8px;
    white-space: pre-line;
}

.survey-hours-banner {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 12px;
    gap: 12px;
    background-color: #f4f4f4;
    border-radius: 4px;
    color: var(--cerius-black);
    font-weight: 500;
    margin: 16px 0;
}

.survey-question-text {
    color: var(--Color-Theme-mud-palette-text-primary, #424242);
    font-size: var(--Font-Size-caption, 16px);
    font-weight: 400;
}

.survey-mc-options {
    display: flex !important;
    flex-direction: column !important;
}

.survey-mc-text {
    color: var(--Color-Theme-mud-palette-text-primary, #424242);
    font-family: var(--Font-Family-family, Geogrotesque);
    font-size: var(--Font-Size-caption, 16px);
    font-weight: 400;
}

.survey-page-1-textfield {
    margin: 32px 0;
}


.survey-page-2-numfield .survey-numfield-group {
    display: grid;
    grid-template-columns: 100px 100px;
    column-gap: 16px;
    align-items: center;
}

.survey-page-4-numfield .survey-numfield-group,
.survey-page-5-numfield .survey-numfield-group,
.survey-page-6-numfield .survey-numfield-group {
    display: grid;
    grid-template-columns: 1fr 80px;
    column-gap: 16px;
    align-items: center;
}

.survey-checkbox-grid {
    display: grid;
    grid-template-columns: 100px 60px 60px 1fr;
    column-gap: 8px;
    align-items: center;
}

.survey-checkbox-grid > :nth-child(1) {
    justify-self: start;
}

.survey-checkbox-grid > :nth-child(2),
.survey-checkbox-grid > :nth-child(3) {
    justify-self: center;
}

.survey-checkbox-header-title {
    font-size: var(--Font-Size-caption, 12px);
    font-weight: 600;
}

.survey-checkbox-header-select-all {
    font-size: var(--Font-Size-body1, 16px);
    font-weight: 500;
    text-decoration-line: underline;
    text-align: right;
    cursor: pointer;
    user-select: none;
}

.survey-checkbox-list-label {
    font-family: var(--Font-Family-family, Geogrotesque);
    font-size: var(--Font-Size-body1, 16px);
    font-weight: 400;
    line-height: var(--Font-Line-Height-lineheight-body1, 24px);
    letter-spacing: var(--Font-Spacing-spacing-body1, 0.15px);
}

.survey-nav {
    display: flex;
    align-items: center;
    margin-top: 60px;
}

.survey-nav .mud-button {
    text-transform: none !important;
    font-family: var(--Font-Family-family, Geogrotesque) !important;
    font-size: var(--Font-Size-input, 16px);
    font-weight: 500;
    box-shadow: none !important;
}

.survey-prev-button {
    border-color: #BABF7E;
    color: #BABF7E;
    margin-right: auto;
}

.survey-next-button {
    background-color: #BABF7E;
    color: black;
}

.survey-nav:not(:has(.survey-prev-button)) .survey-next-button {
    margin-left: auto;
}

/*Priority question css*/
.dropzone-container {
    box-shadow: none;
}

.dropzone {
    padding: 1px 14px;
    background-color: var(--cerius-background);
    border-radius: 4px;
}

.dropzone-header {
    visibility: hidden;
    height: 12px;
}

.dropzone-item {
    box-shadow: none;
    padding: 8px 12px;
}

.dropzone-item-text {
    color: var(--cerius-black);
    font-family: var(--Font-Family-family, Geogrotesque);
    font-size: var(--Font-Size-body2, 14px);
    font-weight: 500;
    line-height: var(--Font-Line-Height-lineheight-body2, 20.02px); /* 143% */
}

