/* Container principal */
.aran-review-form-wrapper {
	max-width: 600px;
	margin: 2rem auto;
	padding: 2rem;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Messages de succès et erreur */
.aran-review-success {
	padding: 1rem;
	margin-bottom: 1.5rem;
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	border-radius: 4px;
	color: #155724;
}

.aran-review-error {
	padding: 1rem;
	margin-bottom: 1.5rem;
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	border-radius: 4px;
	color: #721c24;
}

/* Formulaire */
.aran-review-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Groupes de champs */
.aran-form-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.aran-form-group label {
	font-weight: 600;
	color: #333;
}

.aran-form-group .required {
	color: #e74c3c;
}

.ara-form-review {
	padding: 3rem 2rem;
}
/* Row pour nom et email côte à côte */
.ara-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-bottom: 2rem;
}
.ara-form-row.large {
	grid-template-columns: 3fr 1fr;
}
.ara-form-row > .input {
	display: flex;
	justify-content: center;
	align-items: start;
	flex-direction: column;
}
.ara-form-row > .input input, .ara-form-row > .input textarea, .ara-form-row > .input select {
	width: 100%;
	height: 100%;
}
.ara-form-row > .input.textarea {
	grid-column: 1 / -1;
}
.ara-form-row textarea {
	resize: vertical;
}

@media (max-width: 600px) {
	.ara-form-row {
		grid-template-columns: 1fr;
	}
}

/* Inputs */
.aran-form-group input[type="text"],
.aran-form-group input[type="email"],
.aran-form-group textarea {
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
	font-family: inherit;
	transition: border-color 0.3s;
}

.aran-form-group input:focus,
.aran-form-group textarea:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Système d'étoiles */
.aran-rating-group {
	margin-bottom: 1rem;
}

.aran-star-rating {
	display: flex;
	flex-direction: row-reverse;
	justify-content: flex-end;
	gap: 0.25rem;
	font-size: 0;
}

.aran-star-rating input[type="radio"] {
	display: none;
}

.aran-star-rating label {
	cursor: pointer;
	color: #ddd;
	transition: color 0.2s;
	font-size: 0;
	line-height: 0;
}

.aran-star-rating label svg {
	width: 40px;
	height: 40px;
}

/* État par défaut : étoiles grises */
.aran-star-rating label {
	color: #e0e0e0;
}

/* Au survol : étoiles jaunes pour celle-ci et toutes à droite */
.aran-star-rating label:hover,
.aran-star-rating label:hover ~ label {
	color: #ffc107;
}

/* Quand une étoile est cochée : elle et toutes à droite sont jaunes */
.aran-star-rating input[type="radio"]:checked ~ label {
	color: #ffc107;
}

/* Bouton de soumission */
.aran-submit-btn {
	padding: 1rem 2rem;
	background-color: #3498db;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s;
}

.aran-submit-btn:hover {
	background-color: #2980b9;
}

.aran-submit-btn:active {
	transform: translateY(1px);
}

/* Notices succès / erreur */
.ara-notice {
	padding: 1rem 1.25rem;
	margin-bottom: 1.5rem;
	border-radius: 4px;
	font-size: 0.95rem;
	line-height: 1.4;
}
.ara-notice--success {
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}
.ara-notice--error {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

/* Bouton désactivé pendant l'envoi */
.ara-submit-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Badge reCAPTCHA */
.grecaptcha-badge {
	visibility: hidden;
}

/* Notice info */
.ara-notice--info {
	background-color: #d1ecf1;
	border: 1px solid #bee5eb;
	color: #0c5460;
}

/* Notice compte connecté */
.ara-account-notice {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1rem;
	background-color: #e8f4fd;
	border: 1px solid #b8daff;
	border-radius: 6px;
	margin-bottom: 1.5rem;
	color: #004085;
	font-size: 0.9rem;
}

.ara-account-icon {
	font-size: 1.2rem;
}

/* Row pour nom/prénom avec bouton modifier */
.ara-name-row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 1rem;
	align-items: end;
}

.ara-name-row.ara-readonly-group {
	background-color: #f8f9fa;
	padding: 1rem;
	border-radius: 8px;
	border: 1px dashed #dee2e6;
}

/* Wrapper du bouton modifier */
.ara-edit-wrapper {
	display: flex;
	align-items: flex-end;
	padding-bottom: 0.25rem;
}

/* Bouton modifier */
.ara-edit-btn {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.6rem 1rem;
	background-color: #007bff;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
	white-space: nowrap;
	box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

.ara-edit-btn:hover {
	background-color: #0056b3;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.ara-edit-icon {
	font-size: 0.9rem;
}

/* Champs readonly */
.ara-readonly-input {
	background-color: #e9ecef !important;
	border-color: #ced4da !important;
	color: #495057;
	cursor: default;
}

.ara-readonly-input:focus {
	box-shadow: none !important;
	border-color: #ced4da !important;
}

/* Champ readonly permanent (email) */
.ara-readonly-field {
	position: relative;
	display: flex;
	align-items: center;
}

.ara-readonly-field input {
	flex: 1;
	padding-right: 2.5rem;
}

.ara-lock-icon {
	position: absolute;
	right: 0.75rem;
	font-size: 1rem;
	opacity: 0.6;
}

.ara-readonly-permanent {
	background-color: #f1f3f4 !important;
	color: #6c757d;
}

/* Hint sous les champs */
.ara-field-hint {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	color: #6c757d;
	font-style: italic;
}

/* Animation pour le déverrouillage */
.ara-readonly-input.ara-unlocked {
	animation: unlockPulse 0.3s ease;
	background-color: #fff !important;
	border-color: #007bff !important;
}

@keyframes unlockPulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.02); }
	100% { transform: scale(1); }
}

/* Responsive pour la row nom/prénom */
@media (max-width: 600px) {
	.ara-name-row {
		grid-template-columns: 1fr;
	}

	.ara-edit-wrapper {
		justify-content: flex-start;
		padding-top: 0.5rem;
	}

	.ara-edit-btn {
		width: 100%;
		justify-content: center;
	}
}