@import '../variables.css';

html body #site-container select:not([multiple]),
html body form select:not([multiple]),
html body .chosen-container.chosen-container-single .chosen-single
{
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    background-image: linear-gradient(45deg, transparent 50%, #A7A9AC 50%), linear-gradient(135deg, #A7A9AC 50%, transparent 50%), linear-gradient(to right, #A7A9AC, #A7A9AC);
    background-position: calc(100% - 1.55rem) 0.95em, calc(100% - 1.05rem) 0.95em, calc(100% - 1.75em) 0.5em;
    background-size: 0.5rem 0.5rem, 0.5rem 0.5rem, 0.1rem 1.15em;
    background-repeat: no-repeat;
    padding-right: 4rem;
    outline: none;
}

html body #site-container select:not([multiple])[disabled],
html body form select:not([multiple])[disabled],
html body form input[disabled] {
    cursor: not-allowed;
    background-color: var(--ppp-light-grey);
    color: darkgray;
}

html body .chosen-container-single .chosen-single div b {
    display:none;
}

html body .chosen-container-single .chosen-search input[type="text"] {
    background: none;
}

body select[multiple] option { 
    padding-top:0.2rem;
    padding-bottom:0.2rem;
    max-height: 28rem;
}

html body .form--no-labels select {
    color: var(--ppp-medium-grey);
}

html body  input:not([type="file"]):not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([hidden=""]) , 
html body  textarea, 
html body  select,
html body .chosen-container.chosen-container-single .chosen-single
{
    border-color: var(--ppp-medium-grey);;
    opacity: 1;
}

html body input:not([type="file"]):not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([hidden=""]), 
html body textarea, 
html body select,
html body .chosen-container.chosen-container-single .chosen-single,
html body .select2-container .select2-selection--single {
    border: 0.2rem solid #bcbec0;
    border-top-color: rgb(188, 190, 192);
    border-right-color: rgb(188, 190, 192);
    border-bottom-color: rgb(188, 190, 192);
    border-left-color: rgb(188, 190, 192);
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    color: #6d6e71;
    font-size: 1.6rem;
    height: 4.2rem;
    outline: 0;
    -webkit-transition: border-color ease-in-out 0.15s;
    -moz-transition: border-color ease-in-out 0.15s;
    -ms-transition: border-color ease-in-out 0.15s;
    -o-transition: border-color ease-in-out 0.15s;
    transition: border-color ease-in-out 0.15s;
    outline: none;
}

html body input:not([type="file"]):not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([hidden=""])[required]:focus, 
html body textarea[required]:focus, 
html body select[required]:focus,
html body .chosen-container.chosen-container-single .chosen-single[required]:focus,
html body .select2-container .select2-selection--single[required]:focus {
    border: 0.1rem solid var(--ppp-red);
}


html body input:not([type="file"]):not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([hidden=""]), 
html body textarea, 
html body select,
html body .chosen-container.chosen-container-single .chosen-single,
html body .select2-container .select2-selection--single {
    width: 100%;
    padding: 6px 12px;
    padding-right: 12px;
    line-height: 1.42857143;
    color: #555555;
    background-color: #fff;
    border: 0.5px solid var(--ppp-medium-grey);
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
}

html body select.empty {
  color: var(--ppp-medium-grey);
}
html body select option[value=""],
html body select option[value="0"]{
  color: var(--ppp-medium-grey);
}

html body input:not([type="file"]):not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):not([hidden=""]):disabled {
    background-color: #eee;
    cursor: not-allowed;
}

.chosen-container.chosen-container-single {
    width: 100% !important; /* or any value that fits your needs */
}

body input, body button, body select, body textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

body button, body select {
    text-transform: none;
}

body button, body input, body optgroup, body select, body textarea {
    color: inherit;
    font: inherit;
    font-size: inherit;
    line-height: inherit;
    font-family: inherit;
    margin: 0;
}

body textarea {
    min-height: 8rem;
}

body .order-form .form-actions {
    background-color: white;
    border: none;
    margin-top:0;
    /* margin-bottom: 50px; prevent hubspot chat overlap - added global style. */
}

body .order-form{
    margin-top:2.5rem;
}

body input.cmn-toggle-round:checked + label::before {
    background-color: #ed1c24;
}


body label {
    font-size: 1.6rem;
    font-weight: normal;
}

body .radio.inline + .radio.inline {
    margin-left: 3.5rem;
}


