/* فرم ثبت‌نام فیزیوفیت */

.pf-wrap {
	--pf-ink: #17212e;
	--pf-muted: #62707f;
	--pf-line: #dde3ea;
	--pf-soft: #f4f7fa;
	--pf-band: #eef2f6;
	--pf-accent: #1f3a5f;
	--pf-accent-soft: #eaf0f7;
	--pf-green: #1d7a53;
	--pf-danger: #b3261e;
	--pf-bg: #ffffff;
	--pf-radius: 10px;
	direction: rtl;
	text-align: right;
	color: var(--pf-ink);
	font-size: 15px;
	line-height: 1.85;
	max-width: 880px;
	margin: 0 auto;
}

.pf-wrap *,
.pf-wrap *::before,
.pf-wrap *::after {
	box-sizing: border-box;
}

.pf-sheet {
	background: var(--pf-bg);
	border: 1px solid var(--pf-line);
	border-radius: 14px;
	padding: 20px 22px 24px;
	box-shadow: 0 4px 20px rgba(16, 24, 40, 0.05);
}

/* سربرگ */
.pf-sheet-head {
	display: flex;
	align-items: center;
	gap: 12px;
	border-bottom: 2px solid var(--pf-accent);
	padding-bottom: 12px;
	margin-bottom: 14px;
	flex-wrap: wrap;
}

.pf-logo {
	height: 44px;
	width: auto;
}

.pf-head-text {
	flex: 1;
	min-width: 180px;
}

.pf-club-name {
	margin: 0;
	font-size: 21px;
	font-weight: 800;
	color: var(--pf-accent);
	line-height: 1.5;
}

.pf-subtitle {
	margin: 0;
	font-size: 13.5px;
	color: var(--pf-muted);
}

.pf-head-date {
	font-size: 13px;
	color: var(--pf-muted);
	background: var(--pf-soft);
	border-radius: 20px;
	padding: 3px 14px;
	white-space: nowrap;
}

.pf-intro {
	background: var(--pf-soft);
	border-right: 3px solid var(--pf-accent);
	padding: 9px 12px;
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--pf-muted);
	border-radius: 0 6px 6px 0;
}

/* عناوین بخش */
.pf-section-title {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 22px 0 12px;
	padding: 0 0 8px;
	font-size: 16px;
	font-weight: 800;
	border-bottom: 1px solid var(--pf-line);
	color: var(--pf-ink);
}

.pf-section-title small {
	font-weight: 400;
	color: var(--pf-muted);
	font-size: 13px;
}

.pf-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--pf-accent);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	flex: none;
}

/* فیلدها */
.pf-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 16px;
}

.pf-field.pf-full {
	grid-column: 1 / -1;
}

.pf-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 13.5px;
	color: #33404f;
}

.pf-field label small {
	font-weight: 400;
	color: var(--pf-muted);
}

.pf-req {
	color: var(--pf-danger);
}

.pf-wrap input[type="text"],
.pf-wrap input[type="tel"],
.pf-wrap input[type="email"],
.pf-wrap textarea,
.pf-wrap select {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--pf-line);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 14.5px;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.pf-wrap input:focus,
.pf-wrap textarea:focus,
.pf-wrap select:focus {
	outline: none;
	border-color: var(--pf-accent);
	box-shadow: 0 0 0 3px rgba(31, 58, 95, 0.12);
}

.pf-wrap input[dir="ltr"] {
	text-align: left;
}

.pf-select {
	height: 44px;
	font-weight: 600;
}

.pf-hint {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--pf-muted);
	background: var(--pf-accent-soft);
	border-radius: 8px;
	padding: 8px 12px;
}

.pf-hint a {
	color: var(--pf-accent);
	font-weight: 700;
}

