/* WordPress Plugin: Radar Event Creator */

/* Base container */
.RECEventCreator * {
	box-sizing: border-box;
}

/* Main form layout */
.RECEventCreator > form {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	width: 100%;
	padding: 10px;
	margin: 40px -10px;
}

.RECEventCreator form fieldset {
	border: none;
}

.RECEventCreator form label {
	font-size: 1rem;
	font-weight: bold;
	margin-bottom: 0.4rem;
}


/* Input containers */
.RECEventCreator_input {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 10px;
}

.RECEventCreator_errors {
	font-size: 14px;
	margin: 0;
	color: #dc3545;
}

.error-message {
	height: 1.25rem;
	margin-top: 0.25rem;
	font-size: 14px;
	color: #dc3545;
	line-height: 1.25;
	overflow: hidden;
}

/* Date inputs - special layout */
.RECEventCreator_dates {
	display: flex;
	flex-wrap: wrap;
	width: 100%;
}

.RECEventCreator_dates .RECEventCreator_input {
	width: 50%;
}

/* Form controls styling */
.RECEventCreator_input > input,
.RECEventCreator_input > select,
.RECEventCreator_input > textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-family: inherit;
	font-size: 14px;
	color: #333;
	background: white;
	outline: none;
}

.RECEventCreator_input textarea {
	resize: none;
}

/* Specific element overrides */
.RECEventCreator select {
	width: 100%;
}

.RECEventCreator_input .choices,
.RECEventCreator_input input {
	color: black;
}

.RECEventCreator_input .wp-element-button {
	color: white;
}

/* Honeypot field (hidden spam protection) */
.RECEventCreator_sweethoney {
	position: absolute;
	top: 0;
	left: 0;
	width: 0;
	height: 0;
	opacity: 0;
	z-index: -1;
}

.RECEventCreator_container {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
}

.RECEventCreator_container .left {}
.RECEventCreator_container .right {
	flex-grow: 1;
}

/*
This is a hack to prevent choices.js from breaking the validation of the location select element.
It prevents choices.js from setting the 'hidden' attribute on the select element.
See https://github.com/Choices-js/Choices/issues/449
*/
.choices[data-type*="select-one"] select.choices__input {
	display: block !important;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	left: 0;
	bottom: 0;
}
