/* Registration Form Styles */

/* ===== LAYOUT ===== */
.registerLayout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.registerLayout .loginFormWrapper {
	flex: 1;
	min-width: 0;
}

/* ===== SUMMARY PANEL ===== */
.summary-panel {
	width: 240px;
	flex-shrink: 0;
	background: #f4f5f7;
	border-radius: 12px;
	padding: 20px;
	font-size: 13px;
	position: sticky;
	top: 20px;
	height: 100%;
	min-height: 400px;
	display: flex;
	flex-direction: column;
}

.summary-header {
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid #e0e0e0;
}

.summary-title {
	font-size: 14px;
	font-weight: 700;
	color: #222;
	letter-spacing: 0.3px;
}

.summary-steps {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #e0e0e0;
}

.summary-step-indicator {
	display: flex;
	align-items: center;
	gap: 10px;
}

.summary-step-dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
}

.summary-step-indicator.done .summary-step-dot {
	background: #007bff;
	color: #fff;
}

.summary-step-indicator.current .summary-step-dot {
	background: #007bff;
	color: #fff;
	box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
}

.summary-step-indicator.upcoming .summary-step-dot {
	background: #e0e0e0;
	color: #999;
}

.summary-step-name {
	font-size: 12px;
	font-weight: 600;
	color: #555;
}

.summary-step-indicator.current .summary-step-name {
	color: #007bff;
}

.summary-step-indicator.done .summary-step-name {
	color: #333;
}

.summary-step-indicator.upcoming .summary-step-name {
	color: #aaa;
}

.summary-data {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.summary-section {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.summary-section-title {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #999;
	font-weight: 700;
	margin-bottom: 2px;
}

.summary-row {
	display: flex;
	flex-direction: column;
	gap: 1px;
}

.summary-key {
	font-size: 11px;
	color: #999;
}

.summary-value {
	font-size: 13px;
	color: #222;
	font-weight: 500;
	word-break: break-word;
}

.summary-empty {
	font-size: 12px;
	color: #aaa;
	margin: 0;
	line-height: 1.5;
}

@media (max-width: 768px) {
	.registerLayout {
		flex-direction: column;
	}

	.summary-panel {
		width: 100%;
		position: static;
	}
}

/* ===== PROGRESS BAR ===== */
.progress-container {
	margin-bottom: 40px;
	padding: 25px 0 10px;
}

.progress-bar {
	display: flex;
	align-items: flex-start;
	position: relative;
	max-width: 500px;
	margin: 0 auto;
}

.progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1;
	position: relative;
}

/* Connecting line between steps — drawn behind circles */
.progress-step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 20px;
	left: 50%;
	width: 100%;
	height: 2px;
	background-color: #dee2e6;
	z-index: 0;
	transition: background-color 0.3s ease;
}

.progress-step.done::after {
	background-color: #007bff;
}

.progress-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-color: #fff;
	border: 2px solid #dee2e6;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 15px;
	color: #adb5bd;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

.progress-circle.active {
	background-color: #007bff;
	border-color: #007bff;
	color: #fff;
}

.progress-circle.done {
	background-color: #007bff;
	border-color: #007bff;
	color: #fff;
}

.progress-label {
	margin-top: 10px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #adb5bd;
	text-align: center;
	font-weight: 600;
	white-space: nowrap;
}

.progress-circle.active ~ .progress-label,
.progress-label.active {
	color: #007bff;
}

/* ===== STEP CONTENT ===== */
.step-content {
	min-height: 260px;
	margin-bottom: 10px;
}

.step-content h2 {
	font-size: 22px;
	font-weight: 700;
	color: #222;
	margin-bottom: 4px;
}

.step-content h3 {
	font-size: 15px;
	font-weight: 600;
	color: #444;
	margin: 20px 0 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.createAccountText {
	font-size: 13px;
	color: #888;
	margin-bottom: 24px;
}

.createAccountText a {
	color: #007bff;
	text-decoration: none;
}

/* ===== ACCOUNT TYPE KNOPPEN ===== */
.account-type-options {
	display: flex;
	gap: 16px;
	margin: 8px 0 0;
}

.account-type-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 24px 20px;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.25s ease;
	flex: 1;
	text-align: center;
	background: #fff;
}

