/* Formulaire de paiement Highfly Rodeo */
.hfr-payment-form {
	width: 100%;
	font-family: Arial, sans-serif;
	background: #57a8c2;
	padding: 30px 20px;
}

.hfr-payment-form>div {
	max-width: 800px;
	margin: 0 auto;
}

/* Étapes */
.hfr-step {
	animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(10px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.hfr-step-header {
	text-align: center;
	margin-bottom: 30px;
}

.hfr-step-title {
	font-size: 32px;
	font-weight: 500;
	color: #ffffff;
	margin: 0 0 10px 0;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hfr-step-subtitle {
	font-size: 16px;
	color: #e7e7e7;
	margin: 0;
	opacity: 0.9;
}

.hfr-step-content {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	padding: 30px;
	border-radius: 10px;
	border: 3px solid #b3ff77;
}

/* Formulaire */
.hfr-form-group {
	margin-bottom: 20px;
}

.hfr-form-group label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #ffffff;
	margin-bottom: 8px;
}

.hfr-input {
	width: 100%;
	padding: 12px 15px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 8px;
	font-size: 16px;
	background: rgba(255, 255, 255, 0.9);
	transition: all 0.3s;
}

/* Style spécifique pour les select avec icône de flèche */
select.hfr-input {
	padding-right: 40px;
	background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M5 7.5L10 12.5L15 7.5" stroke="%23141414" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 20px;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	cursor: pointer;
}

select.hfr-input:hover {
	border-color: #b3ff77;
	background-color: rgba(255, 255, 255, 1);
}

.hfr-input:focus {
	outline: none;
	border-color: #b3ff77;
	box-shadow: 0 0 0 3px rgba(179, 255, 119, 0.2);
}

/* Erreurs de validation étape 2 */
.hfr-input.hfr-input-error {
	border-color: #e74c3c;
	background: rgba(231, 76, 60, 0.08);
	box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25);
}

.hfr-form-group.hfr-group-error label {
	color: #ffcccc;
}

.hfr-field-error {
	display: block;
	font-size: 13px;
	color: #ffcccc;
	margin-top: 4px;
	margin-bottom: 4px;
}

.hfr-toggle-wrapper.hfr-toggle-error .hfr-toggle-label {
	box-shadow: 0 0 0 2px #e74c3c;
	border-radius: 8px;
	padding: 2px;
}

.hfr-toggle-wrapper .hfr-field-error {
	display: inline;
	margin-left: 8px;
}

.hfr-form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.hfr-form-section {
	background: rgba(0, 0, 0, 0.1);
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.hfr-form-section h3 {
	font-size: 18px;
	font-weight: 500;
	color: #ffffff;
	margin: 0 0 15px 0;
	border-bottom: 2px solid #b3ff77;
	padding-bottom: 8px;
}

/* Labels des disciplines avec icône */
#hfr-disciplines-section .hfr-form-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
}

#hfr-disciplines-section .hfr-form-group label::before {
	content: '▼';
	color: #b3ff77;
	font-size: 12px;
	font-weight: bold;
}

/* Toggles stylisés */
.hfr-toggle-wrapper {
	margin: 20px 0;
}

.hfr-toggle-label {
	display: flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
	position: relative;
}

.hfr-toggle-label input[type="checkbox"] {
	display: none;
}

.hfr-toggle-slider {
	position: relative;
	width: 60px;
	height: 30px;
	background: rgba(255, 255, 255, 0.3);
	border-radius: 30px;
	transition: all 0.3s;
	margin-right: 15px;
	flex-shrink: 0;
}

.hfr-toggle-slider::before {
	content: '';
	position: absolute;
	width: 24px;
	height: 24px;
	background: #e7e7e7;
	border-radius: 50%;
	top: 3px;
	left: 3px;
	transition: all 0.3s;
}

.hfr-toggle-label input[type="checkbox"]:checked+.hfr-toggle-slider {
	background: #b3ff77;
}

.hfr-toggle-label input[type="checkbox"]:checked+.hfr-toggle-slider::before {
	transform: translateX(30px);
	background: #141414;
}

.hfr-toggle-text {
	font-size: 16px;
	font-weight: 600;
	color: #e7e7e7;
}

