/* Messages du formulaire public de soumission d'événement (/annoncez-vous/). */

.jnd-form-notice {
	margin: 0 0 20px;
	padding: 14px 18px;
	border: 1px solid transparent;
	border-radius: 4px;
	font-size: 1.05em;
}

.jnd-form-notice p {
	margin: 0 0 6px;
}

.jnd-form-notice ul {
	margin: 6px 0 0 20px;
	padding: 0;
}

.jnd-form-notice li {
	margin: 0 0 4px;
}

.jnd-form-error {
	background: #fdecea;
	border-color: #f5c2c0;
	color: #a10e0e;
}

.jnd-form-error strong {
	color: #a10e0e;
}

.jnd-form-success {
	background: #eaf7ec;
	border-color: #bfe3c4;
	color: #1e6b2e;
}

.jnd-form-highlight {
	background: #fdecea;
	border-color: #f5c2c0;
	color: #a10e0e;
	font-weight: 600;
}

.jnd-form-highlight strong {
	color: #a10e0e;
}

/* ----------------------------------------------------------------------
 * Formulaire structuré : conteneur, sections, champs
 * -------------------------------------------------------------------- */

.jnd-form {
	max-width: 720px;
	margin: 0 0 20px;
	padding: 32px 36px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 6px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.jnd-section {
	margin: 0 0 36px;
	padding: 0 0 32px;
	border-bottom: 1px solid #e8e8e8;
}

.jnd-section:last-of-type {
	margin-bottom: 28px;
	padding-bottom: 0;
	border-bottom: none;
}

.jnd-section-title {
	margin: 0 0 24px;
	padding-left: 14px;
	border-left: 4px solid #FBC23A;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
	font-size: 18px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: #111;
}

.jnd-field {
	margin: 0 0 22px;
}

.jnd-field:last-child {
	margin-bottom: 0;
}

.jnd-field label,
.jnd-field-legend {
	display: block;
	margin: 0 0 8px;
	color: #111;
	font-size: 14px;
	text-transform: uppercase;
	font-family: 'Raleway', sans-serif;
	font-weight: 700;
}

.jnd-field .description {
	display: block;
	margin-top: 4px;
	text-transform: none;
	font-size: 13px;
	font-weight: 400;
	color: #5D5D5D;
}

.jnd-form input[type="text"],
.jnd-form input[type="email"],
.jnd-form input[type="url"],
.jnd-form input[type="date"],
.jnd-form input[type="time"],
.jnd-form input[type="file"],
.jnd-form select,
.jnd-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	border: 2px solid #d2d2d2;
	border-radius: 3px;
	padding: 10px 12px;
	background-color: #F5F5F5;
	font-size: 15px;
	font-family: inherit;
	transition: border-color .2s;
}

.jnd-form textarea {
	height: 110px;
	resize: vertical;
}

.jnd-form .jnd-textarea-lg {
	height: 200px;
}

.jnd-form input:focus,
.jnd-form select:focus,
.jnd-form textarea:focus {
	border-color: #111;
	outline: none;
}

/* Choix multiples (radios) présentés comme des cartes cliquables. */
.jnd-choice-group {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.jnd-choice {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	padding: 10px 16px;
	border: 2px solid #d2d2d2;
	border-radius: 3px;
	background: #F5F5F5;
	text-transform: none !important;
	font-weight: 400 !important;
	font-size: 14px;
	cursor: pointer;
	transition: all .2s;
}

.jnd-choice:hover {
	border-color: #FBC23A;
}

.jnd-choice input {
	margin: 0;
}

.jnd-checkbox {
	display: flex !important;
	align-items: center;
	gap: 8px;
	text-transform: none !important;
	font-weight: 400 !important;
	font-size: 14px;
	cursor: pointer;
}

.jnd-checkbox input {
	margin: 0;
}

/* Lignes de dates répétables. */
#jnd-date-rows {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.jnd-date-row {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
	margin: 0 !important;
}

.jnd-field label.jnd-date-col {
	flex: 1 1 140px;
	margin: 0;
	text-transform: none;
	font-weight: 400;
}

.jnd-date-col-label {
	display: block;
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	font-family: 'Raleway', sans-serif;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #5D5D5D;
}

.jnd-date-col-label small {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
}

/* Récapitulatif lisible de la saisie (« ✓ Vendredi 12 septembre, 20h30 → 22h »). */
.jnd-date-summary {
	flex-basis: 100%;
	order: 10;
	margin: 0 !important;
	font-size: 13px;
	font-weight: 600;
	color: #1e6b2e;
}

.jnd-date-summary:empty {
	display: none;
}

.jnd-remove-date {
	border: none;
	background: none;
	color: #a10e0e;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	padding: 0 6px 12px;
	align-self: flex-end;
}

.jnd-date-actions {
	margin-top: 14px !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.jnd-form-submit {
	margin-top: 8px;
	text-align: right;
}

.jnd-submit-btn {
	padding: 14px 32px !important;
	font-size: 15px !important;
	background-color: #FBC23A !important;
	border-color: #FBC23A !important;
}

.jnd-submit-btn:hover {
	background-color: #111 !important;
	border-color: #111 !important;
	color: #fff !important;
}

/* Autocomplete de lieu (liste maison, le datalist natif étant inutilisable sur mobile). */
.jnd-autocomplete {
	position: relative;
}

.jnd-autocomplete-list {
	position: absolute;
	top: calc(100% - 2px);
	left: 0;
	right: 0;
	z-index: 30;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
	border: 2px solid #d2d2d2;
	border-radius: 0 0 3px 3px;
	max-height: 280px;
	overflow-y: auto;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.jnd-autocomplete-list li {
	margin: 0;
	padding: 12px;
	font-size: 15px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
}

.jnd-autocomplete-list li:last-child {
	border-bottom: none;
}

.jnd-autocomplete-list li:hover,
.jnd-autocomplete-list li.is-active {
	background: #fdf3dd;
}

.jnd-autocomplete-list .jnd-autocomplete-empty {
	color: #5D5D5D;
	font-style: italic;
	cursor: default;
}

.jnd-autocomplete-list .jnd-autocomplete-empty:hover {
	background: none;
}

.jnd-venue-status {
	margin: 6px 0 0 !important;
	font-size: 13px;
	font-weight: 600;
	color: #1e6b2e;
}

@media (max-width: 700px) {
	.jnd-form {
		padding: 22px 18px;
	}

	.jnd-form-submit {
		text-align: stretch;
	}

	.jnd-submit-btn {
		width: 100%;
	}

	/* Sous 16px, iOS Safari zoome automatiquement sur le champ au focus. */
	.jnd-form input[type="text"],
	.jnd-form input[type="email"],
	.jnd-form input[type="url"],
	.jnd-form input[type="date"],
	.jnd-form input[type="time"],
	.jnd-form select,
	.jnd-form textarea {
		font-size: 16px;
	}

	/* Lignes de dates : date pleine largeur, heures côte à côte. */
	.jnd-field label.jnd-date-col {
		flex: 1 1 100%;
	}

	.jnd-field label.jnd-date-col-time {
		flex: 1 1 calc(50% - 5px);
	}

	#jnd-date-rows .jnd-date-row + .jnd-date-row {
		border-top: 1px dashed #d2d2d2;
		padding-top: 14px;
	}

	.jnd-remove-date {
		position: absolute;
		top: 14px;
		right: 0;
		padding: 0 4px;
	}
}
