/**
 * Newsletter subscription form (shortcode) — matches original MailerLite embed look.
 */

.agenda-rcrb-boletin-form {
	box-sizing: border-box;
	display: block;
	margin: 0;
	width: 100%;
	font-family: var( --wp--preset--font-family--montserrat, 'Montserrat', Arial, Helvetica, sans-serif );
}

.agenda-rcrb-boletin-form.ml-form-embedContainer,
.agenda-rcrb-boletin-form.ml-form-embedContainer * {
	font-family: var( --wp--preset--font-family--montserrat, 'Montserrat', Arial, Helvetica, sans-serif ) !important;
}

.agenda-rcrb-boletin-form h4,
.agenda-rcrb-boletin-form p,
.agenda-rcrb-boletin-form span,
.agenda-rcrb-boletin-form button,
.agenda-rcrb-boletin-form label {
	text-transform: none !important;
	letter-spacing: normal !important;
}

.agenda-rcrb-boletin-form .ml-form-embedWrapper {
	background-color: #0a5f7f;
	border: 0;
	border-radius: 4px;
	box-sizing: border-box;
	display: block !important;
	margin: 0;
	padding: 0;
	position: relative;
	width: 100%;
}

.agenda-rcrb-boletin-form .ml-form-align-center {
	text-align: center;
}

.agenda-rcrb-boletin-form .ml-form-embedBody,
.agenda-rcrb-boletin-form .ml-form-successBody {
	padding: 20px;
}

.agenda-rcrb-boletin-form .ml-form-embedBody.ml-form-embedBodyHorizontal {
	padding-bottom: 20px;
}

.agenda-rcrb-boletin-form__form {
	display: block;
	margin: 0;
	width: 100%;
}

.agenda-rcrb-boletin-form .ml-form-formContent {
	display: grid;
	grid-template-columns: repeat( auto-fit, minmax( 250px, 1fr ) );
	width: 100%;
}

/* Email spans full width (3rd field row). */
.agenda-rcrb-boletin-form .ml-form-formContent > .ml-form-fieldRow:nth-child( 3 ) {
	grid-column: 1 / -1;
}

.agenda-rcrb-boletin-form .ml-form-fieldRow {
	width: 100%;
}

.agenda-rcrb-boletin-form .ml-form-fieldRow.ml-last-item {
	margin-bottom: 0;
}

.agenda-rcrb-boletin-form .ml-field-group {
	text-align: left !important;
}

.agenda-rcrb-boletin-form .ml-field-group label {
	margin-bottom: 5px;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	display: inline-block;
	line-height: 20px;
}

.agenda-rcrb-boletin-form .ml-form-fieldRow input,
.agenda-rcrb-boletin-form .ml-form-fieldRow textarea,
.agenda-rcrb-boletin-form .ml-form-fieldRow .custom-select {
	width: 100%;
	box-sizing: border-box !important;
	max-width: 100% !important;
	background-color: #c9ecff !important;
	color: #000000 !important;
	border: 0 !important;
	border-radius: 4px !important;
	font-size: 14px !important;
	line-height: 21px !important;
	margin: 0;
	padding: 10px !important;
	height: auto;
}

