:root {
  color-scheme: light;
  --page-bg: #f7f8fa;
  --panel-bg: #ffffff;
  --panel-muted: #f9fafc;
  --ink: #111827;
  --muted: #667085;
  --line: #dde3ec;
  --line-strong: #9ca8ba;
  --brand: #0f5cff;
  --brand-soft: #ecf2ff;
  --success: #0f9f6e;
  --error: #b13030;
  --shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
  font-family: "Raleway", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
  color: var(--ink);
}

body {
  min-height: 100vh;
}

.topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

.topbar-inner,
.page {
  width: min(1088px, calc(100% - 48px));
  margin: 0 auto;
}

.topbar-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  width: auto;
  height: 42px;
  display: block;
}

.topbar-label,
.footer-lock {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
}

.topbar-label svg,
.footer-lock svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page {
  padding: 48px 0 56px;
}

.page-intro {
  max-width: 860px;
  margin-bottom: 28px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.lede {
  margin-bottom: 0;
  max-width: 860px;
  color: #344054;
  font-size: 1.2rem;
  line-height: 1.45;
}

.request-card {
  width: min(640px, 100%);
  min-height: 96px;
  margin-bottom: 32px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.request-avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 1.05rem;
  font-weight: 800;
}

.request-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.request-name {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
}

.request-meta {
  margin: 0;
  color: #344054;
  line-height: 1.3;
}

.panel {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-panel {
  overflow: hidden;
}

.form-header {
  min-height: 96px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.form-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--brand-soft);
  color: var(--brand);
}

.form-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-header h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.15;
}

.form {
  display: grid;
}

.form-body {
  padding: 26px 28px 44px;
  display: grid;
  gap: 12px;
}

label {
  font-size: 1rem;
  font-weight: 800;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

textarea {
  width: 100%;
  min-height: 188px;
  resize: vertical;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.55;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea::placeholder {
  color: #98a2b3;
}

textarea:focus {
  outline: none;
  border-color: #6f96ff;
  box-shadow: 0 0 0 3px rgba(15, 92, 255, 0.12);
}

.field-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.attachment-field {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.attachment-label {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.attachment-label span {
  color: var(--muted);
  font-weight: 500;
}

.upload-dropzone {
  min-height: 174px;
  padding: 26px;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 1px dashed #ced7e5;
  border-radius: 5px;
  background: #fafbfc;
  color: #344054;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-within {
  border-color: #9bb5ff;
  background: #f7f9ff;
}

.upload-dropzone-disabled {
  cursor: default;
}

.upload-dropzone-disabled:hover,
.upload-dropzone-disabled:focus-within {
  border-color: #ced7e5;
  background: #fafbfc;
}

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

.upload-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: #344054;
}

.upload-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-primary {
  color: var(--brand);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

.upload-primary span {
  color: #344054;
  font-weight: 600;
}

.upload-secondary {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.form-footer {
  min-height: 88px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--panel-muted);
  border-top: 1px solid var(--line);
}

button {
  min-width: 192px;
  min-height: 56px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 5px;
  background: #87a6f6;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 92, 255, 0.12);
  transition: background 0.15s ease, transform 0.15s ease;
}

button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button:hover {
  background: #6f93ef;
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none;
}

.status {
  min-height: 1.4rem;
  margin: 0;
  padding: 0 28px 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.status:empty {
  display: none;
}

.status[data-kind="success"] {
  color: var(--success);
}

.status[data-kind="error"] {
  color: var(--error);
}

.confirmation-panel,
.link-status-panel {
  min-height: 356px;
  padding: 76px 48px;
  text-align: center;
}

.confirmation-panel[hidden],
.link-status-panel[hidden],
.form-panel[hidden],
.trust-row[hidden] {
  display: none;
}

.link-status-panel[data-kind="error"] .success-kicker {
  color: var(--error);
}

.success-kicker {
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--success);
  font-size: 1.15rem;
  font-weight: 800;
}

.success-kicker svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  border: 2px solid currentColor;
  border-radius: 50%;
  padding: 5px;
}

.confirmation-panel h2,
.link-status-panel h2 {
  margin: 0 auto 24px;
  max-width: 800px;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

.confirmation-panel p,
.link-status-panel p {
  max-width: 620px;
  margin: 0 auto;
  color: #344054;
  font-size: 1.2rem;
  line-height: 1.45;
}

.trust-row {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 34px;
  color: var(--muted);
  font-size: 0.95rem;
}

.trust-row li {
  position: relative;
  padding-left: 28px;
  line-height: 1.4;
}

.trust-row li::before {
  content: "";
  position: absolute;
  top: 0.4em;
  left: 0;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.is-submitted .form-panel {
  display: none;
}

@media (max-width: 760px) {
  .topbar-inner,
  .page {
    width: min(100% - 28px, 1088px);
  }

  .topbar-inner {
    min-height: 68px;
  }

  .brand-logo {
    height: 34px;
  }

  .topbar-label span {
    display: none;
  }

  .page {
    padding: 32px 0 42px;
  }

  h1 {
    font-size: 2rem;
  }

  .lede {
    font-size: 1.05rem;
  }

  .request-card {
    padding: 16px;
  }

  .request-avatar {
    width: 48px;
    height: 48px;
  }

  .form-header {
    padding: 22px 18px;
    align-items: flex-start;
  }

  .form-header h2 {
    font-size: 1.35rem;
  }

  .form-body {
    padding: 22px 18px 30px;
  }

  .form-footer {
    padding: 16px 18px;
    align-items: stretch;
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .status {
    padding: 0 18px 18px;
  }

  .confirmation-panel,
  .link-status-panel {
    min-height: 320px;
    padding: 54px 22px;
  }

  .confirmation-panel h2,
  .link-status-panel h2 {
    font-size: 2rem;
  }

  .confirmation-panel p,
  .link-status-panel p {
    font-size: 1.05rem;
  }

  .upload-dropzone {
    min-height: 156px;
    padding: 22px 16px;
  }

  .trust-row {
    display: grid;
    gap: 14px;
  }
}
