﻿input:focus {
    outline: none;
    transform: scale(1.03);
    border-color: #4cafef;
    transition: all 0.25s ease-in-out;
}

input {
    transition: all 0.25s ease-in-out;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 12px;
}

.custom-radio-screen input[type="radio"] {
    width: 1rem;
    height: 1rem;
    border: 2px solid #000;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.custom-radio-screen input[type="radio"]:checked {
    background-color: #000;
    border-color: #000;
}

input[type=text],
input[type=password],
input[type=email],
input[type=tel] {
    position: relative;
    padding: 0.7rem;
    width: 20rem;
    font-size: 1rem;
    line-height: 1.6rem;
    border-radius: 0.3rem;
    border: 1px solid rgba(89,87,87,0.3);
}

input::placeholder {
    color: rgba(89,87,87,0.7);
    font-size: 0.7em;
}

input:focus,
select:focus {
    background: rgba(239,235,228,0.5);
}

input:read-only {
    border: 1px solid rgba(0,0,0,0) !important;
    cursor: inherit;
    pointer-events: none;
}

input:read-only:hover {
    cursor: inherit;
}

input[type=text]:required,
input[type=password]:required,
input[type=email]:required,
input[type=tel]:required,
select:required {
    border: 1px solid rgba(51,156,208,1);
}

input[type=text]:required:valid,
input[type=password]:required:valid,
input[type=email]:required:valid,
input[type=tel]:required:valid,
select:required:valid {
    border: 1px solid rgba(97,178,112,0.6);
}

input[type=checkbox] {
    transform: scale(1.5);
}

input[type=checkbox] + label,
input[type=radio] + label {
    padding: 0.5rem 1rem;
    width: 10vw;
    cursor: pointer;
}

input[type=checkbox] + label:hover {
    color: rgba(51,156,208,1);
}

/* email-handler suggestion dropdown */
.autoComplete_wrapper > input {
    border: 1px solid rgba(89,87,87,0.3) !important;
    border-radius: 0.3rem !important;
    width: 20rem !important;
    color: black !important;
    padding: 0.7rem !important;
    background-image: none !important;
}

.autoComplete_wrapper > input:focus {
    background: rgba(239,235,228,0.5);
}


.autoComplete_results {
    position: absolute !important;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: .5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-top: 2px;
    max-height: 200px;
    overflow-y: auto;
}

.autoComplete_result {
    padding: .5rem .75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 14px;
}

.autoComplete_result:hover,
.autoComplete_result[aria-selected="true"] {
    background-color: #f0f4ff;
    font-weight: 500;
}

.autoComplete_wrapper > ul {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 2px;
    list-style: none;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
    width: 100%;
    z-index: 9999;
    margin: .3rem 0 0 0!important;
}

.autoComplete_wrapper > ul > li {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.autoComplete_wrapper > ul > li:hover {
    background: #f5f5f5;
}

.autoComplete_wrapper > ul > li mark {
    color: green!important;
}

@media (max-width: 576px) {
    input[type="text"],
    input[type="password"],
    input[type="email"],
    input[type="tel"] {
        width: 100%;
        max-width: 100%;
    }
}
.autoComplete_wrapper {
    width: 100%;
    max-width: 500px;
}

.autoComplete_wrapper input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .autoComplete_wrapper {
        max-width: 100%;
    }

    .d-flex.flex-column.flex-md-row > div {
        width: 100%;
    }
}
.placeholder-gray::placeholder {
    color: #999!important;
}