:root {
  --qcd-navy: #0d1b3d;
  --qcd-blue: #174b78;
  --qcd-bright: #2468c9;
  --qcd-aqua: #69c8d4;
  --qcd-yellow: #ffca16;
  --qcd-ink: #14233b;
  --qcd-muted: #607089;
  --qcd-line: #dce4ef;
  --qcd-pale: #f2f6fc;
  --qcd-green: #087a50;
}

.qcd-mh {
  max-width: 1180px;
  margin: 0 auto 48px;
  color: var(--qcd-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.qcd-mh * {
  box-sizing: border-box;
}

.qcd-mh-demo,
.qcd-mh-notice {
  padding: 13px 18px;
  border-radius: 12px;
  margin: 16px 0;
}

.qcd-mh-demo {
  background: #fff7d6;
  border: 1px solid #eed270;
}

.qcd-mh-success {
  background: #e9f8f0;
  border-left: 4px solid var(--qcd-green);
}

.qcd-mh-error {
  background: #fff0f0;
  border-left: 4px solid #c73535;
}

.qcd-mh-hero,
.qcd-mh-dashboard-head {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  border-radius: 24px;
  padding: 48px;
  background: linear-gradient(135deg, var(--qcd-navy), var(--qcd-blue));
  color: #fff;
  box-shadow: 0 20px 55px rgba(13, 27, 61, .18);
}

.qcd-mh-hero > div:first-child,
.qcd-mh-dashboard-head > div:first-child {
  position: relative;
  z-index: 2;
}

.qcd-mh-hero h1,
.qcd-mh-dashboard-head h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.03;
  margin: 10px 0 15px;
  color: #fff;
  letter-spacing: -.035em;
}

.qcd-mh-hero p,
.qcd-mh-dashboard-head p {
  font-size: 18px;
  max-width: 720px;
  margin: 0;
  color: #e3edfa;
}

.qcd-mh-eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 800;
  color: #b9cdf0;
}

.qcd-mh-hero-flow {
  position: relative;
  z-index: 1;
  width: 230px;
  height: 150px;
  flex: 0 0 230px;
  filter: drop-shadow(0 18px 24px rgba(5, 20, 45, .2));
}

.qcd-mh-hero-flow span {
  position: absolute;
  display: block;
  border-radius: 999px 28px 999px 36px;
  transform: rotate(-12deg);
}

.qcd-mh-hero-flow span:nth-child(1) {
  inset: 17px 0 55px 22px;
  background: linear-gradient(90deg, rgba(105, 200, 212, .92), rgba(36, 104, 201, .72));
}

.qcd-mh-hero-flow span:nth-child(2) {
  inset: 60px 24px 18px 0;
  background: linear-gradient(90deg, rgba(36, 104, 201, .72), rgba(105, 200, 212, .55));
  transform: rotate(8deg);
}

.qcd-mh-hero-flow span:nth-child(3) {
  width: 62px;
  height: 16px;
  right: 18px;
  bottom: 17px;
  background: rgba(255, 202, 22, .9);
  transform: rotate(-20deg);
}

.qcd-mh-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.qcd-mh-panel {
  background: #fff;
  border: 1px solid var(--qcd-line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 32px rgba(20, 35, 59, .08);
}

.qcd-mh-panel h2 {
  font-size: 28px;
  margin: 0 0 8px;
}

.qcd-mh-panel > p {
  color: var(--qcd-muted);
}

.qcd-mh-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.qcd-mh-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 750;
}

.qcd-mh-form input,
.qcd-mh-form select {
  width: 100%;
  border: 1px solid #bcc9da;
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  background: #fff;
  color: var(--qcd-ink);
}

.qcd-mh-form select {
  display: block !important;
  height: 50px !important;
  min-height: 50px !important;
  line-height: 1.2 !important;
  padding: 0 44px 0 14px !important;
}

.qcd-mh-form input:focus,
.qcd-mh-form select:focus {
  outline: 3px solid rgba(36, 104, 201, .18);
  border-color: var(--qcd-bright);
}

.qcd-mh-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: var(--qcd-yellow);
  color: var(--qcd-navy);
  font-weight: 850;
  font-size: 16px;
  cursor: pointer;
}

.qcd-mh-button-dark {
  background: var(--qcd-navy);
  color: #fff;
}

.qcd-mh-demo-credentials {
  margin-top: 24px;
  padding: 18px;
  border-radius: 14px;
  background: var(--qcd-pale);
  font-size: 13px;
}

.qcd-mh-demo-credentials h3 {
  margin: 0;
}

.qcd-mh-dashboard-head {
  padding: 36px;
}

.qcd-mh-dashboard-head h1 {
  font-size: 44px;
}

.qcd-mh-link-button {
  position: relative;
  z-index: 2;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  color: #fff;
  padding: 10px 18px;
  cursor: pointer;
}

.qcd-mh-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 22px 0;
}

.qcd-mh-status-grid > div {
  display: grid;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--qcd-line);
  border-radius: 16px;
  padding: 18px;
}

.qcd-mh-status-grid span {
  color: var(--qcd-muted);
  font-size: 13px;
}

.qcd-mh-active {
  color: var(--qcd-green);
}

.qcd-mh-family-panel {
  padding: 22px;
}

