.contact-lab-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; color: #0757d8; font-weight: 850; text-underline-offset: 5px; }
.form-lab { max-width: 1220px; margin: 0 auto; padding: 20px 20px 80px; scroll-margin-top: 130px; }
.lab-hero { border-radius: 30px; background: #0a1833; color: #fff; padding: clamp(24px, 5vw, 48px); position: relative; overflow: hidden; }
.lab-hero .eyebrow { background: #223862; color: #d9e8ff; }
.lab-hero h2 { margin: 16px 0; font-size: clamp(38px, 6vw, 66px); line-height: 1.05; letter-spacing: -.055em; }
.lab-hero p { max-width: 720px; color: #c8d6ed; line-height: 1.7; }
.lab-hero a { color: #fff; text-underline-offset: 4px; }
.lab-quicklinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.lab-quicklinks a { padding: 10px 14px; border: 1px solid #50668b; border-radius: 12px; text-decoration: none; font-size: 14px; font-weight: 750; }
.lab-quicklinks a:hover { background: #223862; }
.lab-instructions { padding: 20px 0 26px; display: flex; gap: 20px; align-items: baseline; justify-content: space-between; }
.lab-instructions p { margin: 0; color: #526c8c; line-height: 1.7; max-width: 790px; }
.lab-instructions a { color: #0757d8; font-weight: 800; white-space: nowrap; text-underline-offset: 4px; }
.lab-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.lab-card { padding: clamp(22px, 3vw, 30px); min-width: 0; scroll-margin-top: 140px; box-shadow: 0 12px 32px rgba(13, 58, 130, .09); }
.lab-card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.lab-number { color: #527091; font-size: 13px; font-weight: 850; letter-spacing: .07em; }
.lab-badge { border-radius: 100px; padding: 6px 10px; background: #e8f0ff; color: #154fb3; font-size: 12px; font-weight: 850; }
.lab-badge[data-state="ready"] { background: #e4f6ec; color: #19603c; }
.lab-badge[data-state="pending"] { background: #fff2d6; color: #765002; }
.lab-card h3 { margin: 18px 0 8px; font-size: 27px; line-height: 1.15; letter-spacing: -.035em; }
.lab-description { color: #526c8c; line-height: 1.65; margin: 0 0 14px; }
.lab-meta { font-size: 13px; color: #315078; font-weight: 750; padding-bottom: 17px; margin-bottom: 17px; border-bottom: 1px solid var(--border); line-height: 1.6; }
.lab-meta a { text-underline-offset: 3px; }
.lab-availability { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #edd79b; border-radius: 12px; color: #674a12; background: #fff9e9; font-size: 14px; line-height: 1.6; }
.lab-example > summary { cursor: pointer; color: #0757d8; font-weight: 850; padding: 6px 0 16px; }
.lab-example[open] > summary { margin-bottom: 6px; }
.lab-form, .lab-form fieldset { min-width: 0; }
.lab-form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 15px; }
.lab-form fieldset:disabled { opacity: .65; }
.lab-form .field label { font-size: 14px; color: #243c5c; }
.lab-form .field label span { font-size: 12px; font-weight: 500; color: #526c8c; }
.lab-form input:not([type="hidden"]):not([type="checkbox"]), .lab-form textarea, .lab-form select { width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid #aec4e0; border-radius: 12px; color: var(--ink); background: #f7faff; font-size: 16px; }
.lab-form textarea { display: block; min-height: 122px; resize: vertical; line-height: 1.6; }
.lab-form input:focus, .lab-form textarea:focus, .lab-form select:focus { outline: 2px solid var(--blue); outline-offset: 2px; background: #fff; }
.lab-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lab-form .lab-honeypot { display: none; }
.lab-form .btn { width: 100%; justify-content: center; }
.lab-form .btn:disabled { cursor: not-allowed; opacity: .65; transform: none; }
.lab-help, .lab-privacy { font-size: 12px; color: #526c8c; line-height: 1.65; margin: 0; }
.lab-privacy { margin-top: 12px; }
.lab-privacy a { text-underline-offset: 3px; }
.lab-status { font-size: 14px; line-height: 1.65; border-radius: 12px; margin: 14px 0 0; padding: 12px 14px; background: #edf3ff; color: #264971; overflow-wrap: anywhere; }
.lab-status:empty { display: none; }
.lab-status[data-state="error"] { color: #89243a; background: #fff0f3; }
.lab-status[data-state="success"] { color: #19603c; background: #e4f6ec; }
.lab-owner { margin-top: 26px; border: 1px solid var(--border); background: #fff; border-radius: 22px; padding: 22px; }
.lab-owner summary { cursor: pointer; font-weight: 850; }
.lab-owner p, .lab-owner li { color: #526c8c; line-height: 1.75; }
.lab-owner li { margin-bottom: 8px; }
.lab-owner a { color: #0757d8; text-underline-offset: 4px; }
.lab-owner code { background: #eef5ff; color: #234c88; border-radius: 5px; padding: 2px 5px; overflow-wrap: anywhere; }
.lab-plan-date { color: #526c8c; font-size: 12px; line-height: 1.7; margin-top: 20px; }
.lab-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-lab [hidden] { display: none !important; }
.form-lab a:focus-visible, .form-lab button:focus-visible, .form-lab summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
@media (max-width: 760px) {
  .form-lab, .lab-card { scroll-margin-top: 180px; }
  .lab-grid { grid-template-columns: 1fr; }
  .lab-instructions { display: block; }
  .lab-instructions a { display: inline-block; margin-top: 12px; }
}
@media (max-width: 420px) {
  .lab-field-row { grid-template-columns: 1fr; }
  .lab-quicklinks a { padding: 9px 11px; }
}

/* Google-hosted form: full-width card with a direct-link fallback. */
.lab-card-wide { grid-column: 1 / -1; }
.lab-embed-help { color: #526c8c; font-size: 14px; line-height: 1.7; }
.lab-embed-help a { color: #0757d8; font-weight: 750; text-underline-offset: 3px; }
.lab-sheets-frame { display: block; width: 100%; height: 1000px; border: 1px solid var(--border); border-radius: 16px; background: #f5f9ff; }
@media (max-width: 420px) {
  #test-google-sheets { padding: 16px; }
  .lab-sheets-frame { height: 1150px; }
}
