/* ==========================================================================
   پتینا — ویزیت آنلاین
   طراحی ریسپانسیو، سبک و هماهنگ با پالت رنگی سایت
   ========================================================================== */

.petina-visit {
	--pv-primary: #7c3aed;
	--pv-primary-dark: #6d28d9;
	--pv-primary-800: #4c1d95;
	--pv-accent: #c6a0f6;
	--pv-ink: #1e1b4b;
	--pv-text: #4b5563;
	--pv-muted: #6b7280;
	--pv-line: #ece7f6;
	--pv-bg-soft: #faf8ff;
	--pv-radius: 20px;
	--pv-shadow: 0 10px 40px rgba(76, 29, 149, 0.10);

	max-width: 1120px;
	margin: 0 auto;
	padding: 8px 16px 40px;
	color: var(--pv-text);
	font-family: inherit;
	line-height: 1.9;
}

.petina-visit *,
.petina-visit *::before,
.petina-visit *::after {
	box-sizing: border-box;
}

/* ---------- بخش Hero ---------- */
.pv-hero {
	display: grid;
	grid-template-columns: 340px 1fr;
	gap: 40px;
	align-items: center;
	background: linear-gradient(135deg, #ffffff 0%, var(--pv-bg-soft) 100%);
	border: 1px solid var(--pv-line);
	border-radius: 28px;
	padding: 36px;
	box-shadow: var(--pv-shadow);
}

.pv-doctor-photo {
	position: relative;
	border-radius: var(--pv-radius);
	overflow: hidden;
	background: linear-gradient(160deg, #efe7ff, #f7f2ff);
	aspect-ratio: 4 / 4.6;
	box-shadow: 0 12px 30px rgba(124, 58, 237, 0.18);
}

.pv-doctor-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pv-online-badge {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-start: 14px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(4px);
	color: #16a34a;
	font-size: 0.8rem;
	font-weight: 700;
	padding: 5px 12px;
	border-radius: 999px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.pv-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #16a34a;
	box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5);
	animation: pv-pulse 1.8s infinite;
}

@keyframes pv-pulse {
	0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
	70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
	100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.pv-eyebrow {
	display: inline-block;
	background: rgba(198, 160, 246, 0.18);
	color: var(--pv-primary-dark);
	font-size: 0.82rem;
	font-weight: 700;
	padding: 5px 14px;
	border-radius: 999px;
	margin-bottom: 14px;
}

.pv-title {
	font-size: clamp(1.6rem, 4vw, 2.3rem);
	font-weight: 900;
	color: var(--pv-ink);
	margin: 0 0 6px;
	line-height: 1.4;
}

.pv-subtitle {
	font-size: 1rem;
	color: var(--pv-primary-dark);
	font-weight: 700;
	margin: 0 0 14px;
}

.pv-bio {
	font-size: 0.94rem;
	color: var(--pv-text);
	margin: 0 0 20px;
	line-height: 2;
}

.pv-credentials {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	display: grid;
	gap: 10px;
}

.pv-credentials li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.95rem;
	color: var(--pv-text);
}

.pv-ic {
	flex: none;
	width: 32px;
	height: 32px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(198, 160, 246, 0.18), rgba(124, 58, 237, 0.10));
	border: 1px solid var(--pv-line);
	border-radius: 9px;
	color: var(--pv-primary);
}

.pv-ic svg {
	width: 17px;
	height: 17px;
	display: block;
}

.pv-hero__cta {
	margin-top: 6px;
}

.pv-cta-note {
	margin: 12px 2px 0;
	font-size: 0.85rem;
	color: var(--pv-muted);
}

/* ---------- دکمه‌ها ---------- */
.pv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-family: inherit;
	font-size: 1.02rem;
	font-weight: 800;
	color: #fff;
	background: linear-gradient(135deg, var(--pv-primary) 0%, var(--pv-primary-800) 100%);
	border: none;
	border-radius: 999px;
	padding: 15px 30px;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
	box-shadow: 0 10px 24px rgba(124, 58, 237, 0.30);
	will-change: transform;
	text-decoration: none;
}

.pv-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(124, 58, 237, 0.38);
	color: #fff;
}

.pv-btn:active { transform: translateY(0); }

.pv-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.pv-btn__price {
	background: rgba(255, 255, 255, 0.22);
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.86rem;
	font-weight: 700;
}

.pv-btn--lg { padding: 17px 44px; font-size: 1.1rem; }
.pv-btn--block { width: 100%; }

