* {
  box-sizing: border-box;
}

:root {
  --bg: #0f172a;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --primary: #5865f2;
  --primary-dark: #4752c4;
  --danger: #dc2626;
  --success: #16a34a;
  --soft: #f8fafc;
}

body {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top, rgba(88, 101, 242, 0.35), transparent 35%),
    linear-gradient(180deg, #111827 0%, #0f172a 100%);
  color: var(--text);
  min-height: 100vh;
}

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 14px;
}

.card {
  width: 100%;
  max-width: 520px;
  background: var(--card);
  border-radius: 28px;
  padding: 26px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.complete-card {
  text-align: center;
}

.header {
  text-align: center;
  margin-bottom: 24px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.success-badge {
  background: #ecfdf3;
  color: var(--success);
}

h1 {
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.05;
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}

.header p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
  font-size: 14px;
}

.field-label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  resize: vertical;
  min-height: 86px;
  font-size: 16px;
  outline: none;
  background: var(--soft);
}

textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(88, 101, 242, 0.12);
}

.dropzone {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
  border-radius: 24px;
  min-height: 180px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.dropzone:hover {
  border-color: var(--primary);
  background: #eef2ff;
}

.dropzone:active {
  transform: scale(0.99);
}

.dropzone input {
  display: none;
}

.success-mark {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 18px 35px rgba(22, 163, 74, 0.28);
}

.dropzone-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--primary);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 34px;
  line-height: 1;
  font-weight: 300;
}

.dropzone strong {
  font-size: 18px;
}

.dropzone small {
  color: var(--muted);
  font-size: 13px;
}

.file-list {
  display: grid;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 12px;
  background: #ffffff;
  font-size: 13px;
}

.file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  flex: 0 0 auto;
  color: var(--muted);
}

.submit-button {
  border: 0;
  border-radius: 18px;
  padding: 16px 18px;
  background: var(--primary);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  min-height: 56px;
  box-shadow: 0 14px 30px rgba(88, 101, 242, 0.35);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.submit-button:hover {
  background: var(--primary-dark);
}

.submit-button:active {
  transform: translateY(1px);
}

.submit-button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
}

.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 6px;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--soft);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.secondary-link:hover {
  border-color: var(--primary);
  background: #eef2ff;
}

.secondary-link:active {
  transform: translateY(1px);
}

.status {
  min-height: 22px;
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--success);
}

@media (max-width: 420px) {
  .page {
    align-items: flex-start;
    padding-top: 18px;
  }

  .card {
    padding: 22px 18px;
    border-radius: 24px;
  }

  .dropzone {
    min-height: 165px;
  }
  .submit-button {
    width: 100%;
  }
}
