/* Integration only: preserve the supplied design and existing site header/footer. */
.leyi-contact-v1-page .wp-site-blocks > .wp-block-post-content {margin-block:0;}
.leyi-contact-v1-page .wp-block-post-content > #leyi-contact-v1 {max-width:none;}
#leyi-contact-v1 {--contact-nav-height:165px;}
#leyi-contact-v1 :is(section[id],input,select,textarea,button,[tabindex]) {scroll-margin-top:calc(var(--contact-nav-height) + 20px);}
#leyi-contact-v1 .side {top:calc(var(--contact-nav-height) + 20px);}
#leyi-contact-v1 .leyi-inquiry-form {display:block;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;}
#leyi-contact-v1 .f {min-width:0;}
#leyi-contact-v1 .up span {min-width:0;overflow-wrap:anywhere;}
#leyi-contact-v1 .btn:disabled {opacity:.65;cursor:wait;}
#leyi-contact-v1 .done .no {font-size:clamp(14px,2vw,22px);overflow-wrap:anywhere;max-width:100%;}
#leyi-contact-v1 .done .ok {font-size:32px;}
#leyi-contact-v1 .up:focus-within {outline:2px solid var(--blue);outline-offset:3px;}
#leyi-contact-v1 .err ul {padding-left:20px;margin:6px 0;}
#leyi-contact-v1 .err a {text-decoration:underline;}
#leyi-contact-v1 .contact-error {font-size:12px;color:var(--err);font-weight:400;}
/* Generic old-form reveal targets must not hide this long, supplied form. */
#leyi-contact-v1 #iq > [data-leyi-reveal] {opacity:1;transform:none;transition:none;}
@media (max-width:980px) {#leyi-contact-v1 .side {position:static;}}

/* Beyond 1920px freeze the hero composition, matching the resin catalogue
   page: cap the artwork layer at a centered 1920px stage, photo right-aligned
   at max 1800px, the dark section's own ink background fills the symmetric
   side gutters, and the text stays in the shared 1120px .w column so the hero
   keeps aligning with every section below. Below 1920px nothing changes. */
@media (min-width: 1181px) {
  #leyi-contact-v1 .ph { display: flex; justify-content: flex-end; background: var(--ink); left: 0; right: 0; max-width: 1920px; margin-inline: auto; }
  #leyi-contact-v1 .ph img { width: 100%; max-width: 1800px; }
}

/* iOS Safari auto-zooms the page when focusing a control below 16px. */
@media (max-width: 768px) {
  #leyi-contact-v1 :is(input, select, textarea) { font-size: 16px !important; }
}

/* FAQ unified to the homepage standard (2026-10-09). */
#leyi-contact-v1 #faq .fq { border-top: 1px solid #D5DADD; }
#leyi-contact-v1 #faq details { border-bottom: 1px solid #D5DADD; }
#leyi-contact-v1 #faq summary { padding: 20px 0; font-size: 18px; font-weight: 700; }
#leyi-contact-v1 #faq summary svg { width: 20px; height: 20px; transition: transform 180ms ease; }
#leyi-contact-v1 #faq details[open] summary svg { transform: rotate(45deg); }
#leyi-contact-v1 #faq p { font-size: 16px; line-height: 1.8; color: #51606A; padding: 0 40px 22px 0; }

#leyi-contact-v1 #faq details.leyi-faq-motion > p {
	display: block;
	height: 0;
	opacity: 0;
	padding-bottom: 0 !important;
	overflow: hidden;
	pointer-events: none;
	transition: height 340ms cubic-bezier(.22, 1, .36, 1), opacity 220ms ease;
}
#leyi-contact-v1 #faq details.leyi-faq-motion.is-open > p {
	opacity: 1;
	padding-bottom: 22px !important;
	pointer-events: auto;
}

/* Submit gate: inert until the privacy consent is checked (light card ground). */
#leyi-contact-v1 #iq button[type=submit]:disabled,
#leyi-contact-v1 #iq button[type=submit].is-locked {
	background: #C2CBD3;
	cursor: not-allowed;
	pointer-events: none;
	box-shadow: none;
	transform: none;
}
#leyi-contact-v1 #iq button[type=submit]:disabled:active { transform: none; }