/* ---------- عنوان بخش ---------- */
.pv-section-title {
	text-align: center;
	font-size: clamp(1.35rem, 3.5vw, 1.9rem);
	font-weight: 900;
	color: var(--pv-ink);
	margin: 56px 0 10px;
}

.pv-lead {
	max-width: 780px;
	margin: 0 auto 34px;
	text-align: center;
	font-size: 1rem;
	color: var(--pv-text);
}

/* ---------- ویژگی‌ها ---------- */
.pv-features {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.pv-feature {
	background: #fff;
	border: 1px solid var(--pv-line);
	border-radius: var(--pv-radius);
	padding: 24px 20px;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pv-feature:hover {
	transform: translateY(-4px);
	box-shadow: var(--pv-shadow);
	border-color: var(--pv-accent);
}

.pv-feature__icon {
	width: 58px;
	height: 58px;
	margin: 0 auto 14px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(198, 160, 246, 0.2), rgba(124, 58, 237, 0.12));
	border-radius: 16px;
	color: var(--pv-primary);
}

.pv-feature__icon svg {
	width: 28px;
	height: 28px;
	display: block;
}

.pv-feature h3 {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--pv-ink);
	margin: 0 0 8px;
}

.pv-feature p {
	font-size: 0.9rem;
	color: var(--pv-muted);
	margin: 0;
	line-height: 1.8;
}

/* ---------- مراحل ---------- */
.pv-steps__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
	margin-top: 20px;
}

.pv-step {
	position: relative;
	background: var(--pv-bg-soft);
	border: 1px dashed var(--pv-accent);
	border-radius: var(--pv-radius);
	padding: 28px 22px 22px;
	text-align: center;
}

.pv-step__num {
	position: absolute;
	inset-block-start: -18px;
	inset-inline-start: 50%;
	transform: translateX(50%);
	width: 40px;
	height: 40px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, var(--pv-primary), var(--pv-primary-800));
	color: #fff;
	font-weight: 900;
	border-radius: 50%;
	box-shadow: 0 6px 14px rgba(124, 58, 237, 0.35);
}

.pv-step h3 {
	font-size: 1.05rem;
	font-weight: 800;
	color: var(--pv-ink);
	margin: 6px 0 8px;
}

.pv-step p {
	font-size: 0.9rem;
	color: var(--pv-muted);
	margin: 0;
}

.pv-steps__cta {
	text-align: center;
	margin-top: 34px;
}

/* ---------- مودال ---------- */
.pv-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.pv-modal.is-open { display: flex; }

.pv-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(30, 27, 75, 0.55);
	backdrop-filter: blur(3px);
	animation: pv-fade 0.2s ease;
}

.pv-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	background: #fff;
	border-radius: 24px;
	padding: 30px 26px 26px;
	box-shadow: 0 30px 70px rgba(30, 27, 75, 0.35);
	animation: pv-pop 0.25s cubic-bezier(0.22, 1, 0.36, 1);
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

