:root {
    --fw-bg: #000;
    --fw-bg-2: #444;
    --fw-bg-3: #eee;
    --fw-bg-4: #fcfcfc;
    --fw-accent: #777;
    --fw-text: #17212a;
    --fw-muted: #6b7a85;
    --fw-border: #ddd;
    --fw-danger: #d93025;
    --fw-surface: #ffffff;
    --fw-shadow: 0 10px 15px rgba(0,0,0,.06);
    --fw-radius: 0px;
    --form-max: 1120px; /* cap width for large screens */
}

html,body {
    scroll-behavior: smooth;

}


@media (prefers-reduced-motion: reduce) {
    html,body {
        scroll-behavior: auto;
    }
}

* {
    box-sizing: border-box;
}

html, body {
}

body {
    color: var(--fw-text);
}

/* === Form holder === */
.FormHolder {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.FormSection {
    display: flex;
    flex-direction: column;
    width: min(96vw, var(--form-max));
    margin: 24px auto;
    background: var(--fw-surface);
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius);
    box-shadow: var(--fw-shadow);
    padding: 32px;
    transition:.7s max-width;
}

.SubSection, .AddressHolder {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 10px auto;
    background: var(--fw-surface);
    border: 1px solid #ccc;
    border-radius: var(--fw-radius);
    padding: 10px;
}

.FormSection.Collapsed {
    width: 0;
    padding: 0;
    margin: 0;
    border:none;
}

/* === Section header === */

.SectionHeader{
    align-self:flex-start;
}
.FormSection h1 {
    font-weight: 500;
    font-size: 2em;
    margin: 0 0 10px;
    color: #23313a;
    text-align: left;
}

.FormSection h2 {
    font-weight: 400;
    font-size: 1.5em;
    margin: 0 0 2px;
    color: #23313a;
    text-align: left;
}

.FormNotes{
    text-align:left;
    align-self:flex-start;
    font-style:italic;
    margin:2px;
}


/* === Rows === */
.FormRow {
    display: flex;
    flex-direction: row;
    margin: 14px 0;
    width: 100%;
    align-items:center;
}

    .FormRow label {
        margin: 0 0 8px;
        font-size:1em;
        color: #333;
    }

/* Inline row utility */
.RowInline {
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

    .RowInline label {
        flex: 0 0 200px;
        margin: 0;
    }

    .RowInline input,
    .RowInline select,
    .RowInline textarea {
        flex: 1;
    }

/* === Inputs === */
.FormRow input[type="text"],
.FormRow input[type="email"],
.FormRow input[type="tel"],
.FormRow input[type="number"],
.FormRow input[type="password"],
.FormRow input[type="date"],
.FormRow textarea,
.FormRow select {
    padding: 14px 16px;
    border: 1px solid var(--fw-border);
    border-radius: 0px;
    background: #f8f8f8;
    font-size: 16px;
    width: 100%;
    transition: border .15s ease, box-shadow .15s ease;
}

    .FormRow input:focus,
    .FormRow select:focus,
    .FormRow textarea:focus {
        border-color: var(--fw-accent);
        box-shadow: 0 0 0 3px rgba(29,91,117,.15);
    }


/* Notes field */
.FormRow .muted {
    color: #7a8790;
    font-weight: 400;
    font-size: .9rem;
}

.FormRow .HelpText {
    margin-top: 6px;
    color: #7a8790;
    font-size: .85rem;
}

/* Auto-grow textarea */
textarea.AutoGrow {
    width: 100%;
    resize: none; /* we grow it for the user */
    overflow: hidden; /* no scrollbars while growing */
}

/* (optional) nicer look match */
textarea.AutoGrow {
    border: 1px solid #d5dee4;
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
    min-height:150px;
}

    textarea.AutoGrow:focus {
        outline: none;
        border-color: #7fb6c7;
        box-shadow: 0 0 0 3px rgba(127,182,199,.15);
    }


/* === Errors === */
.FormRow .errHolder {
    display: none;
    margin-left: 6px;
    width: 18px;
    height: 18px;
    background: var(--fw-danger);
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    line-height: 18px;
}

    .FormRow .errHolder::after {
        content: '!';
        font-weight: 700;
    }

.FormRow.HasError input,
.FormRow.HasError select,
.FormRow.HasError textarea {
    border-color: var(--fw-danger);
    background: #fff7f6;
}

/* === Radio groups === */
.RadioGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

    .RadioGroup label {
        display: inline-flex;
        align-items: center;
        min-width:max-content;
        background: #fff;
        cursor: pointer;
        transition: box-shadow .15s ease, border .15s ease;
    }

    .RadioGroup input {
        transform: scale(1.05);
    }

    .RadioGroup label:hover {
        box-shadow: 0 2px 10px rgba(0,0,0,.06);
    }

    .RadioGroup .IconOption .ico {
        width: 20px;
        height: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .RadioGroup .IconOption .ico svg {
            width: 20px;
            height: 20px;
            fill: var(--fw-bg);
        }

    .RadioGroup .IconOption input:checked ~ .ico svg {
        fill: var(--fw-accent);
    }

/* === Lists === */
.ItemList {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 10px auto;
    background: var(--fw-surface);
    border: 1px solid #ccc;
    border-radius: var(--fw-radius);
    padding: 10px;
}

#doorList {
    list-style: none;
    padding: 0;
    margin: 0;
}

    #doorList .DoorRow {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid #eef2f4;
        margin: 5px;
        padding: 5px;
    }

        #doorList .DoorRow .thumbs {
            display: flex;
            gap: 8px;
        }

            #doorList .DoorRow .thumbs .thumb {
                width: 56px;
                height: 56px;
                object-fit: cover;
                border-radius: 8px;
                border: 1px solid #e2e8ee;
            }

        #doorList .DoorRow .meta {
            flex: 1;
        }

            #doorList .DoorRow .meta .t {
                font-weight: 600;
            }

            #doorList .DoorRow .meta .s {
                color: #64727a;
                font-size: .9rem;
            }


.ListItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1px solid var(--fw-border);
    border-radius: 0px;
    margin: 10px;
    background: #fff;
}

.ListMeta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.thumb {
    height: 40px;
    width: auto;
    border-radius: 6px;
}

/* === Buttons (clean, single surface) =================================== */
.ButtonHolder {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: min(96vw, var(--form-max));
    margin: 22px auto;
    background: transparent; /* no extra panel */
    box-shadow: none;
    border: none; /* prevent double borders */


    
    background: var(--fw-surface);
    border: 1px solid var(--fw-border);
    border-radius: var(--fw-radius);
    box-shadow: var(--fw-shadow);
}

.ButtonHolderAdd {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
    margin: 22px auto;
    background: transparent; /* no extra panel */
    box-shadow: none;
    border: none; /* prevent double borders */
}

