/* 
 * WiseLeaf Registration Form Fixes
 * Fixes for checkbox positioning, styling, and overall form improvements
 */

.page_register {
	background: #fafafa;
}

.page_register .cmp_form {
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	padding: 40px;
	margin: 20px auto;
	max-width: 700px;
}

/* Fix checkbox positioning and styling */
.page_register .optin,
.page_register .reviewer,
.page_register .consent {
	margin: 20px 0;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	border: 2px solid #e9ecef;
}

.page_register .optin label,
.page_register .reviewer label,
.page_register .consent label {
	display: flex !important;
	align-items: flex-start !important;
	gap: 12px;
	margin: 0;
	cursor: pointer;
	line-height: 1.5;
}

/* Checkbox input styling */
.page_register input[type="checkbox"] {
	min-width: 18px !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	flex-shrink: 0;
	border: 2px solid #0c4a60;
	border-radius: 4px;
	background: white;
	cursor: pointer;
	position: relative;
	z-index: 1;
}

.page_register input[type="checkbox"]:checked {
	background: #0c4a60;
	border-color: #0c4a60;
}

.page_register input[type="checkbox"]:checked::after {
	content: '✓';
	color: white;
	font-size: 12px;
	font-weight: bold;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Checkbox label text */
.page_register .optin .label,
.page_register .reviewer .label,
.page_register .consent .label {
	flex: 1;
	font-size: 0.95rem;
	color: #2c3e50;
	line-height: 1.5;
}

/* Privacy consent styling */
.page_register .optin-privacy {
	border-left: 4px solid #3498db;
	background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
}

/* Email consent styling */
.page_register .optin-email {
	border-left: 4px solid #2ecc71;
	background: linear-gradient(135deg, #e8f5e8 0%, #f8f9fa 100%);
}

/* Reviewer section styling */
.page_register .reviewer {
	border-left: 4px solid #f39c12;
	background: linear-gradient(135deg, #fef9e7 0%, #f8f9fa 100%);
}

.page_register .reviewer legend {
	color: #0c4a60;
	font-weight: 600;
	font-size: 1.1rem;
	margin-bottom: 15px;
	display: block;
}

/* Reviewer interests field */
.page_register .reviewer_interests {
	margin-top: 15px;
}

.page_register .reviewer_interests label {
	display: block !important;
	margin-bottom: 8px;
}

.page_register .reviewer_interests .label {
	color: #0c4a60;
	font-weight: 500;
	margin-bottom: 8px;
	display: block;
}

.page_register .reviewer_interests input[type="text"] {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid #ddd;
	border-radius: 6px;
	font-size: 0.95rem;
	transition: border-color 0.3s ease;
}

.page_register .reviewer_interests input[type="text"]:focus {
	border-color: #0c4a60;
	outline: none;
	box-shadow: 0 0 0 3px rgba(12, 74, 96, 0.1);
}

/* Fix for reviewer interests visibility */
.page_register .fields .reviewer_interests.is_visible {
	max-height: none;
	opacity: 1;
	overflow: visible;
	padding-bottom: 0;
}

/* Form buttons styling */
.page_register .buttons {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #e9ecef;
	display: flex;
	gap: 15px;
	align-items: center;
	flex-wrap: wrap;
}

.page_register .buttons .submit {
	background: linear-gradient(135deg, #0c4a60 0%, #1a5c75 100%);
	color: white;
	padding: 12px 30px;
	border: none;
	border-radius: 6px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.page_register .buttons .submit:hover {
	background: linear-gradient(135deg, #1a5c75 0%, #2c3e50 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(12, 74, 96, 0.3);
}

.page_register .buttons .login {
	color: #0c4a60;
	text-decoration: none;
	font-weight: 500;
	padding: 12px 20px;
	border: 2px solid #0c4a60;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.page_register .buttons .login:hover {
	background: #0c4a60;
	color: white;
}

/* Required field indicator */
.page_register .required {
	color: #e74c3c;
	font-weight: bold;
}

/* Form field styling */
.page_register .fields > div {
	margin-bottom: 20px;
}

.page_register .fields label {
	display: block;
	margin-bottom: 8px;
}

.page_register .fields .label {
	color: #2c3e50;
	font-weight: 500;
	font-size: 0.95rem;
}

.page_register .fields input[type="text"],
.page_register .fields input[type="email"],
.page_register .fields input[type="password"],
.page_register .fields select,
.page_register .fields textarea {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid #ddd;
	border-radius: 6px;
	font-size: 0.95rem;
	transition: border-color 0.3s ease;
}

.page_register .fields input:focus,
.page_register .fields select:focus,
.page_register .fields textarea:focus {
	border-color: #0c4a60;
	outline: none;
	box-shadow: 0 0 0 3px rgba(12, 74, 96, 0.1);
}

/* Account Type Selection Styling */
.page_register .wiseleaf-account-type {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	border: 2px solid #0c4a60;
	border-radius: 12px;
	padding: 25px;
	margin: 25px 0;
}

.page_register .account-type-legend {
	color: #0c4a60;
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.page_register .account-type-description {
	color: #5d6d7e;
	font-size: 0.95rem;
	line-height: 1.5;
	margin-bottom: 20px;
	font-style: italic;
}

.page_register .account-type-selection select {
	background: white;
	border: 2px solid #0c4a60;
	border-radius: 8px;
	padding: 12px 15px;
	font-size: 1rem;
	color: #2c3e50;
	cursor: pointer;
	transition: all 0.3s ease;
}

.page_register .account-type-selection select:focus {
	border-color: #1a5c75;
	box-shadow: 0 0 0 3px rgba(12, 74, 96, 0.15);
	outline: none;
}

.page_register .account-type-selection option {
	padding: 10px;
	font-size: 0.95rem;
}

/* Conditional Field Styling */
.page_register .reviewer-specific-options,
.page_register .research-interests,
.page_register .institution-info {
	margin-top: 20px;
	padding: 20px;
	background: white;
	border-radius: 8px;
	border: 1px solid #e9ecef;
	animation: fadeIn 0.3s ease-in-out;
}

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

.page_register .reviewer-notice {
	background: linear-gradient(135deg, #e3f2fd 0%, #f1f8ff 100%);
	border: 1px solid #3498db;
	border-radius: 6px;
	padding: 15px;
	margin-bottom: 15px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.page_register .reviewer-notice i {
	color: #3498db;
	margin-top: 2px;
}

.page_register .reviewer-notice strong {
	color: #2c3e50;
}

.page_register .interests-help {
	margin-top: 8px;
}

.page_register .interests-help small {
	color: #7f8c8d;
	display: flex;
	align-items: center;
	gap: 6px;
}

.page_register .interests-help i {
	color: #f39c12;
}

/* Enhanced textarea styling */
.page_register textarea {
	resize: vertical;
	min-height: 80px;
	font-family: inherit;
	line-height: 1.5;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
	.page_register .cmp_form {
		margin: 10px;
		padding: 25px;
	}
	
	.page_register .buttons {
		flex-direction: column;
		align-items: stretch;
	}
	
	.page_register .buttons .submit,
	.page_register .buttons .login {
		width: 100%;
		text-align: center;
	}
	
	.page_register .account-type-legend {
		font-size: 1.1rem;
	}
	
	.page_register .reviewer-notice {
		flex-direction: column;
		gap: 8px;
	}
}