@import url("https://ofirme.sk/scripts/template2/css/icheck-material.min.css");

/* MODERN FORM */
.modern-form [type='submit'] {
    width: 150px;
    padding: 10px 0px;
    border: 0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
}
.modern-form.on-white [type='submit'] {
    background: #669dbf;
    color: white;
}
.modern-form.on-white [type='submit']:hover {
    background: black;
}
.modern-form .input-group,
.modern-form .textarea-group {
    position:relative;
    margin-bottom:25px;
}
.modern-form input[type='text'],
.modern-form textarea {
    font-size:18px;
    padding:10px 10px 10px 5px;
    display:block;
    width: 100%;
    box-sizing: border-box;
    border:none;
    border-bottom:1px solid #fff;
    background: transparent;
}
.modern-form input[type='text'],
.modern-form.on-white textarea {
    border-bottom:1px solid #000;
}
.modern-form input:focus,
.modern-form textarea:focus {
    outline:none;
}

/* LABEL ======================================= */
.modern-form .input-label,
.modern-form .textarea-label {
    font-size:18px;
    font-weight:normal;
    position:absolute;
    pointer-events:none;
    left:5px;
    top:10px;
    transition:0.2s ease all;
    -moz-transition:0.2s ease all;
    -webkit-transition:0.2s ease all;
    color: white;
}
.modern-form.on-white .input-label,
.modern-form.on-white .textarea-label {
    color: #000;
}

.modern-form.on-white .input-label.required:after,
.modern-form.on-white .textarea-label.required:after {
    content: "*";
    font-weight: bold;
    color: red;
}

/* active state */
.modern-form input:focus ~ label,
.modern-form input:valid ~ label,
.modern-form textarea:focus ~ label,
.modern-form textarea:valid ~ label,
.modern-form .label-up label {
    top:-20px;
    font-size:14px;
    color:#fff;
}
.modern-form.on-white input:focus ~ label,
.modern-form.on-white input:valid ~ label,
.modern-form.on-white textarea:focus ~ label,
.modern-form.on-white textarea:valid ~ label {
    color:#000;
}

/* BOTTOM BARS ================================= */
.modern-form .bar {
    position:relative; display:block; width:100%;
}
.modern-form .bar:before,
.modern-form .bar:after 	{
    content:'';
    height:2px;
    width:0;
    bottom:1px;
    position:absolute;
    background:#5264AE;
    transition:0.2s ease all;
    -moz-transition:0.2s ease all;
    -webkit-transition:0.2s ease all;
}
.modern-form .bar:before {
    left:50%;
}
.modern-form .bar:after {
    right:50%;
}

/* active state */
.modern-form input:focus ~ .bar:before,
.modern-form input:focus ~ .bar:after,
.modern-form textarea:focus ~ .bar:before,
.modern-form textarea:focus ~ .bar:after {
    width:50%;
}

/* HIGHLIGHTER ================================== */
.modern-form .highlight {
    position:absolute;
    height:60%;
    width:100px;
    top:25%;
    left:0;
    pointer-events:none;
    opacity:0.5;
}

/* active state */
.modern-form input:focus ~ .highlight,
.modern-form textarea:focus ~ .highlight {
    -webkit-animation:inputHighlighter 0.3s ease;
    -moz-animation:inputHighlighter 0.3s ease;
    animation:inputHighlighter 0.3s ease;
}

/* ANIMATIONS ================ */
@-webkit-keyframes inputHighlighter {
    from { background:#5264AE; }
    to 	{ width:0; background:transparent; }
}
@-moz-keyframes inputHighlighter {
    from { background:#5264AE; }
    to 	{ width:0; background:transparent; }
}
@keyframes inputHighlighter {
    from { background:#5264AE; }
    to 	{ width:0; background:transparent; }
}


/* select starting stylings ------------------------------*/
.modern-form .select-group {
    font-family: 'Roboto','Helvetica','Arial',sans-serif;
    position: relative;
    width: 350px;
    /*border:1px solid black;*/
    border-radius: 5px;
    margin-bottom: 20px;
}

.modern-form .select-text {
    position: relative;
    font-family: inherit;
    background-color: transparent;
    width: 350px;
    padding: 10px 10px 10px 10px;
    font-size: 18px;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid rgba(0,0,0, 0.12);
}

/* Remove focus */
.modern-form .select-text:focus {
    outline: none;
    border-bottom: 1px solid rgba(0,0,0, 0);
}

/* Use custom arrow */
.modern-form .select-group .select-text {
    appearance: none;
    -webkit-appearance:none
}

.modern-form .select-group:after {
    position: absolute;
    top: 18px;
    right: 10px;
    /* Styling the down arrow */
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

/* LABEL ======================================= */
.modern-form .select-label {
    color: rgba(0,0,0, 0.26);
    font-size: 18px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 10px;
    top: 10px;
    transition: 0.2s ease all;
}

/* active state */
.modern-form .select-text:focus ~ .select-label,
.modern-form .select-text:valid ~ .select-label {
    color: #2F80ED;
    background-color: white;
    padding-left: 10px;
    padding-right: 10px;
    top: -14px;
    transition: 0.2s ease all;
    font-size: 14px;
}

/* BOTTOM BARS ================================= */
.modern-form .select-bar {
    position: relative;
    display: block;
    width: 350px;
}

.modern-form .select-bar:before,
.modern-form .select-bar:after {
    content: '';
    height: 2px;
    width: 0;
    bottom: 1px;
    position: absolute;
    background: #2F80ED;
    transition: 0.2s ease all;

}

.modern-form .select-bar:before {
    left: 50%;
}

.modern-form .select-bar:after {
    right: 50%;
}

/* active state */
.modern-form .select-text:focus ~ .select-bar:before,
.modern-form .select-text:focus ~ .select-bar:after {
    width: 50%;
}

/* HIGHLIGHTER ================================== */
.modern-form .select-highlight {
    position: absolute;
    height: 60%;
    width: 100px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}

/* LABEL ================================== */
.modern-form .select-label {
    top: -20px;
    font-size: 14px;
    position: absolute;
    pointer-events: none;
    left: 5px;
    color: #000;
}
