/* Football School Manager - Frontend Enrollment Form */

.fs-enrollment-form {
	max-width: 720px;
	margin: 0 auto 40px;
	padding: 28px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
	font-family: inherit;
}

.fs-form-section {
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid #f1f5f9;
}

.fs-form-section:last-of-type {
	border-bottom: none;
}

.fs-section-title {
	margin: 0 0 16px;
	font-size: 1.15rem;
	font-weight: 600;
	color: #1e293b;
}

.fs-help {
	margin: -8px 0 16px;
	font-size: 0.9rem;
	color: #64748b;
}

.fs-field {
	margin-bottom: 14px;
}

.fs-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 0.9rem;
	color: #334155;
}

.fs-field .required {
	color: #dc2626;
}

.fs-field input[type="text"],
.fs-field input[type="date"],
.fs-field input[type="number"],
.fs-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 0.95rem;
	background: #fff;
	transition: border-color 0.15s;
	box-sizing: border-box;
}

.fs-field input:focus,
.fs-field select:focus {
	outline: none;
	border-color: #3b82f6;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.fs-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 14px;
}

@media (max-width: 640px) {
	.fs-field-row {
		grid-template-columns: 1fr;
	}
}

.fs-athlete-row {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 12px;
}

.fs-athlete-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.fs-athlete-header strong {
	font-size: 0.95rem;
	color: #1e293b;
}

.fs-remove-athlete {
	color: #dc2626;
	font-size: 0.85rem;
	text-decoration: none;
}

.fs-remove-athlete:hover {
	text-decoration: underline;
}

.fs-suggested-category {
	display: inline-block;
	padding: 8px 0;
	font-weight: 600;
	color: #0369a1;
}

.fs-btn-secondary {
	background: #f1f5f9 !important;
	border: 1px solid #cbd5e1 !important;
	color: #334155 !important;
	padding: 8px 16px !important;
	border-radius: 8px !important;
	cursor: pointer;
	font-size: 0.9rem;
}

.fs-btn-secondary:hover {
	background: #e2e8f0 !important;
}

.fs-price-section {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 10px;
	padding: 20px;
	margin-bottom: 24px;
}

.fs-price-box {
	display: flex;
	align-items: baseline;
	gap: 12px;
}

.fs-price-label {
	font-size: 1rem;
	color: #166534;
}

.fs-price-value {
	font-size: 1.6rem;
	font-weight: 700;
	color: #15803d;
}

.fs-price-note {
	margin: 8px 0 0;
	font-size: 0.85rem;
	color: #4b5563;
}

.fs-form-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}

.fs-form-actions .button-primary {
	padding: 12px 28px !important;
	font-size: 1rem !important;
	border-radius: 8px !important;
}

.fs-form-message {
	font-size: 0.95rem;
}

.fs-form-message.success {
	color: #15803d;
}

.fs-form-message.error {
	color: #dc2626;
}

.fs-notice {
	padding: 14px 18px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.fs-notice-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}


/* Turma por atleta */
.fs-athlete-schedule-row {
	display: flex !important;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #e2e4e7;
}
.fs-athlete-schedule-row .fs-field {
	flex: 1 1 220px;
	min-width: 180px;
}
.fs-athlete-schedule-row label {
	font-weight: 600;
}
.fs-athlete-row {
	margin-bottom: 16px;
	padding: 14px;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	background: #fafbfc;
}


/* Loading overlay — luxury centered */
.fs-enrollment-form {
	position: relative;
}
.fs-loading-overlay {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 100;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.28);
	backdrop-filter: blur(2px);
	-webkit-backdrop-filter: blur(2px);
	border-radius: inherit;
	pointer-events: none;
}
.fs-enrollment-form.fs-is-loading .fs-loading-overlay,
.fs-loading-overlay.is-visible {
	display: flex;
	pointer-events: all;
}
.fs-loading-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 28px 36px;
	min-width: 140px;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 16px;
	box-shadow:
		0 4px 6px rgba(15, 23, 42, 0.04),
		0 18px 40px rgba(15, 23, 42, 0.18);
}
.fs-loading-spinner {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2.5px solid rgba(30, 41, 59, 0.12);
	border-top-color: #0f172a;
	border-right-color: #334155;
	animation: fs-spin 0.85s cubic-bezier(0.4, 0, 0.2, 1) infinite;
	box-sizing: border-box;
}
.fs-loading-text {
	display: block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #0f172a;
	line-height: 1;
}
@keyframes fs-spin {
	to { transform: rotate(360deg); }
}
}
