/**
 * WC Attendee Info - Frontend Styles
 */

/* Container */
.attendee-info-container {
	margin: 20px 0;
	padding: 20px;
	background: #f8f9fa;
	border: 1px solid #e1e5e9;
	border-radius: 5px;
}

/* Wrapper */
.attendee-info-wrapper {
	max-width: 100%;
}

/* Title */
.attendee-info-title {
	margin: 0 0 8px 0;
	font-size: 1.1em;
	font-weight: 600;
	color: #1e1e1e;
}

/* Description */
.attendee-info-description {
	margin: 0 0 20px 0;
	font-size: 0.9em;
	color: #666;
}

/* Fields list */
.attendee-fields-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* Single attendee group */
.attendee-field-group {
	padding: 16px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
	transition: border-color 0.2s ease;
}

.attendee-field-group:hover {
	border-color: #0073aa;
}

/* Header with attendee number */
.attendee-field-header {
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.attendee-number {
	font-weight: 600;
	font-size: 0.95em;
}

/* Field row */
.attendee-field-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* Individual field */
.attendee-field {
	flex: 1;
	min-width: 200px;
}

.attendee-field > label {
	display: block;
	margin-bottom: 6px;
	font-size: 0.9em;
	font-weight: 500;
	color: #333;
}

.attendee-field .required {
	color: #cc0000;
	font-weight: bold;
}

/* Input styling */
.attendee-input {
	width: 100%;
	padding: 10px 12px;
	font-size: 1em;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.attendee-input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.attendee-input:invalid {
	border-color: #ccc;
}

.attendee-input:invalid:focus {
	border-color: #cc0000;
	box-shadow: 0 0 0 2px rgba(204, 0, 0, 0.1);
}

/* Rows after the first (date of birth / experience) */
.attendee-field-row + .attendee-field-row {
	margin-top: 16px;
}

/* Dance experience radio group */
fieldset.attendee-field-experience {
	margin: 0;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}

.attendee-field-experience legend {
	display: block;
	margin-bottom: 6px;
	padding: 0;
	font-size: 0.9em;
	font-weight: 500;
	color: #333;
}

.attendee-radio-options {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.attendee-radio-option {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 0.95em;
	cursor: pointer;
}

.attendee-radio-option .attendee-radio {
	margin: 0;
}

/* Order display styling */
.attendee-info-order-display {
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px dashed #ddd;
}

.attendee-info-order-title {
	margin: 0 0 8px 0;
	font-size: 0.9em;
}

.attendee-info-order-list {
	margin: 0;
	padding-left: 20px;
	font-size: 0.9em;
	color: #666;
}

.attendee-info-order-list li {
	margin-bottom: 4px;
}

/* Responsive adjustments */
@media (max-width: 600px) {
	.attendee-info-container {
		padding: 15px;
	}

	.attendee-field-row {
		flex-direction: column;
		gap: 12px;
	}

	.attendee-field {
		min-width: 100%;
	}

	.attendee-field-group {
		padding: 12px;
	}
}

/* Animation for new fields */
@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.attendee-field-group {
	animation: fadeIn 0.3s ease;
}


