:root {
  color-scheme: light;
  --ink: #1e1f21;
  --muted: #6d6e6f;
  --line: #edeae9;
  --paper: #ffffff;
  --wash: #f9f8f8;
  --accent: #f06a6a;
  --accent-dark: #e45b5b;
  --blush: #ffeaec;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(240, 106, 106, 0.18), transparent 25rem),
    linear-gradient(135deg, #f9f8f8 0%, #f3f1f0 100%);
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: start;
}

.intro { position: sticky; top: 48px; padding-top: 24px; }
.eyebrow, .step { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; }
.eyebrow { display: inline-block; padding: 9px 12px; color: #ffffff; background: var(--accent); border-radius: 999px; }
h1 { margin: 28px 0 18px; font-size: clamp(48px, 6vw, 76px); line-height: 0.96; letter-spacing: -0.055em; }
.intro > p { margin: 0; max-width: 430px; color: var(--muted); font-size: 18px; line-height: 1.65; }

.task-preview { margin-top: 40px; border-left: 3px solid var(--accent); padding: 3px 0 3px 18px; }
.task-preview span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; }
.task-preview strong { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 28px 80px rgba(30, 31, 33, 0.08); }
.form-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.step { color: var(--accent); }
h2 { margin: 8px 0 0; font-size: 32px; letter-spacing: -0.035em; }
.required-note { color: var(--muted); font-size: 12px; }

.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: 1fr 1fr; }
label { display: block; margin-bottom: 22px; }
label > span { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfcbcb;
  border-radius: 8px;
  background: var(--wash);
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms, background 150ms;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'%3E%3Cpath d='m3.5 5.25 3.5 3.5 3.5-3.5' stroke='%231E1F21' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 14px 14px;
  cursor: pointer;
}
select:disabled { color: #9ca6af; cursor: wait; }
textarea { resize: vertical; line-height: 1.5; min-height: 92px; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); background: white; box-shadow: 0 0 0 3px rgba(240, 106, 106, 0.22); }
input:invalid:not(:placeholder-shown), textarea:invalid:not(:placeholder-shown) { border-color: #f06a6a; }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.actions p { margin: 0; max-width: 270px; color: var(--muted); font-size: 12px; line-height: 1.45; }
button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  min-width: 190px;
  padding: 15px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 150ms, background 150ms;
}
button:hover { transform: translateY(-2px); background: var(--accent-dark); }
button:disabled { cursor: wait; opacity: 0.65; transform: none; }

.message { margin: 8px 0 20px; padding: 13px 15px; border-radius: 8px; font-size: 14px; line-height: 1.45; }
.message.success { color: #146c43; background: #e8f8ef; }
.message.error { color: #690031; background: var(--blush); }
.message a { color: inherit; font-weight: 700; }

@media (max-width: 850px) {
  .shell { grid-template-columns: 1fr; padding: 32px 0; }
  .intro { position: static; padding-top: 0; }
  h1 { font-size: clamp(44px, 12vw, 68px); }
  .task-preview { margin-top: 28px; }
}

@media (max-width: 580px) {
  .shell { width: min(100% - 24px, 720px); }
  .card { border-radius: 18px; padding: 22px 18px; }
  .grid.two { grid-template-columns: 1fr; gap: 0; }
  .form-header, .actions { flex-direction: column; align-items: stretch; }
  .required-note { order: -1; }
  button { width: 100%; }
}