@keyframes pv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pv-pop {
	from { opacity: 0; transform: translateY(16px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.pv-modal__close {
	position: absolute;
	inset-block-start: 14px;
	inset-inline-end: 16px;
	width: 34px;
	height: 34px;
	border: none;
	background: #f3f0fb;
	color: var(--pv-primary-800);
	font-size: 1.5rem;
	line-height: 1;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.15s ease;
}

.pv-modal__close:hover { background: var(--pv-accent); color: #fff; }

.pv-modal__head {
	text-align: center;
	margin-bottom: 20px;
}

.pv-modal__head h2 {
	font-size: 1.3rem;
	font-weight: 900;
	color: var(--pv-ink);
	margin: 0 0 6px;
}

.pv-modal__head p {
	font-size: 0.9rem;
	color: var(--pv-muted);
	margin: 0;
}

/* ---------- فرم ---------- */
.pv-field {
	margin-bottom: 16px;
}

.pv-field label {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--pv-ink);
	margin-bottom: 7px;
}

.pv-field input,
.pv-field select {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--pv-ink);
	background: #fbfafe;
	border: 2px solid var(--pv-line);
	border-radius: 14px;
	outline: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.pv-field input:focus,
.pv-field select:focus {
	border-color: var(--pv-accent);
	box-shadow: 0 0 0 4px rgba(198, 160, 246, 0.22);
}

.pv-field input::placeholder { color: #b6b1c7; }

.pv-select-wrap {
	position: relative;
}

.pv-select-wrap::after {
	content: "";
	position: absolute;
	left: 16px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-left: 2px solid var(--pv-muted);
	border-bottom: 2px solid var(--pv-muted);
	transform: translateY(-70%) rotate(-45deg);
	pointer-events: none;
}

/* فضای کافی سمت چپ برای فلش */
.pv-select-wrap select {
	padding-left: 40px;
}

.pv-field.has-error input,
.pv-field.has-error select {
	border-color: #f43f5e;
	box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.pv-error {
	display: none;
	color: #e11d48;
	font-size: 0.82rem;
	margin-top: 6px;
}

.pv-field.has-error .pv-error { display: block; }

.pv-error--global {
	text-align: center;
	margin: 4px 0 12px;
	font-weight: 600;
}

.pv-error--global.is-visible { display: block; }

.pv-price-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: linear-gradient(135deg, rgba(198, 160, 246, 0.16), rgba(124, 58, 237, 0.08));
	border: 1px solid var(--pv-line);
	border-radius: 14px;
	padding: 14px 18px;
	margin: 4px 0 18px;
}

.pv-price-box span { font-size: 0.92rem; color: var(--pv-text); }
.pv-price-box strong { font-size: 1.2rem; font-weight: 900; color: var(--pv-primary-800); }

/* اسپینر دکمه */
.pv-spinner {
	display: none;
	width: 20px;
	height: 20px;
	border: 2.5px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: pv-spin 0.7s linear infinite;
}

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

.pv-btn.is-loading .pv-submit-text { display: none; }
.pv-btn.is-loading .pv-spinner { display: inline-block; }

.pv-secure-note {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
	font-size: 0.82rem;
	color: var(--pv-muted);
	margin: 14px 0 0;
}

.pv-secure-icon {
	display: inline-flex;
	align-items: center;
	color: #16a34a;
	flex: none;
}

.pv-secure-icon svg {
	width: 14px;
	height: 14px;
	display: block;
}

/* ---------- پیام تشکر پس از پرداخت ---------- */
.petina-visit-thankyou {
	text-align: center;
	background: linear-gradient(135deg, #ffffff, #faf8ff);
	border: 1px solid #ece7f6;
	border-radius: 20px;
	padding: 34px 24px;
	box-shadow: 0 10px 40px rgba(76, 29, 149, 0.10);
}

.pv-ty-icon {
	display: inline-grid;
	place-items: center;
	width: 64px;
	height: 64px;
	margin-bottom: 14px;
	font-size: 2rem;
	color: #fff;
	background: linear-gradient(135deg, #22c55e, #16a34a);
	border-radius: 50%;
	box-shadow: 0 10px 24px rgba(22, 163, 74, 0.35);
}

.petina-visit-thankyou h3 {
	font-size: 1.4rem;
	font-weight: 900;
	color: #1e1b4b;
	margin: 0 0 8px;
}

.petina-visit-thankyou p {
	font-size: 1.05rem;
	color: #4b5563;
	margin: 0;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
	.pv-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
	.pv-hero {
		grid-template-columns: 1fr;
		gap: 26px;
		padding: 24px 20px;
		text-align: center;
	}
	.pv-doctor-photo {
		max-width: 260px;
		margin: 0 auto;
	}
	.pv-credentials li { justify-content: flex-start; text-align: right; }
	.pv-btn { width: 100%; }
	.pv-btn__price { font-size: 0.8rem; }
	.pv-steps__grid { grid-template-columns: 1fr; gap: 26px; }
	.pv-step__num { transform: translateX(50%); }
}

@media (max-width: 560px) {
	.petina-visit { padding: 4px 12px 32px; }
	.pv-features { grid-template-columns: 1fr; }
	.pv-hero { border-radius: 22px; }

	/* مودال به‌صورت شیت پایین صفحه */
	.pv-modal { padding: 0; align-items: flex-end; }
	.pv-modal__dialog {
		max-width: 100%;
		border-radius: 24px 24px 0 0;
		padding: 26px 20px 22px;
		max-height: 92vh;
		animation: pv-slide-up 0.28s cubic-bezier(0.22, 1, 0.36, 1);
	}
	@keyframes pv-slide-up {
		from { transform: translateY(100%); }
		to { transform: translateY(0); }
	}
}

/* کاهش انیمیشن برای کاربرانی که ترجیح می‌دهند */
@media (prefers-reduced-motion: reduce) {
	.petina-visit *,
	.pv-modal * {
		animation: none !important;
		transition: none !important;
	}
}