.ButtonStyle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 200px;
    padding: 1em 22px;
    border: none;
    border-radius: 0px; /* no border line */
    background: var(--fw-bg);
    color: #fff;
    font-size: 1.5em;
    box-shadow: 0 8px 20px rgba(15,58,74,.18);
    transition: transform .05s ease, filter .2s ease, box-shadow .2s;
}

    .ButtonStyle i {
        font-size: 18px;
    }

    .ButtonStyle:hover {
        filter: brightness(1.06);
        box-shadow: 0 10px 28px rgba(15,58,74,.22);
    }

    .ButtonStyle:active {
        transform: translateY(1px)
    }

    .ButtonStyle.Grey {
        background: #eef2f6;
        color: #1e2a33;
        box-shadow: 0 6px 14px rgba(0,0,0,.06)
    }

    .ButtonStyle.Ghost {
        background: #fff;
        color: var(--fw-bg);
        box-shadow: 0 6px 16px rgba(15,58,74,.10)
    }
#doorList .DoorRow .meta .n {
    color: #47555c;
    margin-top: 4px;
    font-size: .9rem;
}

/* === Choice pills with Font Awesome ==================================== */
.RadioGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.Choice input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    padding: 0;
    margin: -1px;
}

.ChoiceCard {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid #e9eef2;
    border-radius: 0px;
    background: #fff;
    cursor: pointer;
    min-width: 176px;
    transition: border .15s ease, box-shadow .15s ease, background .15s ease;
}
    .ChoiceCard.ColumnCard{
        flex-direction:column;
    }

    .ChoiceCard .ico {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 0px;
        background: #f3f7fb;
    }

        .ChoiceCard .ico i {
            font-size: 20px;
            color: #284b5a;
        }
    /* FA icon */
    .ChoiceCard .txt {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }

        .ChoiceCard .txt small {
            color: #5e6b76;
            font-size: 12px;
        }

    .ChoiceCard:hover {
        box-shadow: 0 6px 16px rgba(0,0,0,.08);
    }

.Choice input[type="radio"]:focus-visible + .ChoiceCard {
    box-shadow: 0 0 0 3px rgba(29,91,117,.28);
    border-color: var(--fw-accent);
}

.Choice input[type="radio"]:checked + .ChoiceCard {
    border-color: var(--fw-accent);
    background: #f3faff;
}

    .Choice input[type="radio"]:checked + .ChoiceCard .ico {
        background: #e8f4fb;
    }

        .Choice input[type="radio"]:checked + .ChoiceCard .ico i {
            color: var(--fw-accent);
        }

@media (max-width:640px) {
    .ChoiceCard {
        min-width: auto;
        width: 100%;
    }
}


/* Optional sticky buttons */
.Sticky .ButtonHolder {
    position: sticky;
    bottom: 16px;
}

/* === Map === */
#map {
    border: 1px solid var(--fw-border);
    border-radius: 0;
    overflow: hidden;
    min-height: 280px;
    width:100%;
}

/* === Responsive === */
@media (max-width: 960px) {
    .RowInline {
        flex-direction: column;
    }

        .RowInline label {
            width: auto;
            margin-bottom: 8px;
        }

    .ButtonStyle {
        min-width: 140px;
        width: 100%;
    }
    .FormRow{
        flex-direction:column;
    }
        .FormRow label {
            width: auto;
            min-width: auto;
        }
    .FormSection {
        max-width:90%;
    }
}

/* === Choice pills (custom radios) ====================================== */
.RadioGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* hide the native radio, keep it focusable for a11y */
.Choice input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    border: 0;
    padding: 0;
    margin: -1px;
}

/* the clickable card */
.ChoiceCard {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 2px solid var(--fw-border);
    border-radius: 0px;
    background: #fff;
    cursor: pointer;
    transition: border .15s ease, box-shadow .15s ease, background .15s ease, transform .05s ease;
    min-width: 170px;
}

    .ChoiceCard .ico {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 8px;
        background: #f2f6f9;
    }

        .ChoiceCard .ico svg {
            width: 24px;
            height: 24px;
            fill: #284b5a;
        }

    .ChoiceCard .txt {
        display: flex;
        flex-direction: column;
        line-height: 1.1;
    }

        .ChoiceCard .txt small {
            color: #5e6b76;
            font-size: 12px;
        }

    /* hover / focus states */
    .ChoiceCard:hover {
        box-shadow: 0 6px 16px rgba(15,58,74,.12);
    }

.Choice input[type="radio"]:focus-visible + .ChoiceCard {
    box-shadow: 0 0 0 3px rgba(29,91,117,.25);
    border-color: var(--fw-accent);
}

/* selected */
.Choice input[type="radio"]:checked + .ChoiceCard {
    border-color: var(--fw-accent);
    background: var(--fw-bg);
    color:#fff;
}

    .Choice input[type="radio"]:checked + .ChoiceCard .ico {
        background: #e8f4fb;
    }

        .Choice input[type="radio"]:checked + .ChoiceCard .ico svg {
            fill: var(--fw-accent);
        }

/* compact on small screens */
@media (max-width: 640px) {
    .ChoiceCard {
        min-width: auto;
        width: 100%;
    }
}


/* Compact validation summary bar */
.ValidationSummaryBar {
    display: none;
    align-items: center;
    gap: 10px;
    border: 1px solid #f3c4c0;
    background: #fff7f6;
    color: #7a2f2a;
    border-radius: 0px;
    padding: 10px 12px;
    margin: 8px 0 14px;
    position: sticky;
    width: 100%;
    top: 5px;
    z-index: 100;
}

    .ValidationSummaryBar .vs-title {
        font-weight: 700;
        margin-right: 10px;
    }

    .ValidationSummaryBar .vs-list {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 12px;
        list-style: none;
        margin: 10px;
        padding: 0;
    }

        .ValidationSummaryBar .vs-list li {
            margin: 0;
            padding: 0;
        }

    .ValidationSummaryBar .vs-chip {
        border: 1px solid #e7b0ab;
        background: #fff;
        border-radius: 0px;
        padding: 10px 15px;
        cursor: pointer;
        line-height: 1;
    }

        .ValidationSummaryBar .vs-chip:hover {
            background: #fff3f2;
        }


/* ==========================
   FILE UPLOAD CONTROLS
   ========================== */

/* Hide the native input and style a label as the trigger */
.FormRow input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

.FileUpload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    color: #333;
    transition: all 0.2s ease-in-out;
}

    .FileUpload i {
        font-size: 1.1rem;
        color: #555;
    }

    .FileUpload:hover {
        background: #eee;
        border-color: #bbb;
    }

