/**
 * Class Register Styles
 *
 * Styles for the frontend class register interface
 *
 * @package    Karate_Club_Manager
 * @subpackage Karate_Club_Manager/assets/css
 * @since      1.0.0
 */

/* Wrapper */
.kcm-class-register-wrapper {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}

.kcm-class-register-wrapper h2 {
	margin-top: 0;
	margin-bottom: 20px;
	font-size: 24px;
	font-weight: 600;
	color: #111827;
}

/* Form */
.kcm-class-register-form {
	background: #fff;
	border: 1px solid #D1D5DB;
	border-radius: 4px;
	padding: 30px;
	margin-bottom: 30px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Messages */
.kcm-message {
	padding: 12px 15px;
	margin-bottom: 20px;
	border-left: 4px solid #999;
	border-radius: 3px;
	background: #F4F4F2;
}

.kcm-message.kcm-success {
	border-left-color: #46b450;
	background: #ecf7ed;
	color: #2e7d32;
}

.kcm-message.kcm-error,
.kcm-class-register-error {
	border-left-color: #dc3232;
	background: #fef7f7;
	color: #c62828;
}

.kcm-message.kcm-warning {
	border-left-color: #ffb900;
	background: #fff8e5;
	color: #8f6600;
}

.kcm-message.kcm-info {
	border-left-color: #00a0d2;
	background: #e5f5fa;
	color: #006089;
}

.kcm-message ul {
	margin: 10px 0 0 20px;
}

.kcm-class-register-error {
	padding: 12px 15px;
	border-left: 4px solid #dc3232;
	border-radius: 3px;
}

/* Form Rows */
.kcm-form-row {
	margin-bottom: 25px;
}

.kcm-form-row:last-child {
	margin-bottom: 0;
}

.kcm-form-row label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #111827;
	font-size: 14px;
}

.kcm-form-row label .required {
	color: #dc3232;
	font-weight: bold;
}

.kcm-form-row select,
.kcm-form-row input[type="date"],
.kcm-form-row textarea {
	width: 100%;
	max-width: 100%;
	padding: 8px 12px;
	font-size: 14px;
	border: 1px solid #D1D5DB;
	border-radius: 3px;
	box-sizing: border-box;
	transition: border-color 0.2s;
}

.kcm-form-row select:focus,
.kcm-form-row input[type="date"]:focus,
.kcm-form-row textarea:focus {
	border-color: #B11226;
	outline: none;
	box-shadow: 0 0 0 1px #B11226;
}

.kcm-field-description {
	display: block;
	margin-top: 5px;
	font-size: 13px;
	color: #6B7280;
	font-style: italic;
}

/* Member List */
.kcm-member-list-controls {
	margin-bottom: 15px;
}

.kcm-member-list-controls .button {
	margin-right: 10px;
	margin-bottom: 5px;
}

.kcm-member-checklist {
	max-height: 400px;
	overflow-y: auto;
	border: 1px solid #D1D5DB;
	border-radius: 3px;
	padding: 15px;
	background: #F4F4F2;
}

.kcm-member-item {
	padding: 10px;
	margin-bottom: 8px;
	background: #fff;
	border: 1px solid #D1D5DB;
	border-radius: 3px;
	transition: all 0.2s;
}

.kcm-member-item:hover {
	background: #F4F4F2;
	border-color: #B11226;
}

.kcm-member-item:last-child {
	margin-bottom: 0;
}

.kcm-member-item input[type="checkbox"] {
	margin-right: 10px;
	vertical-align: middle;
	cursor: pointer;
}

.kcm-member-item label {
	display: inline;
	margin: 0;
	font-weight: normal;
	cursor: pointer;
	vertical-align: middle;
}

.kcm-member-belt {
	color: #6B7280;
	font-size: 13px;
	font-style: italic;
}

/* Loading */
.kcm-loading {
	text-align: center;
	padding: 20px;
	color: #6B7280;
}

.kcm-loading .spinner {
	float: none;
	margin: 0 10px 0 0;
	vertical-align: middle;
}

/* Buttons */
.kcm-form-row .button-primary {
	background: #B11226;
	border-color: #B11226;
	color: #fff;
	font-size: 16px;
	padding: 10px 30px;
	height: auto;
	cursor: pointer;
	transition: background 0.2s;
}

.kcm-form-row .button-primary:hover {
	background: #8F0E1E;
	border-color: #8F0E1E;
}

.kcm-form-row .button-primary:disabled {
	background: #ccc;
	border-color: #ccc;
	cursor: not-allowed;
}

/* Instructions */
.kcm-register-instructions {
	background: #F4F4F2;
	border: 1px solid #D1D5DB;
	border-radius: 4px;
	padding: 20px;
}

.kcm-register-instructions h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 18px;
	font-weight: 600;
	color: #111827;
}

.kcm-register-instructions ol {
	margin: 0 0 15px 0;
	padding: 0 0 0 30px;
	list-style-position: outside;
}

.kcm-register-instructions ol li {
	margin-bottom: 8px;
	line-height: 1.6;
	padding-left: 5px;
}

.kcm-note {
	padding: 10px;
	background: #fff8e5;
	border-left: 4px solid #ffb900;
	margin: 0;
	border-radius: 3px;
}

.kcm-note strong {
	color: #8f6600;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.kcm-class-register-wrapper {
		padding: 10px;
	}

	.kcm-class-register-form {
		padding: 20px 15px;
	}

	.kcm-member-checklist {
		max-height: 300px;
	}

	.kcm-member-list-controls .button {
		width: 100%;
		margin-right: 0;
		margin-bottom: 10px;
		text-align: center;
	}

	.kcm-form-row .button-primary {
		width: 100%;
		text-align: center;
	}
}

@media screen and (max-width: 480px) {
	.kcm-class-register-wrapper h2 {
		font-size: 20px;
	}

	.kcm-class-register-form {
		padding: 15px;
	}

	.kcm-register-instructions {
		padding: 15px;
	}

	.kcm-member-item {
		padding: 8px;
	}
}
