/* Block Container */
.hero-form-wrapper {
	max-width: 600px;
	margin: 0 auto;
}

.hero-form {
	width: 100%;
}

/* Form Group */
.form-group {
	display: flex;
	gap: 0;
	position: relative;
}

/* Input Field */
.hero-input {
	flex: 1;
	padding: 16px 20px;
	font-size: 16px;
	border: 2px solid #e0e0e0!important;
	border-right: none;
	border-radius: 4px 0 0 4px!important;
	outline: none;
	transition: all 0.3s ease;
}

.hero-input:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.hero-input.error {
	border-color: #dc3232;
}

.hero-input.valid {
	border-color: #46b450;
}

/* Submit Button */
.hero-submit-btn {
	padding: 16px 32px;
	font-size: 16px;
	font-weight: 600;
	color: #ffffff;
	background-color: #EE7A10;
	border: 2px solid #EE7A10;
	border-radius: 0 4px 4px 0;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.hero-submit-btn:hover {
	background-color: #ec8425;
	border-color: #ec8425;
}

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

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

.hero-submit-btn.loading::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 3px solid rgba(255, 255, 255, 0.3);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

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

/* Messages Zone (under checkbox) */
.form-messages {
    position: relative;
	margin-top: 15px;
	min-height: 0;
}

.form-message {
    position: absolute;
    left: 0;
    right: 0;
    text-align: center;
    display: none;
	padding: 12px 15px;
    width: 100%;
    border-radius: 5px;
	font-size: 14px;
	line-height: 1.5;
	animation: slideDown 0.3s ease-out;
}

.form-message.show {
	display: block;
}

/* Error Message Style */
.form-message.error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Success Message Style */
.form-message.success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Checkbox RGPD */
.form-consent {
	display: flex;
	justify-content: center;
	margin-top: 30px;
	font-size: 14px;
	color: #333;
}

.form-consent label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	cursor: pointer;
}

.form-consent input[type="checkbox"] {
	margin-top: 2px;
	cursor: pointer;
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.form-consent {
  color: #fff;
}

.form-consent a {
	color: #EE7A10;
	text-decoration: underline;
}

.form-consent a:hover {
	color: #ec8425;
}

/* Responsive: Mobile (Vertical Layout) */
@media (max-width: 768px) {
	.form-group {
		flex-direction: column;
		gap: 10px;
	}

	.hero-input {
		border-right: 2px solid #e0e0e0;
		border-radius: 4px!important;
		font-size: 16px; /* Prevent zoom on iOS */
	}

	.hero-submit-btn {
		border-radius: 4px;
		width: 100%;
		padding: 16px 30px;
	}

	.form-consent {
		margin-top: 20px;
		justify-content: flex-start;
	}
}

/* Wide and Full Alignment Support */
.hero-form-wrapper.alignwide {
	max-width: 800px;
}

.hero-form-wrapper.alignfull {
	max-width: 100%;
}