.agenda-rcrb-boletin-form .ml-form-fieldRow .custom-select {
	padding: 10px 28px 10px 12px !important;
	line-height: 20px !important;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%23000' d='M1.41.59 6 5.17 10.59.59 12 2l-6 6-6-6z'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 8px 10px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}

.agenda-rcrb-boletin-form .ml-form-fieldRow input::placeholder {
	color: #000000;
}

.agenda-rcrb-boletin-form__interests {
	display: grid;
	grid-template-columns: repeat( 3, minmax( 0, 1fr ) );
	width: 100%;
	margin: 1.5rem 0;
	text-align: left;
}

@media ( max-width: 540px ) {
	.agenda-rcrb-boletin-form__interests {
		grid-template-columns: repeat( 2, minmax( 0, 1fr ) );
	}
}

@media ( max-width: 360px ) {
	.agenda-rcrb-boletin-form__interests {
		grid-template-columns: 1fr;
	}
}

.agenda-rcrb-boletin-form .ml-form-interestGroupsRowCheckbox {
	margin: 0;
	width: 100%;
}

.agenda-rcrb-boletin-form .ml-form-checkboxRow label,
.agenda-rcrb-boletin-form .ml-form-interestGroupsRowCheckbox label {
	font-weight: 400;
	margin: 0;
	padding: 0 0 0 24px;
	position: relative;
	display: block;
	min-height: 24px;
}

.agenda-rcrb-boletin-form .ml-form-checkboxRow {
	margin: 0 0 20px;
	width: 100%;
}

.agenda-rcrb-boletin-form .ml-form-checkboxRow input[type='checkbox'],
.agenda-rcrb-boletin-form .ml-form-interestGroupsRowCheckbox input[type='checkbox'] {
	box-sizing: border-box;
	padding: 0;
	position: absolute;
	z-index: 1;
	opacity: 0;
	margin-top: 5px;
	margin-left: -1.5rem;
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.agenda-rcrb-boletin-form .ml-form-checkboxRow .label-description,
.agenda-rcrb-boletin-form .ml-form-interestGroupsRowCheckbox .label-description {
	color: #ffffff;
	display: block;
	font-size: 12px;
	line-height: 18px;
	text-align: left;
	margin-bottom: 0;
	position: relative;
	font-weight: 400;
}

.agenda-rcrb-boletin-form .ml-form-checkboxRow .label-description p,
.agenda-rcrb-boletin-form .ml-form-checkboxRow.ml-validate-required .label-description {
	margin: 0;
	color: #ffffff !important;
	font-size: 12px !important;
	line-height: 18px !important;
	font-weight: 400;
}

.agenda-rcrb-boletin-form .ml-form-checkboxRow .label-description::before,
.agenda-rcrb-boletin-form .ml-form-interestGroupsRowCheckbox .label-description::before {
	position: absolute;
	top: 0;
	left: -1.5rem;
	display: block;
	width: 16px;
	height: 16px;
	pointer-events: none;
	content: '';
	background-color: #ffffff !important;
	border: 1px solid #ffffff !important;
	border-radius: 2px !important;
}

.agenda-rcrb-boletin-form .ml-form-checkboxRow .label-description::after,
.agenda-rcrb-boletin-form .ml-form-interestGroupsRowCheckbox .label-description::after {
	position: absolute;
	top: 0;
	left: -1.5rem;
	display: block;
	width: 1rem;
	height: 1rem;
	content: '';
	background: no-repeat 50% / 50% 50%;
}

.agenda-rcrb-boletin-form .ml-form-checkboxRow input[type='checkbox']:checked ~ .label-description::before,
.agenda-rcrb-boletin-form .ml-form-interestGroupsRowCheckbox input[type='checkbox']:checked ~ .label-description::before {
	border-color: #000000 !important;
	background-color: #000000 !important;
}

.agenda-rcrb-boletin-form .ml-form-checkboxRow input[type='checkbox']:checked ~ .label-description::after,
.agenda-rcrb-boletin-form .ml-form-interestGroupsRowCheckbox input[type='checkbox']:checked ~ .label-description::after {
	background-image: url( "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e" );
}

.agenda-rcrb-boletin-form__actions {
	margin: 0;
	width: 100%;
	display: block;
}

.agenda-rcrb-boletin-form__submit {
	appearance: none;
	background-color: #a7a41d !important;
	border: none !important;
	border-radius: 4px !important;
	box-shadow: 0.2rem 0.2rem 0.2rem #222 !important;
	color: #ffffff !important;
	cursor: pointer;
	font-family: var( --wp--preset--font-family--roboto, 'Roboto', Arial, Helvetica, sans-serif ) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 21px !important;
	height: auto;
	padding: 10px !important;
	width: 100% !important;
	box-sizing: border-box !important;
	text-shadow: 0.05em 0.05em #222;
	font-weight: bold;
}

.agenda-rcrb-boletin-form__submit:hover {
	background-color: #8f8c19 !important;
}

.agenda-rcrb-boletin-form__interests.ml-error {
	padding: 10px;
	border: 1px solid #ff0000;
	border-radius: 4px;
}

.agenda-rcrb-boletin-form__interests.ml-error .label-description,
.agenda-rcrb-boletin-form .ml-form-checkboxRow.ml-error .label-description,
.agenda-rcrb-boletin-form .ml-form-checkboxRow.ml-error .label-description p {
	color: #ff0000 !important;
}

.agenda-rcrb-boletin-form .ml-error input,
.agenda-rcrb-boletin-form .ml-error textarea,
.agenda-rcrb-boletin-form .ml-error select {
	border-color: #ff0000 !important;
}

/* Seamless layout when the form sits inside the homepage #boletin section. */
#boletin .agenda-rcrb-boletin-form .ml-form-embedWrapper {
	background-color: transparent;
}

#boletin .agenda-rcrb-boletin-form .ml-form-embedBody {
	padding: 1rem 0 0;
}

#boletin > .wp-block-heading {
	margin-bottom: 0.5rem;
	text-align: center;
}

#boletin > p {
	margin-bottom: 1rem !important;
	text-align: center;
}