/* Boutons */
.hfr-form-actions {
	display: flex;
	gap: 15px;
	justify-content: flex-end;
}

.hfr-btn {
	padding: 15px 30px;
	border: none;
	border-radius: 50px;
	font-size: 16px;
	font-weight: bold;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s;
	letter-spacing: 0.5px;
	flex: 0 0 auto;
	min-width: 180px;
}

.hfr-btn-next,
.hfr-btn-submit {
	background: #b3ff77;
	color: #141414;
	width: 50%;
}

/* Si le bouton next/submit est seul sur sa ligne, prend 100% */
.hfr-form-actions .hfr-btn-next:only-child,
.hfr-form-actions .hfr-btn-submit:only-child {
	width: 100%;
	text-align: center;
}

.hfr-btn-next:hover,
.hfr-btn-submit:hover {
	background: #9fe060;
	transform: translateY(-2px);
}

.hfr-btn-prev {
	background: rgba(255, 255, 255, 0.2);
	color: #e7e7e7;
	border: 2px solid rgba(255, 255, 255, 0.3);
	width: 50%;
}

.hfr-btn-prev:hover {
	background: rgba(255, 255, 255, 0.3);
}

.hfr-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.hfr-btn:active:not(:disabled) {
	transform: scale(0.95);
}

/* Tickets – onglets par date */
.hfr-tickets-wrapper {
	margin-bottom: 20px;
}

.hfr-tickets-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
	list-style: none;
	padding: 0;
	margin-top: 0;
}

.hfr-tickets-tab {
	padding: 10px 16px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.15);
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s;
}

.hfr-tickets-tab:hover {
	background: rgba(255, 255, 255, 0.25);
	border-color: rgba(255, 255, 255, 0.6);
}

.hfr-tickets-tab.active {
	background: #b3ff77;
	color: #141414;
	border-color: #b3ff77;
}

.hfr-tickets-tab-panel {
	display: none;
}

.hfr-tickets-tab-panel.active {
	display: block;
}

.hfr-tickets-list {
	margin-bottom: 20px;
}

.hfr-no-tickets {
	color: #ffffff;
	text-align: center;
	padding: 20px;
	margin: 0;
	opacity: 0.9;
}

.hfr-ticket-item {
	background: rgba(255, 255, 255, 0.95);
	border: 2px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	padding: 15px;
	margin-bottom: 12px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	transition: all 0.3s;
}

.hfr-ticket-item:hover {
	border-color: #57a8c2;
}

.hfr-ticket-info {
	flex: 1;
	padding-right: 15px;
}

.hfr-ticket-label {
	font-size: 16px;
	font-weight: 400;
	color: #141414;
	margin: 0 0 6px 0;
}

.hfr-ticket-description {
	font-size: 13px;
	color: #666;
	margin: 0 0 6px 0;
	line-height: 1.3;
}

.hfr-ticket-dates {
	font-size: 11px;
	color: #999;
	margin: 0 0 8px 0;
}

.hfr-ticket-price {
	font-size: 18px;
	font-weight: 600;
	color: #141414;
	margin: 0;
}

.hfr-price-original {
	margin-right: 10px;
}

.hfr-price-discounted {
	margin-left: 10px;
	color: #28a745;
}