/* Show selected filename next to the button */
.FileName {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.9rem;
    color: #666;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}




/* ==========================
   REQUIRED PHOTOS
   ========================== */

.PhotoTiles {
    display: grid;
    grid-template-columns: repeat(2,minmax(160px,1fr));
    gap: 16px;
}

@media (max-width:640px) {
    .PhotoTiles {
        grid-template-columns: 1fr;
    }
}

.PhotoTile {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 2px dashed #cfe0e7;
    border-radius: 0px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
/* Only the body overlay triggers the picker (not strictly required with the JS guard) */
.PhotoTile__body {
    pointer-events: auto;
}

.PhotoInput, .PhotoPreview, .PhotoClear {
    pointer-events: auto;
}
/* keep these interactive */

    .PhotoTile:hover {
        border-color: #7fb6c7;
        box-shadow: 0 4px 16px rgba(0,0,0,.06);
    }

    .PhotoTile.HasError {
        border-color: #e45454;
        box-shadow: 0 0 0 3px rgba(228,84,84,.12);
    }

    .PhotoTile .PhotoInput {
        position: absolute;
        inset: 0;
        opacity: 0;
        width: 100%;
        height: 100%;
        cursor: pointer;
    }

.PhotoTile__body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    color: #30424a;
}

    .PhotoTile__body i {
        font-size: 22px;
        opacity: .8;
        margin-bottom: 10px;
    }

.pt-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.pt-caption {
    font-size: .9rem;
    color: #5c6e76;
}

.PhotoPreview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* shown when file selected */
}

.PhotoTile.filled .PhotoTile__body {
    display: none;
}

.PhotoTile.filled .PhotoPreview {
    display: block;
}

.PhotoClear {
    position: absolute;
    top: 8px;
    right: 8px;
    border: none;
    background: rgba(0,0,0,.45);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: none;
}

.PhotoTile.filled .PhotoClear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.PhotoClear i {
    font-size: 16px;
}





.SlideInPanel {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--fw-surface);
    border: 1px solid #ccc;
    border-radius: var(--fw-radius);
    padding: 10px;
    display:none;
}




/* Condition Slider */
.ConditionSlider {
    margin: 20px 0;
    width:100%;
}

.ConditionSteps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

    .ConditionSteps label {
        text-align: center;
        cursor: pointer;
        flex: 1;
        color: #555;
        font-size: 0.9rem;
    }

    .ConditionSteps input[type="radio"] {
        display: none;
    }

    .ConditionSteps span {
        display: inline-block;
        padding: 6px;
        border-radius: 6px;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .ConditionSteps i {
        font-size: 20px;
        display: block;
        margin-bottom: 5px;
    }

    .ConditionSteps input[type="radio"]:checked + span {
        color: #0077aa;
        font-weight: 600;
        transform: scale(1.1);
    }

.ConditionTrack {
    height: 6px;
    background: #e5eef3;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    margin: 0 12px;
}

.ConditionFill {
    background: #0077aa;
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
}

.ConditionInfo {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 15px;
    padding: 12px;
    border: 1px solid #cfd9df;
    border-radius: 6px;
    background: #f8fcff;
    font-size: 0.9rem;
}

    .ConditionInfo.Collapsed {
        display: none;
    }

    .ConditionInfo .infoIcon i {
        font-size: 18px;
        color: #0077aa;
    }

    .ConditionInfo strong {
        display: block;
        margin-bottom: 4px;
    }



/* Video guide accordion */
.VideoGuide .GuideToggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: #f9fbfd;
    border: 1px solid #e6edf2;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

    .VideoGuide .GuideToggle .caret {
        margin-left: auto;
        transition: transform .2s ease;
    }

 .GuideBody {
    margin-top: 10px;
}

     .GuideBody.Collapsed {
        display: none;
    }

.VideoGuide .EmbedRatio {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 8px;
    overflow: hidden;
}

    .VideoGuide .EmbedRatio iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

/* ===== Doorway Count (Stepper) — polished ===== */

/* layout line */
.DoorwayCountRow .CountInline {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* label + muted */
.DoorwayCountRow .lbl {
    font-weight: 600;
    color: #102a3b;
}

.DoorwayCountRow .muted {
    color: #6b7b86;
    font-size: .9rem;
}

/* container */
.Stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5e1ea;
    border-radius: 0px;
    background: #fff;
    overflow: hidden;
    height: 38px;
    box-shadow: 0 1px 0 rgba(16,42,59,.03), 0 1px 3px rgba(16,42,59,.04);
}

    /* number input (centered, no native spinners) */
    .Stepper input {
        width: 72px;
        height: 38px;
        line-height: 38px;
        border: 0;
        outline: 0;
        text-align: center;
        font-weight: 700;
        font-size: 14px;
        color: #102a3b;
        background: transparent;
    }

        /* remove native spinners */
        .Stepper input[type=number]::-webkit-outer-spin-button,
        .Stepper input[type=number]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .Stepper input[type=number] {
            -moz-appearance: textfield;
        }

    /* buttons */
    .Stepper .step {
        width: 38px;
        height: 38px;
        border: 0;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #f3f7fa;
        color: #123444;
        font-size: 18px;
        font-weight: 600;
        transition: background .15s ease, color .15s ease, transform .02s;
    }

        .Stepper .step:active {
            transform: translateY(1px);
        }

        .Stepper .step:hover {
            background: #e9f2f7;
        }

        .Stepper .step:focus-visible {
            outline: 2px solid #2a8dbd;
            outline-offset: 2px;
        }

        /* disabled at min/max */
        .Stepper .step.is-disabled,
        .Stepper .step:disabled {
            color: #9fb2bf;
            cursor: not-allowed;
            background: #f6fafc;
        }

    /* focus ring for input when user tabs in */
    .Stepper:has(input:focus-visible) {
        box-shadow: 0 0 0 3px rgba(15,110,167,.15);
        border-color: #99c7dd;
    }

/* make the whole row breathe a bit */
.DoorwayCountRow {
    margin-top: 8px;
}

    .DoorwayCountRow .errHolder[title] {
        margin-left: 4px;
    }

/* Add Door counter badge */
#addDoorBtn .countBadge {
    margin-left: 10px;
    padding: 2px 8px;
    border-radius: 0px;
    font-size: .85rem;
    background: var(--fw-bg);
    color: #fff;
    line-height: 1.6;
}

#addDoorBtn.is-disabled {
    opacity: .55;
    cursor: not-allowed;
}



/* Item list container */
.ItemList {
    list-style: none;
    margin: 0;
    padding: 0;
    min-height: 140px; /* keep space even when empty */
    border: 1px solid #e4edf4;
    border-radius: 0px;
    background: #fff;
}

    /* Empty state row */
    .ItemList .EmptyState {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 6px;
        color: #6b7b86;
        text-align: center;
        padding: 28px 16px;
        border:none!important;
    }

        .ItemList .EmptyState i {
            font-size: 22px;
            color: #8fb4c6;
        }

        .ItemList .EmptyState .title {
            font-weight: 600;
            color: #123444;
        }

        .ItemList .EmptyState .hint {
            font-size: .92rem;
        }








/* SubSection shell (already using this pattern elsewhere) */
.SubSection {
    padding: 16px 18px;
    background: #fff;
    border: 1px solid #e6edf2;
    border-radius: 0px;
    margin-bottom: 16px;
    position:relative;
}

    .SubSection > h2 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 1.1rem;
        margin: 0 0 8px;
    }

    .SubSection .help {
        color: #6b7b86;
        font-size: .95rem;
        margin-bottom: 10px;
    }

