/*
 * =========================================================
 * CUSTOM REGISTRATION FORM
 * =========================================================
 *
 * All styles are scoped to .cr-registration-wrapper
 * so they do not affect other Jupiter/WPBakery forms.
 */


/*
 * Main wrapper
 */

.cr-registration-wrapper {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
}


/*
 * Form
 */

.cr-registration-wrapper .cr-registration-form {
	width: 100%;
	margin: 0;
	padding: 0;
}


/*
 * Form rows
 */

.cr-registration-wrapper .cr-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	width: 100%;
	margin: 0 0 20px;
}


/*
 * Individual field
 */

.cr-registration-wrapper .cr-form-field {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	padding: 0;
}


/*
 * Labels
 */

.cr-registration-wrapper .cr-form-field label {
	display: block;
	margin: 0 0 7px;
	padding: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}


/*
 * Required asterisk
 */

.cr-registration-wrapper .cr-form-field label span {
	color: #d63638;
}


/*
 * Text inputs
 *
 * The !important declarations are intentionally limited
 * to this form so Jupiter cannot unexpectedly override
 * the registration form dimensions.
 */

.cr-registration-wrapper .cr-form-field input[type="text"],
.cr-registration-wrapper .cr-form-field input[type="email"] {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 10px 14px;
	box-sizing: border-box;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	background: #ffffff;
	color: #333333;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
	outline: none;
}


/*
 * Input focus
 */

.cr-registration-wrapper .cr-form-field input[type="text"]:focus,
.cr-registration-wrapper .cr-form-field input[type="email"]:focus {
	border-color: #999999;
	box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
	outline: none;
}


/*
 * Invalid input
 */

.cr-registration-wrapper .cr-form-field input[aria-invalid="true"] {
	border-color: #d63638;
}


/*
 * Submit row
 */

.cr-registration-wrapper .cr-form-row:last-child {
	margin-bottom: 0;
}


/*
 * Submit button
 *
 * Scoped specifically to this form.
 */

.cr-registration-wrapper .cr-registration-form button[type="submit"] {
	display: inline-block;
	min-height: 48px;
	margin: 0;
	padding: 10px 28px;
	border: 0;
	border-radius: 4px;
	background-color: #222222;
	color: #ffffff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	cursor: pointer;
	box-shadow: none;
	transition:
		background-color 0.2s ease,
		opacity 0.2s ease;
}


/*
 * Submit hover
 */

.cr-registration-wrapper .cr-registration-form button[type="submit"]:hover {
	background-color: #444444;
	color: #ffffff;
}


/*
 * Submit focus
 */

.cr-registration-wrapper .cr-registration-form button[type="submit"]:focus {
	outline: 2px solid rgba(0, 0, 0, 0.25);
	outline-offset: 2px;
}


/*
 * Field error
 */

.cr-registration-wrapper .cr-field-error {
	margin-top: 6px;
	color: #d63638;
	font-size: 13px;
	line-height: 1.4;
}


/*
 * Error summary
 */

.cr-registration-wrapper .cr-error-summary {
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid #f0b6b6;
	border-radius: 4px;
	background-color: #fff5f5;
	color: #a00;
	font-size: 14px;
	line-height: 1.5;
}


/*
 * Success message
 */

.cr-registration-wrapper .cr-success {
	margin: 0;
	padding: 20px 22px;
	border: 1px solid #b7dfb9;
	border-radius: 5px;
	background-color: #f0fff1;
	color: #246b2a;
	font-size: 15px;
	line-height: 1.5;
}


/*
 * Success heading
 */

.cr-registration-wrapper .cr-success strong {
	display: block;
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.4;
}


/*
 * Success text
 */

.cr-registration-wrapper .cr-success span {
	display: block;
	margin: 0;
}


/*
 * Honeypot
 *
 * Hidden from normal visitors but still available
 * to automated spam bots that fill every field.
 */

.cr-registration-wrapper .cr-honeypot {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}


/*
 * =========================================================
 * RESPONSIVE
 * =========================================================
 */


/*
 * Tablet
 */

@media (max-width: 767px) {

	.cr-registration-wrapper .cr-form-row {
		display: block;
		margin-bottom: 16px;
	}

	.cr-registration-wrapper .cr-form-field {
		width: 100%;
		margin-bottom: 16px;
	}

	.cr-registration-wrapper .cr-form-field:last-child {
		margin-bottom: 0;
	}

	.cr-registration-wrapper .cr-registration-form button[type="submit"] {
		width: 100%;
	}

}


/*
 * Small mobile
 */

@media (max-width: 480px) {

	.cr-registration-wrapper .cr-form-field input[type="text"],
	.cr-registration-wrapper .cr-form-field input[type="email"] {
		height: 46px;
		font-size: 16px;
	}

	.cr-registration-wrapper .cr-success {
		padding: 16px 18px;
	}

}