/* Only the SmartLab contact panel and its React portal use these rules. */
.smartlab-contact__heading { max-width: 760px; margin-bottom: 36px; }
.smartlab-contact__kicker { font-size: 13px; line-height: 1.6; letter-spacing: .1em; color: #a7bdc9; }
.smartlab-contact__heading h2 { margin: 12px 0 18px; font-size: clamp(34px, 4vw, 54px); line-height: 1.25; letter-spacing: -.035em; color: #edf0ee; }
.smartlab-contact__lead { font-size: 16px; line-height: 1.9; color: #b4c2c8; }
.smartlab-contact__panel { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); background: #fff; border-radius: 28px; overflow: hidden; box-shadow: 0 18px 50px #0002; }
.smartlab-contact__info { min-width: 0; padding: clamp(28px, 3.5vw, 52px); color: #edf0ee; background: linear-gradient(180deg, #0d1b2bd9, #0d1b2bf2), url('/smartlab/assets/lab-tour-refined-first.webp') center / cover; }
.smartlab-contact__detail { margin-top: 30px; }
.smartlab-contact__detail h3 { margin-bottom: 10px; font-size: 13px; line-height: 1.5; color: #a7bdc9; }
.smartlab-contact__detail p { font-size: 16px; line-height: 1.8; color: #edf0ee; }
.smartlab-contact__detail .smartlab-contact__note { margin-top: 10px; font-size: 13px; line-height: 1.85; color: #bbcad3; }
.smartlab-contact__email { display: inline-block; max-width: 100%; font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; color: #fff; border-bottom: 1px solid #b2c7d56b; }
.smartlab-contact__email:hover { border-color: #fff; }
.smartlab-contact__engineering { display: inline-block; margin-top: 32px; font-size: 13px; color: #bbcad3; text-decoration: underline; text-underline-offset: 4px; }
.smartlab-contact__form-panel { min-width: 0; padding: clamp(24px, 3.5vw, 48px); background: #fff; color: #172638; color-scheme: light; }
.smartlab-contact-form:not(:empty) + .smartlab-contact__fallback { display: none; }
.smartlab-contact__fallback p { margin-bottom: 24px; font-size: 16px; line-height: 1.8; color: #46596a; }
.smartlab-contact-form form > * + * { margin-top: 20px; }
.smartlab-contact-form [hidden] { display: none !important; }
.smartlab-contact-form form > [hidden] + * { margin-top: 0; }
.smartlab-contact-form form > .grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.smartlab-contact-form label { display: block; min-width: 0; }
.smartlab-contact-form label > span { display: block; margin-bottom: 6px; font-size: 12px; line-height: 1.6; font-weight: 500; color: #526272; }
.smartlab-contact-form .input-field { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; padding: 11px 13px; border: 1px solid #cbd5df; border-radius: 8px; background: #fff; color: #172638; font: inherit; font-size: 15px; line-height: 1.5; }
.smartlab-contact-form .input-field:focus { outline: 2px solid #2563eb; outline-offset: 2px; border-color: #2563eb; }
.smartlab-contact-form textarea.input-field { min-height: 130px; resize: vertical; }
.smartlab-contact-form select.input-field { cursor: pointer; }
.smartlab-contact-form [role='alert'] { font-size: 14px; line-height: 1.8; color: #8a3b32; overflow-wrap: anywhere; }
.smartlab-contact-form [role='status'] { font-size: 14px; line-height: 1.8; color: #3d6b4f; }
.smartlab-contact-form form a { text-decoration: underline; text-underline-offset: 3px; }
.smartlab-contact-form .btn-primary,
.smartlab-contact__form-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 27px; border: 1px solid #2563eb; border-radius: 8px; background: #2563eb; color: #fff; font: inherit; font-size: 14px; line-height: 1.5; font-weight: 500; letter-spacing: .05em; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.smartlab-contact-form .btn-primary:hover:not(:disabled),
.smartlab-contact__form-link:hover { background: #1d4ed8; border-color: #1d4ed8; }
.smartlab-contact-form .btn-primary:focus-visible,
.smartlab-contact__form-link:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
.smartlab-contact-form .btn-primary:disabled { opacity: .6; cursor: wait; }
@media (max-width: 800px) {
  .smartlab-contact__panel { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
}
@media (max-width: 540px) {
  .smartlab-contact-form form > .grid { grid-template-columns: minmax(0, 1fr); }
  .smartlab-contact__heading { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .smartlab-contact-form .btn-primary,
  .smartlab-contact__form-link { transition: none; }
}