/* Accordion from your VideoGuide styles (reused) */
.AirbrickGuide .GuideToggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: #f9fbfd;
    border: 1px solid #e6edf2;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

    .AirbrickGuide .GuideToggle .caret {
        margin-left: auto;
        transition: transform .2s ease;
    }

.GuideBody.Collapsed {
    display: none;
}

/* Type list */
.AirbrickTypes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.AirbrickType strong {
    display: flex;
    align-items: center;
    gap: 8px;
}

.AirbrickType p {
    margin: 4px 0 0;
    color: #526573;
    font-size: .95rem;
}

/* Radio pills (Yes / No) */
.RadioPills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .RadioPills .pill {
        position: relative;
        display: inline-flex;
        align-items: center;
    }

        .RadioPills .pill input {
            display: none;
        }

        .RadioPills .pill span {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 120px;
            padding: 10px 14px;
            border: 1px solid #d5e1ea;
            border-radius: 0px;
            background: #f3f7fa;
            cursor: pointer;
            font-weight: 600;
            color: #123444;
            transition: all .15s;
        }

        .RadioPills .pill input:checked + span {
            background: var(--fw-bg);
            color: #fff;
            border-color: var(--fw-bg);
        }

/* Counts grid */
.AirbrickCounts.Collapsed {
    display: none;
}

.AirbrickGrid {
    display: grid;
    grid-template-columns: repeat(4,minmax(220px,1fr));
    gap: 16px;
}

@media (max-width: 1100px) {
    .AirbrickGrid {
        grid-template-columns: repeat(2,minmax(220px,1fr));
    }
}

@media (max-width: 560px) {
    .AirbrickGrid {
        grid-template-columns: 1fr;
    }
}

.CountCard {
    border: 1px solid #e6edf2;
    border-radius: 0px;
    background: #fbfdff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .CountCard .cardTop {
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .CountCard .cardTop i {
            font-size: 18px;
            color: var(--fw-bg);
        }

        .CountCard .cardTop .title {
            font-weight: 600;
        }

    .CountCard .cardBody {
        display: flex;
        align-items: center;
        gap: 10px;
    }

/* Reuse Stepper styling you already use (height/rounded/etc.) */
.Stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d5e1ea;
    border-radius: 0px;
    overflow: hidden;
    height: 38px;
    background: #fff;
}

    .Stepper input {
        width: 70px;
        text-align: center;
        border: 0;
        outline: 0;
        height: 38px;
        font-weight: 700;
        color: #102a3b;
    }

    .Stepper .step {
        width: 38px;
        height: 38px;
        border: 0;
        background: #f3f7fa;
        cursor: pointer;
        font-size: 18px;
    }

        .Stepper .step:hover {
            background: #e9f2f7;
        }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}



