/* The seller form. Loaded after brand.css, which holds the palette. */

/* ------------------------------------------------------------------
   Page shape. On a wide screen the form sits in the middle with a
   promotional rail either side, so the page is never a lonely box in a
   sea of grey. Below 1080px the rails move under the form, and on a
   phone only the short ones remain.
   ------------------------------------------------------------------ */
.form-shell {
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 26px 24px 56px;
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr) 290px;
  gap: 28px;
  align-items: start;
}
/* Below this the rails would squeeze the form, so they go underneath it
   instead. The form itself never gets narrower to make room for them. */
@media (max-width: 1240px) {
  .form-shell { grid-template-columns: 260px minmax(0, 1fr); gap: 22px; }
  .rail.right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (max-width: 980px) {
  .form-shell { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .rail, .rail.right { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 760px) {
  .form-shell { padding: 16px 16px 40px; gap: 14px; }
  .rail, .rail.right { grid-template-columns: 1fr; gap: 12px; }
  .rail .panel-hide-small { display: none; }
}

.rail { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--head-height) + 14px); }
@media (max-width: 1240px) { .rail.right { position: static; } }
@media (max-width: 980px) { .rail { position: static; } }

/* ---------------------------------------------------------------- rail panels */
.promo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: 16px 17px;
}
.promo h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--navy); margin: 0 0 12px;
}
.promo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.promo li { font-size: 13px; color: var(--mid); display: grid; grid-template-columns: 16px 1fr; gap: 9px; }
.promo li b { display: block; color: var(--ink); font-size: 13.5px; }
.promo li::before {
  content: ""; width: 7px; height: 7px; margin-top: 6px;
  background: var(--gold); transform: rotate(45deg);
}
.promo p { margin: 0; font-size: 13px; color: var(--mid); }

