:root {
  --blue: #0a4d9c;
  --blue-light: #2f7fd6;
  --blue-soft: #e8f1fb;
  --blue-border: #cfe0f5;
  --white: #ffffff;
  --text: #1a2740;
  --muted: #6b7a90;
  --error: #c0392b;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(10, 77, 156, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f4f8fd 0%, #ffffff 100%);
  min-height: 100vh;
}

/* Logo as faint background watermark */
.bg-watermark {
  position: fixed;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60vmin;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

/* Site header with big logo + marquee */
.site-header {
  position: relative;
  z-index: 2;
  background: var(--white);
  border-bottom: 3px solid var(--blue);
  box-shadow: 0 2px 12px rgba(10, 77, 156, 0.08);
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 20px 0;
  text-align: center;
}
.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.header-logo img {
  max-height: 55px;
  width: auto;
  object-fit: contain;
}
.header-marquee {
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  margin: 0 -20px;
  padding: 8px 0;
}
.marquee-track {
  display: inline-flex;
  gap: 60px;
  animation: marquee 20s linear infinite;
  padding-left: 100%;
}
.marquee-track span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* Site footer with centered logo */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 16px 20px;
  margin-top: 24px;
}
.footer-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.footer-logo img {
  max-height: 45px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}
.footer-text {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

#root {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 640px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 36px 24px;
  border-top: 6px solid var(--blue);
}

.logo-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.logo-top img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.3px;
}

.form-heading {
  font-size: 20px;
  margin: 4px 0 18px;
  color: var(--text);
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.step {
  display: flex;
  align-items: center;
  flex: 1;
  position: relative;
  color: var(--muted);
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  background: var(--blue-soft);
  color: var(--blue);
  border: 2px solid var(--blue-border);
  flex-shrink: 0;
}
.step-label {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--blue-border);
  margin: 0 10px;
}
.step.active .step-num { background: var(--blue); color: #fff; border-color: var(--blue); }
.step.active .step-label { color: var(--blue); }
.step.done .step-num { background: var(--blue-light); color: #fff; border-color: var(--blue-light); }
.step.done .step-label { color: var(--blue-light); }

/* Fields */
.step-panel { display: flex; flex-direction: column; gap: 16px; }
.step-title { font-size: 16px; color: var(--blue); margin: 0 0 4px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--text); }
.field-input {
  padding: 11px 13px;
  border: 1.5px solid var(--blue-border);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.field-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}
.field-error { color: var(--error); font-size: 12px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.file-chip {
  display: inline-block;
  margin-top: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.referee-block {
  border: 1px solid var(--blue-border);
  border-radius: 10px;
  padding: 14px;
  background: #fbfdff;
}
.referee-title { font-size: 14px; color: var(--blue); margin: 0 0 10px; }

/* Actions */
.actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #083f80; }
.btn.primary:disabled { background: var(--blue-light); opacity: 0.7; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--blue); border-color: var(--blue-border); }
.btn.ghost:hover { background: var(--blue-soft); }

.server-error {
  margin-top: 14px;
  background: #fdecea;
  color: var(--error);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
}

.footer-note {
  margin-top: 18px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* Success */
.success-card { text-align: center; }
.success-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #1e9e54;
  font-size: 40px;
  display: flex; align-items: center; justify-content: center;
  margin: 16px auto 10px;
}
.success-card h2 { color: var(--blue); margin: 8px 0; }
.success-card .ref { color: var(--muted); }
.success-card .btn { margin-top: 14px; }

@media (max-width: 560px) {
  .card { padding: 24px 18px; }
  .row { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .header-logo img { max-height: 42px; }
  .footer-logo img { max-height: 38px; }
  .marquee-track span { font-size: 12px; }
}