/* Plumbing cards */
.ShapeCards {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

@media (max-width: 700px) {
    .ShapeCards {
        grid-template-columns: 1fr;
    }
}

.ShapeCard {
    border: 1px solid #e6edf2;
    border-radius: 0px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,.02);
    justify-content: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .ShapeCard .icon {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: #eef6fb;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
    }

        .ShapeCard .icon i {
            font-size: 18px;
            color: #0b7aa7;
        }

    .ShapeCard .title {
        font-weight: 600;
        margin-bottom: 2px;
    }

    .ShapeCard .sub {
        font-size: .85rem;
        color: #667085;
        margin-bottom: 10px;
    }

    .ShapeCard .FormRow.tight {
        align-items: center;
        gap: 8px;
        width:max-content;
    }

.InlineNote {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px dashed #cfd9df;
    border-radius: 8px;
    background: #f8fcff;
    color: #344054;
    margin-top: 12px;
}

    .InlineNote i {
        color: #0b7aa7;
        margin-top: 2px;
    }

    .InlineNote.Collapsed {
        display: none;
    }


/* fully hide the real radios but keep them accessible */
.sr-only-radio {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

/* token group layout */
.TokenGroup {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* each selectable token */
.TokenRadio {
    cursor: pointer;
    user-select: none;
    outline: 0;
}

    /* the visible pill */
    .TokenRadio .token {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border: 1px solid #e6edf2;
        border-radius: 0px;
        background: #fff;
        transition: border-color .15s ease, box-shadow .15s ease, transform .04s ease, color .15s ease;
        color: #1f2937;
    }

        .TokenRadio .token i {
            font-size: 18px;
            color: #6b7a88;
        }

    .TokenRadio:hover .token {
        border-color: #cfd9df;
    }

    .TokenRadio:active .token {
        transform: translateY(1px);
    }

    /* selected state */
    .TokenRadio.is-checked .token {
        border-color: #0b7aa7;
        box-shadow: 0 0 0 3px rgba(11,122,167,.12);
        color: #0b7aa7;
    }

        .TokenRadio.is-checked .token i {
            color: #0b7aa7;
        }

    /* focus ring (keyboard) */
    .TokenRadio.is-focused .token {
        box-shadow: 0 0 0 3px rgba(11,122,167,.2);
    }



/* --- Upload card --- */
.UploadCard {
    border: 1px dashed #d9e3ea;
    border-radius: 0px;
    padding: 18px;
    text-align: center;
    background: #fafcfe;
}

    .UploadCard i {
        font-size: 28px;
        color: #8aa3b5;
        display: block;
        margin-bottom: 6px;
    }

    .UploadCard .uc-title {
        font-weight: 600;
        margin-bottom: 4px;
    }

    .UploadCard .uc-hint {
        color: #6b7a88;
        font-size: .92rem;
        margin-bottom: 10px;
    }

    .UploadCard .uc-actions {
        display: flex;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

.Hidden {
    display: none !important;
}

/* --- Gallery grid / items --- */
.Gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
    min-height: 128px;
}

.GalleryItem {
    position: relative;
    border: 1px solid #e6edf2;
    border-radius: 0px;
    overflow: hidden;
    background: #fff;
}

    .GalleryItem img {
        display: block;
        width: 100%;
        height: 120px;
        object-fit: cover;
    }

    .GalleryItem .meta {
        padding: 6px 8px;
        font-size: .82rem;
        color: #4b5563;
    }

    .GalleryItem .remove {
        position: absolute;
        top: 6px;
        right: 6px;
        border: none;
        background: rgba(0,0,0,.5);
        color: #fff;
        width: 26px;
        height: 26px;
        border-radius: 50%;
        cursor: pointer;
    }

.Gallery .EmptyState {
    grid-column: 1/-1;
    text-align: center;
    color: #6b7a88;
    border: 1px dashed #e1e8ee;
    border-radius: 0px;
    padding: 18px;
    background: #fafcfe;
}

    .Gallery .EmptyState i {
        display: block;
        font-size: 26px;
        color: #8aa3b5;
        margin-bottom: 6px;
    }

/* token radios (reuse from earlier) */
.sr-only-radio {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
}

.TokenGroup {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.TokenRadio {
    cursor: pointer;
    user-select: none;
    outline: 0;
}

    .TokenRadio .token {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border: 1px solid #e6edf2;
        border-radius: 0px;
        background: #fff;
        color: #1f2937;
        transition: border-color .15s, box-shadow .15s, transform .05s, color .15s;
    }

        .TokenRadio .token i {
            font-size: 18px;
            color: #6b7a88;
        }

    .TokenRadio:hover .token {
        border-color: #cfd9df;
    }

    .TokenRadio input:checked + span {
        background: var(--fw-bg);
        color: #fff;
        border-color: var(--fw-bg);
    }

    .TokenRadio.is-checked .token {
        border-color: #0b7aa7;
        box-shadow: 0 0 0 3px rgba(11,122,167,.12);
        color: #0b7aa7;
    }

        .TokenRadio.is-checked .token i {
            color: #0b7aa7;
        }

    .TokenRadio.is-focused .token {
        box-shadow: 0 0 0 3px rgba(11,122,167,.2);
    }



/* Pills reuse your existing radio-pill styles */

/* Card grid */
.CardGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.CardCheck {
    border: 1px solid #e5eaf0;
    border-radius: 0px;
    background: #fff;
    transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
    cursor: pointer;
}

    .CardCheck .card-body {
        padding: 14px 16px;
    }

    .CardCheck h3 {
        margin: 0 0 4px;
        font-size: 15px;
        font-weight: 600;
    }

    .CardCheck p {
        margin: 0;
        font-size: 13px;
        color: #6b7785;
    }

    .CardCheck.selected {
        border-color: var(--fw-bg-2);
        box-shadow: 0 0 0 3px rgba(10,106,161,.12);
        background: var(--fw-bg-3);
    }

    .CardCheck .hidden {
        display: none;
    }

.CardDetails {
    padding: 10px 12px 12px;
    border-top: 1px dashed #e5eaf0;
}

    .CardDetails.Collapsed {
        display: none;
    }

.FormRow.inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-right: 16px;
}

    .FormRow.inline label {
        min-width: 220px;
    }

/* Summary chips */
.SummaryMini .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.SummaryMini .chip {
    background: #eef6fb;
    border: 1px solid #d9e7f1;
    border-radius: 0px;
    padding: 4px 10px;
    font-size: 12px;
    color: #0a4764;
}


/* --- Flood Resilience section tidy --- */

/* remove bullets + reset spacing on the grid list */
.FloodResilience .CardGrid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
    gap: 14px;
    align-items: stretch; /* equal height rows */
}

/* card shell */
.FloodResilience .CardCheck {
    border: 1px solid #e5eaf0;
    border-radius: 0px;
    background: #fff;
    transition: box-shadow .15s ease,border-color .15s ease,background .15s ease;
    display: flex;
    flex-direction: column;
    min-height: 140px;
}

    .FloodResilience .CardCheck .card-body {
        padding: 14px 16px;
        cursor: pointer;
        flex: 1 1 auto; /* allow body to stretch */
    }

    .FloodResilience .CardCheck h3 {
        margin: 0 0 4px;
        font-size: 15px;
        font-weight: 600;
    }

    .FloodResilience .CardCheck p {
        margin: 0;
        font-size: 13px;
        color: #6b7785;
    }

    /* hide native check input used for state */
    .FloodResilience .CardCheck .MeasureToggle {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    /* selection state */
    .FloodResilience .CardCheck.selected {
        border-color: var(--fw-bg-2);
        box-shadow: 0 0 0 3px rgba(10,106,161,.12);
        background: var(--fw-bg-3);
    }

/* detail panel sits inside the same card, full width */
.FloodResilience .CardDetails {
    border-top: 1px dashed #e5eaf0;
    padding: 10px 12px 12px;
}

    .FloodResilience .CardDetails.Collapsed {
        display: none;
    }

/* inline rows inside details */
.FloodResilience .FormRow.inline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 0;
    flex-direction:column;
}

    .FloodResilience .FormRow.inline label {
        min-width: 220px;
    }

/* make inputs/selects inside details consistent */
.FloodResilience .CardDetails input[type="month"],
.FloodResilience .CardDetails input[type="text"],
.FloodResilience .CardDetails select {
    width: 260px;
    max-width: 100%;
}

/* summary chips spacing */
.FloodResilience .SummaryMini .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.FloodResilience .SummaryMini .chip {
    background: #eef6fb;
    border: 1px solid #d9e7f1;
    color: #0a4764;
    border-radius: 0px;
    padding: 4px 10px;
    font-size: 12px;
}

/* radio pills—ensure native radios hidden in pill */
.RadioPills .pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/* Visually hidden radios but still accessible */
.vh {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    border: 0;
    padding: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    overflow: hidden;
}

/* Pills container */
.RadioPills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    /* Pill look */
    .RadioPills .RadioChoice {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border: 1px solid #dfe7ee;
        border-radius: 0px;
        background: var(--fw-bg-4);
        color: #163a4d;
        cursor: pointer;
        transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
        user-select: none;
    }

        .RadioPills .RadioChoice i {
            font-size: 16px;
            line-height: 1;
            opacity: .8;
        }

        /* Hover */
        .RadioPills .RadioChoice:hover {
            border-color: #c5d6e5;
            box-shadow: 0 1px 0 rgba(16,45,68,.05);
        }

/* Focus style (keyboard) */
.vh:focus-visible + .RadioChoice {
    outline: none;
    box-shadow: 0 0 0 3px rgba(10,106,161,.25);
    border-color: var(--fw-bg-2);
}

/* SELECTED state – this is the key: input:checked + label */
.vh:checked + .RadioChoice {
    background: var(--fw-bg-2);
    border-color: var(--fw-bg-2);
    color: #fff;
}

    .vh:checked + .RadioChoice i {
        opacity: 1;
    }

/* Optional: compact on small screens */
@media (max-width: 520px) {
    .RadioPills {
        gap: 8px;
    }

        .RadioPills .RadioChoice {
            padding: 9px 12px;
        }
}


/* keep list area pleasant even when empty */
.ItemList.minListHeight {
    min-height: 120px;
}

/* --- Scope to the section to stay safe --- */
.OtherStructures .RowTitle {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.OtherStructures .muted {
    color: #6b7b86;
    font-weight: 400;
}

/* Pills */
.RadioPillGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.RadioPill {
    position: relative;
    cursor: pointer;
}

    .RadioPill input {
        display: none;
    }

    .RadioPill span {
        display: flex;
        align-items: center;
        gap: .5rem;
        border: 1px solid var(--fw-bg-3);
        border-radius: 0px;
        padding: 10px 14px;
        background: var(--fw-bg-4);
        transition: all .12s ease;
        font-weight: 600;
        flex-grow:1;
        align-items:center;
        justify-content:center;
        flex-direction:column;
    }

.RadioPillGroup label {
    width: auto;
    flex-grow: 1;
}
.RadioPill span em {
    font-style: normal;
    font-weight: 400;
    color: #6b7b86;
    margin-left: .35rem;
}

    .RadioPill i {
        font-size: 16px;
        opacity: .9
    }

    .RadioPill input:checked + span {
        background: var(--fw-bg);
        color: #fff;
        border-color: var(--fw-bg);
    }

        .RadioPill input:checked + span i {
            opacity: 1
        }

/* Entry panel */
.StructureEntryPanel {
    border: 1px dashed #d9e4ea;
    border-radius: 12px;
    padding: 16px;
    background: #fbfeff;
}

    .StructureEntryPanel.Collapsed {
        display: none;
    }

.SubTitle {
    margin: 0 0 10px;
    font-size: 1.05rem;
    font-weight: 700;
}

/* List */
.ItemList {
    list-style: none;
    padding: 0;
    margin: 0;
    min-height: 80px;
}

    .ItemList .EmptyState {
        padding: 16px;
        border: 1px dashed #d9e4ea;
        border-radius: 0px;
        color: #6b7b86;
        display: flex;
        gap: 10px;
        align-items: center;
        background: #fafcfe;
    }

        .ItemList .EmptyState i {
            font-size: 18px;
        }

.ListItem {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e7eef3;
    background: #fff;
    border-radius: 0px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.ListMeta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow:1;
}

    .ListMeta .t {
        font-weight: 700;
    }

    .ListMeta .s {
        color: #6b7b86;
        font-size: .92rem
    }

/* Buttons */
.ButtonStyle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 0px;
    padding: 10px 16px;
    border: 1px solid transparent;
    cursor: pointer;
}

    .ButtonStyle.Primary {
        background: var(--fw-bg);
        color: #fff;
    }

    .ButtonStyle.Ghost {
        background: #f4f9fc;
        border: 1px solid #d9e4ea;
        color: var(--fw-bg);
    }

    .ButtonStyle.Wide {
        width: 100%;
        justify-content: center;
    }

/* Panel buttons */
.PanelBar {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* Hide local bar if your global PanelOK/PanelCancel are present and toggled by JS */
.OtherStructures .LocalPanelButtons.Hidden {
    display: none;
}


/* === Radio chips alignment (icons + text centered, uniform height) === */
.RadioGroup,
.InlineOptions,
.StructureTypeGroup,
.StructureConnectsGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center; /* vertical alignment fix */
}

.RadioChip, /* generic pill */
.RadioCard, /* your card-style */
.OptionCard, /* compatibility */
.StructureTypeChip,
.StructureConnectsChip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    min-height: 40px;
    border: 1px solid #d9e3ea;
    border-radius: 0px;
    background: #f8fbfd;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

    .RadioChip input,
    .RadioCard input,
    .OptionCard input,
    .StructureTypeChip input,
    .StructureConnectsChip input {
        display: none; /* hide native radio */
    }

    .RadioChip i,
    .RadioCard i,
    .OptionCard i,
    .StructureTypeChip i,
    .StructureConnectsChip i {
        font-size: 16px;
        width: 20px;
        height: 20px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        opacity: .9;
    }

    /* selected + hover states */
    .RadioChip.active,
    .RadioCard.active,
    .OptionCard.active,
    .StructureTypeChip.active,
    .StructureConnectsChip.active {
        border-color: #0e6074;
        background: #eef7fa;
        box-shadow: 0 0 0 2px rgba(14,96,116,0.08) inset;
    }

    .RadioChip:hover,
    .RadioCard:hover,
    .OptionCard:hover,
    .StructureTypeChip:hover,
    .StructureConnectsChip:hover {
        border-color: #bcd3dd;
        transform: translateY(-1px);
    }

/* disable clicks when we purposely turn off the button */
.ButtonStyle.is-disabled,
button.is-disabled {
    opacity: .45;
    pointer-events: none;
}

/* List empty state & min-height so the area doesn’t collapse */
#structureList, #outList {
    min-height: 84px;
}

    #structureList .EmptyState, #outList .EmptyState {
        display: flex;
        align-items: center;
        gap: 10px;
        color: #6a7d88;
        font-size: .95rem;
        padding: 14px 16px;
        border: 1px dashed #d9e3ea;
        border-radius: 0px;
        background: #f9fcfe;
    }

        #structureList .EmptyState i, #outList .EmptyState i {
            font-size: 18px;
            opacity: .75;
        }

