/* Corgi Talent Desk — styled to match corgi.insure:
   #ff5c00 accent, Geist, generous radii, soft cards on a light grey ground. */

:root {
  --orange: #ff5c00;
  --orange-deep: #cc4a00;
  --orange-mid: #ff7d33;
  --orange-tint: #ffdecc;
  --ink: #191919;
  --ink-2: #1d1d1d;
  --ink-soft: #4a4a4a;
  --ink-faint: #7b7b7b;
  --line: #e1e1e1;
  --line-2: #e8e8e8;
  --ground: #f6f6f6;
  --card: #ffffff;
  --danger: #ff405d;
  --danger-text: #c01030;
  --ok: #1f7a46;
  --shadow: 0 1px 2px rgba(25, 25, 25, .04), 0 18px 40px -20px rgba(25, 25, 25, .18);
  --r-card: 24px;
  --r-input: 12px;
}

* { box-sizing: border-box; }

/* An author `display` beats the UA stylesheet's [hidden] rule, so .banner's
   display:flex kept the element visible even with the attribute set. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Geist, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  min-height: 100vh;
}

.shell { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 20px; }
main.shell { padding-bottom: 64px; }   /* the footer used to provide this */

.skip { position: absolute; left: -9999px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

/* ---------- masthead ---------- */

.masthead {
  padding: 36px 0 40px;
  background:
    radial-gradient(900px 420px at 78% -140px, var(--orange-tint) 0%, rgba(255, 222, 204, 0) 72%),
    linear-gradient(180deg, #fff 0%, var(--ground) 100%);
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.brand { display: inline-block; margin-bottom: 26px; line-height: 0; }
.brand img { display: block; height: 34px; width: auto; }
.brand:hover { opacity: .8; }

.hero { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; }
.hero-copy { min-width: 0; }

.masthead h1 {
  font-weight: 700;
  font-size: clamp(34px, 6.4vw, 56px);
  line-height: 1.03;
  letter-spacing: -.035em;
  margin: 0 0 14px;
}

.hero-note { margin: 0; color: var(--ink-soft); font-size: 17px; max-width: 42ch; }

.hero-art { display: block; line-height: 0; }
.hero-art img {
  display: block;
  width: clamp(170px, 27vw, 260px);
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(25, 25, 25, .14));
}

/* ---------- banners ---------- */

.banner { display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 16px; margin-bottom: 20px; font-size: 14px; }
.banner-warn { background: var(--orange-tint); border: 1px solid #ffc3a1; color: #8a3200; }
.banner code { font-size: 13px; background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 5px; }

/* ---------- card ---------- */

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

.fieldset { border: 0; padding: 0; margin: 0; }

.section-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.step {
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  background: var(--orange); color: #fff;
  font-size: 14px; font-weight: 600;
  display: grid; place-items: center; margin-top: 2px;
}
.section-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.section-note { margin: 2px 0 0; font-size: 14px; color: var(--ink-faint); }

.rule { border: 0; border-top: 1px solid var(--line-2); margin: 32px 0; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.span2 { grid-column: 1 / -1; }

label { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.req { color: var(--orange); }
.opt { font-weight: 400; color: var(--ink-faint); font-size: 13px; }

input[type="text"], input[type="email"], input[type="url"], input[type="date"], select, textarea {
  font: inherit; font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-input);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 150px; line-height: 1.6; }

input:hover, select:hover, textarea:hover { border-color: #cfcfcf; }

input:focus-visible, select:focus-visible, textarea:focus-visible,
.btn:focus-visible, input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 92, 0, .22);
}
.btn:focus-visible { box-shadow: 0 0 0 3px rgba(255, 92, 0, .32); }

::placeholder { color: #a8a8a8; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 15px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg); pointer-events: none;
}
select { appearance: none; padding-right: 38px; }

.hint { margin: 6px 0 0; font-size: 13px; color: var(--ink-faint); }
.counter { margin: 6px 0 0; font-size: 13px; color: var(--ink-faint); text-align: right; }
.counter.near { color: var(--orange-deep); }
.counter.over { color: var(--danger-text); font-weight: 600; }

.error { margin: 6px 0 0; font-size: 13px; color: var(--danger-text); font-weight: 500; display: none; }
.error.show { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); background: #fff7f8; }

/* ---------- consent ---------- */

.consent { margin-top: 2px; }
.check { display: flex; gap: 11px; align-items: flex-start; font-weight: 400; font-size: 15px; cursor: pointer; }
.check input[type="checkbox"] {
  flex: 0 0 auto; width: 19px; height: 19px; margin: 2px 0 0;
  accent-color: var(--orange); cursor: pointer; border-radius: 5px;
}

/* ---------- actions ---------- */

.actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

.btn {
  font: inherit; font-weight: 600; font-size: 15px;
  color: #fff;
  background: var(--orange);
  border: 1px solid var(--orange);
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-quiet { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--ground); border-color: #cfcfcf; }

.status { margin: 0; font-size: 14px; font-weight: 500; }
.status.err { color: var(--danger-text); }
.status.ok { color: var(--ok); }

/* ---------- done ---------- */

.card-done { text-align: center; }
.done-mark { width: 150px; height: auto; display: block; margin: 0 auto 14px; }
.card-done h2 { font-size: 26px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 10px; }
.card-done p { color: var(--ink-soft); margin: 0 auto 24px; max-width: 48ch; }

@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .hero-art { justify-self: center; }
  .hero-art img { width: min(230px, 62vw); }
}

/* ---------- dark ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4f4f4;
    --ink-2: #ededed;
    --ink-soft: #bdbdbd;
    --ink-faint: #9e9e9e;
    --line: #2c2c2c;
    --line-2: #262626;
    --ground: #141414;
    --card: #1d1d1d;
    --orange-tint: #3a1c08;
    --danger-text: #ff8098;
    --ok: #6fc698;
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 18px 40px -20px rgba(0, 0, 0, .8);
  }
  .masthead {
    background:
      radial-gradient(900px 420px at 78% -140px, #2a1507 0%, rgba(42, 21, 7, 0) 72%),
      linear-gradient(180deg, #1a1a1a 0%, var(--ground) 100%);
  }
  input[type="text"], input[type="email"], input[type="url"], input[type="date"], select, textarea {
    background: #242424; color: var(--ink); border-color: #333;
  }
  input:hover, select:hover, textarea:hover { border-color: #444; }
  ::placeholder { color: #6e6e6e; }
  .banner-warn { background: #2e1708; border-color: #65330f; color: #ffc3a1; }
  .field.invalid input, .field.invalid textarea, .field.invalid select { background: #2a1519; }
  .btn-quiet { background: transparent; color: var(--ink); border-color: #3a3a3a; }
  .btn-quiet:hover { background: #242424; }
  input[type="date"] { color-scheme: dark; }
}
