/* ==========================================================================
   WordPress integration layer (loaded after style.css / style-ltr.css)
   ========================================================================== */

/* Header without top bar */
#header.no-topbar { top: 0; }

/* Main menu: sub-menus */
.navbar .dropdown > a i.fa-chevron-down { font-size: 10px; margin-inline-start: 4px; }

/* Several language links in the top bar */
#topbar .language + .language { margin-inline-start: 8px; }

/* ---------- Contact Form 7 inside Bootstrap .form-floating ---------- */
.contact-form .wpcf7-form-control-wrap { display: block; }
.form-floating > .wpcf7-form-control-wrap > .form-control {
	height: calc(3.5rem + 2px);
	line-height: 1.25;
	padding: 1rem .75rem;
}
.form-floating > .wpcf7-form-control-wrap > textarea.form-control { height: 120px !important; }
.form-floating > .wpcf7-form-control-wrap > .form-control::placeholder { color: transparent; }
.form-floating > .wpcf7-form-control-wrap > .form-control:focus,
.form-floating > .wpcf7-form-control-wrap > .form-control:not(:placeholder-shown) {
	padding-top: 1.625rem;
	padding-bottom: .625rem;
}
.form-floating:has(.form-control:focus) > label,
.form-floating:has(.form-control:not(:placeholder-shown)) > label {
	opacity: .65;
	transform: scale(.85) translateY(-.5rem) translateX(-.15rem);
}
[dir="ltr"] .form-floating:has(.form-control:focus) > label,
[dir="ltr"] .form-floating:has(.form-control:not(:placeholder-shown)) > label {
	transform: scale(.85) translateY(-.5rem) translateX(.15rem);
}
.wpcf7-not-valid-tip { font-size: 13px; margin-top: 4px; }
.wpcf7 form .wpcf7-response-output { margin: 1.5rem 0 0; padding: .75rem 1rem; border-radius: 12px; }
.contact-form .wpcf7-spinner { vertical-align: middle; }
.contact-form button[type="submit"]:disabled { opacity: .7; }

/* Generic button (404 etc.) */
.am-btn {
	display: inline-block;
	background: #333;
	color: #fff;
	padding: 10px 40px;
	border-radius: 16px;
	transition: .4s;
}
.am-btn:hover { background: var(--am-primary); color: #fff; }
.am-404 { color: var(--am-primary); }

/* Block editor content */
section.content img { max-width: 100%; height: auto; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-block-image figcaption, .wp-caption-text { font-size: 14px; color: #777; text-align: center; }
.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* Clinic page header icon link */
.page-banner .cimg a { display: contents; }

/* Doctor name: keep the h2 look although it is the page h1 */
.page-banner h1.docname { margin-bottom: .5rem; }

/* Admin bar offset for fixed header */
.admin-bar #topbar { top: 32px; }
.admin-bar #header { top: 66px; }
.admin-bar #header.header-scrolled, .admin-bar #header.no-topbar { top: 32px; }
@media screen and (max-width: 782px) {
	.admin-bar #topbar { top: 46px; }
	.admin-bar #header { top: 80px; }
	.admin-bar #header.header-scrolled, .admin-bar #header.no-topbar { top: 46px; }
}
.admin-bar #topbar.topbar-scrolled { top: -2px; visibility: hidden; }

/* Doctor page: the original CSS inverts every banner image (meant for white clinic icons) and
   uses white text for the specialty on a white background — show the real photo and readable text. */
.page-content .page-banner { padding-top: 2.5rem; }
.page-content .page-banner .doctor-img img { filter: none; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.page-content .page-banner .doctor-img { flex: 0 0 200px; overflow: hidden; box-shadow: 0 .5rem 1.5rem rgb(0 0 0 / 12%); }
.page-content .page-banner .doctitle p { color: var(--am-primary-dark); font-size: 18px; }
.page-content .page-banner .doctor-info li a { color: var(--am-primary); opacity: 1; font-size: 22px; }

/* Clinics: listed on the home page only (menu link #clinics) - keep the section clear of the fixed header. */
#clinics { scroll-margin-top: 110px; }
.clinics .clinic-block { cursor: default; }