.account-type-option:hover {
	border-color: #007bff;
	background-color: #f0f7ff;
	box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.account-type-option:has(input:checked) {
	border-color: #007bff;
	background-color: #e8f0fe;
	box-shadow: 0 2px 12px rgba(0,123,255,0.15);
}

.account-type-option input[type="radio"] {
	display: none;
}

.radio-label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
}

.account-type-option:has(input:checked) .radio-label {
	color: #007bff;
}

/* ===== FORM VELDEN ===== */
.registerForm {
	width: 100%;
}

.registerForm label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #555;
	margin: 14px 0 5px;
	letter-spacing: 0.2px;
}

.registerForm input[type="email"],
.registerForm input[type="password"],
.registerForm input[type="text"],
.registerForm input[type="tel"],
.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="password"],
.field-group input[type="tel"] {
	width: 100%;
	padding: 11px 14px;
	border: 1.5px solid #dde1e7;
	border-radius: 8px !important;
	font-size: 14px;
	color: #222;
	background: #fafbfc;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	min-height: 44px;
}


.registerForm input[type="email"]:focus,
.registerForm input[type="password"]:focus,
.registerForm input[type="text"]:focus,
.registerForm input[type="tel"]:focus,
.field-group input:focus {
	outline: none;
	border-color: #007bff;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
	border-radius: 8px !important;
}

/* Specific focus rule for telephone field */
input[name="phone"]:focus {
	border-radius: 8px !important;
}

.registerForm input[required],
.field-group input[required] {
	border-left: 3px solid #28a745;
}

.errorMessage {
	display: block;
	color: #dc3545;
	font-size: 11px;
	font-weight: 500;
	margin: 3px 0 0;
	min-height: 16px;
}

/* ===== SECTIONS & FIELD GROUPS ===== */
.fields-section {
	margin-bottom: 20px;
}

.fields-section-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	color: #999;
	margin-bottom: 10px;
	padding-bottom: 6px;
	border-bottom: 1px solid #eee;
}

.field-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-bottom: 4px;
}

.field-group label {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: #555;
}

.required-star {
	color: #dc3545;
	margin-left: 2px;
}

/* ===== GRID VOOR CONTACTVELDEN ===== */
.contactRegisterWrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 20px;
}

.contactRegisterWrapper > div,
.contactRegisterWrapper .field-group {
	display: flex;
	flex-direction: column;
	width: 100% !important;
	box-sizing: border-box;
}

.contactRegisterWrapper .field-group input {
	width: 100% !important;
	box-sizing: border-box;
}

/* Password validation styling */
.password-requirements {
	margin-top: 5px;
	margin-bottom: 10px;
	font-size: 0.85em;
}

.password-requirements .requirement {
	padding: 2px 0;
	color: #666;
}

.password-requirements .requirement.valid {
	color: #6c757d;
}

.password-requirements .requirement.invalid {
	color: #856404;
}

.password-match {
	margin-top: 5px;
	font-size: 0.85em;
	font-weight: 500;
}

.password-match.valid {
	color: #6c757d;
}

.password-match.invalid {
	color: #856404;
}

/* ===== NAVIGATIE KNOPPEN ===== */
.step-navigation {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #eee;
	gap: 12px;
}

.btn-primary,
.btn-secondary {
	padding: 12px 32px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 600;
	border: none;
	transition: all 0.25s ease;
	min-width: 120px;
}

.btn-primary {
	background-color: #007bff;
	color: #fff;
	margin-left: auto;
}

.btn-primary:hover:not(:disabled) {
	background-color: #0062cc;
	box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-primary:disabled {
	background-color: #b0c4de;
	cursor: not-allowed;
	box-shadow: none;
}

.btn-secondary {
	background-color: #fff;
	color: #555;
	border: 1.5px solid #dde1e7;
}

.btn-secondary:hover {
	background-color: #f5f5f5;
	border-color: #aaa;
}

/* Submit als btn-primary */
input[type="submit"].btn-primary {
	background-color: #007bff;
	color: #fff;
	padding: 12px 32px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	border: none;
	cursor: pointer;
	margin-left: auto;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

input[type="submit"].btn-primary:hover {
	background-color: #0062cc;
	box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 600px) {
	.account-type-options {
		flex-direction: column;
	}

	.contactRegisterWrapper {
		grid-template-columns: 1fr;
	}

	.step-navigation {
		flex-direction: column-reverse;
	}

	.btn-primary,
	.btn-secondary,
	input[type="submit"].btn-primary {
		width: 100%;
		margin-left: 0;
	}
}
