/* service.css */

.details
{
	max-width: 1100px;
	margin: 0 auto;
	/* padding: 1.6rem 1.25rem 4rem; */
	display: grid;
	/* grid-template-columns: 1.6fr 0.9fr; */
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr); /* minmax(0, ...) کلید حل مشکل است */
	gap: 1.2rem;
}

.card
{
	background: var(--white);
	border: 1px solid var(--card-border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	min-width: 0; /* اضافه شود */
	overflow: hidden; /* اضافه شود */
}

.card-body
{
	padding: 1.2rem;
}

.service-head
{
	margin-bottom: 1rem;
}

.service-badge
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--primary-light);
	color: #92400e;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 800;
	margin-bottom: 0.8rem;
}

.service-title
{
	font-size: 1.5rem;
	font-weight: 900;
	margin-bottom: 0.5rem;
	color: var(--dark);
}

.service-short
{
	color: var(--slate);
	font-size: 0.95rem;
	padding-bottom: 1rem;
	border-bottom: 1px dashed var(--card-border);
}

.section-title
{
	font-size: 1rem;
	font-weight: 900;
	color: var(--dark);
	margin-bottom: 0.8rem;
}

.field
{
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.field label
{
	font-size: 0.86rem;
	color: var(--dark);
	font-weight: 800;
}

.help
{
	font-size: 0.78rem;
	color: var(--muted);
}

.input
{
	width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 12px;
	padding: 0.85rem 0.9rem;
	outline: none;
	font-size: 0.95rem;
	background: var(--white);
	transition: all 0.2s ease;
}

.input:focus
{
	border-color: var(--primary);
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
}

.side-sticky
{
	position: sticky;
	top: 88px;
	align-self: start;
}

.price-row
{
	border-radius: 14px;
	background: #fffbeb;
	border: 1px solid #fde68a;
	margin-bottom: 0.9rem;
}

.price_pack
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0.9rem 1rem;
}

.price-row strong
{
	font-size: 1.05rem;
}

.price-row span
{
	color: #92400e;
	font-weight: 900;
}

.meta
{
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-bottom: 0.9rem;
}

.meta-item
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	color: var(--slate);
	font-size: 0.9rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid var(--card-border);
	border-radius: 12px;
	background: #fff;
}

.btn-primary
{
	width: 100%;
	border: none;
	border-radius: 14px;
	background: var(--primary);
	color: var(--white);
	font-weight: 900;
	padding: 0.95rem 1rem;
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 1rem;
}

.btn-primary:hover
{
	background: var(--primary-hover);
	box-shadow: var(--shadow-lg);
}

.notice
{
	margin-top: 0.9rem;
	font-size: 0.82rem;
	color: var(--slate);
	line-height: 1.8;
}

.faq details
{
	border: 1px solid var(--card-border);
	border-radius: 14px;
	background: #fff;
	padding: 0.8rem 0.9rem;
	margin-bottom: 0.7rem;
	transition: all 0.2s ease;
}

.faq details[open]
{
	border-color: #cbd5e1;
	box-shadow: var(--shadow-sm);
}

.faq summary
{
	cursor: pointer;
	font-weight: 900;
	color: var(--dark);
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	user-select: none;
}

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

.faq summary span
{
	font-size: 0.9rem;
}

/* آیکون فونت‌آسام در حالت بسته: اشاره به سمت چپ */
.faq-icon
{
	font-size: 0.85rem;
	color: var(--slate);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
	flex-shrink: 0;
}

/* تغییر وضعیت و چرخش انیمیشنی به سمت پایین در حالت باز */
.faq details[open] .faq-icon
{
	transform: rotate(-90deg);
	color: var(--primary);
}

.faq p
{
	margin-top: 0.75rem;
	padding-top: 0.65rem;
	border-top: 1px dashed var(--card-border);
	color: var(--slate);
	font-size: 0.92rem;
	line-height: 1.8;
}

/* توضیحات اختصاصی خدمت */
.service-notes-card
{
	border-color: #e2e8f0;
	background: #f8fafc;
	transition: all 0.2s ease;
}

.service-notes-main
{
	margin-top: 1.2rem;
}

.service-notes-card .section-title
{
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--dark);
	margin-bottom: 0.6rem;
}

.note-title-icon
{
	color: var(--primary);
	font-size: 1rem;
}

.service-notes-content
{
	color: var(--slate);
	font-size: 0.92rem;
	line-height: 1.9;
	text-align: justify;
}

/* بنر راهنمای بالای فرم */
.form-trust-banner
{
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0.8rem 1rem;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
	border-radius: 12px;
	font-size: 0.84rem;
	margin-bottom: 1.5rem;
}