.qcd-mh-family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.qcd-mh-person {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  margin: 0;
  border: 1px solid var(--qcd-line);
  border-radius: 12px;
  background: var(--qcd-pale);
}

.qcd-mh-person strong {
  overflow-wrap: anywhere;
}

.qcd-mh-person span {
  color: var(--qcd-muted);
  font-size: 12px;
}

.qcd-mh-person-primary {
  grid-column: 1 / -1;
  background: #eef5ff;
  border-color: #cbdcf4;
}

.qcd-mh-tool {
  appearance: none;
  display: grid;
  gap: 3px;
  text-decoration: none;
  color: var(--qcd-ink);
  padding: 16px;
  border: 1px solid var(--qcd-line);
  border-radius: 13px;
  margin-top: 12px;
  background: #fff;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.qcd-mh-tool span {
  color: var(--qcd-bright);
  font-size: 13px;
  transition: color .18s ease;
}

.qcd-mh .qcd-mh-tool:hover,
.qcd-mh .qcd-mh-tool:focus-visible {
  background: #4a90d9 !important;
  border-color: #4a90d9 !important;
  color: #fff !important;
  box-shadow: 0 9px 20px rgba(36, 104, 201, .2);
  transform: translateY(-1px);
}

.qcd-mh .qcd-mh-tool:hover strong,
.qcd-mh .qcd-mh-tool:hover span,
.qcd-mh .qcd-mh-tool:focus-visible strong,
.qcd-mh .qcd-mh-tool:focus-visible span {
  color: #fff !important;
}

.qcd-mh .qcd-mh-tool:focus-visible {
  outline: 3px solid rgba(74, 144, 217, .3);
  outline-offset: 2px;
}

.qcd-mh-tool-button {
  font: inherit;
}

.qcd-mh-card-wrap {
  margin: 26px auto;
  max-width: 680px;
}

.qcd-mh-card {
  overflow: hidden;
  border: 1px solid #c9d4e3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(13, 27, 61, .14);
}

.qcd-mh-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 24px;
  background: linear-gradient(120deg, var(--qcd-navy), var(--qcd-blue));
  color: #fff;
}

.qcd-mh-card-logo {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.08em;
}

.qcd-mh-card-logo small {
  font-size: 8px;
  letter-spacing: .2em;
  margin-left: 10px;
}

.qcd-mh-card-plan {
  font-size: 16px;
  letter-spacing: .08em;
}

.qcd-mh-card-plan strong {
  color: inherit;
}

.qcd-mh-card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 11px;
  border-bottom: 1px solid var(--qcd-line);
}

.qcd-mh-card-title h2 {
  margin: 0;
  font-size: 22px;
}

.qcd-mh-card-title p {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.qcd-mh-card-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
  padding: 12px 24px;
}

.qcd-mh-card-fields div {
  display: grid;
  gap: 3px;
  padding: 8px 0;
  border-bottom: 1px solid var(--qcd-line);
}

.qcd-mh-card-fields span,
.qcd-mh-card-dependents span {
  color: var(--qcd-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.qcd-mh-card-dependents {
  display: grid;
  gap: 6px;
  padding: 3px 24px 18px;
}

.qcd-mh-card-dependent-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
}

.qcd-mh-card footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 24px;
  background: var(--qcd-pale);
  font-size: 10px;
}

.qcd-mh-card footer p {
  margin: 0;
  color: #41516a;
}

.qcd-mh-card footer b {
  color: var(--qcd-bright);
}

@media (max-width: 760px) {
  .qcd-mh-hero,
  .qcd-mh-dashboard-head {
    padding: 28px;
    align-items: flex-start;
  }

  .qcd-mh-hero-flow {
    width: 145px;
    height: 110px;
    flex-basis: 145px;
  }

  .qcd-mh-columns {
    grid-template-columns: 1fr;
  }

  .qcd-mh-status-grid {
    grid-template-columns: 1fr 1fr;
  }

  .qcd-mh-card-title,
  .qcd-mh-card footer {
    display: grid;
    gap: 10px;
  }

  .qcd-mh-card-fields {
    grid-template-columns: 1fr;
  }

  .qcd-mh-card header,
  .qcd-mh-card-title,
  .qcd-mh-card-fields,
  .qcd-mh-card-dependents,
  .qcd-mh-card footer {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 560px) {
  .qcd-mh-hero-flow {
    display: none;
  }

  .qcd-mh-family-grid {
    grid-template-columns: 1fr;
  }

  .qcd-mh-person-primary {
    grid-column: auto;
  }
}

@media print {
  @page {
    size: letter portrait;
    margin: .5in;
  }

  body * {
    visibility: hidden !important;
  }

  .qcd-mh-card-wrap,
  .qcd-mh-card-wrap * {
    visibility: visible !important;
  }

  .qcd-mh-card-wrap {
    position: fixed;
    left: 0;
    top: 0;
    width: 4.25in;
    height: 2.75in;
    max-width: none;
    margin: 0;
  }

  .qcd-mh-card {
    width: 4.25in;
    height: 2.75in;
    border: 1px solid #777;
    box-shadow: none;
  }

  .qcd-mh-card header,
  .qcd-mh-card footer {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .qcd-mh-card header {
    background: #0d1b3d !important;
  }

  .qcd-mh-card footer {
    background: #f2f6fc !important;
  }
}
