:root {
  --docx-black: #1a1a1a;
  --docx-black-2: #222222;
  --docx-red: #b71c1c;
  --docx-red-light: #ce2e2e;
  --docx-red-dark: #8b1515;
  --docx-gray: #bbbbbb;
  --topbar-height: 64px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #f2f2f2;
  color: #222;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Top nav bar (Platinum look: black bar, red accent) ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--docx-black-2);
  border-bottom: 4px solid var(--docx-red);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  z-index: 100;
}

.topbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.topbar-logo {
  height: 30px;
  width: auto;
  display: block;
}

.topbar-divider {
  display: inline-block;
  width: 1px;
  height: 24px;
  margin: 0 16px;
  background: rgba(255, 255, 255, 0.25);
}

.topbar-title {
  color: #ffffff;
  font-size: 1.15em;
  font-weight: 300;
  letter-spacing: 0.5px;
}

/* ---------- Page content ---------- */

.content {
  min-height: calc(100vh - var(--topbar-height));
  padding: calc(var(--topbar-height) + 32px) 20px 40px;
  display: flex;
  justify-content: center;
}

.form-card {
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border-top: 3px solid var(--docx-red);
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  padding: 32px 32px 24px;
  height: fit-content;
}

.form-card h1 {
  margin: 0 0 8px;
  font-weight: 300;
  font-size: 1.6em;
  color: var(--docx-black-2);
}

.form-card .subtitle {
  margin: 0 0 24px;
  color: #666666;
  font-size: 0.95em;
}

.form-embed {
  min-height: 200px;
  display: flex;
  justify-content: center;
}

.form-embed > * {
  margin: 0 auto;
}

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  color: #999999;
  font-size: 0.8em;
  padding: 16px 0 24px;
}

/* ---------- Responsive ---------- */

@media (max-width: 500px) {
  .topbar-inner {
    padding: 0 16px;
  }

  .topbar-title {
    font-size: 1em;
  }

  .form-card {
    padding: 24px 20px 16px;
  }
}
