.leadform, .leadform * {
    box-sizing: border-box;
}
.leadform {
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 1;
}
.leadform > div {
    margin: 10px 0;
    position: relative;
}
.iti {
    width: 100%;
    font-size: 18px;
}
.iti__country-list{
    width: 100%
}

.iti__selected-dial-code, .iti__country-name, .iti__search-input{
    color:black;
}

.leadform input {
    color: black;
    width: 100%;
    font-size: 18px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    line-height: 1;
    transition: .2s all;
}
.leadform .error {
    background: #fff1f1;
    border: 1px solid #cd5757;
}
.leadform button[type=submit] {
    width: 100%;
    border: none;
    padding: 20px 20px;
    border-radius: 10px;
    background: #1a7cc3;
    color: #fff;
    text-align: center;
    font-size: 22px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
    transition: .5s all;
}
.leadform button[type=submit]:not([disabled]):hover {
    background: #3196df;
}
.leadform button[type=submit]:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.hide {
    display: none;
}
/* Стили тултипа */
.error-msg {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ff4444;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-top: 5px;
}
/* Треугольник сверху */
.error-msg::before {
    content: '';
    position: absolute;
    top: -5px;
    right: 15px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #ff4444;
}
/* Валидация */
.err {
    position: relative;
}
.err:after {
    display: block;
    content: ' \2297';
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 26px;
    line-height: 1;
    color: red;
    width: auto;
    height: auto;
    z-index: 99;
}
.leadform input:valid:not([type="tel"]) {
    border-color: #28a745;
}

.leadform input:invalid:not(:placeholder-shown):not([type="tel"]) {
    border-color: #dc3545;
}

.leadform input:invalid:not(:placeholder-shown):not([type="tel"]) + .error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Фокус */
.leadform input:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.35);
}

.leadform input:valid:focus:not([type="tel"]) {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.35);
}

.leadform input:invalid:focus:not([type="tel"]) {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.35);
}
/* Loader */
.loader {
    margin: auto;
    width: 30px;
    padding: 4px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    --_m:
            conic-gradient(#0000 10%,#000),
            linear-gradient(#000 0 0, #eee) content-box;
    -webkit-mask: var(--_m);
    mask: var(--_m);
    -webkit-mask-composite: source-out;
    mask-composite: subtract;
    animation: l3 1s infinite linear;
}
@keyframes l3 {to{transform: rotate(1turn)}}