body .form-actions__buttons-container {
    display:flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

body .form-actions__buttons-container > * {
    margin-bottom: .5rem;
}

body .form-actions__buttons-container .form-actions__buttons-container__cancel-next-container{
    display:flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    body .form-actions__buttons-container .form-actions__buttons-container__cancel-next-container{
        flex-direction: column;
    }
    
    body .form-actions__buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    body .form-actions__buttons-container .btn {
        margin-bottom:2rem;
    }
}

body .radio {
    padding-top: 5px;
}

body input:focus:invalid, 
body textarea:focus:invalid, 
body select:focus:invalid {
    color: inherit; 
    border-color: inherit;
}

body select.empty:focus,
body select.empty:focus:invalid {
    color: var(--ppp-medium-grey);
}

body select.empty:focus option:not(:first-of-type),
body select.empty:focus:invalid option:not(:first-of-type){
  color: var(--ppp-dark-grey);
}

/** --- Custom checkbox -- */
.row.checkbox-wrapper {
    margin-bottom: 0.5rem;
}

.checkbox-wrapper {
    position: relative;
}

.checkbox-wrapper input {
    left: -999.9rem;
    position: absolute;
}

.checkbox-wrapper label {
    position: relative;
    padding-left: 25px;
}

.checkbox-wrapper label:before {
    background: #ffffff;
    border: 0.5px solid var(--ppp-medium-grey);
    content: '';
    height: 1.4rem;
    left: 0;
    position: absolute;
    top: 0.3rem;
    width: 1.4rem;
}
.checkbox-wrapper input:checked + label:before {
    border: 0.5px solid var(--ppp-red);
}


.checkbox-wrapper input:checked + label:after {
    background: var(--ppp-red);
    content: '';
    height: 0.8rem;
    left: 0.3rem;
    opacity: 1;
    position: absolute;
    top: 0.6rem;
    transition: all 0.2s ease;
    width: 0.8rem;
}

.checkbox-wrapper label.semi-checked:after {
    background: var(--ppp-red);
    content: '';
    height: 0.2rem;
    left: 0.3rem;
    opacity: 1;
    position: absolute;
    top: 0.9rem;
    transition: all 0.2s ease;
    width: 0.8rem;
}

.checkbox-wrapper + div:not(.checkbox-wrapper) {
    margin-top: 1rem;
}

.checkbox-wrapper + div.checkbox-wrapper {
    margin-top: 0.5rem;
}

/* --- Custom radio button -- */
.radio-wrapper [type="radio"] {
    position: absolute;
    left: -9999px;
}

.radio-wrapper [type="radio"] + label {
    position: relative;
    padding-left: 25px;
    cursor: pointer;
    line-height: 20px;
    display: inline-block;
    padding-top: 0;
    margin-top: 0.5rem;
    color: var(--ppp-black) !important;
    font-family: 'Open Sans SemiBold' !important;
    font-weight: normal;
}

.radio-wrapper [type="radio"] + label:before{
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 14px;
    height: 14px;
    border: 0.5px solid var(--ppp-medium-grey);
    border-radius: 100%;
    background: #fff;
}

.radio-wrapper [type="radio"]:checked + label:before {
    border: 0.5px solid var(--ppp-red);
}

.radio-wrapper [type="radio"]:disabled + label:before {
    border: 0.5px solid #ddd;
}

.radio-wrapper [type="radio"]:checked + label:after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--ppp-red);
    position: absolute;
    top: 0.6rem;
    left: 0.4rem;
    border-radius: 100%;
    -webkit-transition: all 0.2s ease;
    transition: all 0.2s ease;
}

body #site-container .radio-wrapper [type="radio"]:checked + label.disabledOption:after {
    background: #dadada;
}

body #site-container .radio-wrapper [type="radio"]:disabled + label,
body #site-container .radio-wrapper [type="radio"]:disabled + label + ul {
    color: var(--ppp-medium-grey) !important;
}

body #site-container .radio-wrapper [type="radio"]:checked:disabled + label:after {
    background: var(--ppp-medium-grey);
}
 
form .radio .help-inline {
    display: block;
    padding-left:0;
    margin-bottom: 1rem;
    font-size: 1.6rem;
    color: var(--ppp-dark-grey);
    font-family: "Open Sans Regular", sans-serif;
}

.inline-radio-wrapper {
    display: flex;
}

.inline-radio-wrapper > div {
    margin-right: 3rem;
}

html body .select2-container--default .select2-selection--single .select2-selection__arrow {
    border-left: 1px solid var(--ppp-medium-grey);
    height: 20px;
    top: 10px;
    right: 6px;
    width: 24px;
}

html body .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: 5px 5px 0 5px;
    border-color: var(--ppp-medium-grey) transparent;
}

html body .select2-container--default .select2-selection--single .select2-selection__rendered[title='Select One'] {
    color: var(--ppp-medium-grey);
}

html body .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding-left: 0px;
}

html body .select2-container--default .select2-results__option[aria-selected=true] {
    background-color: transparent;
    color: var(--ppp-black);
}

html body .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #5897fb;
}

html body .select2-container--default .select2-results__options li:first-child {
    color: var(--ppp-medium-grey);
}

html body .select2-container--default .select2-results__options li.select2-results__option--highlighted[aria-selected] {
    color: white;
}

.add-community-url {
    display: flex;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.hoa-id-wrapper {
    margin-top: 1rem;
}

.community-form {
    max-width: 85rem;
}

.community-form .other-type-wrapper {
    display: none;
}

#hoampage-fields {
    margin-left: -15px;
    margin-right: -15px;
    display: none;
}

 
    
