/**
 * Registration Styles
 *
 * @package Together_Job_Board
 * @since 1.0.0
 */

.tjb-registration-wrapper {
	max-width: 600px;
	margin: 0 auto;
	padding: 30px 20px;
}

/* WP Job Board Pro Registration Tab Styles */
.register-form-wrapper .role-tabs {
	display: flex;
	list-style: none;
	margin: 0 0 30px 0;
	padding: 0;
	border-bottom: 2px solid #e0e0e0;
}

.register-form-wrapper .role-tabs li {
	flex: 1;
	padding: 15px 20px;
	text-align: center;
	cursor: pointer;
	background: #f5f5f5;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
	font-weight: 600;
	position: relative;
}

.register-form-wrapper .role-tabs li:hover {
	background: #e8e8e8;
}

.register-form-wrapper .role-tabs li.active {
	background: #fff;
	border-bottom-color: #447AB3;
	color: #447AB3;
}

/* Hide employer form by default, show candidate */
.register-form-wrapper .register-form-employer {
	display: none;
}

.register-form-wrapper .register-form-candidate {
	display: block;
}

.tjb-registration-title {
	color: #1a1a1a;
	font-size: 2.5rem;
	font-weight: 700;
	margin-bottom: 40px;
	margin-top: 0;
	text-align: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.2;
}

.tjb-registration-tabs {
	display: flex;
	list-style: none;
	margin: 0 0 30px 0;
	padding: 0;
	border-bottom: 2px solid #e0e0e0;
}

.tjb-registration-tabs li {
	flex: 1;
	padding: 15px 20px;
	text-align: center;
	cursor: pointer;
	background: #f5f5f5;
	border-bottom: 3px solid transparent;
	transition: all 0.3s ease;
	font-weight: 600;
}

.tjb-registration-tabs li:hover {
	background: #e8e8e8;
}

.tjb-registration-tabs li.active {
	background: #fff;
	border-bottom-color: #447AB3;
	color: #447AB3;
}

.tjb-registration-tab-content {
	background: #fff;
	padding: 30px;
	border: none;
	border-radius: 0;
}

.tjb-tab-pane {
	display: none;
}

.tjb-tab-pane.active {
	display: block;
}

.tjb-registration-form {
	background: #fff;
	padding: 30px;
	border: none;
}

/* Unified Registration Form Styles */
.tjb-unified-registration-form {
	background: #e8f4f8;
	padding: 40px;
	border-radius: 8px;
}

.tjb-form-field {
	margin-bottom: 20px;
}

.tjb-form-field label {
	display: block;
	font-weight: 600;
	color: #333;
	margin-bottom: 8px;
}

.tjb-form-field .required {
	color: #d9534f;
}

.tjb-input {
	width: 100%;
	padding: 16px 18px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 16px;
	transition: border-color 0.2s ease;
	min-height: 52px;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.tjb-input:focus {
	outline: none;
	border-color: #447AB3;
	box-shadow: 0 0 0 3px rgba(68, 122, 179, 0.1);
}

/* Form Row for Two Columns */
.tjb-form-row {
	display: flex;
	gap: 20px;
	margin-bottom: 0;
}

.tjb-form-row-2 .tjb-form-field {
	flex: 1;
	margin-bottom: 20px;
}

/* Select Dropdown */
.tjb-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 18px center;
	padding-right: 45px;
	cursor: pointer;
}

/* Checkbox Styles */
.tjb-form-checkbox {
	margin-bottom: 30px;
}

.tjb-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	cursor: pointer;
	font-weight: normal;
}

.tjb-checkbox-label .tjb-checkbox {
	width: 20px;
	height: 20px;
	margin-top: 2px;
	flex-shrink: 0;
	cursor: pointer;
}

.tjb-checkbox-label span {
	line-height: 1.5;
	color: #333;
}

.tjb-checkbox-label a {
	color: #447AB3;
	text-decoration: underline;
}

.tjb-checkbox-label a:hover {
	text-decoration: none;
}

/* Submit Button */
.tjb-form-submit {
	margin-bottom: 0;
	text-align: center;
}

.tjb-register-button {
	padding: 14px 40px;
	background: #447AB3;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	width: auto;
	display: inline-block;
}

.tjb-register-button:hover {
	background: #356a9a;
	color: #fff;
}

.tjb-form .button-primary {
	padding: 12px 30px;
	font-size: 1.1em;
	width: 100%;
}

.tjb-message {
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
}

.tjb-message-info {
	background: #d1ecf1;
	border-left: 4px solid #0c5460;
	color: #0c5460;
}

.tjb-message-warning {
	background: #fff3cd;
	border-left: 4px solid #856404;
	color: #856404;
}

.tjb-message p {
	margin: 0 0 10px 0;
}

.tjb-message p:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.tjb-registration-wrapper {
		padding: 20px 15px;
	}
	
	.tjb-unified-registration-form {
		padding: 30px 20px;
	}
	
	.tjb-form-row {
		flex-direction: column;
		gap: 0;
	}
	
	.tjb-registration-tabs li {
		padding: 12px 10px;
		font-size: 0.9em;
	}
	
	.tjb-registration-tab-content,
	.tjb-registration-form {
		padding: 20px;
	}
	
	.tjb-register-button {
		width: 100%;
	}
}

