/* ───────────────────────────────────────────────────────────────────────────
   Floral Profit — Trial form ("Start gratis proefperiode")
   Built on the existing --fp-* design tokens from styles.css.
   Prefix: .tf-
   ─────────────────────────────────────────────────────────────────────────── */

/* ─── Modal shell ─────────────────────────────────────────────────────────── */
.tf-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 16, 20, 0.55);
  backdrop-filter: blur(4px);
  opacity: 1;
  overflow-y: auto;
}
@keyframes tfOverlayIn { from { opacity: 0; } to { opacity: 1; } }

.tf-card {
  width: 100%;
  max-width: 940px;
  background: #fff;
  border-radius: var(--fp-radius-lg);
  box-shadow: var(--fp-shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 360px 1fr;
  opacity: 1;
  transform: none;
  margin: auto;
}
/* Transform-only entrance — base state stays fully visible even if the
   animation never advances (some preview/print contexts freeze at frame 0). */
@keyframes tfCardIn { from { transform: translateY(12px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .tf-host-modal .tf-card { animation: tfCardIn .34s cubic-bezier(.2, .8, .3, 1); }
}

/* Inline / page presentation: drop the floating chrome */
.tf-host-inline .tf-overlay,
.tf-host-page .tf-overlay {
  position: static;
  background: none;
  backdrop-filter: none;
  padding: 0;
  animation: none;
  opacity: 1;
}
.tf-host-inline .tf-card,
.tf-host-page .tf-card {
  animation: none;
  opacity: 1;
  transform: none;
  box-shadow: var(--fp-shadow-md);
  border: 1px solid var(--fp-line);
}
.tf-host-page .tf-card { max-width: 980px; }
.tf-host-page .tf-close { display: none; }
.tf-host-inline .tf-close { display: none; }

/* ─── Left rail (reassurance) ─────────────────────────────────────────────── */
.tf-aside {
  background: var(--fp-ink);
  color: #fff;
  padding: 38px 34px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tf-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(0, 152, 90, 0.40) 0, transparent 45%),
    radial-gradient(circle at 90% 95%, rgba(0, 152, 90, 0.22) 0, transparent 55%);
  pointer-events: none;
}
.tf-aside-inner { position: relative; display: flex; flex-direction: column; height: 100%; }
.tf-aside-logo { height: 26px; width: auto; align-self: flex-start; flex: 0 0 auto; object-fit: contain; margin-bottom: 30px; opacity: .96; }
.tf-aside-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 14px;
}
.tf-aside-title {
  font-size: 27px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.tf-aside-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 15px; }
.tf-aside-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}
.tf-aside-list li b { color: #fff; font-weight: 800; }
.tf-tick {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--fp-accent);
  display: flex; align-items: center; justify-content: center;
  margin-top: 1px;
}
.tf-tick svg { width: 12px; height: 12px; color: #fff; }

.tf-aside-proof {
  margin-top: auto;
  padding-top: 26px;
}
.tf-aside-proof-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
}
.tf-aside-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tf-aside-logos img {
  height: 26px;
  width: auto;
  background: #fff;
  border-radius: 6px;
  padding: 4px 7px;
  opacity: .95;
}

/* ─── Main panel ──────────────────────────────────────────────────────────── */
.tf-main {
  padding: 38px 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tf-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--fp-line);
  background: #fff;
  color: var(--fp-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
  z-index: 5;
}
.tf-close:hover { color: var(--fp-ink); border-color: var(--fp-line-2); }

.tf-head { margin-bottom: 24px; }
.tf-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-accent);
  margin-bottom: 10px;
}
.tf-title {
  font-size: 27px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--fp-ink);
}
.tf-sub {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--fp-muted);
  margin: 0;
  max-width: 46ch;
}

