/* picflips.app/affiliates (worker/affiliates.ts): the program, its terms and
   the application form. Built on styles.css: the hero, steps and bands are
   the home page's; this adds the form. /partnerships and /influencers
   (worker/inquiries.ts, 11-15) use it too. */

.aff .hero { padding-top: 40px; }
.aff.done .hero { padding-top: 64px; }

/* Four cards (Partnerships' who we work with): two by two, never three and a stray. */
.steps.four { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) {
  .steps.four { grid-template-columns: 1fr; }
}

form.apply { display: grid; gap: 18px; margin: 20px 0 0; max-width: 560px; }

.fld { display: grid; gap: 6px; }
.fld > span:first-child { font-weight: 600; font-size: 15px; }
.fld em { font-style: normal; color: var(--muted); font-weight: 400; }
.fld small { color: var(--muted); font-size: 13px; line-height: 1.4; }

.fld input,
.fld textarea,
.fld select,
.link-in {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 12px;
}
.fld input,
.fld textarea,
.fld select { padding: 12px 14px; }
.fld textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.fld select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--secondary) 50%), linear-gradient(135deg, var(--secondary) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }

/* picflips.app/ then the code, one field. */
.link-in { display: flex; align-items: center; overflow: hidden; }
.link-in .pre { padding: 12px 0 12px 14px; color: var(--secondary); white-space: nowrap; }
.link-in input { border: 0; border-radius: 0; background: transparent; padding-left: 1px; min-width: 0; }

.fld input:focus,
.fld textarea:focus,
.fld select:focus,
.link-in:focus-within { outline: 2px solid var(--gold); outline-offset: 1px; }
.link-in input:focus { outline: none; }

.fld.bad input,
.fld.bad textarea,
.fld.bad select,
.fld.bad .link-in { border-color: #e5484d; }
.fld.bad .link-in input { border: 0; }

.tick { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--secondary); }
.tick input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); flex: none; }
.tick.bad span { color: var(--text); text-decoration: underline wavy #e5484d; text-underline-offset: 4px; }

form.apply .button { border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px; justify-self: start; padding: 14px 28px; }
form.apply .fine { margin: 0; color: var(--muted); font-size: 13px; }

.form-error {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 12px;
  background: rgba(229, 72, 77, 0.12); color: var(--text); border: 1px solid rgba(229, 72, 77, 0.45); font-size: 15px;
}

.terms ul { color: var(--secondary); font-size: 15px; }
.terms li { margin-bottom: 8px; }

@media (max-width: 480px) {
  form.apply .button { justify-self: stretch; text-align: center; }
}