.promo.navy {
  background: var(--navy); border-color: var(--navy); color: #fff; border-top-color: var(--gold);
}
.promo.navy h3 { color: var(--gold); }
.promo.navy p, .promo.navy li { color: #c2cdda; }
.promo.navy li b { color: #fff; }
.promo.navy .phone { font-size: 21px; font-weight: bold; color: #fff; display: block; margin-bottom: 4px; }
.promo.navy a { color: #fff; }

.promo .steps-mini { counter-reset: mini; display: grid; gap: 12px; }
.promo .steps-mini div { counter-increment: mini; display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 13px; color: var(--mid); }
.promo .steps-mini div::before {
  content: counter(mini); width: 24px; height: 24px; border: 1px solid var(--gold);
  color: var(--navy); display: grid; place-items: center; font-weight: bold; font-size: 12px;
}
.promo .steps-mini b { display: block; color: var(--ink); font-size: 13.5px; }

.promo .stamps { display: flex; flex-wrap: wrap; gap: 7px; }
.promo .stamps span {
  border: 1px solid var(--line); background: #fbfcfd; padding: 5px 10px;
  font-size: 11.5px; font-weight: bold; color: var(--navy);
}

/* ---------------------------------------------------------------- the card */
.card { background: var(--paper); border: 1px solid var(--line); }

.steps { display: flex; background: var(--fill); border-bottom: 1px solid var(--line); }
.steps .s {
  flex: 1; padding: 11px 12px; font-size: 12.5px; color: var(--mid);
  border-right: 1px solid var(--line-2); text-decoration: none; display: block;
  border-bottom: 3px solid transparent;
}
.steps .s:last-child { border-right: 0; }
.steps .s b { display: block; font-size: 13px; }
.steps .s.on { background: var(--paper); color: var(--ink); border-bottom-color: var(--gold); }
.steps .s.done { color: var(--navy); }
.steps .s.done b::after { content: " \2713"; color: var(--gold-deep); }
button.s {
  font: inherit; text-align: left; cursor: pointer;
  background: none; border: 0; border-right: 1px solid var(--line-2);
  border-bottom: 3px solid transparent;
}
button.s:hover { background: #eef1f5; }
button.s:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
@media (max-width: 560px) {
  .steps .s { padding: 9px; font-size: 11px; }
  .steps .s b { font-size: 11.5px; }
}

.pageline {
  padding: 15px 34px 0; font-size: 13.5px; color: var(--mid);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.pageline .save-note { color: var(--soft); font-size: 12.5px; }

.body { padding: 12px 34px 30px; }
.body h1 { font-family: var(--serif); font-weight: normal; font-size: 28px; margin: 14px 0 6px; color: var(--navy); }
.body .blurb { font-size: 14.5px; color: var(--mid); margin: 0 0 24px; max-width: 78ch; }
@media (max-width: 760px) {
  .pageline { padding: 13px 18px 0; }
  .body { padding: 10px 18px 26px; }
  .body h1 { font-size: 23px; }
}

/* ---------------------------------------------------------------- fields */
.group { margin-bottom: 28px; }
.group > h2 {
  font-size: 13.5px; margin: 0 0 15px; padding-bottom: 7px;
  border-bottom: 2px solid var(--navy); color: var(--navy);
  text-transform: uppercase; letter-spacing: 0.08em;
}
/* Three across once there is room, so a wide form does not become a
   single tall column of half empty rows. */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
@media (min-width: 1400px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; gap: 15px; } }
.f.wide { grid-column: 1 / -1; }

.f label.lbl, .f span.lbl { display: block; font-size: 12.5px; font-weight: bold; margin-bottom: 5px; }
.f .star { color: var(--red); }
.f .opt { color: var(--soft); font-weight: normal; font-size: 11.5px; }

.f input[type="text"], .f input[type="tel"], .f input[type="email"],
.f input[type="number"], .f input[type="url"], .f select, .f textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 0;
  padding: 11px 12px;
}
/* 16px on a phone, otherwise the browser zooms in the moment a box is
   tapped and the seller has to pinch back out. */
@media (max-width: 760px) {
  .f input[type="text"], .f input[type="tel"], .f input[type="email"],
  .f input[type="number"], .f input[type="url"], .f select, .f textarea {
    font-size: 16px; padding: 12px;
  }
  .choices label, .boxes label { font-size: 15px; padding: 3px 0; }
  .choices input, .boxes input { width: 19px; height: 19px; }
}
.f textarea { min-height: 76px; resize: vertical; }
.f select {
  appearance: none; padding-right: 32px; background-color: var(--paper);
  background-image: linear-gradient(45deg, transparent 50%, #7a8087 50%),
                    linear-gradient(135deg, #7a8087 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.f input:focus, .f select:focus, .f textarea:focus {
  outline: 2px solid var(--gold-deep); outline-offset: -1px; border-color: var(--gold-deep);
}
.f .hint { font-size: 12px; color: var(--mid); margin: 5px 0 0; }
.f .err { font-size: 12px; color: var(--red); margin: 5px 0 0; font-weight: bold; }
.f.bad input, .f.bad select, .f.bad textarea { border-color: var(--red); border-width: 2px; }

.choices { display: flex; flex-wrap: wrap; gap: 9px 20px; }
.choices label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.choices input { width: 17px; height: 17px; accent-color: var(--navy); }
.boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 9px 16px; }
.boxes label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; cursor: pointer; }
.boxes input { width: 16px; height: 16px; accent-color: var(--navy); }

.pair { display: grid; grid-template-columns: 1fr 132px; gap: 10px; }
@media (max-width: 420px) { .pair { grid-template-columns: 1fr; } }

.upload { border: 1px dashed var(--line); background: var(--fill); padding: 14px; }
.upload input[type="file"] { font-size: 13.5px; width: 100%; }
.upload .chosen { font-size: 12.5px; color: var(--navy); margin-top: 8px; font-weight: bold; }

/* ---------------------------------------------------------------- notices */
.notice { padding: 12px 15px; font-size: 13.5px; margin-bottom: 18px; border: 1px solid; }
.notice.bad { border-color: var(--red); background: #fbeceb; color: #8f2f25; }
.notice.warn { border-color: #a5822f; background: var(--gold-wash); color: #6f5310; }
.notice.info { border-color: var(--line); background: var(--fill); color: var(--mid); }
.notice b { display: block; margin-bottom: 4px; }
.notice ul { margin: 7px 0 0; padding-left: 18px; }
.notice a { color: inherit; }

/* ---------------------------------------------------------------- summary */
.summary { border: 1px solid var(--line-2); font-size: 14px; }
.summary .r { display: grid; grid-template-columns: 190px 1fr auto; border-bottom: 1px solid var(--line-2); }
.summary .r:last-child { border-bottom: 0; }
.summary .r > * { padding: 9px 13px; }
.summary .k { color: var(--mid); background: var(--fill); font-size: 13px; }
.summary .v { font-weight: bold; }
.summary .v.empty { font-weight: normal; color: var(--soft); }
.summary .e a { font-size: 12.5px; }
@media (max-width: 560px) {
  .summary .r { grid-template-columns: 1fr auto; }
  .summary .k { grid-column: 1 / -1; padding-bottom: 2px; }
}

.agree {
  border: 1px solid var(--gold); background: var(--gold-wash);
  padding: 14px 16px; display: flex; gap: 11px;
}
.agree input { width: 18px; height: 18px; accent-color: var(--navy); margin-top: 2px; flex: none; }
.agree .t { font-size: 13.5px; color: var(--mid); }
.agree .t b { display: block; margin-bottom: 3px; font-size: 14px; color: var(--ink); }
.agree.bad { border-color: var(--red); border-width: 2px; background: #fbeceb; }

/* ---------------------------------------------------------------- buttons */
.nav {
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid var(--line-2); padding-top: 18px; margin-top: 20px;
}
.nav .sp { margin-left: auto; }
.nav .btn.sec {
  background: var(--paper); color: var(--mid); border-color: var(--line); font-weight: normal;
}
.nav .btn.sec:hover { background: var(--fill); color: var(--ink); border-color: var(--soft); }
@media (max-width: 460px) {
  .nav { flex-wrap: wrap; }
  .nav .btn { flex: 1; text-align: center; padding: 12px 14px; }
}

/* ---------------------------------------------------------------- done */
.done { padding: 46px 22px 50px; text-align: center; }
.done .tick {
  width: 58px; height: 58px; border: 3px solid var(--gold); color: var(--navy);
  border-radius: 50%; display: grid; place-items: center;
  font-size: 27px; font-weight: bold; margin: 0 auto 18px;
}
.done h1 { font-family: var(--serif); font-weight: normal; font-size: 27px; color: var(--navy); margin: 0 0 10px; }
.done p { font-size: 14.5px; color: var(--mid); max-width: 52ch; margin: 0 auto 16px; }
.done .ref {
  display: inline-block; border: 2px dashed var(--gold); padding: 11px 24px;
  font-size: 18px; font-weight: bold; color: var(--navy); background: var(--gold-wash);
}
.done .next {
  max-width: 470px; margin: 24px auto 0; text-align: left;
  border: 1px solid var(--line); background: var(--fill); padding: 15px 17px;
  font-size: 13.5px; color: var(--mid);
}
.done .next b { display: block; color: var(--ink); margin-bottom: 7px; font-size: 14px; }
.done .next ol { margin: 0; padding-left: 20px; }
.done .next li { margin-bottom: 5px; }
.done .again { margin-top: 24px; }

/* ---------------------------------------------------------------- rail pictures */
.promo-shot {
  margin: 0; background: var(--paper); border: 1px solid var(--line);
  border-top: 3px solid var(--gold); overflow: hidden;
}
.promo-shot img { width: 100%; height: 132px; object-fit: cover; display: block; }
.promo-shot figcaption {
  padding: 10px 14px 12px; font-size: 12.5px; color: var(--mid); background: var(--paper);
}

/* ------------------------------------------------------------------
   Starting again after one entry has gone in. Two ways round, because
   the office uses both: the same seller with a second plot, and the
   next person walking in.
   ------------------------------------------------------------------ */
.again { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.again-head { font-size: 15px; font-weight: bold; color: var(--ink); margin: 0 0 14px; }
.again-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.again-row .btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 12px 22px; line-height: 1.3; min-width: 240px;
}
.again-row .btn small { font-size: 11.5px; font-weight: normal; opacity: 0.85; }

/* A quieter version of the navy button, so neither choice shouts louder
   than the other. */
.btn.ghost-navy, a.btn.ghost-navy {
  background: var(--paper); color: var(--navy); border-color: var(--navy);
}
.btn.ghost-navy:hover, a.btn.ghost-navy:hover {
  background: var(--navy); color: #fff; border-color: var(--navy);
}

.again-note { font-size: 13px; color: var(--soft); margin: 16px 0 0; }

@media (max-width: 560px) {
  .again-row { flex-direction: column; }
  .again-row .btn { min-width: 0; width: 100%; }
}

/* The escape hatch, for staff who need an empty form straight away. */
/* The notice shown when details were carried over from the previous entry. */
.notice.carried { display: flex; gap: 14px; align-items: center; justify-content: space-between; }
.notice.carried .btn { flex: none; }
@media (max-width: 620px) {
  .notice.carried { flex-direction: column; align-items: stretch; }
}

.clear-link {
  font: inherit; font-size: 12.5px; background: none; border: 0; padding: 0;
  margin-left: 12px; color: var(--navy); text-decoration: underline; cursor: pointer;
}
.clear-link:hover { color: var(--gold-deep); }
