/* Service detail only. Shared branding and card behaviour remain in the theme.
   Logical sizing/spacing follows the document's Arabic or English direction. */
.tpl-service-page {
	--container: 1320px;
	--service-space: clamp(40px, 5vw, 72px);
	overflow-wrap: anywhere;
}

.tpl-service-page .tpl-section { padding-block: var(--service-space); }
.tpl-service-page .tpl-eyebrow { color: var(--c-forest-700); }
.tpl-service-page .tpl-section-head__title { max-inline-size: 28ch; }
.tpl-service-page .tpl-page-hero { padding-block: var(--service-space); }
.tpl-service-page .tpl-page-hero__title { font-size: var(--fs-h1); }
.tpl-service-page .tpl-page-hero__media {
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}
.tpl-service-page .tpl-page-hero__img { aspect-ratio: 4 / 3; }
.tpl-service-hero__actions { margin-block-start: var(--sp-4); }

.tpl-service-page .tpl-service-detail {
	grid-template-columns: minmax(0, 1fr);
	align-items: start;
	gap: clamp(24px, 4vw, 56px);
}
.tpl-service-page .tpl-service-detail > * { min-inline-size: 0; }
.tpl-service-overview { font-size: var(--fs-lead); }
.tpl-service-overview h2 { margin-block: 0 var(--sp-3); }
.tpl-service-page .tpl-accordion {
	padding: clamp(20px, 3vw, 32px);
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-sm);
}
.tpl-service-page .tpl-accordion > h2 { margin-block-end: var(--sp-2); }
.tpl-service-page .tpl-accordion__item:last-child { border-block-end: 0; }
.tpl-service-page .tpl-accordion__trigger { list-style: none; font-size: 1rem; }
.tpl-service-page .tpl-accordion__trigger::-webkit-details-marker { display: none; }
.tpl-service-page details[open] .tpl-accordion__chevron { transform: rotate(180deg); }
.tpl-service-page .tpl-accordion__panel { padding-block: var(--sp-1) var(--sp-2); }
.tpl-service-page .tpl-accordion__panel > * + * { margin-block-start: var(--sp-1); }
.tpl-service-page .tpl-accordion__panel :is(ul, ol) { list-style: revert; padding-inline-start: var(--sp-3); }

.tpl-service-page .tpl-service-video {
	background: var(--c-sage-200);
	border-block: 1px solid var(--c-line);
}
.tpl-service-page .tpl-service-video .tpl-section-head { justify-content: center; text-align: center; }
.tpl-service-page .tpl-service-video__player {
	display: block;
	margin-inline: auto;
	max-inline-size: 1040px;
	max-block-size: none;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}
.tpl-service-page .tpl-cases-grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
	gap: var(--sp-4);
}
.tpl-service-page .tpl-case { min-inline-size: 0; }
.tpl-service-page .tpl-service-results { background-image: none; }
.tpl-service-page .tpl-case__compare { max-block-size: 620px; }
.tpl-service-page .tpl-service-results--single .tpl-cases-grid {
	inline-size: 100%;
	max-inline-size: 520px;
	margin-inline: auto;
}
.tpl-service-page .tpl-ba__foot { justify-content: center; }
.tpl-service-page .tpl-case__link { min-block-size: var(--tap); white-space: normal; }

.tpl-service-page .tpl-doctors { background: var(--c-white); border-block: 1px solid var(--c-line); }
.tpl-service-page .tpl-doctors__head .tpl-section-head__title { max-inline-size: none; }
.tpl-service-page .tpl-doctors__grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
	gap: var(--sp-3);
}
.tpl-service-page .tpl-doctors--feature .tpl-doctors__grid { grid-template-columns: minmax(0, 1fr); }
.tpl-service-page .tpl-doctor { min-inline-size: 0; }
.tpl-service-page .tpl-doctor__name { font-size: var(--fs-h3); }
.tpl-service-page .tpl-doctor__role,
.tpl-service-page .tpl-doctor__bio { font-size: 1rem; }
.tpl-service-page .tpl-doctor__img { object-position: center top; }
.tpl-service-page .tpl-doctor--feature .tpl-doctor__body { padding: var(--sp-3); }
.tpl-service-page .tpl-doctor__chip { display: none; } /* The name is already directly beside the portrait. */

