/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* Styles pour le formulaire de demande d'adhésion - Frontend */
.agires-demande-adhesion-form-wrapper {
	max-width: 100%;
	margin: 0 auto;
	background: #fff;
	padding: 35px;
}

.agires-demande-adhesion-form {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: #fff;
}

.agires-form-row {
	display: flex;
	gap: 0;
	flex-wrap: wrap;
	margin-bottom: 0;
}

/* Layout en 2 colonnes pour les champs du haut */
.agires-form-two-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	margin-bottom: 30px;
}

.agires-form-col-left,
.agires-form-col-right {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.agires-form-col {
	flex: 1;
	min-width: 250px;
}

.agires-form-col-full {
	flex: 1 1 100%;
	margin-bottom: 30px;
}

.agires-form-field {
	display: flex;
	flex-direction: column;
	margin-bottom: 20px;
}

.agires-demande-adhesion-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 400;
	color: #000;
	font-size: 14px;
	line-height: 1.5;
}

.agires-demande-adhesion-form .required {
	color: #d63638;
	font-weight: normal;
	margin-left: 2px;
}

.agires-demande-adhesion-form input[type="text"],
.agires-demande-adhesion-form input[type="email"],
.agires-demande-adhesion-form input[type="tel"],
.agires-demande-adhesion-form textarea {
	width: 100%;
	padding: 0;
	border: none;
	border-bottom: 1px solid #000;
	border-radius: 0;
	font-size: 14px;
	background: transparent;
	transition: border-color 0.3s;
	color: #000;
	font-family: inherit;
	line-height: 1.5;
}

.agires-demande-adhesion-form input[type="text"]:focus,
.agires-demande-adhesion-form input[type="email"]:focus,
.agires-demande-adhesion-form input[type="tel"]:focus,
.agires-demande-adhesion-form textarea:focus {
	outline: none;
	border-bottom-color: #7D4FC9;
}

.agires-demande-adhesion-form input[type="text"]:required:invalid,
.agires-demande-adhesion-form input[type="email"]:required:invalid,
.agires-demande-adhesion-form input[type="tel"]:required:invalid,
.agires-demande-adhesion-form textarea:required:invalid {
	border-bottom-color: #d63638;
}

.agires-demande-adhesion-form textarea {
	resize: vertical;
	min-height: 100px;
	font-family: inherit;
	line-height: 1.5;
	padding-top: 8px;
}

/* Checkbox de confidentialité */
.agires-checkbox-label {
	display: flex !important;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	font-weight: 400;
	color: #000;
	font-size: 14px;
	line-height: 1.5;
}

.agires-demande-adhesion-form input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	margin-top: 2px;
	flex-shrink: 0;
	cursor: pointer;
	accent-color: #7D4FC9;
}

.agires-checkbox-text {
	flex: 1;
}

/* reCAPTCHA */
.agires-demande-adhesion-form .g-recaptcha {
	margin: 20px 0;
}

/* Bouton submit */
.agires-form-submit-row {
	/* margin-top: 30px; */
	margin-bottom: 0;
}

.agires-form-submit-row .agires-form-col-full {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 0;
}

.agires-form-submit {
	color: #000;
	border: none;
	padding: 12px 30px;
	font-size: 17px;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
	display: inline-flex;
	align-items: center;
	background: linear-gradient(90deg, #FDC300 0%, #F6A651 100%);
	width: 246px;
	height: 60px;
	opacity: 1;
	border-radius: 20px;
	padding-top: 16px;
	padding-right: 32px;
	padding-bottom: 16px;
	padding-left: 32px;
	gap: 8px;
	justify-content: center;
}

.agires-form-submit:hover:not(:disabled) {
	opacity: 0.9;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.agires-form-submit:active:not(:disabled) {
	transform: translateY(0);
}

.agires-form-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.agires-submit-icon {
	font-size: 16px;
	color: #000;
}

.agires-form-messages {
	margin-top: 0;
	margin-bottom: 20px;
}

.agires-form-messages .agires-message {
	padding: 15px 20px;
	border-radius: 4px;
	margin-bottom: 15px;
	font-size: 14px;
	line-height: 1.5;
	animation: fadeIn 0.3s ease-in;
}

.agires-form-messages .agires-message.success {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.agires-form-messages .agires-message.error {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

/* Animation pour le spinner */
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Animation pour les messages */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Styles responsive pour le formulaire */
@media (max-width: 768px) {
	.agires-form-two-cols {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.agires-form-col-left,
	.agires-form-col-right {
		gap: 20px;
	}
	
	.agires-form-submit-row .agires-form-col-full {
		justify-content: center;
	}
}
