/* ─── Forms — lead/contact fields, newsletter pill, calculator, consent,
   status messages (demo forms and the CF7 versions share these).
   Fields wear the 2px ink outline; the card around a form (form-box,
   hero tile, contact box) is styled by its own component.
   ────────────────────────────────────────────────────────────────────────── */

.lead-f,
.calc-f {
  display: grid;
  gap: 16px;
}

.lead-f label,
.calc-f label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mut);
  min-width: 0;
}

.lead-f input:not([type="checkbox"]),
.lead-f select,
.lead-f textarea,
.calc-f input,
.calc-f select {
  width: 100%;
  min-width: 0;
  border: var(--bw) solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  transition: border-color .2s, box-shadow .2s;
}

.lead-f select,
.calc-f select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.lead-f textarea {
  resize: vertical;
}

.lead-f input:focus,
.lead-f select:focus,
.lead-f textarea:focus,
.calc-f input:focus,
.calc-f select:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: var(--shd-sm);
}

[aria-invalid="true"] {
  border-color: var(--negative-color) !important;
}

.f-row {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .f-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Newsletter pill (footer box) */
.nl__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: var(--bw) solid var(--line);
  border-radius: 18px;
  padding: 6px;
  background: var(--paper);
}

.nl__row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  outline: none;
  color: var(--ink);
}

.nl__row input::placeholder {
  color: var(--mut);
}

.nl__row .btn {
  box-shadow: none;
}

.nl .consent {
  margin-top: 12px;
}

@media (min-width: 640px) {
  .nl__row {
    flex-direction: row;
    border-radius: 999px;
  }
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  font-weight: 500;
  color: var(--mut);
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--acc);
}

.consent a {
  color: inherit;
}

/* Status message (demo forms) */
.status {
  display: none;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border: var(--bw) solid var(--line);
  border-radius: 14px;
}

.status.is-shown {
  display: block;
}

.status--ok {
  background: color-mix(in srgb, var(--mint) 30%, var(--paper));
  color: var(--ink);
}

.status--err {
  background: color-mix(in srgb, var(--negative-color) 12%, var(--paper));
  color: var(--negative-color);
}

/* ─── Calculator ─────────────────────────────────────────────────────────── */
.seg {
  display: inline-flex;
  justify-self: start;
  background: var(--soft);
  border: var(--bw) solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.seg button {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 700;
  cursor: pointer;
}

.seg button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--bg);
}

.c-out {
  display: grid;
  gap: 20px;
  align-items: center;
  background: var(--butter);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-sm);
  padding: 20px;
}

.c-out__k b {
  display: block;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 50px;
  line-height: 1;
}

.c-out__k span {
  font-size: 13px;
  font-weight: 600;
}

.c-bars p {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.c-bars p span {
  display: block;
  margin-bottom: 3px;
}

.c-bars i {
  position: relative;
  display: block;
  height: 9px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  overflow: hidden;
}

.c-bars i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--w);
  background: var(--mint);
}

.c-bars p:nth-child(2) i::after {
  background: var(--acc);
}

.c-bars p:nth-child(3) i::after {
  background: var(--lilac);
}

.c-bars small {
  font-size: 12px;
}

.c-note {
  font-size: 12.5px;
  color: var(--mut);
  margin: 0;
}

@media (min-width: 640px) {
  .c-out {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 26px;
    padding: 22px;
  }

  .c-out__k b {
    font-size: 54px;
  }
}

/* Search again (search results page) */
.search-f {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin-top: 20px;
}

.search-f input {
  flex: 1;
  min-width: 0;
  border: var(--bw) solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--paper);
}
