﻿:root {
	--primary: #1565C0;
	--primary-lt: #1976D2;
	--primary-dk: #0D47A1;
	--accent: #26C6DA;
	--success: #43A047;
	--danger: #E53935;
	--bg: linear-gradient(135deg,#EEF2FF 0%,#E3F2FD 55%,#E8EAF6 100%);
	--shadow: 0 20px 60px rgba(21,101,192,.14);
}

* {
	box-sizing: border-box;
}

body {
	font-family: 'Poppins',sans-serif;
	background: var(--bg);
	min-height: 100vh;
	margin: 0;
}

/* ── HEADER ── */
.clinic-header {
	background: #fff;
	box-shadow: 0 2px 20px rgba(0,0,0,.07);
	padding: 10px 20px;
	position: sticky;
	top: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

	.clinic-header img {
		height: 42px;
	}

.clinic-name {
	font-size: .72rem;
	font-weight: 600;
	color: #6B7280;
	letter-spacing: .3px;
}

/* ── PROGRESS STEPPER ── */
.step-bar {
	background: #fff;
	padding: 10px 16px;
	border-bottom: 1px solid #F3F4F6;
	overflow-x: auto;
}

.steps-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: max-content;
	margin: 0 auto;
	gap: 0;
}

.s-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.s-dot {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	font-weight: 700;
	background: #E8EAF6;
	color: #9E9E9E;
	transition: all .3s;
	flex-shrink: 0;
}

.s-item.done .s-dot {
	background: var(--success);
	color: #fff;
}

.s-item.active .s-dot {
	background: var(--primary);
	color: #fff;
	box-shadow: 0 4px 14px rgba(21,101,192,.45);
	transform: scale(1.1);
}

.s-label {
	font-size: 9px;
	font-weight: 600;
	color: #BDBDBD;
	white-space: nowrap;
}

.s-item.active .s-label {
	color: var(--primary);
}

.s-item.done .s-label {
	color: var(--success);
}

.s-line {
	width: 28px;
	height: 2px;
	background: #E8EAF6;
	flex-shrink: 0;
}

.s-item.done ~ .s-line,
.s-item.done + .s-item .s-line {
	background: var(--success);
}

/* ── MAIN WRAPPER ── */
.main-wrap {
	padding: 28px 14px 50px;
	max-width: 600px;
	margin: 0 auto;
}

/* ── CARD ── */
.wdc {
	background: #fff;
	border-radius: 22px;
	box-shadow: var(--shadow);
	overflow: hidden;
	animation: slideUp .45s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes slideUp {
	from {
		transform: translateY(28px);
		opacity: 0
	}

	to {
		transform: translateY(0);
		opacity: 1
	}
}

@keyframes fadeIn {
	from {
		opacity: 0
	}

	to {
		opacity: 1
	}
}

.wdc-head {
	background: linear-gradient(135deg,var(--primary-dk) 0%,var(--primary-lt) 100%);
	color: #fff;
	padding: 22px 26px 18px;
}

	.wdc-head h4 {
		margin: 0;
		font-size: 1.05rem;
		font-weight: 700;
	}

	.wdc-head .sub {
		font-size: .78rem;
		opacity: .82;
		margin-top: 3px;
	}

	.wdc-head .step-badge {
		display: inline-block;
		background: rgba(255,255,255,.18);
		border-radius: 20px;
		font-size: .7rem;
		padding: 2px 10px;
		font-weight: 600;
		margin-bottom: 8px;
	}

.wdc-body {
	padding: 26px;
}

/* ── FORM CONTROLS ── */
.f-label {
	font-size: .82rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 5px;
	display: block;
}

.f-ctrl {
	width: 100%;
	border: 2px solid #E5E7EB;
	border-radius: 11px;
	padding: 10px 15px;
	font-size: .88rem;
	font-family: inherit;
	transition: border-color .25s,box-shadow .25s;
	background: #fff;
}

	.f-ctrl:focus {
		border-color: var(--primary);
		box-shadow: 0 0 0 4px rgba(21,101,192,.1);
		outline: none;
	}

/* ── BUTTONS ── */
.btn-wdc {
	width: 100%;
	border: none;
	border-radius: 12px;
	padding: 13px;
	font-family: inherit;
	font-size: .92rem;
	font-weight: 700;
	cursor: pointer;
	transition: all .25s;
}

.btn-primary-wdc {
	background: linear-gradient(135deg,var(--primary-dk),var(--primary-lt));
	color: #fff;
	box-shadow: 0 5px 18px rgba(21,101,192,.35);
}

	.btn-primary-wdc:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 26px rgba(21,101,192,.45);
	}

.btn-secondary-wdc {
	background: #F3F4F6;
	color: #374151;
}

	.btn-secondary-wdc:hover {
		background: #E5E7EB;
	}

.btn-success-wdc {
	background: linear-gradient(135deg,#2E7D32,var(--success));
	color: #fff;
	box-shadow: 0 5px 18px rgba(67,160,71,.35);
}

/* ── ALERTS ── */
.alert-wdc {
	border-radius: 12px;
	padding: 13px 16px;
	font-size: .85rem;
	font-weight: 500;
	margin-bottom: 18px;
	animation: fadeIn .3s ease;
	display: flex;
	align-items: flex-start;
	gap: 9px;
}

.alert-danger-wdc {
	background: #FEF2F2;
	color: #991B1B;
	border-left: 4px solid var(--danger);
}

.alert-success-wdc {
	background: #F0FDF4;
	color: #166534;
	border-left: 4px solid var(--success);
}

.alert-info-wdc {
	background: #EFF6FF;
	color: #1E40AF;
	border-left: 4px solid var(--primary);
}

/* ── LOADING OVERLAY ── */
#wdcLoader {
	position: fixed;
	inset: 0;
	background: rgba(255,255,255,.88);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	backdrop-filter: blur(5px);
}

	#wdcLoader.show {
		display: flex;
	}

