/* ───── Registration Header ───── */

.reg-header {
	background: #fff;
	padding: 20px 0;
	margin-top: 16px;
}

.reg-header-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.reg-back-btn {
	position: absolute;
	left: 0;
	width: 40px;
	height: 40px;
	background: #ECEEF4;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	text-decoration: none;
}

.reg-back-btn:hover {
	background: #dde0e9;
	transform: translateX(-2px);
}

.reg-header-title {
	font-family: 'Montserrat Alternates', sans-serif;
	font-weight: 800;
	font-size: 36px;
	line-height: 100%;
	letter-spacing: 0.01em;
	text-align: center;
	color: #BC2437;
	margin: 0;
}

@media (max-width: 576px) {
	.reg-header-title {
		font-size: 28px;
	}
}

/* ───── Registration: Multi-step form ───── */

.registration-page {
	min-height: calc(100vh - 429px);
	display: flex;
	align-items: center;
	padding: 40px 0;
	background-color: #fff;
}

.registration-page > .container {
	width: 100%;
}

/* Wrapper */
.reg-wrapper {
	max-width: 440px;
	margin: 0 auto;
}

/* ── Progress indicator ── */
.reg-progress {
	margin-bottom: 50px;
}

.reg-progress-text {
	font-size: 14px;
	color: #6B6B6B;
	margin-bottom: 24px;
	font-weight: 500;
	text-align: center;
}

.reg-progress-text strong {
	color: var(--red-primary);
	font-weight: 700;
}

/* Track: holds the line + nodes */
.reg-progress-track {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	position: relative;
}

/* Background line sits behind circles, vertically centred on circles */
.reg-progress-track-line {
	position: absolute;
	top: 20px;               /* half of circle height (40/2) */
	left: 20px;              /* half of first circle */
	right: 20px;             /* half of last circle */
	height: 4px;
	background: #E5E5E5;
	border-radius: 2px;
	transform: translateY(-50%);
}

.reg-progress-track-fill {
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, #BC2437 0%, #E63946 100%);
	border-radius: 2px;
	transition: width 0.4s ease;
}

/* Each node: circle + label stacked */
.reg-progress-node {
	display: flex;
	flex-direction: column;
	align-items: center;
	position: relative;
	z-index: 2;
	flex: 0 0 auto;
}

.reg-progress-circle {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #E1E4EB;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.reg-progress-circle span {
	font-size: 16px;
	font-weight: 700;
	color: #B5B8C0;
	line-height: 1;
	transition: color 0.3s ease;
}

.reg-progress-node.active .reg-progress-circle {
	background: linear-gradient(135deg, #BC2437 0%, #E63946 100%);
	box-shadow: 0 2px 8px rgba(188, 36, 55, 0.3);
}

.reg-progress-node.active .reg-progress-circle span {
	color: #fff;
}

.reg-progress-node.done .reg-progress-circle {
	background: #BC2437;
}

.reg-progress-node.done .reg-progress-circle span {
	color: #fff;
}

.reg-progress-label {
	font-size: 11px;
	color: #ACACAC;
	font-weight: 500;
	text-align: center;
	margin-top: 8px;
	white-space: nowrap;
}

.reg-progress-node.active .reg-progress-label {
	color: var(--red-primary);
	font-weight: 700;
}

.reg-progress-node.done .reg-progress-label {
	color: #6B6B6B;
}

/* ── Titles ── */
.reg-title {
	font-size: 24px;
	margin-bottom: 24px;
	text-align: center;
	color: var(--dark);
	line-height: 1.3;
}

.reg-subtitle {
	font-size: 14px;
	color: #6B6B6B;
	text-align: left;
	margin-bottom: 12px;
	line-height: 1.4;
}

@media (max-width: 576px) {
	.reg-title {
		font-size: 20px;
	}

	.reg-progress-text {
		font-size: 12px;
	}

	.reg-progress-circle {
		width: 32px;
		height: 32px;
	}

	.reg-progress-circle span {
		font-size: 13px;
	}

	.reg-progress-track-line {
		top: 16px;
		left: 16px;
		right: 16px;
	}

	.reg-progress-label {
		font-size: 10px;
	}
}

/* ── Inputs ── */
.reg-input-group {
	margin-bottom: 16px;
}

.reg-input {
	width: 100%;
	height: 52px;
	padding: 0 20px;
	border: 1px solid #D5D4D9 !important;
	border-radius: 10px;
	font-size: 15px;
	color: var(--dark);
	background: #fff;
	transition: border-color 0.2s;
	outline: none;
	box-sizing: border-box;
}

.reg-input::placeholder {
	color: #bbb;
}

.reg-input:focus {
	border: 1px solid #D5D4D9 !important;
}

.reg-textarea {
	height: auto;
	padding: 14px 20px;
	resize: none;
}

/* ── Date input with custom icon ── */
.reg-date-wrap {
	position: relative;
}

.reg-date-wrap .reg-input {
	padding-right: 44px;
}

.reg-date-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	display: flex;
	align-items: center;
}

