﻿.has-error {
    color: #EF130F;
}

.has-error input,
.has-error select {
    border-color: #ef130f !important;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}

.has-error .control-label {
    color: #ef130f !important;
}

.has-error label {
    /*position: absolute;*/
    /*top: -10px;*/
    /*left: 16px;*/
    font-size: 14px;
    font-weight: bold;
    color: #ef130f !important;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.error-icon {
    width: 20px;
    height: 20px;
    border: 2px solid red;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: red;
    background-color: white;
    position: absolute;
    right: 40px;
    top: 28px;
    transform: translateY(-50%);
    font-family: Arial, sans-serif;
    display: none;
}

.has-error .error-icon {
    display: flex !important;
}

.has-error .form-control {
    border: 2px solid red;
}

.error-label {
    color: red !important;
}

.has-float-label {
    display: block;
    position: relative;
}

.has-float-label label,
.has-float-label > span {
    position: absolute;
    cursor: text;
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
    background: white;
    padding: 0 0 0 0;
    border: 0;
    z-index: 3;
    white-space: nowrap;
    font-size: 12px;
}

.has-float-label label {
    font-weight: normal !important;
    font-family: "Inter", sans-serif;
    color: black;
    top: -9px;
    padding: 0 1px 0 1px;
    left: 16px;
    min-height: 10px !important;
}

.has-float-label .form-control::-webkit-input-placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.has-float-label .form-control::-moz-placeholder {
    opacity: 1;
    transition: all .2s;
}

.has-float-label .form-control:-ms-input-placeholder {
    opacity: 1;
    transition: all .2s;
}

.has-float-label .form-control::placeholder {
    opacity: 1;
    -webkit-transition: all .2s;
    transition: all .2s;
}

.has-float-label .form-control:placeholder-shown:not(:focus)::-webkit-input-placeholder {
    opacity: 1;
}

.has-float-label .form-control:placeholder-shown:not(:focus)::-moz-placeholder {
    opacity: 1;
}

.has-float-label .form-control:placeholder-shown:not(:focus):-ms-input-placeholder {
    opacity: 1;
}

.has-float-label .form-control:placeholder-shown:not(:focus)::placeholder {
    opacity: 1;
    top: -1em;
}

.input-group .has-float-label {
    display: table-cell;
}

.input-group .has-float-label .form-control {
    border-radius: 4px;
}

.input-group .has-float-label:not(:last-child) .form-control {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.input-group .has-float-label:not(:first-child) .form-control {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    margin-left: -1px;
}

.input-group .has-float-label:not(:last-child) .form-control {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.input-group .has-float-label:not(:first-child) .form-control {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    margin-left: -1px;
}

.control-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    min-height: 27px;
    vertical-align: text-bottom;
    margin-bottom: 5px;
}

.pgl-form-control {
    font-family: Inter, sans-serif;
    font-weight: 500;
    color: #2B4F3E;
    font-size: 18px;
    height: 63px;
    line-height: 48px;
    max-width: unset;
    border-radius: 10px;
    border-color: #D9D9D9;
    border-style: solid;
    border-width: 1px;
    padding-left: 15px;
    /*padding-top: 20px;*/
}

.form-control::placeholder{
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #2B4F3E;
    /*top: 15px;*/
    line-height:20;
    /*padding-bottom: 21px;*/
    /*padding-left: 16px;*/
}

.form-control:placeholder-shown:not(:focus){
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #2B4F3E;
    /*top: 15px;*/
    /*line-height:20;*/
    /*padding-bottom: 21px;*/
    padding-left: 15px;
}

.form-select {
    line-height: 1.5;
}

.form-select.error {
    line-height: 1.5 !important;
}

.pgl-form-control::placeholder {
    color: #2B4F3E;
}

.form-control:focus, .form-control:focus-visible {
    box-shadow: unset;
    font-family: Inter, sans-serif;
    font-weight: 500;
    font-size: 18px;
    color: #2B4F3E !important;    
}

.radio-label {
    padding-left: 10px;
    margin-top: -6px;
}

.transparent-input {
    background-color: transparent !important;
    color: white !important;
    font-weight: 400 !important;
    border: 1px white solid;    
    width: 343px;
    --bs-form-select-bg-img: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='165' width='165' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z'/%3E%3C/svg%3E");
}

.transparent-input::placeholder {
    color: white !important;
    opacity: 100% !important;
}

.transparent-input:focus {
    border: 1px white solid;
    color: white !important;
}

.help-block {
    color: #EF130F !important;
    top: 60px !important;
    font-size: 16px !important;
}

.error {
    color: #EF130F !important;
    line-height: 24px !important;
    font-size: 16px;
}

#appStage-errors-top {
    margin: 20px 20px 30px; 
}


.field-validation-error {
    top: 35px;
    left: 16px;
    background-color: transparent !important;
    z-index: 0 !important;
}

.pgl-form-control.error{
    color: #EF130F !important;
}

.custom-check {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border: 1px solid black;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    padding-top: 2px;
}
.custom-check:checked {
    /*border: none;*/
}

.custom-check:checked::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("/images/checkmark-orange.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.custom-check + label {
    color: black;
}

/* Monthly/Semi-Monthly calendar */
.flatpickr-current-month {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold;
}

/* Bold the Month Year text */
.flatpickr-current-month .cur-month {
    font-weight: bold !important;
    margin: 0 0.5rem;
}

.flatpickr-next-month {
    margin-left: auto;
}

.flatpickr-calendar.inline {
    padding: 20px;
    width: 350px;
}
/* END Monthly/Semi-Monthly calendar */

@media (max-width: 991.9px) {
    .pgl-form-control {
        height: 55px;
    }
    
}

@media(max-width: 525px) {
    .transparent-input { 
        width: 100%;
    }
}

@media(max-width: 392px) {

    .pgl-form-control {
        max-width: 100%;
    }
}

.custom-file-input::-webkit-file-upload-button {
    visibility: hidden;
}
.custom-file-input::before {
    content: 'Upload File';
    outline: none;
    -webkit-user-select: none;
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 400;
    font-size: 16px;
    padding-left: 42px;
    color: white;
    display: flex;
}

.custom-file-input:hover::before {
    /*border-color: black;*/
}
.custom-file-input:active::before {
    /*background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);*/
}

.custom-file-input:after {
    font-weight: 400;
    font-size: 16px;
    padding-left: 40px;
    color: white;
}

#file-upload-icon {
    position: absolute;
    margin-top: -37px;
    margin-left: -139px;
    color: white;
}
/* Mobile-specific Flatpickr scaling */
@media (max-width: 380px) {
    .flatpickr-calendar {
        font-size: 12px;
    }
    
    .flatpickr-calendar.inline {
        width: 310px;
    }
    
    .flatpickr-days {
        width: 280px;
    }

    .flatpickr-day {
        height: 32px;
        line-height: 32px;
        max-width: 32px;
    }

    .flatpickr-months {
        padding: 5px 0;
    }

    .flatpickr-month {
        height: 30px;
    }

    .flatpickr-current-month {
        font-size: 14px;
        padding: 5px 0;
    }

    .flatpickr-weekday {
        font-size: 11px;
    }

    .flatpickr-calendar.open {
        left: 50% !important;
        transform: translateX(-50%);
        right: auto !important;
    }
}
@media (max-width: 393px) {
    #Applicants_0__Residences_0__State, #Applicants_0__Residences_0__Zip {
        padding: 10px !important;
    }
}

@media (max-width: 330px) {
    #Applicants_0__Residences_0__City.pgl-form-control, #Applicants_0__Residences_0__Zip.pgl-form-control {
        padding-left: 10px;
    }
} 