.hfr-ticket-quantity {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.hfr-qty-btn {
	width: 35px;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 8px;
	background: #57a8c2;
	color: white;
	font-size: 18px;
	font-weight: bold;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	transition: all 0.3s;
}

.hfr-qty-btn:hover {
	background: #4a8fa8;
	transform: scale(1.05);
}

.hfr-qty-btn:active {
	transform: scale(0.95);
}

.hfr-qty-input {
	width: 50px;
	text-align: center;
	padding: 8px 5px;
	border: 2px solid #57a8c2;
	border-radius: 8px;
	font-size: 16px;
	font-weight: bold;
	background: white;
	color: #141414;
}

/* Total */
.hfr-total-summary {
	background: rgba(0, 0, 0, 0.2);
	padding: 20px;
	border-radius: 10px;
	margin-bottom: 20px;
}

/* Récapitulatif (comme dans l'email) */
.hfr-recap {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.hfr-recap-title {
	font-size: 18px;
	font-weight: 500;
	color: #ffffff;
	margin: 0 0 12px 0;
	border-bottom: 2px solid #b3ff77;
	padding-bottom: 8px;
}

.hfr-recap-body {
	color: #e7e7e7;
	font-size: 14px;
}

.hfr-recap-empty {
	margin: 0;
	opacity: 0.85;
}

.hfr-recap-table {
	width: 100%;
	border-collapse: collapse;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	overflow: hidden;
}

.hfr-recap-table thead th {
	padding: 10px 12px;
	text-align: left;
	font-weight: 600;
	color: #ffffff;
	font-size: 13px;
	background: rgba(0, 0, 0, 0.15);
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hfr-recap-th-price,
.hfr-recap-th-total {
	text-align: right;
}

.hfr-recap-table tbody tr {
	border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hfr-recap-table tbody tr:last-child {
	border-bottom: none;
}

.hfr-recap-cell-pass {
	padding: 12px;
	color: #e7e7e7;
	vertical-align: top;
	width: 45%;
}

.hfr-recap-cell-pass strong {
	color: #ffffff;
}

.hfr-recap-discount-badge {
	color: #b3ff77;
	font-size: 12px;
	font-weight: normal;
}

.hfr-recap-dates {
	font-size: 12px;
	opacity: 0.9;
	display: block;
	margin-top: 2px;
}

.hfr-recap-cell-price {
	padding: 12px;
	text-align: right;
	color: #e7e7e7;
	vertical-align: top;
	width: 30%;
}

.hfr-recap-price-struck {
	text-decoration: line-through;
	opacity: 0.6;
	font-size: 12px;
	display: block;
}

.hfr-recap-price-final {
	color: #b3ff77;
	font-weight: 600;
}

.hfr-recap-cell-total {
	padding: 12px;
	text-align: right;
	color: #ffffff;
	font-weight: 600;
	vertical-align: top;
	width: 25%;
}

.hfr-total-line {
	display: flex;
	justify-content: space-between;
	font-size: 16px;
	color: #e7e7e7;
	margin-bottom: 10px;
}

.hfr-total-line.hfr-total-final {
	border-top: 2px solid #b3ff77;
	padding-top: 15px;
	margin-top: 10px;
	font-size: 22px;
	color: #b3ff77;
}

.hfr-btn-prev:hover {
	background: rgba(255, 255, 255, 0.3);
}

.hfr-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.hfr-btn:active:not(:disabled) {
	transform: scale(0.95);
}

/* Progress bar */
.hfr-progress {
	margin-top: 20px !important;
	text-align: center;
}

.hfr-progress-bar {
	height: 6px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	overflow: hidden;
	margin-bottom: 10px;
}

.hfr-progress-fill {
	height: 100%;
	background: #b3ff77;
	transition: width 0.4s ease;
}

.hfr-progress-text {
	font-size: 14px;
	color: #e7e7e7;
	font-weight: 600;
}

/* Messages */
.hfr-form-message {
	margin-top: 20px;
	padding: 15px;
	border-radius: 8px;
	text-align: center;
	font-weight: 600;
}

.hfr-form-message.success {
	background: #28a745;
	color: white;
}

.hfr-form-message.error {
	background: #dc3545;
	color: white;
}

/* Boutons de validation du code */
.hfr-code-actions {
	display: flex;
	gap: 15px;
}

/* Responsive */
@media (max-width: 768px) {
	.hfr-payment-form {
		padding: 15px;
	}

	.hfr-step-content {
		padding: 20px;
	}

	.hfr-step-title {
		font-size: 24px;
	}

	.hfr-form-row {
		grid-template-columns: 1fr;
	}

	.hfr-ticket-item {
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
	}

	.hfr-ticket-quantity {
		width: 100%;
		justify-content: center;
	}

	.hfr-form-actions,
	.hfr-code-actions {
		flex-direction: column;
	}

	.hfr-btn,
	.hfr-btn-next,
	.hfr-btn-submit,
	.hfr-btn-prev {
		width: 100% !important;
	}
}