:root {
  --page-bg: #eef2f4;
  --card-bg: #ffffff;
  --card-border: #dde5eb;
  --text: #1f2a37;
  --muted: #4b5563;
  --navy: #083466;
  --green: #43ac8e;
  --green-dark: #2f9b73;
  --yellow: #f4e500;
  --yellow-border: #d9ce17;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.04);
  --radius-panel: 18px;
  --radius-card: 12px;
  --radius-pill: 999px;
  --card-hover: #e5eaf2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--page-bg);
  color: var(--text);
}

.app-shell {
  max-width: 1250px;
  margin: 0 auto;
}

/* top search */
.hero {
  margin-bottom: 18px;
}

.hero-inner {
  max-width: 1180px;
  margin: 0 auto;
  background: #fff;
  border: 4px solid var(--navy);
  border-radius: 22px;
  padding: 1px 14px 4px 14px;
  box-shadow: none;
}

.hero-label {
  display: none;
}

/* wrapper */
.ts-wrapper.multi {
  width: 100%;
}

.ts-wrapper.multi .ts-control {
  min-height: 48px;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none !important;
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 8px 2px 40px; /* reserves space for icon */
}

/* magnifying glass */
.ts-wrapper.multi .ts-control::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  pointer-events: none;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23123f78' stroke-width='2.5'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>");
}

/* selected chips */
.lm-select .ts-wrapper.multi .ts-control > div {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  background: #55b89a;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
}

/* chip remove icon */
.lm-select .ts-wrapper.multi .ts-control > div .remove {
  border-left: 0 !important;
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 18px;
  line-height: 1;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

/* typing input */
.lm-select .ts-wrapper.multi .ts-control > input {
  flex: 1 1 260px;
  min-width: 260px !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy) !important;
  background: transparent !important;
}

/* placeholder when no chips selected */
.ts-wrapper.multi .ts-control > input::placeholder {
  color: var(--navy);
  opacity: 1;
}

.ts-wrapper.multi.has-items .ts-control {
	padding-left: 2rem !important;
}

/* when chips exist, hide placeholder and collapse visible input area */
.lm-select .ts-wrapper.multi.has-items .ts-control > input {
  flex: 0 0 18px !important;
  /*min-width: 18px !important;
  width: 18px !important;*/
  opacity: 1 !important;
}

.ts-wrapper.multi.has-items .ts-control > input::placeholder {
  opacity: 0 !important;
  color: transparent !important;
}

/* dropdown */
.lm-select .ts-dropdown {
  margin-top: 8px;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lm-select .ts-dropdown .option,
.lm-select .ts-dropdown .active {
  padding: 12px 14px;
  font-size: 15px;
}

.lm-select .ts-dropdown .active {
  background: #eef6ff;
  color: var(--navy);
}

/* layout */
.layout {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 26px;
  align-items: start;
  margin-bottom: 26px;
  /*padding: 0 22px;
  max-width: 1440px;*/
}

.panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-panel);
  padding: 22px;
  box-shadow: var(--shadow);
}

.panel-header {
  margin-bottom: 16px;
}

.layout .panel-header h2 {
  color: var(--navy);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.panel-intro {
  margin: 14px 0 0 0;
  color: #2f2f2f;
  font-size: 14px;
  line-height: 1.45;
  padding-top: .5rem;
}

/* browse state */
.program-browse-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.program-browse-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #d8e1e8;
  background: #f8fafb;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease;
  color: #161616 !important;
}

.program-browse-card:hover {
  background: var(--card-hover);
  border-color: #cbd5df;
}

.program-browse-card.datasheet:link {
	background-color: var(--green) !important; 
	color: #fff !important;
}
.program-browse-card.datasheet:hover {
	background-color: var(--green-dark) !important;
	color: #fff !important;
}

/* matched state */
.program-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-list[hidden],
.program-browse-list[hidden] {
  display: none !important;
}