.form-trust-banner i
{
	font-size: 1.1rem;
	color: #15803d;
	flex-shrink: 0;
}

@keyframes blinkDot
{
	from
	{
		opacity: 1;
	}
	to
	{
		opacity: 0.2;
	}
}

/* استایل چک‌لیست اقلام مورد نیاز */
.checklist-card
{
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 1rem 1.1rem;
	margin-bottom: 1.2rem;
}

.checklist-title
{
	display: flex;
	align-items: center;
	gap: 8px;
	color: #0f172a;
	font-size: 0.92rem;
	font-weight: 800;
	margin-bottom: 0.6rem;
}

.checklist-title i
{
	color: #f59e0b;
}

.checklist-items
{
	margin: 0;
	padding-right: 1.4rem;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.checklist-items li
{
	color: #334155;
	font-size: 0.88rem;
	line-height: 2.5;
}

.checklist-items .item-name
{
	font-weight: 700;
}

.checklist-items .item-help
{
	color: #64748b;
	font-size: 0.8rem;
	margin-right: 4px;
}

.checklist-hint
{
	margin-top: 0.75rem;
	padding-top: 0.65rem;
	border-top: 1px dashed #cbd5e1;
	display: flex;
	align-items: center;
	gap: 6px;
	color: #15803d;
	font-size: 0.82rem;
	font-weight: 700;
}

.sub-label
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.88rem;
	font-weight: 800;
	color: #1e293b;
	margin-bottom: 6px;
}

.badge-optional,
.optional-tag
{
	font-size: 0.72rem;
	font-weight: 800;
	background: #f1f5f9;
	color: #64748b;
	padding: 2px 8px;
	border-radius: 6px;
}

.input-card-group
{
	margin-top: 1.5rem;
}

.voice-tip-text
{
	color: #64748b;
	font-size: 0.8rem;
}

/* باکس شناور هزینه و سفارش در موبایل */
.mobile-float-helper
{
	--mobile-float-bottom: 74px;
	--mobile-float-side: 12px;
	--mobile-float-gap: 10px;
	position: fixed;
	left: var(--mobile-float-side);
	right: var(--mobile-float-side);
	bottom: calc(var(--mobile-float-bottom) + var(--mobile-float-gap));
	z-index: 98;
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.mobile-float-helper.is-hidden
{
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(8px);
}

.float-helper-inner
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 10px 8px 8px;
	background: var(--white);
	border: 1px solid #fde68a;
	border-radius: 10px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
	cursor: pointer;
}

.float-helper-price
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
}

.float-helper-label
{
	color: var(--dark);
	font-size: 0.82rem;
	font-weight: 800;
}

.float-helper-amount
{
	color: #92400e;
	direction: rtl;
	font-size: 0.84rem;
	font-weight: 900;
	white-space: nowrap;
}

.float-helper-btn
{
	flex-shrink: 0;
	padding: 8px 16px;
	border: none;
	border-radius: 8px;
	background: var(--primary);
	color: var(--white);
	font-family: inherit;
	font-size: 0.84rem;
	font-weight: 900;
	cursor: pointer;
}

#mainCostOrderBox
{
	scroll-margin-top: 100px;
}

