/**
 * Front-end styles for the [cpm_signup_form] sign-up form.
 *
 * Scoped under .cpm-signup-form so they only affect the form and won't leak
 * into the surrounding theme. Loaded wherever the shortcode is used.
 */

.cpm-signup-form {
	width: 100%;
}

.cpm-signup-field {
	margin: 0 0 18px;
}

/* Label on its own line, input on the line underneath. */
.cpm-signup-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	line-height: 1.4;
}

/* Descriptive help text between the label and its input. 70% of the question size. */
.cpm-signup-field .cpm-signup-help {
	display: block;
	margin: -2px 0 8px;
	font-size: 0.7em;
	line-height: 1.45;
	color: #50575e;
}

.cpm-signup-field input,
.cpm-signup-field select,
.cpm-signup-field textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	font-size: 1rem;
	line-height: 1.4;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
}

.cpm-signup-field textarea {
	min-height: 120px;
	resize: vertical;
}

.cpm-signup-field input:focus,
.cpm-signup-field select:focus,
.cpm-signup-field textarea:focus {
	border-color: #2271b1;
	outline: 2px solid transparent;
	box-shadow: 0 0 0 1px #2271b1;
}

.cpm-required {
	color: #b32d2e;
}

.cpm-signup-submit {
	margin: 24px 0 0;
}

.cpm-signup-submit button {
	display: inline-block;
	padding: 10px 20px;
	font-size: 1rem;
	font-weight: 600;
	color: #fff;
	background: #2271b1;
	border: 1px solid #2271b1;
	border-radius: 4px;
	cursor: pointer;
}

.cpm-signup-submit button:hover,
.cpm-signup-submit button:focus {
	background: #135e96;
	border-color: #135e96;
}