.ld-ring {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 5px solid #E0E7FF;
	border-top-color: var(--primary);
	animation: spin .7s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg)
	}
}

.ld-txt {
	font-size: .82rem;
	font-weight: 600;
	color: var(--primary);
	margin-top: 12px;
}

/* ── STAGGER ANIMATION ── */
.f-row {
	animation: slideUp .4s ease-out both;
}

	.f-row:nth-child(1) {
		animation-delay: .08s
	}

	.f-row:nth-child(2) {
		animation-delay: .14s
	}

	.f-row:nth-child(3) {
		animation-delay: .20s
	}

	.f-row:nth-child(4) {
		animation-delay: .26s
	}

	.f-row:nth-child(5) {
		animation-delay: .32s
	}

	.f-row:nth-child(6) {
		animation-delay: .38s
	}

	.f-row:nth-child(7) {
		animation-delay: .44s
	}

	.f-row:nth-child(8) {
		animation-delay: .50s
	}

/* ── CONSENT SCROLL BOX ── */
.consent-scroll {
	max-height: 55vh;
	overflow-y: auto;
	padding: 16px;
	border: 2px solid #E0E7FF;
	border-radius: 14px;
	font-size: .85rem;
	line-height: 1.7;
	text-align: justify;
	scroll-behavior: smooth;
}

	.consent-scroll::-webkit-scrollbar {
		width: 5px;
	}

	.consent-scroll::-webkit-scrollbar-track {
		background: #F1F5F9;
	}

	.consent-scroll::-webkit-scrollbar-thumb {
		background: var(--primary);
		border-radius: 3px;
	}

/* ── RADIO GROUP ── */
.radio-group {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.radio-chip {
	display: flex;
	align-items: center;
	gap: 7px;
	cursor: pointer;
	padding: 8px 16px;
	border: 2px solid #E5E7EB;
	border-radius: 30px;
	font-size: .84rem;
	font-weight: 500;
	transition: all .2s;
}

	.radio-chip input {
		display: none;
	}

	.radio-chip:has(input:checked) {
		border-color: var(--primary);
		background: #EFF6FF;
		color: var(--primary);
	}

/* ── RESPONSIVE ── */
@media(max-width:480px) {
	.main-wrap {
		padding: 16px 10px 36px;
	}

	.wdc-body {
		padding: 18px;
	}

	.s-label {
		display: none;
	}
}

