/* Services page: three service cards; the chosen one opens its request form below. */
.zph-services-page {
	--zv-ink: #29251f;
	--zv-muted: #6b6256;
	--zv-line: #ebe3d6;
	--zv-soft: #faf6ee;
	--zv-umber: #17110a;
	--zv-umber-2: #3a2a14;
	--zv-gold: #d8a51d;
	--zv-gold-deep: #8a6512;
	--zv-gold-pale: #f0d68c;
	--zv-ivory: #fbf5e9;
	--zv-sand: #c9bda7;
	--zv-error: #b3261e;
}
.zph-services-page .site-content > article > .entry-content,
.zph-services-page .entry-content { max-width: none; margin: 0; padding: 0; }

.zph-services { max-width: 1240px; margin-inline: auto; padding-block: clamp(4px, 1.5vw, 20px) 0; color: var(--zv-ink); font-family: var(--zs-font, "ZPH Sans", IRANSans, Tahoma, sans-serif); }
.zph-svc__icon { inline-size: 22px; block-size: 22px; flex: none; }
.zph-services [hidden] { display: none !important; }
.zph-services__lead { max-inline-size: 720px; margin: 0 auto clamp(32px, 4vw, 52px); color: var(--zv-muted); font-size: clamp(15px, 1.3vw, 16.5px); line-height: 2.1; text-align: center; }

