/* =============================================================================
   Contemple Form – Frontend Styles
   ============================================================================= */

.cf-form-wrap {
	max-width: 640px;
}

.cf-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
	gap: 1rem 2rem;
}

.cf-submit-wrap,
.cf-field--textarea,
.cf-form-messages,
.cf-recaptcha-notice {
	grid-column: 1 / -1;
}

/* Champ */

.cf-form .cf-label {
	display: none;
}

.cf-form .cf-required {
	color: #c0392b;
	margin-left: 2px;
// }

// /* Inputs */
// .cf-form .cf-input,
// .cf-form .cf-textarea,
// .cf-form .cf-select {
// 	display: block;
// 	width: 100%;
// 	padding: 0.4rem 1rem;
// 	border: 1px solid #000000;
// 	border-radius: 10px;
// 	font-size: 1rem;
// 	font-family: inherit;
// 	background: #fff;
// 	color: #000000;
// 	transition:
// 		border-color 0.15s ease,
// 		box-shadow 0.15s ease;
// 	box-sizing: border-box;
// 	-webkit-appearance: none;
// 	appearance: none;
// 	top: 0.1em;

// 	&::placeholder {
// 		position: relative;
// 		color: #474646;
// 		top: 0.1em;
// 	}
// }

.cf-form .cf-input:focus,
.cf-form .cf-textarea:focus,
.cf-form .cf-select:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.cf-form .cf-textarea {
	resize: vertical;
	min-height: 120px;
}

/* Erreurs de champ */
.cf-form .cf-field--error .cf-input,
.cf-form .cf-field--error .cf-textarea,
.cf-form .cf-field--error .cf-select {
	border-color: #dc2626;
}

.cf-form .cf-field-error {
	display: block;
	color: #dc2626;
	font-size: 13px;
	margin-top: 4px;
	min-height: 18px;
}

/* Bouton de soumission */
.cf-submit-wrap {
	margin-top: 24px;
}

.cf-form .cf-submit-btn {
	background: #1a1a1a;
	color: #fff;
	border: none;
	padding: 12px 28px;
	font-size: 16px;
	font-family: inherit;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition:
		background 0.15s ease,
		opacity 0.2s ease;
}

.cf-form .cf-submit-btn:hover {
	background: #333;
}

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

/* Messages (succès / erreur globale) */
.cf-form-messages {
	display: none;
	margin-top: 16px;
	padding: 14px 18px;
	border-radius: 4px;
	font-size: 15px;
}

.cf-form-messages.is-success {
	display: block;
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.cf-form-messages.is-error {
	display: block;
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

/* Notice reCAPTCHA */
.cf-recaptcha-notice {
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 12px;
	line-height: 1.5;
}

.cf-recaptcha-notice a {
	color: #6b7280;
}

/* Notice admin (formulaire introuvable) */
.cf-notice {
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 14px;
}

.cf-notice--error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}
