body {
    -webkit-font-smoothing: antialiased;
}

#mail_registration .sub_header{
    margin: 0 auto;
    width: 380px;
}

#mail_registration h3 {
    color: #58b530;
}

#mail_registration .mail_regist_parts{
    width: 380px;
    margin: 0em auto 1em auto;
    background: #fafafa;
    border: 1px solid #ebebeb;
    box-shadow: rgba(0,0,0,0.14902) 0px 1px 1px 0px,rgba(0,0,0,0.09804) 0px 1px 2px 0px;
}
#mail_registration .mail_regist_form{
    padding: 1.5em 1em 1em 1em;
}

#mail_registration .p-search-terms{
    height:50px;
    padding:0px;
}

#mail_registration .p-search-terms__check{
    height:100%;
}

.mail_regist_form_group {
    position: relative;
    margin-bottom: 25px;
}

#mail_registration input {
    font-size: 18px;
    padding: 10px 10px 10px 5px;
    -webkit-appearance: none;
    display: block;
    background: #fafafa;
    color: #636363;
    width: 100%;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #757575;
}

#mail_registration input:focus { outline: none; }


/* Label */

#mail_registration label {
    color: #999;
    font-size: 18px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    transition: all 0.2s ease;
}

#mail_registration .req{
    color: #ff7113;
    font-weight: bold;
}

/* active */

#mail_registration input:focus ~ label,#mail_registration input.used ~ label {
    top: -20px;
    transform: scale(.75); left: -2px;
    /* font-size: 14px; */
    color: #58b530;
}


/* Underline */

#mail_registration .bar {
    position: relative;
    display: block;
    width: 100%;
}

#mail_registration .bar:before, #mail_registration .bar:after {
    content: '';
    height: 2px;
    width: 0;
    bottom: 1px;
    position: absolute;
    background: #58b530;
    transition: all 0.2s ease;
}

#mail_registration .bar:before { left: 50%; }

#mail_registration .bar:after { right: 50%; }


/* active */

#mail_registration input:focus ~ .bar:before, #mail_registration input:focus ~ .bar:after { width: 50%; }


/* Highlight */

#mail_registration .highlight {
    position: absolute;
    height: 60%;
    width: 100px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}


/* active */

#mail_registration input:focus ~ .highlight {
    animation: inputHighlighter 0.3s ease;
}


/* Animations */

@keyframes inputHighlighter {
    from { background: #58b530; }
    to  { width: 0; background: transparent; }
}


/* Button */

#mail_registration .button {
    position: relative;
    display: inline-block;
    padding: 12px 24px;
    margin: .3em 0 1em 0;
    width: 100%;
    vertical-align: middle;
    color: #fff;
    font-size: 16px;
    line-height: 20px;
    -webkit-font-smoothing: antialiased;
    text-align: center;
    letter-spacing: 1px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid #2e6720;
    cursor: pointer;
    transition: all 0.15s ease;
}
#mail_registration .button:focus { outline: 0; }


/* Button modifiers */

#mail_registration .buttonGreen {
    background: #58b530;
    text-shadow: 1px 1px 0 rgb(73, 148, 40);
}

#mail_registration .buttonGreen:hover { background: #42a72c; }


/* Ripples container */

#mail_registration .ripples {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: transparent;
}


/* Ripples circle */

#mail_registration .ripplesCircle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
}

#mail_registration .ripples.is-active .ripplesCircle {
    animation: ripples .4s ease-in;
}


/* Ripples animation */
@keyframes ripples {
    0% { opacity: 0; }

    25% { opacity: 1; }

    100% {
        width: 200%;
        padding-bottom: 200%;
        opacity: 0;
    }
}
