/* ====== Формы ====== */
form.defStyle {
    font-family: Calibri;
}

/* --- Текстовые поля --- */
form.defStyle select,
form.defStyle textarea,
form.defStyle input[type="text"],
form.defStyle input[type="number"],
form.defStyle input[type="password"],
form.defStyle input[type="tel"],
form.defStyle input[type="date"],
form.defStyle input[type="email"],
form.defStyle .input-replacer{
    position: relative;
    color: #000;
    font-size: 10pt;
    font-weight: normal;
    padding: 7px 9px;
    background: #f2f2f2;
    border: 2px solid #c6c6c6;
    z-index: 5;
    font-family: Arial;
}
form.defStyle textarea {
    line-height: 1.5em;
}
form.defStyle select:focus,
form.defStyle textarea:focus,
form.defStyle input[type="text"]:focus,
form.defStyle input[type="number"]:focus,
form.defStyle input[type="password"]:focus,
form.defStyle input[type="tel"]:focus,
form.defStyle input[type="date"]:focus,
form.defStyle input[type="email"]:focus{
    outline: none;
    border: 2px solid #00b259;
}
form.defStyle select:disabled,
form.defStyle textarea:disabled,
form.defStyle input[type="text"]:disabled,
form.defStyle input[type="number"]:disabled,
form.defStyle input[type="password"]:disabled,
form.defStyle input[type="tel"]:disabled,
form.defStyle input[type="date"]:disabled,
form.defStyle input[type="email"]:disabled,
form.defStyle .input-replacer{
    border: 2px solid #f2f2f2;
    cursor: default;
}


/* --- Галочки --- */
form.defStyle input[type='checkbox'] {
    position: absolute;
    height: 0px;
    width: 0px;
    opacity: 0;
}
form.defStyle input[type='checkbox'] + label.checkbox {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #c6c6c6;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
    padding: 2px;
}
form.defStyle input[type='checkbox']:disabled + label.checkbox {
    cursor: default;
}
form.defStyle input[type='checkbox'] + label.checkbox:before {
    display: none;
    content: '';
    width: 100%;
    height: 100%;
}
form.defStyle input[type='checkbox']:focus:not([disabled]) + label.checkbox,
form.defStyle input[type='checkbox']:active:not([disabled]) + label.checkbox{
    border: 2px solid #00b259;
}
form.defStyle input[type='checkbox']:focus:checked:not([disabled]) + label.checkbox:before,
form.defStyle input[type='checkbox']:active:checked:not([disabled]) + label.checkbox:before{
    display: block;
    background-color: #00b259;
}
form.defStyle input[type='checkbox']:checked + label.checkbox:before {
    display: block;
    background-color: #c6c6c6;
}

/* --- Кнопки --- */
form.defStyle input[type='submit'] {
    background-color: #00b259;
    color: #ffffff;
    border: none;
    padding: 5px 15px;
    font-family: Calibri;
    text-align: center;
    font-size: 11pt;
    -webkit-transition: background 0.3s;
    transition: background 0.3s;
}
form.defStyle input[type='submit']:hover {
    background-color: #00cc66;
}
form.defStyle input[type="submit"]:focus{
    outline: none;
}

/* --- Ссылки --- */
form.defStyle a {
    color: #909090;
    text-decoration: underline;
}
form.defStyle a:hover {
    text-decoration: none;
}

/* --- Ошибки полей --- */
form.defStyle textarea.error,
form.defStyle select.error,
form.defStyle input.error{
    border-color: #f24949;
}
form.defStyle textarea + div.error,
form.defStyle select + div.error,
form.defStyle input + div.error {
    display: none;
    position: relative;
    border-radius: 0px 0px 1px 1px;
    margin: 0px;
    padding: 2px 4px 2px 6px;
    font-size: 10pt;
    background-color: #f24949;
    color: #ffffff;
    z-index: 4;
}

/* --- Ошибки формы --- */
form.defStyle div.form-error {
    display: none;
    background: #f24949;
    color: #ffffff;
    font-size: 10.1pt;
    text-align: center;
    padding: 3px 5px;
    margin: 0px auto;
    font-weight: normal;
}
/* --- Успешное сообщение формы --- */
form.defStyle div.form-success:empty {
    display: none;
}
form.defStyle div.form-success {
    display: block;
    background: #41d873;
    color: #ffffff;
    font-size: 10.1pt;
    text-align: center;
    padding: 3px 5px;
    margin: 0px auto;
    font-weight: normal;
}