/**
 * potato.
 *
 * Сайт : Формы.
 *
 *
 *
 *
 */



/**
 * Плейсхолдеры : Стилизация.
 * -----------------------------------------------------------------------------
 */

input::-webkit-input-placeholder    { text-align: center; font-size: 14px; color: #777; font-weight: 400; }
input::-moz-placeholder             { text-align: center; font-size: 14px; color: #777; font-weight: 400; opacity: 1; } 
input:-moz-placeholder              { text-align: center; font-size: 14px; color: #777; font-weight: 400; } 
input:-ms-input-placeholder         { text-align: center; font-size: 14px; color: #777; font-weight: 400; }
textarea::-webkit-input-placeholder { text-align: center; font-size: 14px; color: #777; font-weight: 400; }
textarea::-moz-placeholder          { text-align: center; font-size: 14px; color: #777; font-weight: 400; opacity: 1; } 
textarea:-moz-placeholder           { text-align: center; font-size: 14px; color: #777; font-weight: 400; } 
textarea:-ms-input-placeholder      { text-align: center; font-size: 14px; color: #777; font-weight: 400; }


/**
 * Плейсхолдеры : Переполнение (...).
 * -----------------------------------------------------------------------------
 */

input[placeholder]             { text-overflow: ellipsis; }
input::-moz-placeholder        { text-overflow: ellipsis; } /* Firefox 19+ */
input:-moz-placeholder         { text-overflow: ellipsis; } /* Firefox 18- */
input:-ms-input-placeholder    { text-overflow: ellipsis; }   
textarea[placeholder]          { text-overflow: ellipsis; }
textarea::-moz-placeholder     { text-overflow: ellipsis; } /* Firefox 19+ */
textarea:-moz-placeholder      { text-overflow: ellipsis; } /* Firefox 18- */
textarea:-ms-input-placeholder { text-overflow: ellipsis; } 

/**
 * Плейсхолдеры : Скрытие при фокусе.
 * -----------------------------------------------------------------------------
 */

input:focus::-webkit-input-placeholder    { color: transparent; }
input:focus::-moz-placeholder             { color: transparent; }
input:focus:-moz-placeholder              { color: transparent; }
input:focus:-ms-input-placeholder         { color: transparent; }
textarea:focus::-webkit-input-placeholder { color: transparent; }
textarea:focus::-moz-placeholder          { color: transparent; }
textarea:focus:-moz-placeholder           { color: transparent; }
textarea:focus:-ms-input-placeholder      { color: transparent; }

/**
 * Элементы форм : Общая стилизация.
 * -----------------------------------------------------------------------------
 */

button,
input,

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

textarea {
    resize: vertical;
}


button,
button:hover,
button:focus,
button:active {
    outline: none;
}



/**
 * -----------------------------------------------------------------------------
 *
 * Формы.
 *
 * -----------------------------------------------------------------------------
 */


.form-group {
    position: relative;
    
    margin: 0 0 1rem;
    padding: 0;
}


.form-control {
    position: relative; z-index: 20;
    
    width: 100%;
    height: 46px;
    
    padding: 0 15px;
    
    font-size: 16px;
    font-weight: 400;
    
    line-height: 42px;

    text-transform: none;
    text-align: left;
    
    background: #fff;
    
    border-width: 1px;
    border-style: solid;
    border-color: #b0b0b0;
    border-radius: 0;
    
    outline: none;
    
    color: #000;
}
.form-control:active {
    box-shadow: none;
}

.form-control:focus {
    border-color: rgba(0, 0, 0, 1);
    /*
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .15);
    */
}

/*
.form-group label {
    font-size: 14px;
    color: #5349c3;
}
*/


.form-control + label {
    position: absolute; 
    z-index: 10;

    top: 15px; left: 15px;
    
    height: 11px;
    padding: 0 5px;
    
    font-size: 11px;
    font-weight: 400;
    
    line-height: 1;
    
    background-color: #fff;
    color: #141414;
    
    opacity: 0;
    
    transition: top .15s ease, 
                left .15s ease, 
                background .15s ease,
                opacity .15s ease;
    
    user-select: none;
}

.form-control:focus + label {
    z-index: 30;
    top: -6px; left: 10px;
    
    background-color: #fff;
    opacity: 1;
}



/* --- Филды : Стандарт --- */


input.form-control {

    
}


textarea.form-control {
    min-height: 110px;
    padding: 13px 15px;
    line-height: 1.25;
    
    resize: vertical;
}



select.form-control:not([multiple]) {
    /*
    height: 40px;
    line-height: 36px;
    */
    
    padding-right: 30px;
    
    -webkit-appearance: none;
    background: #fff url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23555%22%2F%3E%3C%2Fsvg%3E') no-repeat right 5px top 55%;
    background-size: auto;
    background-size: 16px 16px;
    
    text-overflow: ellipsis;
    
    cursor: pointer;
}



/* --- Филды : Кастом --- */

.form-group-radio {
    margin-top: -2px;
}

.form-group-radio .radio-item {
    position: relative;
    
    padding-left: 25px;
    
    height: 30px;
    line-height: 30px;
    
    font-size: 14px;
    
    user-select: none;
    cursor: pointer;
}

.form-group-radio .radio-item::before,
.form-group-radio .radio-item::after {
    content: "";
    
    position: absolute;
    top: 50%;
}

.form-group-radio .radio-item::before {
    left: 0;
    width: 18px; height: 18px;
    
    margin-top: -9px;
    
    border: 1px solid #fff;
    border-radius: 50%;
}
.form-group-radio .radio-item::after {
    display: none;
    
    left: 4px;
    width: 10px; height: 10px;
    
    margin-top: -5px;
    
    background-color: #f19813;
    border-radius: 50%;
}
.form-group-radio .radio-item.selected::after {
    display: block;
}

/* --- Ошибки --- */


.form-control.error {
    border-color: #f00;
}

.form-control.error:focus {
    /* 
    background-color: #fff; 
    */
    border-color: #f00;
    /*
    box-shadow: 0 0 0 3px rgba(255,0,0,.25);
    */
}

/* --- Ошибки : Алерты --- */


.form-alert {
    display: none;
    
    position: absolute; z-index: 20;
    bottom: -5px; right: 10px;
    
    padding: 0 5px;
    
    font-size: 11px;
    font-weight: 400;
    
    background-color: #fff;
    color: #f00;
    
    user-select: none;
}

.form-control.error ~ .form-alert {
    display: block;
}