/* Event Management — admin dashboard styles */

.rnt-evt-notice {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 16px;
	font-size: 14px;
}

.rnt-evt-notice.is-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.rnt-evt-notice.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* ── Add / edit form ─────────────────────────────────────────── */

.rnt-evt-form {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

body.rd-dashboard-body .rd-content > #rnt-evt-form,
body.rd-dashboard-body .rd-content > form.rnt-evt-form {
	width: 100% !important;
	max-width: none !important;
	float: none !important;
	clear: both !important;
}

/* Fields — beat theme / browser defaults on isolated dashboard pages */
.rnt-evt-form .rd-form-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-bottom: 20px;
}

.rnt-evt-form .rd-form-label {
	font-size: 13.5px;
	font-weight: 500;
	color: #374151;
}

.rnt-evt-form .rd-form-required {
	color: #ef4444;
	margin-left: 2px;
}

.rnt-evt-form .rd-form-input,
.rnt-evt-form input.rd-form-input,
.rnt-evt-form textarea.rd-form-input,
.rnt-evt-form select.rd-select,
.rnt-evt-form .rnt-evt-form-select {
	display: block;
	width: 100%;
	box-sizing: border-box;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: #111827;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	-webkit-appearance: none;
	appearance: none;
}

.rnt-evt-form input.rd-form-input:not([type="checkbox"]):not([type="radio"]),
.rnt-evt-form select.rd-select,
.rnt-evt-form .rnt-evt-form-select {
	height: 40px;
	min-height: 40px;
	padding: 0 12px;
}

.rnt-evt-form textarea.rd-form-input,
.rnt-evt-form .rnt-evt-textarea {
	min-height: 88px;
	height: auto;
	padding: 10px 12px;
	resize: vertical;
}

.rnt-evt-form .rd-form-input:focus,
.rnt-evt-form select.rd-select:focus,
.rnt-evt-form .rnt-evt-form-select:focus {
	border-color: #2563eb;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.rnt-evt-form select.rd-select,
.rnt-evt-form .rnt-evt-form-select {
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 10px 6px;
	padding-right: 30px;
}

.rnt-evt-form input[type="date"].rd-form-input,
.rnt-evt-form input[type="time"].rd-form-input,
.rnt-evt-form input[type="number"].rd-form-input {
	padding-right: 12px;
}

.rnt-evt-form input[type="date"].rd-form-input::-webkit-calendar-picker-indicator,
.rnt-evt-form input[type="time"].rd-form-input::-webkit-calendar-picker-indicator {
	cursor: pointer;
	opacity: 0.65;
}

.rnt-evt-form .rd-form-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	padding: 32px;
}

.rnt-evt-form-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
	gap: 24px;
	align-items: start;
}

.rnt-evt-form .rd-form-card {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
	min-width: 0;
}

.rnt-evt-form-card--content .rnt-evt-textarea--tall {
	min-height: 280px;
}

.rnt-evt-form-actions {
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e5e7eb;
}

.rnt-evt-form__inner {
	padding: 28px 32px 32px;
}

.rnt-evt-form-grid {
	display: grid;
	gap: 0 16px;
	margin-bottom: 4px;
}

.rnt-evt-form-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rnt-evt-form-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rnt-evt-form-field {
	margin-bottom: 20px;
}

.rnt-evt-form-card--details .rd-form-row {
	margin-bottom: 20px;
}

.rnt-evt-form-card--details .rnt-evt-earlybird-section {
	margin-bottom: 20px;
}

.rnt-evt-form-hint {
	margin: 4px 0 0;
	font-size: 12.5px;
	color: #6b7280;
	line-height: 1.4;
}

.rnt-evt-textarea--tall {
	min-height: 280px;
}

.rnt-evt-earlybird-section {
	margin: 0 0 4px;
	padding: 16px 16px 4px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
}

.rnt-evt-section-title {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: #111827;
}

.rnt-evt-section-desc {
	margin: 0 0 12px;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.45;
}

.rnt-evt-image-picker {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
	width: 100%;
}

.rnt-evt-image-preview {
	position: relative;
	display: block;
	width: 100%;
}

.rnt-evt-image-preview img {
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	border: 1px solid #e5e7eb;
}

.rnt-evt-image-remove {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.rd-table-thumb {
	width: 36px;
	height: 36px;
	object-fit: cover;
	border-radius: 6px;
}

.rd-text-sm {
	font-size: 12px;
	margin-top: 2px;
}

@media (max-width: 960px) {
	.rnt-evt-form-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.rnt-evt-form__inner {
		padding: 20px 16px 24px;
	}

	.rnt-evt-form-grid--2,
	.rnt-evt-form-grid--3 {
		grid-template-columns: 1fr;
	}
}
