
/*
 * Form and policy surface polish: reduce card-on-card pressure, make process
 * states visual, and keep trust pages easier to scan on mobile.
 */
.page-shell.page-shell-premium,
.form-shell.page-shell-premium {
  isolation: isolate;
  box-shadow: 0 22px 74px rgba(0, 0, 0, 0.3);
}

.page-shell.page-shell-premium::after,
.form-shell.page-shell-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent, rgba(200, 184, 141, 0.42), transparent) 18px 0 / min(42%, 480px) 1px no-repeat,
    linear-gradient(180deg, rgba(238, 240, 242, 0.07), transparent 38%) 0 0 / 1px 100% no-repeat;
  opacity: 0.72;
}

.page-shell.page-shell-premium > *,
.form-shell.page-shell-premium > * {
  position: relative;
  z-index: 1;
}

.page-shell-route-strip span {
  gap: 6px;
}

.route-strip-icon,
.form-entry-icon {
  flex: 0 0 auto;
  color: rgba(200, 184, 141, 0.92);
}

.route-strip-icon {
  width: 13px;
  height: 13px;
}

.form-entry-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-entry-icon {
  width: 24px;
  height: 24px;
  padding: 4px;
  border: 1px solid rgba(200, 184, 141, 0.22);
  border-radius: 8px;
  background: rgba(200, 184, 141, 0.07);
}

.form-shell .osint4all-form {
  gap: 11px;
  padding: 0;
}

.form-shell .osint4all-form > .osint4all-form-note:first-of-type {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border-color: rgba(200, 184, 141, 0.18);
  background: rgba(200, 184, 141, 0.045);
}

.form-shell .osint4all-form > .osint4all-form-note:first-of-type::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: rgba(122, 167, 138, 0.96);
  box-shadow: 0 0 0 5px rgba(122, 167, 138, 0.12);
}

.form-shell .osint4all-next-steps {
  display: grid;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.form-shell .osint4all-next-steps h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(245, 246, 247, 0.92);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.form-shell .osint4all-next-steps h2::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 1px solid rgba(200, 184, 141, 0.22);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(200, 184, 141, 0.94) 0 2px, transparent 3px),
    rgba(200, 184, 141, 0.06);
}

.form-shell .osint4all-next-steps ul {
  counter-reset: o4-form-step;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.form-shell .osint4all-next-steps li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 50px;
  padding: 9px;
  border-color: rgba(238, 240, 242, 0.09);
  background: rgba(3, 6, 11, 0.22);
}

.form-shell .osint4all-next-steps li::before {
  counter-increment: o4-form-step;
  content: counter(o4-form-step);
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(200, 184, 141, 0.2);
  border-radius: 999px;
  color: rgba(200, 184, 141, 0.94);
  font-family: var(--o4-font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.form-shell .osint4all-form > label {
  gap: 5px;
  color: rgba(238, 240, 242, 0.82);
  font-size: 0.86rem;
}

.form-shell .osint4all-form input,
.form-shell .osint4all-form select,
.form-shell .osint4all-form textarea {
  min-height: 46px;
  padding: 12px 14px;
  min-width: 0;
  border-color: rgba(238, 240, 242, 0.14);
  background: rgba(1, 4, 8, 0.58);
}

.form-shell .osint4all-form textarea {
  min-height: 96px;
}

.form-shell .osint4all-form input:focus,
.form-shell .osint4all-form select:focus,
.form-shell .osint4all-form textarea:focus {
  border-color: rgba(200, 184, 141, 0.5);
  box-shadow: 0 0 0 3px rgba(200, 184, 141, 0.08);
}

.form-shell .osint4all-form > button {
  min-height: 46px;
  border-color: rgba(200, 184, 141, 0.18);
  background: linear-gradient(180deg, rgba(200, 184, 141, 0.96), rgba(200, 184, 141, 0.98));
}

.form-shell .osint4all-form > .osint4all-form-note:last-child {
  padding: 11px 13px;
  border-color: rgba(238, 240, 242, 0.08);
  background: rgba(3, 6, 11, 0.2);
}

.page-process-card-checklist ul {
  gap: 9px;
  padding-left: 0;
  list-style: none;
}

.page-process-card-checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.page-process-card-checklist li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(200, 184, 141, 0.9);
}

.page-boundary-note {
  padding-top: 2px;
  padding-left: 16px;
  border-left-color: rgba(200, 184, 141, 0.45);
}

.page-pillar-grid {
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(238, 240, 242, 0.08);
  border-radius: 8px;
  background: rgba(238, 240, 242, 0.07);
}

.page-pillar-card {
  min-height: 150px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(200, 184, 141, 0.035), transparent 48%),
    rgba(17, 19, 24, 0.9);
}

.page-content-panel {
  background: rgba(3, 6, 11, 0.18);
}

.page-route-panel {
  position: sticky;
  top: 116px;
  background: rgba(17, 19, 24, 0.86);
}

.page-route-link strong {
  font-size: 0.84rem;
}

.page-route-link small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

@media (prefers-reduced-motion: no-preference) {
  .form-shell .osint4all-next-steps li,
  .form-shell .osint4all-form input,
  .form-shell .osint4all-form select,
  .form-shell .osint4all-form textarea,
  .page-process-card-checklist li::before {
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
  }

  .form-shell .osint4all-next-steps li:hover,
  .page-process-card-checklist li:hover::before {
    transform: translateY(-1px);
  }
}

@media (max-width: 760px) {
  .form-shell .osint4all-next-steps ul {
    grid-template-columns: 1fr;
  }

  .form-shell .osint4all-next-steps li {
    min-height: 0;
  }

  .form-entry-title {
    margin-top: 24px;
    font-size: 1.55rem;
  }

  .page-shell-route-strip span {
    min-height: 27px;
    padding-inline: 9px;
  }

  .page-pillar-grid {
    display: grid;
    gap: 1px;
    overflow: hidden;
    margin-right: 0;
    margin-left: 0;
    padding: 0;
    border: 1px solid rgba(238, 240, 242, 0.08);
    border-radius: 8px;
    background: rgba(238, 240, 242, 0.07);
  }

  .page-pillar-card {
    min-height: 0;
    padding: 13px;
    border: 0;
    border-radius: 0;
  }

  .page-pillar-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .page-body-grid {
    gap: 12px;
    margin-top: 16px;
  }

  .page-content-panel,
  .page-route-panel,
  .page-intel-panel {
    padding: 15px;
  }

  .page-route-panel {
    position: relative;
    top: auto;
  }

  .guide-tool-matrix,
  .guide-decision-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-answer-box,
  .guide-warning,
  .guide-tool-card,
  .guide-decision-grid section {
    border-radius: 10px;
  }

  .guide-tool-card,
  .guide-decision-grid section {
    padding: 14px;
  }

  .guide-step-list li {
    padding: 12px 12px 12px 52px;
  }

  .guide-step-list li::before {
    left: 11px;
    width: 29px;
    height: 29px;
  }

  .page-route-link {
    gap: 9px;
    padding: 10px 0;
  }
}

@media (max-width: 520px) {
  .form-shell .osint4all-form textarea {
    min-height: 88px;
  }

  .form-shell .osint4all-form > .osint4all-form-note:first-of-type {
    padding: 11px 12px;
  }

  .route-strip-icon {
    width: 12px;
    height: 12px;
  }
}
