﻿*, html {
    box-sizing:border-box;
}

FormQuestion {
    display: flex;
    flex-wrap: wrap;
    height: 100%;
    /* justify-content: space-between; */
    align-items: center;
    margin-bottom: 15px;
    gap: 5%;
    min-height: 0;
}

.haserror {
    border-radius: 10px;
    background-color: #fee;
    padding-left: 1%;
    padding-right: 1%;
}

    FormQuestion Text {
        display: block;
        color: #454545;
        font-size: clamp(0.8125rem, 0.7054rem + 0.4286vw, 1rem);
        margin-right: 10px;
        min-width:240px;
        margin-bottom: 4px;
    }
    FormQuestion Subtext {
        display: block;
        position: relative;
        top:-2px;
        color: #9b9b9b;
        font-size: clamp(0.75rem, 0.6429rem + 0.4286vw, 0.9375rem);
    }

    FormQuestion CaptureControl {
        display: block;
    }

FormQuestion Validation {
    margin-right: 10px;
    padding: 5px;
    flex: 1 1 auto; /* flex-grow, flex-shrink, flex-basis */
    color: #b60000;
    font-size: clamp(0.8125rem, 0.7054rem + 0.4286vw, 1rem);
}

.TextInput, .DateSelect, .TextInputAddr {
    padding: 5px 7px;
    border: 1px SOLID #b3b3b3;
    border-radius: calc(var(--rad));
    font-size: clamp(0.8125rem, 0.7054rem + 0.4286vw, 1rem);
    font-family: "Museo Sans W01","Helvetica Neue", Helvetica, sans-serif;
    max-width: 350px;
    background-color: #fff;
}

    .TextInputAddr {
        display:block;
        margin:5px 0 5px 0;
        min-width: 290px;
    }

    .Small {
        font-size: clamp(0.8125rem, 0.7054rem + 0.4286vw, 1rem);
    }

.DateSelect {
    padding-right: 8px;
    padding-left: 10px;
    text-align: center;
    font-size: clamp(0.8125rem, 0.7054rem + 0.4286vw, 0.9rem);
}

    .DateSelect.Small {
        padding: 0 1px;
    }


.form_container h3, FormSection Heading {
    display: block;
    font-size: 160%;
    font-weight: normal;
    color: #d79c00;
    position: relative;
    padding: unset;
    margin-top: 25px;
    margin-bottom: 15px;
    line-height: 1.6rem;
}

.form_container h4, FormSection SubHeading {
    display: block;
    font-size: clamp(15px, 2vw, 130%);
    font-weight: normal;
    color: #777;
    position: relative;
    padding: unset;
    margin-top: 5px;
    margin-bottom: 15px;
    line-height: clamp(1.1rem, 2vw, 1.5rem);
}

SubHeading {
    margin-bottom: 20px;
}

    FormSection Text {
        display: block;
        margin: 10px 0;
    }

    .progress_bar {
        margin-top: 1.5%;
        margin-bottom: 2%;
    }

    .logo_container {
        margin-top: 20px;
        margin-bottom: 12px;
    }

    CaptureControl {
        min-height: 0;
    }

        CaptureControl.holder {
            padding: 6px;
            border-radius: calc(var(--rad) + 3px);
            background: var(--bg);
            border: var(--cbrdr);
        }

            CaptureControl.holder:hover {
                background: var(--hover);
            }

            CaptureControl.holder:focus-within {
                background: var(--hover);
                border: var(--cbrdr-focus);
            }
    /* allow positioning of the help icon */
    formquestion > Help {
        display: none;
        z-index: 999;
    }
    /* make the control area the positioning context */
    formquestion > capturecontrol {
        position: relative;
        display: block;
    }
    /* only show help icon when Help exists */
    /*
formquestion:has(> Help) > capturecontrol::after {
    content: "?";
    position: absolute;
    top: -11px;
    right: -8px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #2b6cb0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
    */
    #FormHelpOverlay {
        position: fixed;
        inset: 0;
        display: none;
        background: rgba(0,0,0,0.7);
        z-index: 99999;
    }

        #FormHelpOverlay.is-open {
            display: flex;
            align-items: center;
            justify-content: center;
        }

    formquestion > Help {
        display: none;
    }

    formquestion > capturecontrol {
        position: relative;
    }

    .feHelp {
        position: absolute;
        top: -11px;
        right: -12px;
        width: 23px;
        height: 22px;
        padding-left: 5px;
        padding-top: 1px;
        display: block;
        border-radius: 50%;
        background: var(--selected);
        border: 2px solid #000;
        color: rgba(0,0,0,.98);
        font-weight: bold;
        font-size: 15px;
        font-family: Arial;
        cursor: pointer;
        user-select: none;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        /*opacity: 0;*/
        pointer-events: none;
        transition: opacity .15s ease;
    }

    .feHelp {
        transform: scale(.8);
        transition: opacity .35s ease, transform .35s ease;
    }

    formquestion:hover .feHelp,
    formquestion:focus-within .feHelp {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }

        formquestion:hover .feHelp:hover,
        formquestion:focus-within .feHelp:hover {
            transform: scale(1.2);
            background: rgb(255 220 77);
        }

    .helpBox {
        background: #fff;
        padding: 20px;
        max-width: 600px;
        width: 90%;
        border-radius: 8px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    }

    .helpTitle {
        color: #d79c00;
        font-size: 20px;
        font-weight: normal;
        margin-bottom: 15px;
        width: 100%;
        border-bottom: 1px SOLID #666;
        padding-bottom: 5px;
    }

    .helpContent {
        font-size: clamp(0.8125rem, 0.7054rem + 0.4286vw, 1rem);
        line-height: 1.5;
    }

    .fePromoStatus {
        padding-top: 4px;
        display: inline-block;
    }
    /* Fix help icons being clipped by conditional questions */
    formquestion:has(> help) {
        overflow: visible !important;
    }

        formquestion:has(> help) > capturecontrol {
            position: relative;
            overflow: visible !important;
        }

    .price_freeze_img {
        width: 100% !important;
        max-width: 120px !important;
        height: auto !important;
        display: inline-block !important;
    }

    .frozen_logo {
        background-image: url(../img/top_insert_frozen2.png) !important;
        background-size: 100px !important;
    }

    .choiceBoxInner.frozen_logo:hover {
        background-size: 110px auto !important;
    }