.program-card {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #d8e1e8;
  border-radius: 12px;
  padding: 14px 48px 14px 14px;
  box-shadow: none;
}

.program-card:hover {
  background: var(--card-hover);
}

.program-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.3;
}

.program-card::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  opacity: 0.55;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'><path d='M14 5h5v5'/><path d='M10 14 19 5'/><path d='M19 14v5H5V5h5'/></svg>");
}

.match-boxes {
  display: flex;
  gap: 8px;
}

.match-box {
  width: 86px;
  height: 18px;
  border-radius: 4px;
  border: 1px solid #e3e8ee;
  background: #f5f7fa;
}

.match-box.filled {
  background: linear-gradient(180deg, #fff26a 0%, var(--yellow) 100%);
  border-color: var(--yellow-border);
}

/* erm side */
.panel-erm {
  padding: 16px 18px 18px;
}
.panel-erm > a {
  text-decoration: none;
}

.erm-top-card {
  position: relative;
  background: #f8fafb;
  border: 1px solid #d8e1e8;
  border-radius: 12px;
  padding: 14px 52px 14px 14px;
  margin-bottom: 18px;
}

.panel-erm > a:hover .erm-top-card {
  background-color: var(--card-hover);
}

.erm-top-card::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  opacity: 0.55;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8' stroke-width='2'><path d='M14 5h5v5'/><path d='M10 14 19 5'/><path d='M19 14v5H5V5h5'/></svg>");
}

.erm-kicker {
  margin-bottom: 3px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.layout .erm-top-card h2 {
  margin: 0;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}

.erm-main-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  min-height: 360px;
  box-shadow: none;
}

.layout .erm-main-card h3 {
  margin: 0 0 14px 0;
  color: #111827;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.erm-main-card p,
.erm-explainer {
  font-size: 16px;
  line-height: 1.5;
}

.erm-main-card ul {
  margin: 0 0 18px 20px;
  padding: 0;
}

.erm-main-card li {
  margin-bottom: 8px;
  line-height: 1.45;
  color: #262626;
}

.erm-usecase-card {
  background: #f8fafb;
  border: 1px solid #d8e1e8;
  border-radius: 10px;
  padding: 14px 16px;
}

.erm-section-heading {
  margin: 18px 0 14px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
}

.erm-usecase-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}

.erm-usecase-card {
  background: #f8fafb;
  border: 1px solid #d8e1e8;
  border-radius: 10px;
  padding: 12px 14px;
}

.layout .erm-usecase-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.erm-usecase-card ul {
  margin: 0;
  padding-left: 18px;
}

.erm-usecase-card li {
  margin-bottom: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: #262626;
}

.erm-usecase-card li:last-child {
  margin-bottom: 0;
}

/* CTA section */
.cta-panel {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 26px;
  align-items: start;
}

.cta-copy {
  padding-right: 10px;
}

.cta-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 14px;
}

.cta-title::before {
  content: "";
  width: 26px;
  height: 20px;
  flex: 0 0 auto;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 18' stroke='%23123f78' stroke-width='1.8'><path d='M1 2h22v14H1z'/><path d='m2 3 10 8 10-8'/></svg>");
}

.cta-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: #262626;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid #d8e1e8;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: #1f2937;
  background: #fff;
  min-height: 42px;
}

.form-field textarea {
  min-height: 84px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9ca3af;
}

.form-field input[readonly],
.form-field textarea[readonly] {
  background: #f8fafb;
  color: #475569;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #c3d1dc;
  box-shadow: none;
}

.form-meta {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: #8a8f98;
}

.form-meta a {
  color: #8a8f98;
}

.form-consent {
  margin-top: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.4;
  color: #6b7280;
}

.form-consent input {
  margin-top: 2px;
}

.form-consent a {
  color: #5b718d;
  text-decoration: none;
}

.form-actions {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 14px 34px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #36b24f;
  cursor: pointer;
  box-shadow: none;
}

.btn-primary:hover {
  background: #2ea347;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
}

.status-neutral {
  color: var(--muted);
}

