:root {
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body.nda {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.25), transparent 35%),
    radial-gradient(circle at 85% 0%, rgba(14, 165, 233, 0.2), transparent 30%),
    linear-gradient(180deg, #020617 0%, #0b1120 60%, #020617 100%);
  color: #e2e8f0;
}

.nda--result .nda__shell {
  max-width: 720px;
}

.nda__shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.nda__hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.nda__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.65);
  margin-bottom: 0.75rem;
}

.nda__hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.nda__lead {
  margin: 0 auto;
  max-width: 620px;
  color: rgba(226, 232, 240, 0.85);
  line-height: 1.7;
}

.nda__card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(2, 6, 23, 0.45);
  padding: 2.5rem;
}

.nda__content {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.nda__document {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 1.5rem;
  background: rgba(3, 7, 18, 0.65);
  display: flex;
  flex-direction: column;
}

.nda__document-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.nda__document h2 {
  margin: 0;
}

.nda__hint {
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.6);
  margin: 0 0 0.5rem;
}

.nda__text {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 0.75rem;
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.9);
}

.nda__text p + p {
  margin-top: 1rem;
}

.nda__text::-webkit-scrollbar {
  width: 6px;
}

.nda__text::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 999px;
}

.nda__form {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 1.5rem;
  background: rgba(3, 7, 18, 0.65);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nda__form h2 {
  margin: 0 0 0.25rem;
}

.nda__field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.8);
}

.nda__field input {
  background: rgba(2, 6, 23, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  color: #e2e8f0;
  padding: 0.65rem 0.85rem;
  font-size: 1rem;
}

.nda__field input:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.nda__error {
  min-height: 1.1rem;
  font-size: 0.85rem;
  color: #f97316;
}

.nda__agree {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.85);
}

.nda__agree input {
  margin-top: 0.2rem;
}

.nda__agree input:disabled + span {
  opacity: 0.6;
}

.nda__status {
  min-height: 1.5rem;
  font-size: 0.95rem;
  color: #fbbf24;
  margin: 0;
  transition: opacity 0.2s ease;
}

.nda__footer-cta {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.button {
  cursor: pointer;
}
.nda__submit {
  position: relative;
  gap: 0.5rem;
}

.nda__spinner {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 2px solid rgba(15, 23, 42, 0.2);
  border-top-color: rgba(15, 23, 42, 0.9);
  animation: spin 0.9s linear infinite;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

body[data-state='submitting'] .nda__spinner {
  opacity: 1;
  transform: scale(1);
}

body[data-state='submitting'] .nda__submit-label {
  opacity: 0.65;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.nda__status {
  opacity: 1;
}

body[data-state='submitting'] .nda__status {
  opacity: 0.6;
}


.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nda__result {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nda__result-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto;
  font-size: 2rem;
  display: grid;
  place-items: center;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.nda__result--error .nda__result-icon {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.5);
  color: #f87171;
}

.nda__receipt {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.nda__receipt dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.6);
}

.nda__receipt dd {
  margin: 0.25rem 0 0;
  font-weight: 600;
}

.nda__result-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nda__lead--muted {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.7);
}

.nda-log__layout {
  max-width: 1400px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nda-log__card {
  width: 100%;
}

.nda-log__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.nda-log__header h2 {
  margin: 0 0 0.25rem;
}

.nda-log__actions {
  display: flex;
  align-items: center;
}

.nda-log__table-wrapper {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  overflow-x: auto;
}

.nda-log__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.nda-log__table th,
.nda-log__table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
  text-align: left;
  white-space: nowrap;
}

.nda-log__table th:first-child,
.nda-log__table td:first-child {
  padding-left: 2rem;
}

.nda-log__table th:last-child,
.nda-log__table td:last-child {
  padding-right: 2rem;
}

.nda-log__table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(226, 232, 240, 0.6);
}

.nda-log__table tr:last-child td {
  border-bottom: none;
}

.nda-log__table tbody tr:hover {
  background: rgba(148, 163, 184, 0.08);
}

.nda__error-text {
  color: #fca5a5;
  font-size: 0.95rem;
  min-height: 1.2rem;
}

.button--small {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.button--danger {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.4);
  color: #f87171;
}

.nda-log__actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nda-log__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: capitalize;
}

.nda-log__badge--pending {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.nda-log__badge--approved {
  background: rgba(34, 197, 94, 0.15);
  color: #34d399;
}

.nda-log__badge--revoked {
  background: rgba(248, 113, 113, 0.15);
  color: #f87171;
}

.nda-log__badge--rejected {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.nda-log__modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  display: grid;
  place-items: center;
  z-index: 10;
}

.nda-log__modal[hidden] {
  display: none;
}

.nda-log__modal-content {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  padding: 1.5rem;
  width: min(420px, 90vw);
}

.nda-log__modal h3 {
  margin-top: 0;
}

.nda-log__modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (max-width: 960px) {
  .nda__content {
    grid-template-columns: 1fr;
  }

  .nda__document,
  .nda__form {
    padding: 1.25rem;
  }
}

@media (max-width: 640px) {
  .nda__card {
    padding: 1.5rem;
  }

  .nda__shell {
    padding: 2.5rem 1rem 3rem;
  }
}