/* pills selected state */
.MeasuresPills label.RadioChoice.selected {
    outline: 2px solid var(--fw-bg);
    box-shadow: 0 0 0 3px rgba(12,125,177,.1);
}

/* card selection and chips */
.CardCheck.selected .card-body {
    border-color: var(--fw-bg);
    box-shadow: 0 0 0 2px rgba(12,125,177,.15);
}

#ResilienceChips .chip {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef6fb;
    border: 1px solid #cfe6f4;
    margin: 4px 6px 0 0;
    font-size: .9rem;
}


/* selected look for structure pills when JS adds .active */
.RadioPill.active span {
    background: var(--fw-bg);
    color: #fff;
    border-color: var(--fw-bg);
}

/* make sure the StructureEntryPanel slides (not overridden elsewhere) */
#StructureEntryPanel {
    display: none;
}

    #StructureEntryPanel.Collapsed {
        display: none !important;
    }



/* compact helper */
.ButtonStyle.Small {
    min-width: auto;
    padding: 8px 12px;
    font-size: .95rem;
}

/* info strip */
.InfoStrip {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e6edf2;
    background: #f9fbfd;
    padding: 12px 14px;
    border-radius: 8px;
}

/* blue note box */
.NoteBar {
    border: 1px solid #cfe3f6;
    background: #f3f9ff;
    border-radius: 10px;
    padding: 12px;
}

.NoteQ {
    font-weight: 600;
    margin-bottom: 6px;
}

.NoteHelp {
    font-size: .95rem;
    color: #4b5b66;
    margin-bottom: 10px;
}

    .NoteHelp .muted {
        display: block;
        margin-top: 6px;
        color: #6f7f8a;
    }

/* summary layout */
.SummaryGrid {
    display: grid;
    gap: 8px;
}

    .SummaryGrid .srow {
        display: flex;
        gap: 10px;
        align-items: center;
    }

    .SummaryGrid .slabel {
        color: #6a7b86;
        min-width: 220px;
    }

    .SummaryGrid .sval {
        font-weight: 600;
    }

/* token checkboxes share existing token styles;
   we only need a 'checked' visual class */
.TokenCheck.is-checked .token,
.TokenRadio.is-checked .token {
    border-color: #0b7aa7;
    box-shadow: 0 0 0 3px rgba(11,122,167,.12);
    color: #0b7aa7;
}


