/* Clean Books theme — cream background, white rounded cards, green + sky-blue accents. */
:root {
  --bg: #f6f1e7;
  --bg-2: #efe8d9;
  --card: #ffffff;
  --ink: #1f2a24;
  --muted: #7c887f;
  --line: #e8e2d4;
  --green: #18a23a;
  --green-dark: #0f7a2a;
  --blue: #2ca6e0;
  --ok: #18a23a;
  --err: #d6492f;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(31, 42, 36, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 500px at 50% -10%, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

.wrap { max-width: 640px; margin: 0 auto; padding: 44px 20px 80px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

/* ---- brand / logo ---- */
.brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.brand-img { height: 46px; width: auto; display: block; }
.wordmark { display: none; align-items: baseline; gap: 2px; font-weight: 800; font-size: 26px; letter-spacing: -0.5px; }
.wordmark .broom { font-size: 24px; margin-right: 4px; }
.wordmark .g { color: var(--green); }
.wordmark .b { color: var(--blue); }
.client-logo { height: 40px; width: auto; margin-left: auto; border-radius: 8px; }

h1 { font-size: 23px; margin: 14px 0 0; line-height: 1.25; font-weight: 800; }
.sub { color: var(--muted); margin: 8px 0 26px; font-size: 15px; line-height: 1.55; }

label { display: block; font-weight: 700; font-size: 14px; margin: 18px 0 6px; }
.req::after { content: " *"; color: var(--err); }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fcfaf5;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, textarea:focus {
  outline: none; background: #fff;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24, 162, 58, 0.14);
}
textarea { resize: vertical; min-height: 80px; }

.drop {
  margin-top: 8px;
  border: 2px dashed #d8e6cf;
  border-radius: 13px;
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  color: var(--muted);
  background: #fbfdf9;
}
.drop:hover, .drop.drag { border-color: var(--green); background: rgba(24, 162, 58, 0.05); }
.drop strong { color: var(--green-dark); }
.drop input[type="file"] { display: none; }

.files { list-style: none; padding: 0; margin: 16px 0 0; }
.files li {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  margin-bottom: 8px; font-size: 14px; background: #fcfaf5;
}
.files .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files .size { color: var(--muted); font-size: 13px; flex: none; }
.files .rm { cursor: pointer; color: var(--muted); border: none; background: none; font-size: 18px; line-height: 1; padding: 0 4px; }
.files .rm:hover { color: var(--err); }
.files li.done { border-color: var(--green); background: rgba(24,162,58,.06); }
.files li.failed { border-color: var(--err); background: rgba(214,73,47,.05); }
.files .stat { font-size: 12px; flex: none; font-weight: 600; }
.files li.done .stat { color: var(--ok); }
.files li.failed .stat { color: var(--err); }

button.submit {
  margin-top: 24px; width: 100%; padding: 15px;
  background: var(--green); color: #fff; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 800; cursor: pointer;
  transition: background .15s, transform .05s; letter-spacing: .2px;
}
button.submit:hover { background: var(--green-dark); }
button.submit:active { transform: translateY(1px); }
button.submit:disabled { opacity: .45; cursor: not-allowed; background: var(--green); }

.bar { height: 7px; background: var(--line); border-radius: 7px; overflow: hidden; margin-top: 16px; display: none; }
.bar.show { display: block; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--blue)); transition: width .25s; }

.note { font-size: 13px; color: var(--muted); margin-top: 18px; text-align: center; line-height: 1.55; }

.done-state { text-align: center; padding: 18px 0; display: none; }
.done-state.show { display: block; }
.done-state .check {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(24, 162, 58, 0.12); color: var(--ok);
  display: grid; place-items: center; font-size: 36px; margin: 0 auto 16px;
}
.done-state h2 { margin: 0 0 8px; font-size: 21px; font-weight: 800; }
.done-state p { color: var(--muted); margin: 0; }
.done-state button {
  margin-top: 22px; padding: 12px 24px; border: 1px solid var(--line);
  background: #fff; border-radius: 11px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink);
}
.done-state button:hover { border-color: var(--green); color: var(--green-dark); }

.banner { margin-top: 16px; padding: 12px 14px; border-radius: 11px; font-size: 14px; display: none; }
.banner.show { display: block; }
.banner.error { background: rgba(214, 73, 47, 0.08); color: var(--err); }

.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 22px; }
.foot a { color: var(--blue); text-decoration: none; }
