/* Activex document verification - static stylesheet (no build step). */

:root {
  --crimson: #c8102e;
  --slate-dark: #1e293b;
  --slate-muted: #64748b;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --emerald: #0f766e;
  --amber: #d97706;
  --white: #ffffff;

  --radius: 14px;
  --shadow: 0 12px 30px rgba(30, 41, 59, 0.08);
  --font: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Helvetica,
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--surface);
  color: var(--slate-dark);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- top bar */

.topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.topbar__logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--crimson);
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

.topbar__names {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.topbar__names strong {
  letter-spacing: 1.4px;
  font-size: 15px;
}

.topbar__names small {
  color: var(--slate-muted);
  font-size: 11.5px;
}

/* ------------------------------------------------------------------- page */

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.card__hint {
  margin: 0 0 16px;
  color: var(--slate-muted);
  font-size: 13px;
}

/* ----------------------------------------------------------------- result */

.result__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.result__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  background: var(--emerald);
}

.result__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.result__subtitle {
  margin: 4px 0 0;
  color: var(--slate-muted);
  font-size: 13px;
}

.result__note {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(100, 116, 139, 0.08);
  color: var(--slate-dark);
  font-size: 13px;
}

.result__actions {
  margin-top: 18px;
}

/* ---------------------------------------------------------------- details */

.details {
  display: grid;
  grid-template-columns: minmax(140px, 38%) 1fr;
  gap: 0;
  margin: 16px 0 0;
}

.details dt,
.details dd {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
  font-size: 13.5px;
}

.details dt {
  color: var(--slate-muted);
  font-weight: 600;
}

.details dd {
  font-weight: 600;
  word-break: break-word;
}

/* ------------------------------------------------------------------- form */

.form__label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-muted);
  letter-spacing: 0.2px;
}

.form__row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form__input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--slate-dark);
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form__input:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

.form__error {
  margin: 10px 0 0;
  color: var(--crimson);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------------------------------------------------------------- buttons */

.button {
  appearance: none;
  border: 1px solid var(--crimson);
  border-radius: 10px;
  background: var(--crimson);
  color: var(--white);
  padding: 12px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease;
}

.button:hover:not(:disabled) {
  filter: brightness(1.08);
}

.button:disabled {
  opacity: 0.6;
  cursor: default;
}

.button--ghost {
  background: transparent;
  color: var(--slate-dark);
  border-color: var(--border);
}

.button--ghost:hover:not(:disabled) {
  background: var(--surface);
  filter: none;
}

/* ----------------------------------------------------------------- states */

.card--result.is-verified {
  border-top: 5px solid var(--emerald);
}

.card--result.is-void {
  border-top: 5px solid var(--crimson);
}

.card--result.is-disabled {
  border-top: 5px solid var(--amber);
}

.card--result.is-unverified {
  border-top: 5px solid var(--slate-muted);
}

.card--result.is-verified .result__icon {
  background: var(--emerald);
}

.card--result.is-void .result__icon {
  background: var(--crimson);
}

.card--result.is-disabled .result__icon {
  background: var(--amber);
}

.card--result.is-unverified .result__icon {
  background: var(--slate-muted);
}

.card--result.is-loading .result__icon {
  background: var(--slate-muted);
}

/* ----------------------------------------------------------------- footer */

.footer {
  color: var(--slate-muted);
  font-size: 12px;
  text-align: center;
}

.footer p {
  margin: 4px 0;
}

.footer__hint {
  font-size: 11.5px;
}

/* --------------------------------------------------------------- utility */

.is-hidden {
  display: none !important;
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 560px) {
  .page {
    padding: 18px 14px 36px;
  }

  .card {
    padding: 18px 16px;
  }

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

  .details dt {
    padding-bottom: 0;
    border-bottom: none;
  }

  .details dd {
    padding-top: 2px;
  }

  .form__row .button {
    width: 100%;
  }
}