/* --- TokenCheck (multi-select version of TokenRadio) --- */
.TokenCheck {
    cursor: pointer;
    user-select: none;
    outline: 0;
}

    .TokenCheck .token {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px;
        border: 1px solid #e6edf2;
        border-radius: 0px;
        background: #fff;
        color: #1f2937;
        transition: border-color .15s, box-shadow .15s, transform .05s, color .15s, background .15s;
    }

        .TokenCheck .token i {
            font-size: 18px;
            color: #6b7a88;
        }

    .TokenCheck:hover .token {
        border-color: #cfd9df;
        background: #f8fafc;
    }

    /* active (checked) state */
    .TokenCheck.is-checked .token {
        border-color: #0b7aa7;
        background: #f3faff;
        color: #0b7aa7;
        box-shadow: 0 0 0 3px rgba(11,122,167,.12);
    }

        .TokenCheck.is-checked .token i {
            color: #0b7aa7;
        }

    /* focus ring (keyboard) */
    .TokenCheck:focus-within .token {
        box-shadow: 0 0 0 3px rgba(11,122,167,.2);
    }

/* small tweak for grid wrapping */
#OccGroup {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* ---------- Thank You page ---------- */
.ThankYou .SectionHeader h1 {
    margin: 0 0 6px;
    letter-spacing: .2px;
}

.ThankYou .SectionHeader .dot {
    color: var(--fw-bg);
}

.ThankYou .SectionHeader .lead {
    color: var(--fw-muted);
    margin: 4px 0 12px;
}

.TY-card {
    border: 1px solid #e6edf2;
    border-radius: var(--fw-radius);
    background: #fff;
    box-shadow: var(--fw-shadow);
    padding: 16px 18px;
}

.TY-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    background: linear-gradient(0deg,#fbfeff,#fbfeff);
    width:100%;
}

    .TY-hero .icon {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: #e8f4fb;
        color: var(--fw-bg);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
    }

        .TY-hero .icon i {
            font-size: 22px;
        }

    .TY-hero h2 {
        margin: 0 0 4px;
        font-size: 1.15rem;
    }

    .TY-hero p {
        margin: 0;
        color: var(--fw-muted);
    }

.TY-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 12px;
}

@media (max-width: 820px) {
    .TY-grid {
        grid-template-columns: 1fr;
    }
}

.ticks {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

    .ticks li {
        position: relative;
        padding-left: 24px;
        margin: 6px 0;
        color: #42515b;
    }

        .ticks li::before {
            content: "?";
            position: absolute;
            left: 0;
            top: 0;
            color: var(--fw-bg);
            font-weight: 700;
        }

.mini-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

    .mini-actions .ButtonStyle {
        min-width: unset;
        padding: 8px 12px;
    }

.TY-meta .meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px,1fr));
    gap: 12px;
}

@media (max-width: 700px) {
    .TY-meta .meta-grid {
        grid-template-columns: 1fr;
    }
}

.meta-label {
    color: var(--fw-muted);
    font-size: .9rem;
    margin-bottom: 2px;
}

.meta-value {
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.meta-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef6fb;
    border: 1px solid #cfe6f4;
    color: #0a4764;
    font-weight: 600;
}

.copyRef {
    border: 1px solid #e4ecf2;
    background: #f8fbfd;
    color: #284b5a;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .copyRef:hover {
        background: #eef6fb;
    }

/* --- Two-Factor Auth Step Styling --- */
.Assessment2FA .FormNotes {
    max-width: 60ch;
    color: var(--fw-muted);
    line-height: 1.5;
}

/* "Send code" and "Verify" tappable buttons */
.Assessment2FA .ui-tap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f4f9fc;
    border: 1px solid #d9e4ea;
    border-radius: var(--fw-radius);
    color: #0d3f4f;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

    .Assessment2FA .ui-tap:hover,
    .Assessment2FA .ui-tap:focus {
        background: #eaf4f9;
        border-color: #b8d4e1;
        outline: none;
    }

    .Assessment2FA .ui-tap:active {
        transform: translateY(1px);
    }

    /* Icons inside the clickable DIVs */
    .Assessment2FA .ui-tap i {
        font-size: 1rem;
        color: var(--fw-bg);
    }

/* Inline state messages under buttons */
.Assessment2FA .state {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.9rem;
    color: var(--fw-muted);
    min-width: 140px;
}

/* Input box look */
.Assessment2FA input[type="text"],
.Assessment2FA input[type="email"],
.Assessment2FA input[type="tel"] {
    border: 1px solid #d9e4ea;
    border-radius: var(--fw-radius);
    background: #fff;
    color: var(--fw-text);
    padding: 10px 12px;
    font-size: 1rem;
    width: 200px;
    transition: border-color 0.2s;
}

.Assessment2FA input:focus {
    border-color: var(--fw-bg);
    outline: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .Assessment2FA .ui-tap {
        width: 100%;
        justify-content: center;
    }

    .Assessment2FA input {
        width: auto!important;
        font-size:2em!important;
        padding:2px !important;
    }

    .Assessment2FA .state {
        display: block;
        margin: 6px 0 0;
        min-width: 0;
    }
}