/* Hide native date picker icon */
.reg-date-wrap input[type="date"]::-webkit-calendar-picker-indicator {
	opacity: 0;
	position: absolute;
	right: 0;
	width: 44px;
	height: 100%;
	cursor: pointer;
}

/* ── Form groups ── */
.reg-form-group {
	margin-bottom: 16px;
}

.reg-label {
	display: block;
	font-size: 13px;
	color: var(--dark-opacity);
	margin-bottom: 6px;
	padding-left: 4px;
}

/* ── Two-column row ── */
.reg-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

/* ── Buttons ── */
.reg-btn {
	height: 52px;
	font-size: 15px;
	border-radius: 16px;
	margin-top: 8px;
}

.reg-btn:disabled,
.reg-btn.disabled {
	background: #E1E4EB !important;
	color: #B5B8C0 !important;
	border-color: #E1E4EB !important;
	cursor: not-allowed;
	opacity: 1;
}

.btn-link {
	display: block;
	width: 100%;
	text-align: center;
	background: none;
	border: none;
	color: var(--red-primary);
	font-size: 14px;
	padding: 12px 0;
	cursor: pointer;
	transition: opacity 0.2s;
}

.btn-link:hover {
	opacity: 0.7;
}

/* ── Code inputs ── */
.reg-code-label {
	font-size: 14px;
	color: var(--dark);
	margin-bottom: 16px;
	text-align: center;
}

.reg-code-inputs {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-bottom: 20px;
}

.code-digit {
	width: 74px;
	height: 74px;
	border: none;
	border-radius: 12px;
	text-align: center;
	font-size: 28px;
	font-weight: 700;
	color: var(--dark);
	outline: none;
	transition: background-color 0.2s;
	caret-color: var(--red-primary);
	background: #F9FAFC;
	box-sizing: border-box;
}

.code-digit:focus {
	background: #F0F1F6;
}

/* ── Resend ── */
.reg-resend {
	text-align: center;
	margin-top: 16px;
}

.text-dark-opacity {
	color: var(--dark-opacity);
	font-size: 13px;
}

.reg-resend-email {
	margin-top: 4px;
}

/* ── Switch toggle ── */
.reg-switch-group {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	padding: 14px 0;
}

.reg-switch-label {
	flex: 1;
	font-size: 14px;
	color: var(--dark);
	line-height: 1.4;
}

.reg-switch {
	position: relative;
	width: 48px;
	height: 28px;
	flex-shrink: 0;
}

.reg-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.reg-switch-slider {
	position: absolute;
	inset: 0;
	background: #ddd;
	border-radius: 28px;
	cursor: pointer;
	transition: background 0.3s;
}