/* خدمات — گرید فشرده */
.pf-services-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.pf-service {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	padding: 11px 13px;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.pf-service:hover {
	border-color: #b6c4d5;
	background: #fcfdfe;
}

.pf-service input[type="radio"] {
	margin: 5px 0 0;
	width: 17px;
	height: 17px;
	accent-color: var(--pf-accent);
	flex: none;
}

.pf-service:has(input:checked) {
	border-color: var(--pf-accent);
	background: var(--pf-accent-soft);
	box-shadow: inset 0 0 0 1px var(--pf-accent);
}

.pf-service-full {
	opacity: 0.5;
	cursor: not-allowed;
}

.pf-service-body {
	display: block;
	flex: 1;
	min-width: 0;
}

.pf-service-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 8px;
}

.pf-service-title {
	font-weight: 700;
	font-size: 15px;
	line-height: 1.6;
}

.pf-service-price {
	font-weight: 800;
	color: var(--pf-green);
	font-size: 14px;
	white-space: nowrap;
}

.pf-service-desc {
	display: block;
	color: var(--pf-muted);
	font-size: 12.5px;
	line-height: 1.7;
	margin-top: 1px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.pf-service-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 6px;
}

.pf-chip {
	display: inline-block;
	background: var(--pf-band);
	color: var(--pf-muted);
	border-radius: 20px;
	padding: 1px 9px;
	font-size: 12px;
	line-height: 1.8;
}

.pf-chip-ok {
	background: #e6f4ec;
	color: var(--pf-green);
}

.pf-chip-danger {
	background: #fdecea;
	color: var(--pf-danger);
}

/* کارت خلاصه کلاس انتخاب‌شده (حالت کشویی) */
.pf-picked {
	margin-top: 10px;
	border: 1px solid var(--pf-accent);
	background: var(--pf-accent-soft);
	border-radius: var(--pf-radius);
	padding: 11px 14px;
}

.pf-picked-title {
	font-weight: 800;
	font-size: 15px;
}

.pf-picked-desc {
	color: var(--pf-muted);
	font-size: 13px;
	margin-top: 2px;
}

/* جعبه حساب کاربری */
.pf-account-box {
	margin-top: 14px;
	border: 1px solid #cfdbe9;
	background: var(--pf-accent-soft);
	border-radius: var(--pf-radius);
	padding: 13px 15px;
}

.pf-account-head {
	font-weight: 800;
	font-size: 14.5px;
	color: var(--pf-accent);
	margin-bottom: 4px;
}

.pf-account-text {
	margin: 0 0 10px;
	font-size: 13.5px;
	color: #405061;
	line-height: 1.9;
}

.pf-account-links {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	font-size: 13px;
	padding-top: 2px;
}

.pf-account-links a {
	color: var(--pf-accent);
	font-weight: 700;
}

/* فرم‌های ورود و بازیابی رمز */
.pf-auth {
	max-width: 440px;
}

.pf-auth-form {
	background: #fff;
	border: 1px solid var(--pf-line);
	border-radius: 14px;
	padding: 22px 22px 24px;
	box-shadow: 0 4px 20px rgba(16, 24, 40, 0.05);
	display: grid;
	gap: 12px;
}

.pf-auth-title {
	margin: 0;
	font-size: 19px;
	font-weight: 800;
	color: var(--pf-accent);
	text-align: center;
}

.pf-auth-lead {
	margin: 0 0 4px;
	font-size: 13.5px;
	color: var(--pf-muted);
	text-align: center;
	line-height: 1.9;
}

.pf-wrap input[type="password"] {
	width: 100%;
	padding: 9px 11px;
	border: 1px solid var(--pf-line);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	font-size: 14.5px;
	direction: ltr;
	text-align: left;
}

.pf-field-hint {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--pf-muted);
	line-height: 1.8;
}

.pf-btn-block {
	width: 100%;
	min-width: 0;
}

.pf-auth-links {
	margin: 2px 0 0;
	text-align: center;
	font-size: 13px;
	color: var(--pf-muted);
	display: flex;
	gap: 8px;
	justify-content: center;
	flex-wrap: wrap;
}

.pf-auth-links a {
	color: var(--pf-accent);
	font-weight: 600;
}

/* اطلاعات پزشکی */
.pf-med-row {
	display: grid;
	grid-template-columns: auto minmax(200px, 1fr);
	gap: 10px 18px;
	align-items: center;
}