/* کارت شماره موبایل متقاضی */
.applicant-mobile-card
{
	position: relative;
	margin: 0 0 1.2rem;
	padding: 1.15rem 1.2rem;
	border: 1px solid #dbeafe;
	border-radius: 18px;
	background: linear-gradient(135deg, #f8fbff 0%, #eff6ff 100%);
	box-shadow: 0 10px 28px rgba(37, 99, 235, 0.07);
}

.applicant-mobile-card > label
{
	display: flex;
	align-items: center;
	gap: 10px;
	color: #172554;
	font-size: 1rem;
	font-weight: 900;
}

.applicant-mobile-icon
{
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	color: #2563eb;
	background: #dbeafe;
	font-size: 1rem;
}

.applicant-mobile-label b
{
	color: #dc2626;
}

.applicant-mobile-card > p
{
	margin: 0.65rem 0 0.8rem;
	color: #64748b;
	font-size: 0.84rem;
}

.applicant-mobile-input
{
	min-height: 52px;
	border-color: #bfdbfe;
	background: rgba(255, 255, 255, 0.94);
	font-size: 1rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	direction: ltr;
	text-align: right;
}

.applicant-mobile-input:focus
{
	border-color: #3b82f6;
	box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.applicant-mobile-input.is-invalid
{
	border-color: #ef4444;
	background: #fffafa;
	box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

#mobileNumberHelp
{
	display: block;
	margin-top: 0.5rem;
	color: #64748b;
	font-size: 0.76rem;
}

.mobile-number-error
{
	min-height: 0;
	margin-top: 0.35rem;
	color: #b91c1c;
	font-size: 0.82rem;
	font-weight: 700;
}

.mobile-number-error:not(:empty)
{
	padding: 0.45rem 0.65rem;
	border-radius: 9px;
	background: #fef2f2;
}

/* بنر سبز و پیوند بازکننده مدارک */
.form-trust-banner
{
	align-items: flex-start;
	line-height: 1.9;
}

.requirements-link
{
	display: inline;
	padding: 0;
	border: 0;
	background: transparent;
	color: #116534;
	font: inherit;
	font-weight: 900;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-underline-offset: 4px;
	cursor: pointer;
}

.requirements-link:hover,
.requirements-link:focus-visible
{
	color: #14532d;
	text-decoration-style: solid;
}

/* مودال مدارک و اطلاعات */
body.modal-open
{
	overflow: hidden;
}

.requirements-modal
{
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
	visibility: hidden;
	opacity: 0;
	transition: opacity 0.24s ease, visibility 0.24s ease;
}

.requirements-modal.is-open
{
	visibility: visible;
	opacity: 1;
}

.requirements-modal-backdrop
{
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.58);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}

.requirements-modal-dialog
{
	position: relative;
	z-index: 1;
	width: min(100%, 580px);
	max-height: min(86vh, 760px);
	overflow: auto;
	border: 1px solid rgba(255, 255, 255, 0.8);
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 28px 90px rgba(15, 23, 42, 0.32);
	transform: translateY(18px) scale(0.98);
	transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
	outline: none;
	
    display: flex;
    flex-direction: column;
	
    overflow: hidden; /* جلوگیری از اسکرول کلی کادر */
}

.requirements-modal.is-open .requirements-modal-dialog
{
	transform: translateY(0) scale(1);
}

.requirements-modal-header
{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.25rem;
	border-bottom: 1px solid #eef2f7;
	background: linear-gradient(135deg, #fffaf0 0%, #ffffff 100%);
}

.requirements-modal-kicker
{
	display: block;
	margin-bottom: 0.25rem;
	color: #d97706;
	font-size: 0.72rem;
	font-weight: 900;
}

.requirements-modal-header h3
{
	margin: 0;
	color: #0f172a;
	font-size: 1.08rem;
	font-weight: 900;
}

.requirements-modal-close
{
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	color: #475569;
	font-size: 1rem;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.requirements-modal-close:hover
{
	background: #fef2f2;
	color: #dc2626;
}

.requirements-modal-content
{
	padding: 1.2rem;
	
    overflow-y: auto;       /* فعال‌سازی اسکرول فقط برای محتوای داخلی */
    flex: 1 1 auto;         /* پر کردن فضای خالی بین هدر و فوتر */
}

.requirements-modal-content .checklist-card
{
	margin: 0;
	padding: 1.1rem;
	border-color: #e2e8f0;
	background: #f8fafc;
}

.requirements-modal-footer
{
	padding: 1rem 1.2rem;
    background: #fff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0; /* جلوگیری از تغییر اندازه فوتر */
}

.modal-footer-text
{
	display: flex;
	align-items: center;
	gap: 8px;
	color: #166534;
	font-size: 0.88rem;
	font-weight: 800;
}

.modal-footer-text i
{
	color: #22c55e;
	font-size: 1rem;
}

.modal-continue-btn
{
	width: auto !important;
	padding: 0.65rem 1.4rem !important;
	font-size: 0.9rem !important;
}

/* استایل اختصاصی و مدرن کادر تماس و پیگیری تلفنی */
.meta-item-call
{
	text-decoration: none;
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 1px solid #86efac;
	color: #166534;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.meta-item-call:hover
{
	background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
	border-color: #4ade80;
	box-shadow: 0 6px 16px rgba(22, 101, 52, 0.15);
	transform: translateY(-2px);
}

.meta-item-call:active
{
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(22, 101, 52, 0.12);
}

.meta-item-call .call-title
{
	display: flex;
	align-items: center;
	gap: 8px;
	color: #15803d;
	font-weight: 800;
	font-size: 0.88rem;
}

.meta-item-call .call-icon
{
	color: #16a34a;
	font-size: 0.95rem;
	transition: transform 0.2s ease;
}

.meta-item-call:hover .call-icon
{
	animation: callWiggle 0.6s ease infinite alternate;
}

.meta-item-call .call-number
{
	color: #14532d;
	font-family: inherit;
	font-weight: 900;
	font-size: 0.96rem;
	direction: ltr;
	letter-spacing: 0.5px;
}

/* انیمیشن لرزش ملایم آیکون گوشی موقع هاور */
@keyframes callWiggle
{
	0%
	{
		transform: rotate(0deg);
	}
	50%
	{
		transform: rotate(-15deg) scale(1.1);
	}
	100%
	{
		transform: rotate(15deg) scale(1.1);
	}
}

/* ========================================================== */
/* STYLING FOR OTP MODAL & INPUTS (Modern & Fully Responsive) */
/* ========================================================== */
.otp-dialog-container {
    max-width: 440px !important;
}

.otp-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.otp-icon-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb, 37, 99, 235), 0.1);
    color: var(--primary-color, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
}

.otp-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.otp-content-body {
    padding: 24px !important;
}

.otp-mobile-display-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.otp-mobile-label {
    font-size: 13px;
    color: #64748b;
}

.otp-mobile-value {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    direction: ltr;
}

/* فیلدهای چهارگانه ورودی کد OTP */
.otp-inputs-wrapper {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.otp-input-field {
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-family: inherit;
    color: #0f172a;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    outline: none;
    transition: all 0.2s ease;
}

.otp-input-field:focus {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

/* فوکوس و استایل کادرهای OTP */
.otp-input-field:focus
{
	outline: none;
	border-color: var(--primary, #1e88e5);
	box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.18);
}

/* افکت ملایم هایلایت روشن و خاموش برای هشدار خطا */
#otpInlineError.is-active
{
	animation: otpSoftBlink 1.6s ease-in-out infinite;
}

#otpInlineError.is-shaking
{
	animation: otpSoftBlink 1.2s ease-in-out 2;
}

@keyframes otpSoftBlink
{
	0%, 100%
	{
		background: rgba(239, 68, 68, 0.14);
		box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
	}
	50%
	{
		background: rgba(239, 68, 68, 0.04);
		box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.04);
	}
}

@media (prefers-reduced-motion: reduce)
{
	#otpInlineError.is-active,
	#otpInlineError.is-shaking
	{
		animation-duration: 2.4s;
	}
}

/* ردیف تایمر و لینک تغییر شماره */
.otp-timer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
}

.otp-action-link {
    background: none;
    border: none;
    color: var(--primary-color, #2563eb);
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
    transition: color 0.15s;
}

.otp-action-link:hover {
    color: #1d4ed8;
}

.otp-timer-display {
    color: #64748b;
    font-weight: 600;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 20px;
}

.otp-timer-resend-btn {
    background: none;
    border: none;
    color: var(--primary-color, #2563eb);
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    padding: 0;
}

.otp-timer-resend-btn:hover {
    text-decoration: underline;
}

#verifyOtpAndFinalizeBtn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(0.2);
}

@media (max-width: 480px) {
    .otp-inputs-wrapper {
        gap: 8px;
    }
    .otp-input-field {
        width: 50px;
        height: 52px;
        font-size: 20px;
        border-radius: 10px;
    }
}

/* //////////////////////////// */

@media (max-width: 900px)
{
	.details
	{
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (min-width: 769px)
{
	.mobile-float-helper
	{
		display: none;
	}
}

@media (max-width: 700px)
{
	.requirements-modal
	{
		padding: 0.75rem;
		align-items: flex-end;
	}

	.requirements-modal-dialog
	{
		max-height: 88vh;
		border-radius: 20px 20px 12px 12px;
	}
}

@media (max-width: 600px)
{
	/* رفع هرگونه سرریز ناخواسته در کل صفحه */
	body,
	main
	{
		overflow-x: hidden;
	}
	
	.price-row strong
	{
		font-size: 0.9rem;
	}

	.price-row span
	{
		font-size: 0.9rem;
	}
	
	.service-title
	{
		font-size: 1rem;
	}
	
	.requirements-modal-footer
	{
		flex-direction: column;
		align-items: stretch;
	}
	
	.modal-continue-btn
	{
		width: 100% !important;
		text-align: center;
	}
}

@media (max-width: 400px)
{
	.float-helper-label
	{
		font-size: 0.76rem;
	}

	.float-helper-amount
	{
		font-size: 0.78rem;
	}

	.float-helper-btn
	{
		padding-right: 12px;
		padding-left: 12px;
	}
}

@media (prefers-reduced-motion: reduce)
{
	.requirements-modal,
	.requirements-modal-dialog
	{
		transition: none;
	}
}