.article-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 760px;
  margin: 64px auto 0;
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(135deg, #10172f, #1c326f);
  color: #fff;
}

.article-contact__eyebrow {
  margin: 0 0 8px;
  color: #82adff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-contact h2 {
  margin: 0;
  font: 600 clamp(1.45rem, 3vw, 2rem)/1.2 var(--font-sans);
  letter-spacing: -0.03em;
}

.article-contact p:last-child {
  max-width: 520px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.6;
}

.article-contact__button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 24px;
  font-weight: 700;
}

.demo {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--font-sans);
}

.demo[hidden],
.demo-success[hidden] {
  display: none;
}

.demo__overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 4, 12, 0.55);
  backdrop-filter: blur(6px);
}

.demo__dialog {
  position: relative;
  width: min(560px, 100%);
  max-height: 100vh;
  margin: auto;
  padding: clamp(24px, 4vw, 40px);
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 40px 90px rgba(15, 23, 42, 0.28);
}

.demo__x {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #f7f8fc;
  color: #111827;
  cursor: pointer;
}

.demo__x svg,
.demo-success__badge svg,
.demo__optin-box svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo__x svg {
  width: 18px;
  stroke-width: 1.8;
}

.demo__title {
  margin: 0;
  color: #111827;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.demo__subtitle,
.demo-success p {
  margin: 10px 0 0;
  color: #667085;
  font-size: 0.95rem;
  line-height: 1.6;
}

.demo__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.demo__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.demo-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #667085;
  font-size: 0.8rem;
  font-weight: 600;
}

.demo-field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f7f8fc;
  color: #323232;
  font: 0.95rem var(--font-sans);
}

.demo-field input:focus {
  border-color: var(--color-accent);
  outline: none;
  background: #fff;
}

.demo__optin {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  margin-top: 4px;
  color: #667085;
  font-size: 0.8rem;
  line-height: 1.45;
  cursor: pointer;
}

.demo__optin input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.demo__optin-box {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid #d5d9e2;
  border-radius: 6px;
  background: #f7f8fc;
}

.demo__optin-box svg {
  width: 13px;
  color: #fff;
  stroke-width: 2.6;
  opacity: 0;
}

.demo__optin input:checked + .demo__optin-box {
  border-color: var(--color-accent);
  background: var(--color-accent);
}

.demo__optin input:checked + .demo__optin-box svg {
  opacity: 1;
}

.demo__optin input:focus-visible + .demo__optin-box {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.demo__submit {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 12px 24px;
  border: 0;
  font-weight: 700;
}

.demo__submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.demo__legal {
  margin: 10px 0 0;
  color: #667085;
  font-size: 0.75rem;
  line-height: 1.45;
}

.demo__legal a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-success {
  text-align: center;
}

.demo-success__badge {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: #eef3ff;
  color: var(--color-accent);
}

.demo-success__badge svg {
  width: 34px;
  stroke-width: 2.2;
}

.demo-success__next {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background: #f7f8fc;
  text-align: left;
}

.demo-success__next h3 {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
}

@media (max-width: 560px) {
  .article-contact {
    align-items: stretch;
    flex-direction: column;
    padding: 28px;
  }

  .demo__row {
    grid-template-columns: 1fr;
  }

  .demo__dialog {
    height: 100dvh;
    max-height: 100dvh;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-radius: 0;
  }
}