.ButtonStyle.Next.is-busy {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

    .ButtonStyle.Next.is-busy::after {
        content: "…";
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
    }
/* 2FA per-digit boxes */
.TwoFA-Boxes {
    display: flex;
    gap: 10px;
    margin: 6px 0;
}

.TwoFA-Digit {
    width: 46px;
    height: 50px;
    text-align: center;
    font-size: 1.25rem;
    border: 1px solid #d9e4ea;
    border-radius: var(--fw-radius,0);
    background: #fff;
    color: var(--fw-text, #17212a);
}

    .TwoFA-Digit:focus {
        outline: none;
        border-color: var(--fw-bg,#000);
    }

.FormRow.HasError .TwoFA-Digit {
    border-color: #d93025;
}

#TwoFAErr {
    display: inline-block;
    margin-left: 10px;
    color: #d93025;
}

/* --- General Section Layout --- */
.Assessment2FA {
    max-width: 540px;
    margin: 20px auto;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 1.5rem 2rem;
}

    .Assessment2FA .SectionHeader h1 {
        font-size: 1.4rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    /* --- Notes Paragraph --- */
    .Assessment2FA .FormNotes {
        color: #555;
        font-size: .95rem;
        margin-bottom: 1.2rem;
        line-height: 1.4;
    }

    /* --- Resend / Status Section --- */
    .Assessment2FA .SubSection h2 {
        font-size: 1.1rem;
        margin-bottom: .5rem;
        display: flex;
        align-items: center;
        gap: .4rem;
    }

    .Assessment2FA .FormRow {
        margin-top: .75rem;
    }

    .Assessment2FA .state {
        display: block;
        font-size: .9rem;
        color: #666;
        margin-top: .5rem;
    }

        .Assessment2FA .state.success {
            color: #117a2a;
        }

        .Assessment2FA .state.error {
            color: #b42318;
        }

    /* --- Code Box Holder --- */
    .Assessment2FA .TwoFA-CodeRow {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .Assessment2FA .TwoFA-Boxes {
        display: flex;
        justify-content: center;
        gap: .6rem;
        margin-top: .5rem;
        width: 80%; /* smaller width */
        max-width: 260px;
    }

    .Assessment2FA .TwoFA-Digit {
        width: 3.5rem;
        height: 4rem;
        text-align: center;
        font-size: 1.3rem;
        border: 1px solid #d7dbe1;
        transition: border-color 0.2s, box-shadow 0.2s;
    }

        .Assessment2FA .TwoFA-Digit:focus {
            border-color: #0d6efd;
            box-shadow: 0 0 0 3px rgba(13,110,253,.15);
            outline: none;
        }

    /* --- Resend Button --- */
    .Assessment2FA .TwoFA-Send {
        width:100%;
    }

.AirbrickExample {
    margin-top: 18px;
    text-align: center;
}

    .AirbrickExample img {
        max-width: 320px;
        height: auto;
        border: 1px solid #d9e4ea;
        border-radius: 6px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    .AirbrickExample .caption {
        margin-top: 8px;
        font-size: 0.9rem;
        color: #6b7b86;
    }
/* Make the file input the tap target; not display:none */
.PhotoTile {
    position: relative;
}

    .PhotoTile .PhotoInput {
        position: absolute;
        inset: 0; /* top:0; right:0; bottom:0; left:0 */
        opacity: 0; /* invisible, but still present */
        cursor: pointer;
        z-index: 2; /* above .PhotoTile__body */
    }

    /* Keep preview/clear above if needed */
    .PhotoTile .PhotoPreview,
    .PhotoTile .PhotoClear {
        position: relative;
        z-index: 3;
    }
/* 1) Only hide non-tile file inputs */
.FormRow input[type="file"]:not(.PhotoInput) {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* 2) Make the tile input the full tap target (iOS-safe) */
.PhotoTile {
    position: relative;
    aspect-ratio: 1 / 1;
    min-width: 160px;
    min-height: 160px;
}

    .PhotoTile .PhotoInput {
        position: absolute;
        inset: 0;
        opacity: 0; /* invisible but clickable */
        cursor: pointer;
        z-index: 2;
    }

    .PhotoTile .PhotoPreview,
    .PhotoTile .PhotoClear {
        position: relative;
        z-index: 3;
    }

/* 3) Ensure good size on narrow screens */
@media (max-width:640px) {
    .PhotoTiles {
        grid-template-columns: 1fr;
    }

    .PhotoTile {
        min-height: 220px;
    }
}


/* ---------- Guide Section ---------- */


     .GuideBody {
        margin-top: 0.75rem;
        font-size: 0.95rem;
        color: #374151;
        line-height: 1.6;
    }

     .GuideText p {
        margin: 0.75rem 0;
    }

     .GuideText ul {
        margin: 0.75rem 0 1rem 1.25rem;
        list-style-type: disc;
    }

.GuideText .ExampleImages {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.GuideText .ExampleImage {
    flex: 1 1 260px;
    text-align: center;
}

.GuideText .ExampleImage img {
    width: 100%;
    max-width: 380px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.GuideText .ExampleImage .caption {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.5rem;
}

.GuideText .muted {
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.5rem;
    display: block;
}



.ButtonHolder .Next.loading {
    opacity: 0.9;
}

.ButtonHolder .Next .btn-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgb(0,0,0);
}

    .ButtonHolder .Next .btn-spinner::after {
        content: "";
        width: 20px;
        height: 20px;
        border: 3px solid #ccc;
        border-top-color: #333;
        border-radius: 50%;
        animation: spin 0.7s linear infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ButtonHolder {
    z-index:10000;
}
@media (max-width: 600px) {
    .header {
        position:relative;
    }
}

/* --- 2FA HARD FIXES (place at end of ui.css) --- */

/* 0) Prevent any horizontal scroll caused by wide children */
html, body {
    overflow-x: hidden;
}

/* 1) Nuke the generic .FormRow input width/padding for 2FA digits (any type) */
.FormRow .TwoFA-Digit,
.FormRow input.TwoFA-Digit[type="text"],
.FormRow input.TwoFA-Digit[type="tel"],
.FormRow input.TwoFA-Digit[type="number"] {
    width: auto !important; /* override generic width:100% */
    padding: 0 !important; /* override generic padding */
    box-sizing: border-box !important;
    flex: 0 0 auto !important; /* don’t grow/shrink in flex */
}

/* 2) Let the 2FA row be full width and centered (remove old 80%/260px choke) */
.Assessment2FA .TwoFA-Boxes {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(40px, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 360px !important; /* wider cap than 260px */
    margin-inline: auto !important;
    justify-items: stretch !important;
}

    /* 3) Stable, touch-friendly digit sizing */
    .Assessment2FA .TwoFA-Boxes .TwoFA-Digit {
        height: 52px !important;
        text-align: center !important;
        line-height: 52px !important; /* vertical centering */
        font-size: 1.2rem !important; /* >=16px to avoid iOS zoom */
        border: 1px solid #d7dbe1;
        background: #fff;
    }

/* 4) Make sure the flex parent doesn’t squash the grid */
.FormRow.TwoFA-CodeRow > .TwoFA-Boxes {
    flex: 0 0 auto !important;
}

/* 5) Keep your mobile “big inputs” rule off the 2FA digits */
@media (max-width: 600px) {
    .Assessment2FA input:not(.TwoFA-Digit) {
        width: auto !important;
        font-size: 2em !important;
        padding: 2px !important;
    }

    .ButtonHolder{
        flex-wrap:nowrap!important;
    }

    .chaport-launcher-button{
        top:5px!important;
        bottom:unset!important;
    }
    .Form{
        padding:9px;
    }

    .FormRow label, .RadioPills .pill span, .TokenRadio .token, .RadioPills .RadioChoice {
        width: 100%;
    }
    #doorList .DoorRow{
        flex-wrap:wrap;
    }
    .ButtonStyle{
        font-size:1.2em;
    }
    .FloodResilience .CardGrid {
        grid-template-columns: unset;
    }

    .InfoStrip, .SummaryGrid .srow, .TY-hero {
        flex-direction: column;
    }
}




/* Move Chaport to top-right on mobile */
@media (max-width: 768px) {
    .chaport-container.chaport-device-mobile {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        left: auto !important;
    }

        /* Launcher button */
        .chaport-container.chaport-device-mobile .chaport-launcher {
            top: 16px !important;
            right: 16px !important;
            bottom: auto !important;
            left: auto !important;
        }

        /* Chat window */
        .chaport-container.chaport-device-mobile .chaport-window {
            top: 72px !important; /* leave room for the launcher */
            right: 16px !important;
            bottom: auto !important;
            left: auto !important;
        }

        /* Popup message bubble */
        .chaport-container.chaport-device-mobile .chaport-message {
            top: 72px !important;
            right: 16px !important;
            bottom: auto !important;
            left: auto !important;
        }
}
