/* Manuscript drop page: one short page, one big drop zone. Same palette and type. */

.send-page { background: radial-gradient(1100px 600px at 85% 0%, rgba(201,162,63,.16), transparent 60%), var(--paper); min-height: 100vh; }
.send { padding: clamp(120px, 15vw, 160px) var(--gutter) 80px; }
.send__wrap { max-width: 640px; margin: 0 auto; }
.send__title { font: 500 clamp(2.6rem, 7vw, 4.4rem)/1 var(--serif); letter-spacing: -.02em; }
.send__title em { color: var(--gold-deep); }
.send__sub { margin: 18px 0 34px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-soft); }

.send__form {
  display: grid; gap: 18px; padding: clamp(20px, 4vw, 36px); border-radius: 24px;
  background: #fffaf0; border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(20,35,63,.55);
}
.send__form label { display: grid; gap: 8px; font: 600 .82rem/1.2 var(--sans); color: var(--ink); }
.send__form input:not([type=file]), .send__form textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper);
  font: 400 1rem/1.4 var(--sans); color: var(--ink); transition: border-color .25s, box-shadow .25s;
}
.send__form textarea { resize: vertical; min-height: 92px; }
.send__form input:focus, .send__form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,63,.22); }
.send__form .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* The drop zone */
.drop {
  position: relative; display: grid !important; justify-items: center; gap: 10px !important; text-align: center; cursor: pointer;
  padding: clamp(34px, 6vw, 54px) 20px; border-radius: 18px; border: 2px dashed rgba(158,122,36,.55); background: rgba(226,194,109,.08);
  transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.drop:hover, .drop.is-over { background: rgba(226,194,109,.2); border-color: var(--gold-deep); }
.drop.is-over { transform: scale(1.01); }
.drop.has-file { border-style: solid; border-color: var(--ink); background: rgba(20,35,63,.04); }
.drop.is-bad { border-color: var(--rust); background: rgba(143,58,38,.06); }
.drop__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop__input:focus-visible + .drop__icon { outline: 2px solid var(--gold); outline-offset: 4px; }
.drop__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); }
.drop__icon svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-hi); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.drop.has-file .drop__icon svg { stroke: var(--paper); }
.drop__main { font: 400 clamp(1.4rem, 2.6vw, 1.75rem)/1.2 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.drop__hint { font: 400 .92rem/1.4 var(--sans); color: var(--ink-soft); }
.drop[hidden], .file[hidden] { display: none !important; }

/* The chosen file: a page with its type on it, the name, and a Remove button. */
.file {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px;
  padding: 20px 20px 20px 22px; border-radius: 18px; border: 1.5px solid var(--ink); background: rgba(20,35,63,.04);
  animation: file-in .35s var(--ease);
}
@keyframes file-in { from { opacity: 0; transform: translateY(6px); } }
.file__badge {
  position: relative; display: grid; place-items: end center; width: 58px; height: 72px; padding-bottom: 12px;
  border-radius: 8px; background: var(--ink); clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%);
}
.file__badge::after { content: ""; position: absolute; top: 0; right: 0; width: 30%; height: 22%; background: var(--gold-hi); border-bottom-left-radius: 6px; }
.file__badge span { font: 700 .74rem/1 var(--sans); letter-spacing: .08em; color: var(--gold-hi); }
.file__info { display: grid; gap: 4px; min-width: 0; }
.file__label { font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.file__name { font: 400 clamp(1.15rem, 2.2vw, 1.4rem)/1.25 var(--serif); color: var(--ink); overflow-wrap: anywhere; }
.file__meta { font: 400 .88rem/1.4 var(--sans); color: var(--ink-soft); }
.file__remove {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--paper); font: 600 .85rem/1 var(--sans); color: var(--ink);
  transition: background .2s, border-color .2s, color .2s;
}
.file__remove svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.file__remove:hover, .file__remove:focus-visible { background: var(--rust); border-color: var(--rust); color: #fff; outline: none; }
.file.is-bad { border-color: var(--rust); background: rgba(143,58,38,.06); }
.file.is-bad .file__badge { background: var(--rust); }
.file.is-bad .file__label, .file.is-bad .file__meta { color: var(--rust); }

.send__form[hidden] { display: none; }
.send__form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }

.send__done { text-align: center; padding: clamp(34px, 6vw, 54px) 24px; border-radius: 24px; background: #fffaf0; border: 1.5px solid var(--gold); }
.send__check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--gold-hi); font: 600 1.6rem/1 var(--sans); margin-bottom: 18px; }
.send__done h2 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 12px; }
.send__done p { color: var(--ink-soft); margin-bottom: 26px; }

.send__alt { margin-top: 26px; text-align: center; font-size: .92rem; color: var(--ink-soft); }
.send__alt a { color: var(--ink); font-weight: 600; }

@media (max-width: 600px) {
  .send__form .form__row { grid-template-columns: 1fr; }
  .file { grid-template-columns: auto 1fr; gap: 14px 16px; }
  .file__remove { grid-column: 1 / -1; justify-content: center; }
}