.pf-checkrow {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.pf-check {
	display: inline-flex;
	align-items: flex-start;
	gap: 7px;
	cursor: pointer;
	font-weight: 500;
	font-size: 14px;
}

.pf-check input[type="checkbox"] {
	width: 17px;
	height: 17px;
	margin: 4px 0 0;
	accent-color: var(--pf-accent);
	flex: none;
}

/* قوانین جمع‌شونده */
.pf-details {
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	background: #fff;
	overflow: hidden;
}

.pf-details > summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	padding: 11px 14px;
	background: var(--pf-soft);
	font-weight: 700;
	font-size: 14.5px;
	list-style: none;
	user-select: none;
}

.pf-details > summary::-webkit-details-marker {
	display: none;
}

.pf-details > summary::after {
	content: "▾";
	color: var(--pf-accent);
	font-size: 15px;
	transition: transform 0.2s;
}

.pf-details[open] > summary::after {
	transform: rotate(180deg);
}

.pf-details-hint {
	font-weight: 400;
	font-size: 12.5px;
	color: var(--pf-muted);
	margin-right: auto;
}

.pf-details-body {
	padding: 14px 16px;
	max-height: 340px;
	overflow-y: auto;
}

.pf-details-open {
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	max-height: none;
}

.pf-mini-title {
	margin: 0 0 8px;
	font-size: 14.5px;
	font-weight: 800;
	color: var(--pf-accent);
}

.pf-terms {
	margin: 0 0 16px;
	padding-right: 20px;
	font-size: 13.5px;
	color: #3a4753;
}

.pf-terms li {
	margin-bottom: 5px;
}

.pf-commitment {
	background: var(--pf-soft);
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 13.5px;
	text-align: justify;
}

.pf-commitment p {
	margin: 0 0 9px;
}

.pf-commitment p:last-child {
	margin-bottom: 0;
}

.pf-commitment-lead {
	font-weight: 600;
}

.pf-fill {
	display: inline-block;
	min-width: 120px;
	border-bottom: 1px dotted #9aa4b0;
	text-align: center;
	color: var(--pf-accent);
	font-weight: 700;
}

/* پذیرش و امضا */
.pf-consent {
	display: grid;
	grid-template-columns: 1fr minmax(260px, 380px);
	gap: 14px 20px;
	align-items: start;
	margin-top: 14px;
}

.pf-terms-check {
	font-weight: 600;
	font-size: 14.5px;
	background: var(--pf-soft);
	border-radius: 8px;
	padding: 11px 13px;
}

.pf-signature-box {
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
	padding: 10px 12px;
}

.pf-sig-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.pf-sig-label {
	font-weight: 700;
	font-size: 14px;
}

.pf-signature-pad {
	width: 100%;
	height: 130px;
	border: 1px dashed #a7b2be;
	border-radius: 8px;
	background: #fff;
	touch-action: none;
	display: block;
	cursor: crosshair;
}

.pf-sig-note {
	display: block;
	margin-top: 5px;
	color: var(--pf-muted);
	font-size: 12.5px;
}

/* نوار پایانی */
.pf-footer-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 20px;
	padding: 14px 16px;
	background: var(--pf-soft);
	border: 1px solid var(--pf-line);
	border-radius: var(--pf-radius);
}

.pf-summary {
	display: flex;
	flex-direction: column;
	line-height: 1.6;
}

.pf-summary-label {
	font-size: 12.5px;
	color: var(--pf-muted);
}

.pf-summary strong {
	color: var(--pf-green);
	font-size: 20px;
	font-weight: 800;
}

.pf-btn {
	display: inline-block;
	border: none;
	border-radius: 8px;
	padding: 12px 26px;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: opacity 0.15s, transform 0.05s;
}

.pf-btn:active {
	transform: translateY(1px);
}

.pf-btn-primary {
	background: var(--pf-accent);
	color: #fff;
	font-size: 15.5px;
	min-width: 240px;
}

.pf-btn-primary:hover {
	opacity: 0.92;
}

