:root {
  --bg: #03050b;
  --panel: rgba(8, 16, 32, 0.78);
  --line: #1d3a63;
  --accent: #2f8cff;
  --accent-light: #7cc4ff;
  --text: #e6eef8;
  --label: #cfe0f5;
  --muted: #8fa6c4;
  --error: #ff7b7b;
}

[hidden] { display: none !important; }

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 45% at 50% -5%, rgba(0, 80, 190, 0.35), transparent 70%),
    linear-gradient(rgba(60, 120, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60, 120, 200, 0.06) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.page { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 3rem; }

/* Header: logo + tagline */
.hero { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.logo { width: 150px; height: 150px; flex: none; filter: drop-shadow(0 0 22px rgba(47, 140, 255, 0.55)); }
.hero-text { flex: 1; }
.tagline {
  margin: 0 0 0.9rem;
  font-size: clamp(1.4rem, 4.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  color: #d6ebff;
  text-shadow: 0 0 18px rgba(47, 140, 255, 0.6);
}
.glow-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px var(--accent);
}

/* The form card */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 0 40px rgba(20, 90, 200, 0.12);
}

label { display: block; margin-top: 1.1rem; font-weight: 600; font-size: 0.95rem; color: var(--label); }
label:first-child { margin-top: 0; }

input, textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: #07101f;
  border: 1px solid var(--line);
  border-radius: 8px;
}
input::placeholder, textarea::placeholder { color: #5f7596; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 140, 255, 0.25);
}
input[type="date"] { color-scheme: dark; }
input[type="file"] { padding: 0.5rem; }
input[type="file"]::file-selector-button {
  margin-right: 0.8rem; padding: 0.4rem 0.9rem; font: inherit; color: #fff;
  background: #1c5fc0; border: none; border-radius: 6px; cursor: pointer;
}
input[type="file"]::file-selector-button:hover { background: var(--accent); }

.help { margin-top: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.error { margin-top: 0.3rem; font-size: 0.9rem; color: var(--error); }
.error:empty { display: none; }

/* Selected file list: small remove buttons */
ul button {
  color: #9fc4f5; background: transparent; border: 1px solid #2a4a78;
  border-radius: 6px; cursor: pointer; font: inherit;
}
ul button:hover { color: #fff; border-color: var(--accent); background: rgba(47, 140, 255, 0.2); }

/* Submit button */
button[type="submit"] {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.9rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(180deg, #3d9aff, #1c6fe0);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(47, 140, 255, 0.35);
}
button[type="submit"]:hover { filter: brightness(1.12); }
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; filter: none; }

/* Confirmation message */
.confirmation { text-align: center; padding: 1.5rem 0.5rem; }
.confirmation h2 { margin: 0 0 0.6rem; color: var(--accent-light); text-shadow: 0 0 16px rgba(47, 140, 255, 0.5); }
.confirmation p { margin: 0; color: var(--label); }

@media (max-width: 560px) {
  .hero { flex-direction: column; text-align: center; gap: 1rem; }
  .logo { width: 130px; height: 130px; }
  .card { padding: 1.25rem; }
}
