:root {
  --bg: #ffffff;
  --brand: #a848a0;
  --brand-dark: #781870;
  --brand-hover: #8a3685;
  --brand-tint: #f7edf5;
  --accent-soft: #f2f5ff;
  --accent-border: #c7d2fe;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e4e7ec;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #067647;
  --success-bg: #ecfdf3;
  --radius-lg: 14px;
  --radius: 10px;
  --radius-sm: 6px;
  --sidebar-w: 200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

/* ------- Sidebar ------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--brand);
  padding: 48px 20px;
  color: #fff;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  color: #fff;
  text-decoration: none;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.sidebar-logo {
  display: block;
  width: 84px;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

/* ------- Layout ------- */
.layout {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 32px 48px 80px;
}

.content {
  max-width: 900px;
  margin: 0 auto;
}

/* ------- Main logo (content area) ------- */
.main-logo {
  display: block;
  height: auto;
  width: auto;
  max-width: 320px;
  max-height: 56px;
  margin: 0 0 28px;
}

@media (max-width: 780px) {
  .main-logo { max-width: 240px; max-height: 44px; }
}

/* ------- Pill banner ------- */
.pill-banner {
  display: block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  margin-bottom: 40px;
}

/* ------- Heading + lede ------- */
.page-title {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}

.page-lede {
  font-size: 15px;
  color: var(--text);
  margin: 0 0 10px;
  max-width: 720px;
}

.page-lede code {
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* ------- Form fields ------- */
.claim-form {
  margin-top: 28px;
  position: relative;
}

.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text);
}

.req { color: var(--danger); font-weight: 500; }

.field input[type="text"],
.field input[type="email"],
.field input[type="date"],
.field textarea {
  width: 100%;
  padding: 10px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.3;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
  min-height: 42px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #94a3b8;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(168, 72, 160, 0.18);
}

/* Date input — match other fields */
.field input[type="date"] {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23a848a0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  color: var(--text);
}

.field input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.field input[type="date"]::-webkit-datetime-edit-text,
.field input[type="date"]::-webkit-datetime-edit-month-field,
.field input[type="date"]::-webkit-datetime-edit-day-field,
.field input[type="date"]::-webkit-datetime-edit-year-field {
  color: var(--text);
  padding: 0 2px;
}

.field input[type="date"]:invalid::-webkit-datetime-edit {
  color: #94a3b8;
}

.field { position: relative; }

.field textarea { resize: vertical; min-height: 80px; }

.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ------- Dropzone ------- */
.dropzone {
  margin-top: 28px;
  padding: 48px 32px 40px;
  background: var(--accent-soft);
  border: 2px dashed var(--accent-border);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: background .15s, border-color .15s;
}

.dropzone--hover {
  background: #e8eeff;
  border-color: #8ba0fb;
}

.dropzone__title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.dropzone__intro {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 15px;
}

.dropzone__list {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 4px 56px;
  justify-content: center;
  margin: 0 auto 24px;
  padding: 0;
  text-align: left;
  list-style: disc;
  padding-left: 20px;
  font-size: 15px;
  color: var(--text);
}

.dropzone__instruction {
  margin: 0 0 20px;
  font-weight: 500;
  color: var(--text);
}

.dropzone__selected {
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--brand-dark);
  font-weight: 500;
}

.file-input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
  pointer-events: none;
}

/* ------- Buttons ------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover { background: var(--brand-hover); }

.btn--upload {
  padding: 12px 26px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(168, 72, 160, 0.28);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.submit-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.btn--submit {
  background: var(--brand);
  color: #fff;
  min-width: 200px;
  padding: 14px 28px;
  font-size: 15px;
}
.btn--submit:hover { background: var(--brand-hover); }
.btn--submit:disabled {
  background: #d8dadd;
  color: #8b8f95;
  cursor: not-allowed;
  box-shadow: none;
}

.fineprint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ------- Flash ------- */
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
}
.flash--error { background: var(--danger-bg); color: var(--danger); border: 1px solid #fecdca; }
.flash--success { background: var(--success-bg); color: var(--success); border: 1px solid #abefc6; }

/* ------- Success (thanks) ------- */
.success-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .05);
}
.success-icon {
  width: 72px; height: 72px; margin-bottom: 16px;
}
.success-card h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.success-card .page-lede { margin: 0 auto 24px; max-width: 520px; }

/* ------- Responsive ------- */
@media (max-width: 780px) {
  :root { --sidebar-w: 0; }
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 20px;
    display: block;
  }
  .sidebar-logo {
    width: 44px;
  }
  .layout { padding: 24px 20px 64px; }
  .fields-row { grid-template-columns: 1fr; gap: 0; }
  .dropzone { padding: 32px 20px; }
  .dropzone__list { grid-template-columns: 1fr; gap: 2px; }
}
