:root {
    --borderColor: #e5e3e0;
}

/* Navigation */
#navigation {
    width: 224px;
    border: 1px solid var(--borderColor);
    background-color: #f7f7f7;
    overflow: hidden;
}

#navCollapseContainer {
    border-bottom: 1px solid var(--borderColor);
    white-space: nowrap;
}

#navCollapse {
    padding: 8px 10px;
    text-align: right;
    font-size: 1.5rem;
    background-color: #000;
    color: #fff;
}

#navCollapseIcon {
    cursor: pointer;
    width: 30px;
    text-align: center;
}

.navItemContainer {
    position: relative;
    width: 100%;
    border-top: 1px solid var(--borderColor);
    border-bottom: 1px solid var(--borderColor);
}

    .navItemContainer:hover {
        background-color: #ccc;
    }

    .navItemContainer .valid {
        color: lightgreen;
    }

.navItemContainerActive, .navItemContainerActive:hover {
    background-color: #e5e3e0;
}

.navItem {
    position: relative;
    width: calc(100% - 16px);
    cursor: pointer;
    padding: 8px 8px;
    font-size: .8rem;
    white-space: nowrap;
    overflow: hidden;
}

.navItemStatus {
    display: inline-block;
    width: 30px;
    text-align: center;
    font-size: 1.5rem;
}

.navItem .valid {
    color: lightgreen;
}

.navItemIcon {
    display: inline-block;
    width: 30px;
    margin: 0 6px 0 2px;
    text-align: center;
    font-size: 1.5rem;
}

.navItemText {
    display: inline-block;
}

.navItemNext, .navItemNextBackground {
    position: absolute;
    left: 0;
    width: 100%;
    bottom: -14px;
    font-size: 1.2rem;
    text-align: center;
    z-index: 1
}

.navItemNextBackground {
    color: #fff;
}

/* Policy */
#policyContainer {
    border: 1px solid var(--borderColor);
}

#applicantInfoContainer {
    position: relative;
    border-bottom: 1px solid var(--borderColor);
}

#menuIcon {
    cursor: pointer;
    position: absolute;
    top: 8px;
    left: 10px;
    display: none;
    font-size: 1.5rem;
    color: #fff;
}

/* Applicant name */
#applicantName {
    height: 42px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    background-color: #000;
    color: #fff;
    border-bottom: 1px solid var(--borderColor);
}

#applicantNameLabel {
    margin-right: 8px;
    font-weight: 600;
}

/* Applicant info */
#applicantInfo {
    padding: 8px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    background-color: #f6910b;
    color: #000;
}

.applicantInfoItem {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.applicantInfoLabel {
    margin-right: 8px;
    font-weight: 600;
}

.applicantInfoValue {
    margin-right: 10px;
}

#premium {
    width: 80px;
}

#effectiveDate {
    width: 80px;
}

#state {
    width: 20px;
}

#underwritingItem {
    width: 20px;
}

#plan {
    width: 90px;
}

/* Application warnings */
.applicationWarning {
    display: flex;
    padding: 8px 12px;
    flex-direction: row;
    align-items: start;
    font-size: .8rem;
    border-bottom: 1px solid var(--borderColor);
}

.applicationWarningIcon {
    font-size: 2rem;
    margin-right: 8px;
    margin-bottom: 0.5rem;
}

#applicationPolicyMissing {
    display: none;
    align-items: center;
    background-color: red;
    color: #fff;
}

    #applicationPolicyMissing .inlineStep, #applicationPolicyMissingMobile .inlineStep {
        color: unset;
    }

/* Policy info */
#policyInfo {
    position: relative;
}

#policyStep {
    position: relative;
    padding: 12px;
}

#policyInfoHeader {
    font-size: 1.4rem;
}

/* Form */
#form {
    position: relative;
}

#policyLockedBackground {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #555;
    opacity: .1;
    z-index: 1;
}

/* Premium Increase */
.premiumIncrease {
    color: red;
}


/* Signature */
#signatureImage {
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--borderColor)
}

#signaturePadContainer {
    display: none;
    position: fixed;
    z-index: 20;
    /*top: 50%;*/
    bottom: 0px;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 8px);
    width: 600px;
    max-height: calc(100% - 8px);
    height: 250px;
    padding: 8px;
    border: 1px solid var(--borderColor);
    background-color: #fff;
}

#signaturePad {
    margin-top: 12px;
    
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    height: calc(100% - 40px);
    width: calc(100% - 2px);
    background-color: #fff;
}

#signaturePadBody {
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    border: 1px solid #f4f4f4;
}

#signaturePadCanvas {
    position: absolute;
    left: 0;
    top: 0;
    border: 1px solid var(--borderColor);
}

.signature-pad--footer {
    color: #C3C3C3;
    font-size: 1.2em;
    margin-top: 8px;
}

/* Wait */
.wait {
    text-align: center;
}

/* Screen size changes */
@media screen and (max-width: 950px) {
    #navigation {
        display: none;
        position: absolute;
        top: 44px;
        left: 8px;
        z-index: 200;
    }

    #navCollapseContainer {
        display: none !important;
    }

    .navItem {
        padding: 6px;
    }

    #menuIcon {
        display: block !important;
        z-index: 100;
    }
}

@media screen and (max-width: 750px) {
    #policyContainer {
        border: none;
    }

    #agentApplicantInfoItem, #effectiveDateApplicantInfoItem, #stateApplicantInfoItem, #uwApplicantInfoItem {
        display: none !important;
    }

    .applicationWarningIcon {
        font-size: 1.5rem;
    }

    #policyInfo {
        position: absolute;
        top: 75px;
        bottom: 0;
        left: 0;
        right: 0;
        overflow-y: scroll;
    }
}

@media screen and (max-width: 500px) {
    #applicantName {
        font-size: 1rem;
    }
}

.voice_sign_checks {
    display: none;
    grid-column: 2;
}

.voice_sign_padding {
    padding: 0.75rem 0.25rem 0.75rem 0.25rem;
}

.voice_sign_mt1 {
    margin-top: 1.5rem;
}

.voice_sign_mt2 {
    margin-top: 1rem;
}

.voice_sign_mb {
    margin-bottom: 0.75rem;
}

.voice_sign_nospace {
    margin: 0;
}

.voice_sign_warning {
    background-color: yellow;
}

.voice_sign_grid {
    display: grid;
    grid-column-gap: 0.5rem;
    grid-template-columns: max-content max-content;
    justify-content: center;
}

.voice_sign_grid_center {
    display: flex;
    align-items: center;
}

.voice_sign_cell {
    width: 50%;
}

.voice_sign_finish {
    display: inline-flex;
}