/* ---------- service cards ---------- */
.zph-services__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 28px); margin: 0; padding: 0; list-style: none; }
.zph-svc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: clamp(22px, 2.2vw, 32px);
	overflow: hidden;
	border: 1px solid var(--zv-line);
	border-radius: 24px;
	background: linear-gradient(180deg, #fff 0%, var(--zv-soft) 100%);
	box-shadow: 0 30px 60px -52px #17110a80;
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease, border-color .35s ease, background-color .35s ease;
}
.zph-svc-card:hover { transform: translateY(-4px); border-color: #d8a51d80; box-shadow: 0 36px 60px -44px #17110a99; }
.zph-svc-card__num { position: absolute; inset-block-start: 6px; inset-inline-end: 22px; color: #d8a51d1f; font-size: 104px; font-weight: 800; line-height: 1; pointer-events: none; }
.zph-svc-card__icon { display: grid; place-items: center; inline-size: 60px; block-size: 60px; margin-block-end: 22px; border: 1px solid #d8a51d55; border-radius: 50%; background: #fff; color: var(--zv-gold-deep); }
.zph-svc-card__icon .zph-svc__icon { inline-size: 28px; block-size: 28px; }
.zph-services .zph-svc-card__kicker { margin: 0 0 4px; color: var(--zv-gold-deep); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.zph-services .zph-svc-card__title { margin: 0 0 12px; color: var(--zv-ink); font-size: clamp(22px, 2.2vw, 27px); font-weight: 800; }
.zph-svc-card__text { margin: 0 0 18px; color: var(--zv-muted); font-size: 14.5px; line-height: 2; }
.zph-svc-card__points { display: grid; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.zph-svc-card__points li { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--zv-ink); font-size: 14px; line-height: 1.8; }
.zph-svc-card__points .zph-svc__icon { inline-size: 18px; block-size: 18px; margin-block-start: 3px; color: var(--zv-gold); }
.zph-svc-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-block-start: auto;
	min-block-size: 52px;
	padding: 12px 22px;
	border: 1px solid var(--zv-umber);
	border-radius: 999px;
	color: var(--zv-umber);
	font-size: 15px;
	font-weight: 700;
	white-space: nowrap;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.zph-svc-card__cta .zph-svc__icon { transition: transform .25s ease; }
.zph-svc-card__cta:hover { background: var(--zv-umber); color: var(--zv-ivory); }
.zph-svc-card__cta:hover .zph-svc__icon { transform: translateX(-4px); }
/* Make the whole card clickable through the call-to-action link. */
.zph-svc-card__cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

/* Chosen card: umber with a gold pointer toward the form. */
.zph-svc-card.is-active { border-color: var(--zv-umber); background: radial-gradient(130% 90% at 100% 0%, var(--zv-umber-2) 0%, var(--zv-umber) 62%); color: var(--zv-ivory); transform: none; }
.zph-svc-card.is-active .zph-svc-card__num { color: #f0d68c1a; }
.zph-svc-card.is-active .zph-svc-card__icon { border-color: #f0d68c44; background: #ffffff0d; color: var(--zv-gold); }
.zph-services .zph-svc-card.is-active .zph-svc-card__kicker { color: var(--zv-gold-pale); }
.zph-services .zph-svc-card.is-active .zph-svc-card__title { color: var(--zv-ivory); }
.zph-svc-card.is-active .zph-svc-card__text { color: var(--zv-sand); }
.zph-svc-card.is-active .zph-svc-card__points li { color: var(--zv-ivory); }
.zph-svc-card.is-active .zph-svc-card__cta { border-color: var(--zv-gold); background: var(--zv-gold); color: var(--zv-umber); }
.zph-svc-card.is-active .zph-svc-card__cta .zph-svc__icon { transform: rotate(-90deg); }
.zph-services.has-active .zph-svc-card:not(.is-active) { opacity: .82; }
.zph-services.has-active .zph-svc-card:not(.is-active):hover { opacity: 1; }

/* ---------- form stage ---------- */
.zph-services__stage { margin-block-start: clamp(28px, 3.4vw, 44px); scroll-margin-block-start: 110px; }
.zph-services__empty { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 28px; border: 1px dashed #d8c9ad; border-radius: 20px; color: var(--zv-muted); font-size: 15px; }
.zph-services__empty p { margin: 0; }
.zph-services__empty .zph-svc__icon { color: var(--zv-gold-deep); }

.zph-svc-panel { padding: clamp(26px, 3.6vw, 48px); border: 1px solid var(--zv-line); border-radius: 28px; background: #fff; box-shadow: 0 40px 80px -60px #17110a99; }
.zph-svc-panel.is-entering { animation: zph-svc-in .45s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes zph-svc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.zph-svc-panel__head { display: flex; align-items: flex-start; gap: 18px; margin-block-end: 28px; padding-block-end: 24px; border-block-end: 1px solid var(--zv-line); }
.zph-svc-panel__badge { display: grid; place-items: center; flex: none; inline-size: 56px; block-size: 56px; border-radius: 18px; background: var(--zv-umber); color: var(--zv-gold); }
.zph-svc-panel__badge .zph-svc__icon { inline-size: 28px; block-size: 28px; }
.zph-services .zph-svc-panel__kicker { margin: 0; color: var(--zv-gold-deep); font-size: 13px; font-weight: 700; }
.zph-services .zph-svc-panel__title { margin: 2px 0 8px; color: var(--zv-ink); font-size: clamp(21px, 2.2vw, 26px); font-weight: 800; outline: 0; }
.zph-svc-panel__text { max-inline-size: 760px; margin: 0; color: var(--zv-muted); font-size: 14.5px; line-height: 2; }

.zph-svc-alert { margin: 0 0 24px; padding: 14px 18px; border: 1px solid #b3261e40; border-inline-start: 4px solid var(--zv-error); border-radius: 14px; background: #fdf2f1; color: #7a1a14; font-size: 14.5px; }

.zph-svc-form { margin: 0; }
.zph-svc-hp { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.zph-svc-group { margin: 0 0 30px; padding: 0; border: 0; }
.zph-services .zph-svc-group__title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 0; color: var(--zv-ink); font-size: 16px; font-weight: 800; }
.zph-svc-group__title span { display: grid; place-items: center; inline-size: 28px; block-size: 28px; border-radius: 50%; background: var(--zv-gold); color: var(--zv-umber); font-size: 14px; }
.zph-svc-group__note { display: flex; align-items: center; gap: 8px; margin: -4px 0 18px; padding: 10px 14px; border-radius: 12px; background: var(--zv-soft); color: var(--zv-muted); font-size: 13.5px; line-height: 1.9; }
.zph-svc-group__note .zph-svc__icon { inline-size: 18px; block-size: 18px; color: var(--zv-gold-deep); }
.zph-svc-group__note a { color: var(--zv-gold-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.zph-svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 22px; }
.zph-svc-field { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.zph-svc-field--wide, .zph-svc-field--radio { grid-column: 1 / -1; }
.zph-svc-field > label, .zph-svc-field > legend { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; padding: 0; color: var(--zv-ink); font-size: 14px; font-weight: 600; }
.zph-svc-field small { color: var(--zv-muted); font-size: 12px; font-weight: 400; }
.zph-services-page .zph-services .zph-svc-form .zph-svc-field :is(input[type="text"], input[type="tel"], input[type="email"], select, textarea) {
	box-sizing: border-box;
	inline-size: 100%;
	min-block-size: 52px;
	margin: 0;
	padding: 12px 18px;
	border: 1px solid #ddd3c2;
	border-radius: 14px;
	background-color: var(--zv-soft);
	color: var(--zv-ink);
	font-family: inherit;
	font-size: 15px;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.zph-services-page .zph-services .zph-svc-form .zph-svc-field select {
	appearance: none;
	padding-inline-end: 44px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6512' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: left 16px center;
	background-size: 18px;
}
.zph-services-page .zph-services .zph-svc-form .zph-svc-field textarea[name] { min-block-size: 140px; resize: vertical; line-height: 1.9; }
.zph-services-page .zph-services .zph-svc-form .zph-svc-field :is(input, select, textarea):focus { border-color: var(--zv-gold); background-color: #fff; outline: 0; box-shadow: 0 0 0 4px #d8a51d26; }
.zph-services-page .zph-services .zph-svc-form .zph-svc-field [dir="ltr"] { text-align: end; }
.zph-services-page .zph-services .zph-svc-form .zph-svc-field [dir="ltr"]:placeholder-shown { text-align: start; }
.zph-svc-field__hint { margin: 6px 0 0; color: var(--zv-muted); font-size: 12.5px; }
.zph-svc-field__count { text-align: end; }
.zph-svc-field__error { margin: 6px 0 0; color: var(--zv-error); font-size: 13px; }
.zph-services-page .zph-services .zph-svc-form .zph-svc-field.has-error :is(input, select, textarea) { border-color: var(--zv-error); background-color: #fffafa; }
.zph-svc-field.is-revealed { animation: zph-svc-in .3s ease both; }

/* Radio options as pills. */
.zph-svc-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.zph-svc-choice { position: relative; margin: 0; cursor: pointer; }
.zph-svc-choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.zph-svc-choice span { display: inline-flex; align-items: center; min-block-size: 44px; padding: 8px 18px; border: 1px solid #ddd3c2; border-radius: 999px; background: var(--zv-soft); color: var(--zv-ink); font-size: 14px; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.zph-svc-choice:hover span { border-color: var(--zv-gold); }
.zph-svc-choice input:checked + span { border-color: var(--zv-umber); background: var(--zv-umber); color: var(--zv-ivory); }
.zph-svc-choice input:focus-visible + span { outline: 2px solid var(--zv-gold); outline-offset: 2px; }

.zph-svc-submit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block-start: 24px; border-block-start: 1px solid var(--zv-line); }
.zph-svc-privacy { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--zv-muted); font-size: 13px; }
.zph-svc-privacy .zph-svc__icon { inline-size: 18px; block-size: 18px; color: var(--zv-gold-deep); }
.zph-services-page .zph-services .zph-svc-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-inline-size: 200px;
	min-block-size: 54px;
	margin: 0;
	padding: 12px 32px;
	border: 0;
	border-radius: 999px;
	background: var(--zv-gold);
	color: var(--zv-umber);
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 18px 30px -20px #8a6512;
	transition: background-color .2s ease, transform .2s ease;
}
.zph-services-page .zph-services .zph-svc-button:hover { background: var(--zv-gold-pale); color: var(--zv-umber); transform: translateY(-1px); }
.zph-services-page .zph-services .zph-svc-button[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ---------- confirmation ---------- */
.zph-svc-done { text-align: center; outline: 0; }
.zph-svc-done__mark { display: inline-grid; place-items: center; inline-size: 76px; block-size: 76px; margin-block-end: 16px; border-radius: 50%; background: var(--zv-umber); color: var(--zv-gold); box-shadow: 0 0 0 10px #d8a51d1f; }
.zph-svc-done__mark .zph-svc__icon { inline-size: 36px; block-size: 36px; stroke-width: 2; }
.zph-services .zph-svc-done__title { margin: 0 0 12px; color: var(--zv-ink); font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.zph-svc-done__ref { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 26px; padding: 10px 20px; border: 1px dashed var(--zv-gold); border-radius: 14px; background: var(--zv-soft); color: var(--zv-muted); font-size: 14px; }
.zph-svc-done__ref strong { color: var(--zv-umber); font-size: 20px; letter-spacing: .06em; }
.zph-svc-done__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-inline-size: 900px; margin: 0 auto 30px; padding: 0; list-style: none; text-align: start; }
.zph-svc-done__steps li { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 16px; border-radius: 16px; background: var(--zv-soft); color: var(--zv-ink); font-size: 14px; line-height: 1.9; }
.zph-svc-done__steps .zph-svc__icon { color: var(--zv-gold-deep); }
.zph-svc-done__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; }
.zph-svc-link { color: var(--zv-gold-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- how it works ---------- */
.zph-services__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: clamp(40px, 5vw, 72px) 0 0; padding: 0; border: 1px solid var(--zv-line); border-radius: 24px; background: var(--zv-soft); list-style: none; counter-reset: zv; }
.zph-services__steps li { position: relative; display: grid; gap: 6px; justify-items: center; margin: 0; padding: clamp(22px, 2.6vw, 34px) 20px; text-align: center; counter-increment: zv; }
.zph-services__steps li + li { border-inline-start: 1px solid var(--zv-line); }
.zph-services__steps .zph-svc__icon { inline-size: 30px; block-size: 30px; margin-block-end: 6px; color: var(--zv-gold-deep); }
.zph-services__steps strong { color: var(--zv-ink); font-size: 16px; }
.zph-services__steps strong::before { content: counter(zv, persian) ". "; color: var(--zv-gold-deep); }
.zph-services__steps span { color: var(--zv-muted); font-size: 13.5px; line-height: 1.9; }

.zph-services :is(a, input, select, textarea, button):focus-visible { outline: 2px solid var(--zv-gold); outline-offset: 2px; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1199px) {
	.zph-services__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
	.zph-svc-card { padding: 24px; }
	.zph-svc-card__num { font-size: 92px; }
	.zph-svc-card__points { margin-block-end: 20px; }
}
@media (max-width: 767px) {
	.zph-services__cards { grid-template-columns: minmax(0, 1fr); }
	.zph-svc-grid, .zph-svc-done__steps, .zph-services__steps { grid-template-columns: minmax(0, 1fr); }
	.zph-services__steps li + li { border-inline-start: 0; border-block-start: 1px solid var(--zv-line); }
	.zph-svc-panel { padding: 22px 18px; border-radius: 22px; }
	.zph-svc-panel__head { gap: 14px; }
	.zph-svc-panel__badge { inline-size: 48px; block-size: 48px; border-radius: 14px; }
	.zph-svc-submit { flex-direction: column-reverse; align-items: stretch; }
	.zph-services-page .zph-services .zph-svc-button { inline-size: 100%; }
	.zph-svc-card:hover { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.zph-svc-card, .zph-svc-card__cta, .zph-svc-card__cta .zph-svc__icon, .zph-services-page .zph-services .zph-svc-button { transition: none; }
	.zph-svc-panel.is-entering, .zph-svc-field.is-revealed { animation: none; }
}