.reg-switch-slider::before {
	content: '';
	position: absolute;
	width: 22px;
	height: 22px;
	left: 3px;
	bottom: 3px;
	background: #fff;
	border-radius: 50%;
	transition: transform 0.3s;
	box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.reg-switch input:checked + .reg-switch-slider {
	background: var(--red-primary);
}

.reg-switch input:checked + .reg-switch-slider::before {
	transform: translateX(20px);
}

/* ── Required asterisk ── */
.req {
	color: var(--red-primary);
}

/* ── Privacy link ── */
.reg-privacy-link {
	color: var(--dark);
	text-decoration: underline;
	font-weight: 600;
}

/* ── Tooltip ── */
.reg-tooltip-wrap {
	position: relative;
	flex-shrink: 0;
	display: flex;
	align-items: center;
}

.reg-tooltip-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 1.5px solid #646869;
	color: #646869;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
}

.reg-tooltip-text {
	display: none;
	position: absolute;
	bottom: calc(100% + 8px);
	right: -4px;
	width: 220px;
	padding: 10px 12px;
	background: #2A2D32;
	color: #FFFFFF;
	font-size: 13px;
	line-height: 1.4;
	border-radius: 8px;
	z-index: 10;
	pointer-events: none;
}

.reg-tooltip-text::after {
	content: '';
	position: absolute;
	top: 100%;
	right: 10px;
	border: 6px solid transparent;
	border-top-color: #2A2D32;
}

.reg-tooltip-wrap:hover .reg-tooltip-text {
	display: block;
}

/* ── Checkbox row (with tooltip) ── */
.reg-checkbox-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.reg-checkbox-row .reg-checkbox {
	flex: 1;
}

/* ── Checkbox ── */
.reg-checkbox-group {
	margin-bottom: 12px;
}

.reg-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--dark);
	line-height: 1.4;
	cursor: pointer;
	position: relative;
	padding-left: 32px;
}

.reg-checkbox input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.reg-checkmark {
	position: absolute;
	left: 0;
	top: 1px;
	width: 20px;
	height: 20px;
	border: 1.5px solid #ccc;
	border-radius: 6px;
	background: #fff;
	transition: all 0.2s;
	flex-shrink: 0;
}

.reg-checkmark::after {
	content: '';
	display: none;
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.reg-checkbox input:checked ~ .reg-checkmark {
	background: var(--red-primary);
	border-color: var(--red-primary);
}

.reg-checkbox input:checked ~ .reg-checkmark::after {
	display: block;
}

/* ── Error message ── */
.reg-error {
	background: #FFF0F0;
	color: var(--red-primary);
	font-size: 13px;
	padding: 10px 16px;
	border-radius: 12px;
	margin-top: 12px;
	text-align: center;
}

/* ── Success message ── */
.reg-success-msg {
	background: #F0FFF4;
	color: #15803D;
	font-size: 14px;
	padding: 12px 16px;
	border-radius: 12px;
	margin-bottom: 20px;
	text-align: center;
}

/* ── Email sent ── */
.reg-email-sent {
	text-align: center;
}

.reg-email-icon {
	font-size: 48px;
	margin-bottom: 16px;
}

/* ── Complete ── */
.reg-complete {
	text-align: center;
	padding-top: 20px;
}

.reg-complete-icon {
	font-size: 56px;
	margin-bottom: 16px;
}

/* ── Skip link ── */
.reg-skip {
	margin-top: 4px;
	color: var(--dark-opacity);
}

/* ── Spinner ── */
.reg-spinner {
	display: inline-block;
	width: 20px;
	height: 20px;
	border: 2.5px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: reg-spin 0.6s linear infinite;
	vertical-align: middle;
}

@keyframes reg-spin {
	to { transform: rotate(360deg); }
}

/* ── Responsive ── */
@media (max-width: 480px) {
	.registration-page {
		padding: 24px 0 40px;
	}

	.reg-wrapper {
		padding: 0 8px;
	}

	.reg-title {
		font-size: 20px;
	}

	.code-digit {
		width: 48px;
		height: 48px;
		font-size: 20px;
	}

	.reg-code-inputs {
		gap: 6px;
	}

	.reg-dot {
		width: 32px;
		height: 32px;
		font-size: 13px;
	}

	.reg-line {
		max-width: 40px;
	}
}
