.active_field { border: 2px solid #8cb65f; border-radius: 5px; display: block; opacity: 0; pointer-events: none; position: absolute; top: -1px; left: -1px; width: calc(100% + 2px); height: calc(100% + 2px); visibility: hidden; } .div_userdata { background-color: #fff; border: 2px solid #cccccc; border-radius: 5px; position: relative; margin-bottom: 20px; width: 100%; } .div_userdata.top { display: inline-block; width: 100% } .form_body { box-sizing: border-box; padding: 20px; padding-top: 0px; font-size: 0; letter-spacing: 0; overflow: hidden; width: 100%; } .form_body * { box-sizing: border-box; font-family: Verdana, sans-serif; } .form_body input[type=checkbox] { display: none; } .form_body input[type=checkbox] + label { color: #333333; display: block; line-height: 24px; margin: 0 0 20px 34px; position: relative; font-size: 13px; } .form_body input[type=checkbox] + label:before { border: 2px solid #cccccc; border-radius: 5px; box-sizing: border-box; cursor: pointer; content: ''; left: -34px; line-height: 22px; position: absolute; width: 25px; height: 25px; } .form_body input[type=checkbox]:checked + label:before{ border: 2px solid #8cb65f; color:#006600; content: '\2714'; font-size: 14px; font-weight: bold; text-align: center; } .form_button { background-color: #8cb65f; border: none; border-radius: 2px; -webkit-box-shadow: -5px -5px 7px -5px rgba(34, 60, 80, 0.6) inset; -moz-box-shadow: -5px -5px 7px -5px rgba(34, 60, 80, 0.6) inset; box-shadow: -5px -5px 7px -5px rgba(34, 60, 80, 0.6) inset; color: #fff; cursor: pointer; display: block; font-size: 16px; font-weight: bold; height: 30px; margin: 0 auto; padding: 0 20px; position: relative; transition: all 0.4s; } .form_button:hover { background-color: #8cb65f; } .form_button[disabled] { background-color: #777777; cursor: not-allowed; opacity: 0.5; } .form_err { color: #cc0000; padding: 10px 0; } .form_title { font-weight: bold; text-align: center; } .form_ok { color: #006600; font-size: 22px; padding: 20px 0; text-align: center; } .form_wrap { background: #f8f8ff; border: 2px solid #8cb65f; margin-top: 1em; padding-top: 10px; } .inp_userdata { background: transparent; display: block; width: 100%; } .inp_userdata:focus + .active_field { opacity: 1; visibility: visible; } input.inp_userdata { border: none; font-size: 14px; line-height: 2em; padding: 0 10px; } .form_flag { text-align: left; } label.form_flag a { color: #006600; } label.form_flag a:hover { cursor: pointer; } textarea.inp_userdata { border: none; font-size: 14px; line-height: 1.5em; min-height: 10em; padding: 5px 10px; resize: none; } textarea.inp_userdata:focus, input.inp_userdata:focus { border-color: transparent; } .val_message::before { background-color: #fff; color: #cc0000; content: attr(data-validate); font-size: 12px; font-weight: bold; line-height: 1.4; max-width: 70%; padding: 4px 25px 4px 10px; pointer-events: none; position: absolute; right: 12px; text-align: left; top: 50%; transform: translateY(-50%); transition: opacity 0.4s; } .val_message::after { color: #cc0000; display: block; font-size: 14px; font-weight: bold; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); }