.tpl-service-page .tpl-service-book { scroll-margin-block-start: calc(var(--header-h) + 48px); }
.tpl-service-page .tpl-contact { gap: clamp(24px, 4vw, 56px); }
.tpl-service-page .tpl-contact > * { min-inline-size: 0; }
.tpl-service-page .tpl-contact__details { padding-block: var(--sp-3); }
.tpl-service-page .tpl-contact__value { font-size: 1rem; }
.tpl-service-page .tpl-contact__item { padding-block: var(--sp-1); }
.tpl-service-page .tpl-contact__form {
	padding: clamp(20px, 3vw, 40px);
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-md);
}
.tpl-service-page .tpl-contact__form .forminator-ui { margin: 0; }
.tpl-service-page .tpl-contact__form .forminator-row { margin-block-end: var(--sp-3); }
.tpl-service-page .tpl-contact__form .forminator-label { display: block; margin-block-end: var(--sp-1); }
/* Target text controls only; retain plugin validation, checkboxes, consent and uploads. */
.tpl-service-page .tpl-contact__form :is(.forminator-input, .forminator-textarea, .forminator-select2) {
	inline-size: 100%;
	max-inline-size: 100%;
	min-inline-size: 0;
	padding: 12px 14px;
	border: 1px solid var(--c-line);
	border-radius: var(--radius-sm);
	background-color: var(--c-ivory);
	color: var(--c-forest);
	font: inherit;
	font-size: 16px;
}
.tpl-service-page .tpl-contact__form .forminator-textarea { min-block-size: 128px; resize: vertical; }
.tpl-service-page .tpl-contact__form :is(input[type="email"], input[type="tel"]) { direction: ltr; text-align: start; }
.tpl-service-page .tpl-service-book--no-form .tpl-contact { grid-template-columns: minmax(0, 1fr); }
.tpl-service-page .tpl-cta { border-block-start: 1px solid var(--c-line); }

@media (min-width: 700px) {
	.tpl-service-page .tpl-doctor--feature .tpl-doctor__link { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
	.tpl-service-page .tpl-doctor--feature .tpl-doctor__media { aspect-ratio: auto; block-size: 100%; min-block-size: 300px; }
}
@media (min-width: 900px) {
	.tpl-service-page .tpl-page-hero--media .tpl-page-hero__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); }
	.tpl-service-page .tpl-service-detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tpl-service-page .tpl-service-detail > :only-child { grid-column: 1 / -1; }
	.tpl-service-page .tpl-service-results--single .tpl-container { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 0 var(--sp-6); align-items: center; }
	.tpl-service-page .tpl-service-results--single .tpl-section-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-4); margin: 0; }
	.tpl-service-page .tpl-service-results--single .tpl-ba__foot { grid-column: 2; }
}
@media (min-width: 1100px) {
	.tpl-service-page .tpl-doctors--feature .tpl-doctors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tpl-service-page .tpl-doctors--feature .tpl-doctor:only-child { grid-column: 1 / -1; inline-size: min(100%, 820px); justify-self: center; }
}
@media (max-width: 599px) {
	.tpl-service-page .tpl-page-hero__img { aspect-ratio: 4 / 3; }
	.tpl-service-page .tpl-service-hero__actions .tpl-btn { inline-size: 100%; }
	.tpl-service-page .tpl-doctor--feature .tpl-doctor__media { aspect-ratio: 4 / 4; max-block-size: 440px; }
	.tpl-service-page .tpl-section-head { gap: var(--sp-3); }
}
