
.client-form {
    position: relative;
    border: 1px solid #dadbdf;
    border-radius: 3px;
    padding: 24px;
}
.client-form.noborder {
    border: none;
    padding: 0;
}

.client-form *,
.client-form *:before, 
.client-form *:after { box-sizing: border-box; }

.client-form .success-alert { background-color: #f8fff6; border: 1px dotted #3dce5c; padding: 12px; }
.client-form .error-alert { background-color: #fff1f1; border: 1px dotted #CC0000; padding: 12px; }
.client-form .info-alert { background-color: #fff7dd; border: 1px dotted #eeca4d; padding: 12px; }
.client-form .success-alert.mb,
.client-form .error-alert.mb,
.client-form .info-alert.mb { margin-bottom: 16px; }


.client-form .form-button {
	position: relative;
	display: flex;
    justify-content: center;
    align-items: center;
	background-color: #9d9d9d;
	color: #fff;
    height: 40px;
	padding: 0 16px;
	text-decoration: none !important;
	text-align: center;
	cursor: pointer;
	margin-bottom: 8px;
	vertical-align: middle;
}
.client-form .form-button.inactive {
    cursor: default;
    opacity: .8;
}
.client-form .form-button.w240 { width: 240px; }
.client-form .form-button.active { background-color: #8d8d8d; }
.client-form .form-button:not(.inactive):not(.shipped):hover { box-shadow: inset 0 0 0 100px RGBa(255,255,255,0.1); }

.client-form .button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*margin-bottom: 12px;*/
}
.client-form .button-group.left { justify-content: flex-start; }
.client-form .button-group.right { justify-content: flex-end; }
.client-form .button-group.center { justify-content: center; }
.client-form .button-group .form-button { margin-right: 1px; }
@media (max-width: 767px) {
	.client-form .button-group { flex-direction: column; }
	.client-form .button-group .form-button { width: 100%; margin-right: 0; margin-bottom: 4px; }
}


.client-form form {
    position: relative;
    width: 100%;
}

.client-form form .subtitle { font-size: 106%; font-weight: 400; padding-top: 12px; padding-bottom: 8px; }

.client-form form label { display: block; font-size: 100%; font-weight: inherit; color: #606778; margin-bottom: 4px; }
.client-form form label.error,
.client-form form label.error-label { font-size: 88%; color: #CC0000; margin-top: 4px; }
.client-form form label > span { color: #CC0000; }

.client-form form .field { margin-bottom: 12px; }
.client-form form .field.border-bottom { border-bottom: 1px solid #dadbdf; padding-bottom: 12px; }
.client-form form .field input[type="radio"],
.client-form form .field input[type="checkbox"] { display: none; }
.client-form form .field input[type="radio"] + label,
.client-form form .field input[type="checkbox"] + label { display: inline-block; cursor: pointer; line-height: 20px; vertical-align: top; margin: 0 16px 4px 0; font-weight: 300; }
.client-form form .field input[type="radio"] + label:before,
.client-form form .field input[type="checkbox"] + label:before { display: inline-block; content: ""; border: 3px solid #fff; box-shadow: 0 0 0 2px #9d9d9d; border-radius: 50%; cursor: pointer; width: 14px; height: 14px; margin: 0 8px -1px 2px; }
.client-form form .field input[type="checkbox"] + label:before { border-radius: 2px; }
.client-form form .field input[type="radio"] + label:hover:before,
.client-form form .field input[type="checkbox"] + label:hover:before { background: #9d9d9d; }
.client-form form .field input[type="radio"]:checked + label:before,
.client-form form .field input[type="checkbox"]:checked + label:before { background: #656565; box-shadow: 0 0 0 2px #656565; }

.client-form form .field input[type="text"],
.client-form form .field input[type="email"],
.client-form form .field input[type="password"],
.client-form form .field textarea,
.client-form form .field select {
    width: 100%;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 8px 12px;
    font-weight: 300;
    outline: none !important;
    line-height: 1;
    max-width: 800px; 
    transition:
        border-color 0.15s ease-in-out, 
        box-shadow 0.15s ease-in-out;
}
.client-form form .field textarea { height: 160px; min-height: 160px; max-height: 600px; resize: vertical; }
.client-form form .field textarea.h80 { height: 80px; min-height: 80px; }

.client-form form .field.w240 input[type="text"],
.client-form form .field.w240 input[type="email"],
.client-form form .field.w240 input[type="password"],
.client-form form .field.w240 textarea,
.client-form form .field.w240 select { width: 240px; }

.client-form form .field .datepicker {
    position: relative;
}
.client-form form .field .datepicker::before {
    position: absolute;
    /*top: calc(calc(calc(1em + 20px) / 2) - .5em );*/
    top: calc(100% / 2 - .5em);
    left: 8px;
    font-family: 'Font Awesome 5 Free';
    content: "\f073";
    font-size: 1em;
    font-weight: 400px;
    line-height: 1;
    color: #9e9e9e;
    z-index: 2;
}
.client-form form .field .datepicker input[type="text"] {
    z-index: 1;
    padding-left: 30px;
}

.client-form form .field textarea:disabled,
.client-form form .field select:disabled,
.client-form form .field input[type="email"]:disabled,
.client-form form .field input[type="password"]:disabled,
.client-form form .field input[type="text"]:disabled {
    background-color: #eff3f7;
}

.client-form form .field select > option { font-weight: inherit; }
.client-form form .field textarea:not(:disabled):hover,
.client-form form .field textarea:not(:disabled):focus,
.client-form form .field select:not(:disabled):hover,
.client-form form .field select:not(:disabled):focus,
.client-form form .field input[type="email"]:not(:disabled):hover,
.client-form form .field input[type="email"]:not(:disabled):focus,
.client-form form .field input[type="password"]:not(:disabled):hover,
.client-form form .field input[type="password"]:not(:disabled):focus,
.client-form form .field input[type="text"]:not(:disabled):hover,
.client-form form .field input[type="text"]:not(:disabled):focus { 
    color: #495057;
    background-color: #fff;
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
}
}
.client-form form .field input.error,
.client-form form .field textarea.error,
.client-form form .field select.error { border-color: #CC0000 !important; }
.client-form form .field input.small { max-width: 300px; font-size: 100%; }

/* Files */
.client-form form .field.files { margin-bottom: 22px; }
.client-form form .file-upload {
	position: relative;
	overflow: hidden;
	width: 240px;
	max-width: 100%;
	height: 40px;
	background-color: #9d9d9d;
    padding: 0;
	text-align: center;
}
.client-form form .file-upload:hover { box-shadow: inset 0 0 0 100px RGBa(255,255,255,0.1); }
.client-form form .file-upload input[type="file"] { display: none; }
.client-form form .file-upload label {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
}
.client-form form .file-upload label > .title { display: flex; height: 40px; color: #fff; align-items: center; justify-content: center; }
.client-form form .file-upload label > .title .icon { margin-right: 12px; }
.client-form form .file-name { display: none; }
.client-form form .file-name .file-name-block { display: flex; align-items: center; height: 40px; }
.client-form form .file-name .name { font-style: italic; }
.client-form form .file-name .delete { cursor: pointer; margin-left: 12px; }
.client-form form .file-name .delete svg { height: 20px; width: 20px; }
.client-form form .file-name .delete:hover path { fill: #CC0000; }

/* Password */
.client-form form .field.password input[type="password"] { width: 240px; }
.client-form form .field.password [name="password"] { margin-bottom: 8px; }

/* Recaptcha */
.client-form form .field.recaptcha { margin: 16px 0; }
.client-form form label#recaptcha-error { display: none; }

/* kCaptcha */
.client-form form .field.kcaptcha { margin: 16px 0; }
.client-form form .kcaptcha-wrapper {
	display: flex;
	align-items: center;
	justify-content: flex-start;
}
.client-form form .kcaptcha-wrapper #kcaptcha {
	margin-right: 8px;
}

.client-form form label#accept-error { display: none; }