.pf-btn-primary[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.pf-btn-ghost {
	background: #fff;
	border: 1px solid var(--pf-line);
	color: var(--pf-muted);
	padding: 4px 12px;
	font-size: 12.5px;
	font-weight: 600;
}

.pf-note {
	text-align: center;
	color: var(--pf-muted);
	font-size: 13px;
	margin: 10px 0 0;
}

/* پیام‌ها */
.pf-alert {
	border-radius: var(--pf-radius);
	padding: 13px 16px;
	margin-bottom: 16px;
	font-size: 14.5px;
}

.pf-alert ul {
	margin: 8px 0 0;
	padding-right: 20px;
}

.pf-alert a {
	font-weight: 700;
	text-decoration: underline;
}

.pf-alert-error {
	background: #fdecea;
	border: 1px solid #f5c2bd;
	color: #8c1d18;
}

.pf-alert-warning {
	background: #fff8e6;
	border: 1px solid #f2dfae;
	color: #7a5a10;
}

.pf-alert-success {
	background: #e7f5ed;
	border: 1px solid #b8dfc9;
	color: #1d6b47;
}

.pf-alert-info {
	background: #eef3fa;
	border: 1px solid #c8d8ee;
	color: #234a7d;
}

/* تله ربات — پنهان‌سازی بدون ایجاد اسکرول افقی در چیدمان راست‌چین */
.pf-hp {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* کارت وضعیت */
.pf-status-card {
	border: 1px solid var(--pf-line);
	border-radius: 12px;
	padding: 18px 20px;
	background: #fff;
}

.pf-status-card h3 {
	margin: 0 0 12px;
	font-size: 18px;
}

.pf-kv {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 6px 12px;
	font-size: 14.5px;
}

.pf-kv dt {
	color: var(--pf-muted);
	font-weight: 600;
}

.pf-kv dd {
	margin: 0;
}

.pf-badge {
	display: inline-block;
	border-radius: 20px;
	padding: 2px 12px;
	font-size: 13px;
	font-weight: 700;
}

.pf-badge-paid {
	background: #e6f4ec;
	color: var(--pf-green);
}

.pf-badge-unpaid {
	background: #fdecea;
	color: #8c1d18;
}

.pf-badge-pending {
	background: #fff8e6;
	color: #7a5a10;
}

/* فهرست خدمات (شورت‌کد جدا) */
.pf-service-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 12px;
}

.pf-service-card {
	border: 1px solid var(--pf-line);
	border-radius: 12px;
	padding: 15px;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.pf-service-card h4 {
	margin: 0 0 6px;
	font-size: 16px;
}

.pf-service-card .pf-service-desc {
	white-space: normal;
}

.pf-service-card .pf-service-price {
	margin-top: auto;
	padding-top: 10px;
	font-size: 17px;
}

.pf-service-card .pf-btn {
	margin-top: 10px;
	text-align: center;
	text-decoration: none;
	background: var(--pf-accent);
	color: #fff;
	padding: 9px 16px;
	font-size: 14.5px;
}

/* واکنش‌گرا */
@media (max-width: 900px) {
	.pf-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pf-consent {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.pf-wrap {
		font-size: 14.5px;
	}

	.pf-grid,
	.pf-services-grid {
		grid-template-columns: 1fr;
	}

	.pf-med-row {
		grid-template-columns: 1fr;
	}

	.pf-sheet {
		padding: 15px 13px 20px;
		border-radius: 10px;
	}

	.pf-club-name {
		font-size: 18px;
	}

	.pf-head-date {
		display: none;
	}

	.pf-service-desc {
		white-space: normal;
	}

	.pf-footer-bar {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
		position: sticky;
		bottom: 0;
		z-index: 5;
		box-shadow: 0 -4px 14px rgba(16, 24, 40, 0.08);
	}

	.pf-summary {
		align-items: center;
	}

	.pf-btn-primary {
		width: 100%;
		min-width: 0;
	}

	.pf-kv {
		grid-template-columns: 1fr;
	}
}
