:root {
  --bg: linear-gradient(145deg, #f2f7ff 0%, #e7f8f3 100%);
  --card: #ffffff;
  --primary: #0d6e4d;
  --primary-hover: #09563c;
  --ink: #1f2d3d;
  --muted: #5f6b76;
  --border: #dde4ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Be Vietnam Pro', sans-serif;
  color: var(--ink);
  background: var(--bg);
  display: grid;
  place-items: center;
  padding: 24px;
}

.page {
  width: 100%;
  max-width: 720px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(22, 41, 72, 0.1);
  animation: rise 0.45s ease-out;
}

h1 {
  margin: 0 0 10px;
  font-size: 1.6rem;
}

.subtitle {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.4;
}

label {
  display: block;
  margin: 14px 0 8px;
  font-weight: 600;
}

input,
textarea,
button {
  width: 100%;
  font: inherit;
}

input,
textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fbfdff;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(13, 110, 77, 0.22);
  border-color: var(--primary);
}

button {
  border: 0;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 12px;
  margin-top: 18px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

button:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none;
}

button.outline {
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.progress-wrap {
  margin-top: 14px;
}

.progress-label {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.progress-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8edf3;
}

.progress-fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #0d6e4d 0%, #2bb673 100%);
  transition: width 0.35s ease;
}

.hidden {
  display: none;
}

.status {
  width: 100%;
  max-width: 720px;
  margin: 12px 0 0;
  font-weight: 600;
  color: #14432f;
}

.status.error {
  color: #b42020;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .card {
    padding: 20px;
  }

  .actions {
    grid-template-columns: 1fr;
  }
}