.status-success {
  color: var(--green-dark);
}

.status-error {
  color: #b42318;
}

.empty-state {
  padding: 14px;
  border-radius: 10px;
  border: 1px dashed #d8e1e8;
  background: #f8fafb;
  color: #64748b;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .layout,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    max-width: none;
  }
}

@media (max-width: 700px) {

  .panel {
    padding: 16px;
  }

  .panel-header h2,
  .erm-top-card h2,
  .cta-title {
    font-size: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .match-box {
    width: 72px;
  }
}

/* Recap Form Styling */
/* Recap email panel */
.recap-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.35fr);
  gap: 40px;
  align-items: start;
  background: #ffffff;
  border: 1px solid #e3ebf1;
  border-radius: 18px;
  padding: 26px 32px 18px;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.recap-panel .recap-title {
  position: relative;
  margin: 0 0 26px 48px;
  color: #083466;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.recap-title::before {
  content: "";
  position: absolute;
  left: -48px;
  top: -2px;
  width: 36px;
  height: 30px;
  background: no-repeat center / contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 42 32' stroke='%23083466' stroke-width='3'><rect x='2' y='3' width='38' height='26'/><path d='M4 5l17 14L38 5'/><path d='M4 30l13-13'/><path d='M38 30L25 17'/></svg>");
}

.recap-copy p,
.recap-success-copy p {
  font-size: 16px;
  line-height: 1.5;
}

.recap-form {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-field label {
  line-height: 1.2;
}

.form-field input,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  border: 2px solid #e0e7ef;
  border-radius: 11px;
  padding: 10px 12px;
  background: #ffffff;
  color: #111827;
  font: inherit;
  font-size: 18px;
  box-shadow: inset 0 1px 1px rgba(16, 24, 40, 0.03);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #80868c;
  font-weight: 600;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #b7c7d6;
  box-shadow: 0 0 0 3px rgba(8, 52, 102, 0.08);
}

.recap-form .form-meta {
  margin: 18px 0 14px;
  color: #8b8b8b;
  font-size: 16px;
  line-height: 1.4;
}

.recap-form .form-meta a {
  color: #8b8b8b !important;
  text-decoration: underline;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #7b8794;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.form-consent input {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: #36b24f;
}

.form-consent sup {
  color: #d12d2d;
  font-size: 13px;
  line-height: 0;
}

.recap-auto-fields,
.recap-auto-fields[hidden] {
  display: none !important;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  padding: 13px 42px;
  background: #34ae50;
  color: #ffffff !important;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #2ea048;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
}

.status-success {
  color: #2f9b73;
}

.status-error {
  color: #b42318;
}

/* Success state */
.recap-success {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(360px, 1.25fr);
  gap: 36px;
  align-items: center;
  min-height: 210px;
}

.recap-success[hidden] {
  display: none !important;
}

.recap-success-copy {
  max-width: 560px;
}

.recap-success .recap-title {
  margin-bottom: 22px;
}

.recap-success-copy p {
  font-size: 17px;
  line-height: 1.45;
}

.recap-demo-button {
  margin-top: 20px;
  padding-left: 24px;
  padding-right: 24px;
}

.recap-plane svg {
  width: 100%;
  max-width: 620px;
  height: auto;
}

.plane-path,
.plane-shape {
  fill: none;
  stroke: #43ac8e;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.plane-path {
  stroke-dasharray: 14 18;
}

@media (max-width: 1100px) {
  .recap-panel,
  .recap-success {
    grid-template-columns: 1fr;
  }

  .recap-plane {
    display: none;
  }
}

@media (max-width: 700px) {
  .recap-panel {
    padding: 22px 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .recap-title {
    margin-left: 42px;
    font-size: 22px;
  }

  .recap-title::before {
    left: -42px;
    width: 32px;
    height: 26px;
  }

  .recap-copy p,
  .recap-success-copy p {
    font-size: 16px;
  }

  .btn-primary {
    width: 100%;
  }
}