/* Event Booking Form - transparent, border-only styling.
   Colors below are defaults; the plugin overrides these CSS variables
   inline based on the color settings saved on the Settings page, so
   editing this file is optional. */
.eb-form-wrapper {
	--eb-border-color: #ffffff;
	--eb-text-color: #ffffff;
	--eb-label-color: #ffffff;
	--eb-placeholder-color: #c9c9c9;
	--eb-accent-color: #cf9f45;
	--eb-accent-text: #1a1a1a;
	--eb-success-color: #4caf50;
	--eb-error-color: #e05252;
	max-width: 1200px;
	width: 100%;
	margin: 0 auto;
}

.eb-form-wrapper * {
	box-sizing: border-box;
}

.eb-form-message {
	padding: 14px 18px;
	margin-bottom: 20px;
	border: 1px solid var(--eb-border-color);
	background: transparent;
	color: var(--eb-text-color) !important;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.eb-form-message.eb-visible {
	opacity: 1;
}

.eb-form-message.eb-success {
	border-color: var(--eb-success-color);
	color: var(--eb-success-color) !important;
}

.eb-form-message.eb-error {
	border-color: var(--eb-error-color);
	color: var(--eb-error-color) !important;
}

.eb-booking-form {
	background: transparent;
}

.eb-form-row {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	margin-bottom: 24px;
}

.eb-form-row .eb-field {
	flex: 1 1 0;
	min-width: 220px;
}

.eb-form-row-full .eb-field {
	flex: 1 1 100%;
}

.eb-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--eb-label-color) !important;
}

.eb-required {
	color: var(--eb-accent-color) !important;
}

.eb-field input[type="text"],
.eb-field input[type="email"],
.eb-field input[type="number"],
.eb-field input[type="date"],
.eb-field input[type="datetime-local"],
.eb-field select,
.eb-field textarea {
	width: 100%;
	background: transparent !important;
	background-color: transparent !important;
	border: 1px solid var(--eb-border-color);
	color: var(--eb-text-color) !important;
	caret-color: var(--eb-text-color);
	padding: 12px 14px;
	font-size: 15px;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

/* Forces typed text to stay the theme color even while focused/active —
   many themes ship a global `input { color: ... }` rule with higher
   specificity that otherwise silently overrides this once the field has
   a value, which is why typed text could look black. */
.eb-field input:focus,
.eb-field input:active,
.eb-field input:not(:placeholder-shown),
.eb-field textarea:focus,
.eb-field textarea:active,
.eb-field textarea:not(:placeholder-shown),
.eb-field select:focus {
	color: var(--eb-text-color) !important;
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
}

/* Chrome/Safari autofill (saved phone/email suggestions) forces black text
   and a white background by default — override both. */
.eb-field input:-webkit-autofill,
.eb-field input:-webkit-autofill:hover,
.eb-field input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--eb-text-color);
	-webkit-box-shadow: 0 0 0 1000px transparent inset;
	transition: background-color 9999s ease-in-out 0s;
}

.eb-field select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%23999' stroke-width='2' fill='none' fill-rule='evenodd'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.eb-field select option {
	color: #1a1a1a;
}

.eb-field textarea {
	resize: vertical;
	min-height: 150px;
}

.eb-field input:focus,
.eb-field select:focus,
.eb-field textarea:focus {
	border-color: var(--eb-accent-color);
}

.eb-field input::placeholder,
.eb-field textarea::placeholder {
	color: var(--eb-placeholder-color) !important;
	opacity: 1;
}

/* Date/time picker: the little calendar/clock icon Chrome draws is dark by
   default and invisible on a dark form — invert it to match the light
   border/text colors used here. */
.eb-field input[type="datetime-local"]::-webkit-calendar-picker-indicator {
	filter: invert(1);
	cursor: pointer;
	opacity: 0.85;
}

.eb-form-submit {
	text-align: center;
}

.eb-submit-btn {
	background: var(--eb-accent-color);
	color: var(--eb-accent-text);
	border: none;
	padding: 14px 48px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.eb-submit-btn:hover {
	opacity: 0.9;
}

.eb-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.eb-submit-btn.eb-loading {
	position: relative;
	color: transparent;
}

.eb-submit-btn.eb-loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 16px;
	height: 16px;
	margin: -8px 0 0 -8px;
	border: 2px solid var(--eb-accent-text);
	border-top-color: transparent;
	border-radius: 50%;
	animation: eb-spin 0.6s linear infinite;
}

@keyframes eb-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (max-width: 782px) {
	.eb-form-row {
		flex-direction: column;
		gap: 16px;
	}
}

/* Admin */
.eb-admin-wrap .eb-filter-form {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 16px 0;
}

.eb-admin-wrap .eb-filter-form .button.is-active {
	background: #2271b1;
	border-color: #2271b1;
	color: #ffffff;
}

.eb-admin-wrap .eb-color-field-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px 32px;
	margin: 10px 0 4px;
}

.eb-admin-wrap .eb-color-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.eb-admin-wrap .eb-color-field label {
	font-weight: 600;
}
