/* =========================================================
   demo-form.css  (VigilX, TrackAim and Empload pages)
   Each page sets these on :root to match its own theme:
   --df-accent, --df-accent-ink, --df-ink, --df-font, --df-radius
   ========================================================= */
.df-lock,
.df-lock body {
  overflow: hidden;
}

.df-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(6, 14, 34, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.df-overlay.is-open {
  opacity: 1;
}

.df-card {
  position: relative;
  width: min(640px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 34px 34px 28px;
  border-radius: calc(var(--df-radius, 12px) + 6px);
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(6, 14, 34, 0.55);
  color: var(--df-ink, #0b1736);
  font-family: var(--df-font, system-ui, sans-serif);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.df-overlay.is-open .df-card {
  transform: none;
}

.df-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(11, 23, 54, 0.12);
  border-radius: 50%;
  background: #fff;
  color: inherit;
  cursor: pointer;
}

.df-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.df-close:hover {
  border-color: currentColor;
}

.df-eyebrow {
  color: var(--df-accent, #2563eb);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.df-head h2,
.df-done h2 {
  margin: 8px 0 8px;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.df-head p,
.df-done p {
  margin: 0;
  color: rgba(11, 23, 54, 0.66);
  font-size: 15px;
}

.df-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 24px;
}

.df-wide {
  grid-column: 1 / -1;
}

.df-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.df-field {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
}

.df-field i {
  color: #e5484d;
  font-style: normal;
}

.df-field input,
.df-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(11, 23, 54, 0.16);
  border-radius: var(--df-radius, 12px);
  background: #fff;
  color: inherit;
  font: 500 15px/1.4 var(--df-font, system-ui, sans-serif);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.df-field textarea {
  resize: vertical;
  min-height: 96px;
}

.df-field input:focus,
.df-field textarea:focus {
  outline: none;
  border-color: var(--df-accent, #2563eb);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--df-accent, #2563eb) 18%, transparent);
}

.df-field em {
  min-height: 0;
  color: #d93036;
  font-size: 12.5px;
  font-style: normal;
  font-weight: 600;
}

.df-field em:empty {
  display: none;
}

.df-field.has-error input {
  border-color: #e5484d;
}

.df-alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--df-radius, 12px);
  background: #fff1f1;
  color: #a1262b;
  font-size: 14px;
}

.df-alert a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.df-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.df-actions small {
  color: rgba(11, 23, 54, 0.55);
  font-size: 12.5px;
}

.df-submit {
  flex: none;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--df-radius, 12px);
  background: var(--df-accent, #2563eb);
  color: var(--df-accent-ink, #fff);
  font: 700 15px var(--df-font, system-ui, sans-serif);
  cursor: pointer;
  transition: filter 0.2s, transform 0.2s;
}

.df-submit:hover {
  filter: brightness(1.08);
}

.df-submit:active {
  transform: translateY(1px);
}

.df-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.df-done {
  padding: 18px 0 6px;
  text-align: center;
}

.df-done-icon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 8px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--df-accent, #2563eb) 14%, #fff);
  color: var(--df-accent, #2563eb);
}

.df-done-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.df-done .df-submit {
  margin-top: 22px;
}

@media (max-width: 560px) {
  .df-card {
    padding: 28px 20px 22px;
  }

  .df-form {
    grid-template-columns: 1fr;
  }

  .df-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .df-overlay,
  .df-card {
    transition: none;
  }
}