/* ─── Fields ──────────────────────────────────────────────────────────────── */
.tf-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.tf-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.tf-field-full { grid-column: 1 / -1; }
.tf-label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--fp-ink-2);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tf-opt { font-weight: 600; color: var(--fp-muted); letter-spacing: 0; text-transform: none; }
.tf-input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--fp-line-2);
  border-radius: 11px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tf-input-wrap:focus-within {
  border-color: var(--fp-accent);
  box-shadow: 0 0 0 4px var(--fp-accent-soft);
}
.tf-input-wrap.tf-invalid { border-color: #E0556B; }
.tf-input-wrap.tf-invalid:focus-within { box-shadow: 0 0 0 4px rgba(224, 85, 107, 0.14); }
.tf-input-icon {
  padding-left: 13px;
  color: var(--fp-muted);
  display: flex;
  align-items: center;
}
.tf-input-icon svg { width: 17px; height: 17px; }
.tf-input-wrap input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  padding: 13px 14px;
  width: 100%;
  outline: none;
  color: var(--fp-ink);
}
.tf-input-wrap input::placeholder { color: #A6B0BA; font-weight: 500; }
.tf-err {
  font-size: 12.5px;
  font-weight: 700;
  color: #D2415A;
  display: flex;
  align-items: center;
  gap: 5px;
}
.tf-err svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ─── Submit + trust ──────────────────────────────────────────────────────── */
.tf-actions { margin-top: 22px; }
.tf-submit {
  width: 100%;
  justify-content: center;
  font-size: 17px;
  padding: 17px 28px;
}
.tf-submit:disabled { opacity: .6; cursor: default; transform: none; }
.tf-spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: tfSpin .7s linear infinite;
}
@keyframes tfSpin { to { transform: rotate(360deg); } }

.tf-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fp-muted);
}
.tf-trust span { display: inline-flex; align-items: center; gap: 6px; }
.tf-trust svg { width: 14px; height: 14px; color: var(--fp-accent); }

.tf-spam {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--fp-muted);
  background: var(--fp-bg-2);
  border: 1px dashed var(--fp-line-2);
  border-radius: 10px;
  padding: 11px 14px;
}
.tf-spam svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--fp-muted); }

/* ─── Step 2: success ─────────────────────────────────────────────────────── */
.tf-success-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.tf-check {
  flex-shrink: 0;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--fp-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 152, 90, 0.30);
  opacity: 1;
  transform: none;
}
.tf-check svg { width: 26px; height: 26px; color: #fff; }
@media (prefers-reduced-motion: no-preference) {
  .tf-check { animation: tfPop .45s cubic-bezier(.18, 1.3, .4, 1); }
}
@keyframes tfPop { from { transform: scale(.55); } to { transform: scale(1); } }
.tf-success-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.015em;
  line-height: 1.12;
  margin: 2px 0 6px;
  color: var(--fp-ink);
}
.tf-success-sub { font-size: 15px; line-height: 1.5; color: var(--fp-muted); margin: 0; }

.tf-next {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--fp-line);
  border-radius: var(--fp-radius);
  overflow: hidden;
  margin-bottom: 26px;
}
.tf-next-row {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 13px 16px;
  font-size: 14.5px;
  color: var(--fp-ink-2);
}
.tf-next-row + .tf-next-row { border-top: 1px solid var(--fp-line); }
.tf-next-n {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--fp-accent-soft);
  color: var(--fp-accent);
  font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ─── Step 2: optional supplier picker ────────────────────────────────────── */
.tf-sup {
  border-top: 1px dashed var(--fp-line-2);
  padding-top: 24px;
}
.tf-sup-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.tf-sup-title { font-size: 17px; font-weight: 800; color: var(--fp-ink); letter-spacing: -0.01em; margin: 0; }
.tf-sup-badge {
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--fp-muted); background: var(--fp-bg-2);
  padding: 3px 9px; border-radius: 999px;
}
.tf-sup-sub { font-size: 14px; line-height: 1.5; color: var(--fp-muted); margin: 0 0 16px; max-width: 52ch; }

.tf-search {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--fp-line-2);
  border-radius: 11px;
  padding: 0 14px;
  margin-bottom: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tf-search:focus-within { border-color: var(--fp-accent); box-shadow: 0 0 0 4px var(--fp-accent-soft); }
