/* Contact Us (canvas board "Contact Us"). Shared blocks live in pages.css. */

.pm-rebuilt .pmct-hero { align-items: flex-start; }
.pm-rebuilt .pmct-sub { margin-top: 22px; font-size: 24px; line-height: 1.35; font-weight: 500; color: var(--pm-slate); }
.pm-rebuilt .pmct-addr { margin-top: 32px; padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; max-width: 420px; }
.pm-rebuilt .pmct-addr:hover { transform: none; }
.pm-rebuilt .pmct-addr-h { font-size: 17px; font-weight: 600; color: var(--pm-navy); }
/* Form card in a glass frame; "Book your call now" scrolls here and makes it glow (pages.js [data-pm-spot]) */
.pm-rebuilt .pmp-glass.pmct-form { padding: 32px; scroll-margin-top: 120px; background: linear-gradient(140deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.7) 55%, rgba(220,237,250,.75) 100%); }
.pm-rebuilt .pmct-form:hover { transform: none; }
.pm-rebuilt .pmct-form-h { margin-bottom: 18px; font-size: 28px; line-height: 1.2; font-weight: 600; color: var(--pm-navy); }

/* "Schedule your call" form (contact-us.js) */
.pm-rebuilt .pmct-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pm-rebuilt .pmct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.pm-rebuilt .pmct-wide { grid-column: 1 / -1; }
.pm-rebuilt .pmct-fld { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pm-rebuilt .pmct-fld label { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--pm-slate); }
.pm-rebuilt .pmct-req { margin-left: 2px; color: var(--pm-accent); }
body.pm-rebuilt .pmct-form .pmct-f :is(input:is([type="text"], [type="email"], [type="tel"]), select, textarea) {
	width: 100%; margin: 0; padding: 0 16px; min-height: 52px; height: 52px; box-sizing: border-box;
	border: 1px solid var(--pm-line-2); border-radius: 14px; background: rgba(255,255,255,.95); box-shadow: 0 1px 2px rgba(0,64,110,.04);
	font: 400 16px/1.4 var(--pm-font); color: var(--pm-slate); outline: 0; appearance: none; -webkit-appearance: none;
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
body.pm-rebuilt .pmct-form .pmct-f .pmct-fld textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
body.pm-rebuilt .pmct-form .pmct-f :is(input:is([type="text"], [type="email"], [type="tel"]), select, textarea)::placeholder { color: #9AAAB8; }
body.pm-rebuilt .pmct-form .pmct-f :is(input:is([type="text"], [type="email"], [type="tel"]), select, textarea):hover { border-color: #A9C3D8; }
body.pm-rebuilt .pmct-form .pmct-f :is(input:is([type="text"], [type="email"], [type="tel"]), select, textarea):focus { border-color: var(--pm-navy); background: var(--pm-white); box-shadow: 0 0 0 4px rgba(37,173,227,.18); }
body.pm-rebuilt .pmct-form .pmct-f .is-bad :is(input:is([type="text"], [type="email"], [type="tel"]), select, textarea) { border-color: #D14343; box-shadow: 0 0 0 4px rgba(209,67,67,.12); }
/* Green tick inside a filled, valid field */
.pm-rebuilt .pmct-fld.is-ok:not(:has(select, textarea))::after {
	content: ""; position: absolute; right: 14px; bottom: 16px; width: 20px; height: 20px; border-radius: 50%;
	background: #1D9A5B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
	animation: pmct-pop .3s var(--pm-ease);
}
body.pm-rebuilt .pmct-form .pmct-f .is-ok:not(:has(select, textarea)) input:is([type="text"], [type="email"], [type="tel"]) { padding-right: 44px; }
@keyframes pmct-pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.pm-rebuilt .pmct-sel { position: relative; }
body.pm-rebuilt .pmct-form .pmct-f .pmct-sel select { padding-right: 44px; cursor: pointer; }
.pm-rebuilt .pmct-sel .pm-chev { position: absolute; right: 16px; top: 50%; width: 14px; height: 14px; margin-top: -7px; color: var(--pm-navy); pointer-events: none; transition: transform .2s ease; }
.pm-rebuilt .pmct-sel:focus-within .pm-chev { transform: rotate(180deg); }
.pm-rebuilt .pmct-err { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.4; color: #B42318; }
.pm-rebuilt .pmct-err::before { content: "!"; flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; background: #D14343; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pm-rebuilt .pmct-err[hidden] { display: none; }
body.pm-rebuilt .pmct-form .pmct-submit {
	margin: 24px 0 0; width: 100%; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	border: 0; border-radius: 999px; background: var(--pm-navy); color: var(--pm-white); font: 600 16px var(--pm-font); text-transform: none; letter-spacing: normal; cursor: pointer;
	box-shadow: 0 16px 30px -16px rgba(0,64,110,.7); transition: background .2s ease, transform .2s var(--pm-ease), box-shadow .2s ease;
}
body.pm-rebuilt .pmct-form .pmct-submit:hover { background: var(--pm-navy-hover); color: var(--pm-white); transform: translateY(-1px); box-shadow: 0 20px 36px -16px rgba(0,64,110,.75); }
.pm-rebuilt .pmct-submit svg { transition: transform .25s var(--pm-ease); }
.pm-rebuilt .pmct-submit:hover svg { transform: translateX(4px); }
.pm-rebuilt .pmct-submit:focus-visible { outline: 3px solid var(--pm-accent); outline-offset: 3px; }
.pm-rebuilt .pmct-f.is-sending .pmct-submit { opacity: .75; cursor: progress; }
.pm-rebuilt .pmct-f.is-sending .pmct-submit svg { animation: pmct-spin .8s linear infinite; }
@keyframes pmct-spin { to { transform: rotate(360deg); } }
.pm-rebuilt .pmct-status { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; font-size: 14px; }
.pm-rebuilt .pmct-status[hidden] { display: none; }
/* Thank-you state */
.pm-rebuilt .pmct-done { padding: 32px 8px 16px; text-align: center; outline: 0; }
.pm-rebuilt .pmct-done[hidden] { display: none; }
.pm-rebuilt .pmct-done-ico { width: 72px; height: 72px; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pm-rebuilt .pmct-done-ico circle { stroke: #1D9A5B; stroke-dasharray: 151; stroke-dashoffset: 151; animation: pmct-draw .6s ease-out forwards; }
.pm-rebuilt .pmct-done-ico path { stroke: #1D9A5B; stroke-dasharray: 36; stroke-dashoffset: 36; animation: pmct-draw .4s .5s ease-out forwards; }
@keyframes pmct-draw { to { stroke-dashoffset: 0; } }
.pm-rebuilt .pmct-done-h { margin-top: 16px; font-size: 30px; line-height: 1.25; color: var(--pm-navy); }
.pm-rebuilt .pmct-done-p { margin-top: 6px; font-size: 17px; color: var(--pm-text); }

.pm-rebuilt .pmct-band { position: relative; border-radius: 32px; overflow: hidden; background: var(--pm-navy); color: var(--pm-white); }
.pm-rebuilt .pmct-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; animation: pmct-drift 24s ease-in-out infinite alternate; transform-origin: 60% 50%; }
@keyframes pmct-drift { from { transform: scale(1); } to { transform: scale(1.1) translateX(-2%); } }
.pm-rebuilt .pmct-band-in { position: relative; padding: 72px 56px; max-width: 860px; }
.pm-rebuilt .pmct-band .pmp-h2 { color: var(--pm-white); }
.pm-rebuilt .pmct-band-sub { margin-top: 18px; font-size: 22px; font-weight: 600; color: var(--pm-white); }
.pm-rebuilt .pmct-band-p { margin-top: 10px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.88); }
.pm-rebuilt .pmct-pair { margin-top: 20px; }
.pm-rebuilt .pmct-fact { padding: 32px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.pm-rebuilt .pmct-chart { width: 220px; flex-shrink: 0; }
.pm-rebuilt .pmct-chart .pmh-pie { padding: 0; border: 0; background: none; }
.pm-rebuilt .pmct-tooth { width: 160px; flex-shrink: 0; border-radius: 20px; background: var(--pm-tint); }
.pm-rebuilt .pmct-tooth img { height: auto; }
.pm-rebuilt .pmct-fact-in { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pm-rebuilt .pmct-fact-in .pmp-h3 { font-size: 22px; color: var(--pm-navy); }

.pm-rebuilt .pmct-two { align-items: stretch; }
.pm-rebuilt .pmct-talk { padding: 40px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; overflow: hidden; }
.pm-rebuilt .pmct-talk:hover { transform: none; }
.pm-rebuilt .pmct-talk > img { display: block; width: 100%; max-width: 300px; height: auto; border-radius: 20px !important; }
/* Cut-out handpiece on the dark card, with a soft glow behind it */
.pm-rebuilt .pmct-pen { position: relative; align-self: center; height: 240px; display: flex; justify-content: center; }
.pm-rebuilt .pmct-pen::before { content: ""; position: absolute; left: 50%; top: 55%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; background: radial-gradient(circle, rgba(37,173,227,.45) 0%, rgba(37,173,227,0) 70%); }
.pm-rebuilt .pmct-pen img { position: relative; height: 100%; width: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.35)); animation: pmct-float 6s ease-in-out infinite; }
@keyframes pmct-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.pm-rebuilt .pmct-two-h { font-size: 34px; }
.pm-rebuilt .pmct-talk .pmp-btn { margin-top: auto; }

@media (max-width: 640px) {
	.pm-rebuilt .pmct-sub { font-size: 20px; }
	.pm-rebuilt .pmp-glass.pmct-form { padding: 18px; }
	.pm-rebuilt .pmct-grid { grid-template-columns: 1fr; gap: 16px; }
	.pm-rebuilt .pmct-chart { width: 100%; max-width: 300px; margin: 0 auto; }
	.pm-rebuilt .pmct-pen { height: 200px; }
	.pm-rebuilt .pmct-form-h { font-size: 24px; }
	.pm-rebuilt .pmct-band-in { padding: 44px 22px; }
	.pm-rebuilt .pmct-fact { padding: 22px; }
	.pm-rebuilt .pmct-talk { padding: 26px 22px; }
	.pm-rebuilt .pmct-two-h { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
	.pm-rebuilt .pmct-band > img, .pm-rebuilt .pmct-pen img { animation: none; }
}
