/**
 * Locked-form layout when Divi 5 does not load the Divi 4 contact stylesheet.
 *
 * Structure only. No input background and no text colour, so a Design tab
 * colour and a section’s saved field colour are not covered by a default.
 */

.divi-protect.protect-div {
	box-sizing: border-box;
	position: relative;
}

.divi-protect.protect-div *,
.divi-protect.protect-div *::before,
.divi-protect.protect-div *::after {
	box-sizing: border-box;
}

.divi-protect.protect-div .et_pb_contact_form_label {
	margin: 0 0 0.4em;
	font-weight: 600;
	line-height: 1.4;
}

.divi-protect.protect-div .et_pb_contact_form_label:empty {
	display: none;
	margin: 0;
}

.divi-protect.protect-div .et_pb_contact {
	position: relative;
	padding-bottom: 1.6em;
}

.divi-protect.protect-div .et_pb_contact_field {
	position: relative;
	margin: 0 0 1em;
	padding: 0;
}

.divi-protect.protect-div .et_pb_contact p input {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
}

/* Weaker than the module order class, so a Design tab padding value wins. */
.protect-div p input {
	padding: 16px 44px 16px 16px;
}

.divi-protect.protect-div .field-icon.toggle-password {
	position: absolute;
	right: 12px;
	bottom: 16px;
	z-index: 2;
	cursor: pointer;
	line-height: 1;
}

.divi-protect.protect-div .et_contact_bottom_container {
	display: block;
	margin: 0;
	text-align: right;
}

.divi-protect.protect-div .et_pb_contact_right {
	display: inline-block;
	min-width: 105px;
	margin: 0;
	text-align: right;
}

.divi-protect.protect-div .et_pb_contact_submit.et_pb_button.protect-login {
	display: inline-block;
	position: relative;
	margin: 0;
	cursor: pointer;
	line-height: 1.7em;
	text-align: center;
	text-decoration: none;
	vertical-align: middle;
}

/* Weaker than the module order class, so a Design tab button padding value wins. */
.protect-div .protect-login {
	padding: 0.3em 1em;
}

.divi-protect.protect-div .error-message {
	display: none;
	position: absolute;
	left: 0;
	bottom: 0;
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
}

.divi-protect.protect-div .error-message.active {
	display: block;
}