.tf-search svg { width: 17px; height: 17px; color: var(--fp-muted); flex-shrink: 0; }
.tf-search input {
  flex: 1; border: 0; background: transparent; font: inherit;
  font-size: 15px; font-weight: 600; padding: 12px 0; outline: none; color: var(--fp-ink);
}

.tf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.tf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fp-accent-soft);
  color: var(--fp-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.005em;
  white-space: nowrap;
  padding: 6px 8px 6px 13px;
  border-radius: 999px;
  animation: tfChipIn .16s ease;
}
@keyframes tfChipIn { from { transform: scale(.85); } to { transform: scale(1); } }
.tf-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 0;
  background: var(--fp-accent);
  color: #fff;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background .12s ease;
}
.tf-chip-x:hover { background: #007a48; }
.tf-chip-x svg { width: 10px; height: 10px; }

.tf-sup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  padding: 2px;
  margin: 0 -2px;
}
.tf-sup-card {
  position: relative;
  border: 1.5px solid var(--fp-line);
  border-radius: 12px;
  background: #fff;
  padding: 14px 10px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
  font: inherit;
}
.tf-sup-card:hover { border-color: var(--fp-line-2); transform: translateY(-1px); }
.tf-sup-card.is-on {
  border-color: var(--fp-accent);
  background: var(--fp-accent-soft);
}
.tf-sup-card img { height: 38px; width: 100%; object-fit: contain; }
.tf-sup-card .tf-sup-name { font-size: 12px; font-weight: 700; color: var(--fp-ink-2); line-height: 1.2; }
.tf-sup-card .tf-sup-mark {
  position: absolute;
  top: 7px; right: 7px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--fp-accent);
  display: none;
  align-items: center; justify-content: center;
}
.tf-sup-card.is-on .tf-sup-mark { display: flex; }
.tf-sup-card .tf-sup-mark svg { width: 11px; height: 11px; color: #fff; }

.tf-sup-card.tf-sup-other {
  justify-content: center;
  color: var(--fp-muted);
  font-weight: 700;
  font-size: 13px;
}
.tf-sup-card.tf-sup-other .tf-sup-plus { font-size: 22px; line-height: 1; color: var(--fp-accent); }

.tf-other-field { margin-top: 12px; }
.tf-empty { text-align: center; color: var(--fp-muted); font-size: 14px; padding: 24px 0; }

.tf-sup-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.tf-sup-actions .tf-submit { flex: 1; }
.tf-skip {
  background: none;
  border: 0;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fp-muted);
  cursor: pointer;
  padding: 12px 8px;
  white-space: nowrap;
  transition: color .15s ease;
}
.tf-skip:hover { color: var(--fp-ink); }
.tf-sel-count { font-size: 13px; font-weight: 700; color: var(--fp-accent); margin-left: 2px; }

/* ─── Step 3: final done ──────────────────────────────────────────────────── */
.tf-done {
  text-align: center;
  padding: 30px 10px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tf-done .tf-check { width: 64px; height: 64px; margin-bottom: 20px; }
.tf-done .tf-check svg { width: 32px; height: 32px; }
.tf-done-title { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; margin: 0 0 10px; color: var(--fp-ink); }
.tf-done-sub { font-size: 16px; line-height: 1.55; color: var(--fp-muted); margin: 0 auto 24px; max-width: 42ch; }

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .tf-card { grid-template-columns: 1fr; max-width: 480px; }
  .tf-aside { display: none; }
  .tf-host-page .tf-aside,
  .tf-host-inline .tf-aside { display: flex; }
  .tf-main { padding: 30px 24px 26px; }
  .tf-fields { grid-template-columns: 1fr; }
  .tf-sup-grid { grid-template-columns: repeat(2, 1fr); }
  .tf-title, .tf-aside-title { font-size: 23px; }
}
@media (max-width: 560px) {
  .tf-overlay { padding: 0; }
  .tf-card { border-radius: 0; min-height: 100vh; max-width: none; }
  .tf-sup-actions { flex-direction: column-reverse; align-items: stretch; }
  .tf-skip { width: 100%; }
}
