/* The Freelancer Guide — email sign-up form (Starter Kit).
   Used by /starter-kit.html and the sign-up block near the end of each guide.
   Behaviour lives in /blog/tfg-subscribe.js. */

.tfg-sub {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px 28px; margin: 36px 0 0;
}
.tfg-sub-kicker {
  display: block; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: var(--accent); margin: 0 0 8px;
}
.tfg-sub h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -0.01em; }
.tfg-sub > p { font-size: 15.5px !important; line-height: 1.6 !important; color: var(--ink-2); margin: 0 0 16px !important; }

.tfg-sub-form { margin: 0; }
.tfg-sub-row { display: flex; gap: 10px; flex-wrap: wrap; }
.tfg-sub-row input[type=email] {
  flex: 1 1 220px; min-width: 0;
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 10px 14px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: white;
}
.tfg-sub-row input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.tfg-sub-row .btn { flex: 0 0 auto; justify-content: center; }
.tfg-sub-row .btn:disabled { opacity: 0.6; cursor: default; }

.tfg-sub-consent {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); cursor: pointer;
}
.tfg-sub-consent input { margin: 3px 0 0; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--accent); }
.tfg-sub-consent a { color: var(--accent); }

.tfg-sub-status { margin: 10px 0 0; font-size: 14px; min-height: 0; }
.tfg-sub-status:empty { display: none; }
.tfg-sub-status.is-error { color: var(--danger); }
.tfg-sub-status.is-ok { color: var(--success); font-weight: 500; }

.tfg-sub-next { display: none; margin: 8px 0 0; font-size: 15px; }
.tfg-sub-form.is-done .tfg-sub-fields { display: none; }
.tfg-sub-form.is-done .tfg-sub-next { display: block; }

.tfg-sub-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

@media (max-width: 760px) {
  .tfg-sub { padding: 20px 18px; }
  .tfg-sub-row .btn { flex: 1 1 100%; }
}
@media print { .tfg-sub { display: none; } }
