/**
 * Hybrid 3 — Sales partner public apply (landing + path chrome).
 * TopKote licensee brand layer on SynTekton Platform.
 *
 * Landing shortcode is form-only. Page two-column + benefits = Scott/Kadence.
 */

.tkcc-sp-landing,
.tkcc-sp-path-form {
  --tkcc-sp-ink: #1f2933;
  --tkcc-sp-muted: #587085;
  --tkcc-sp-line: #d5dee7;
  --tkcc-sp-soft: #f8fafc;
  --tkcc-sp-brand: #1683c7;
  --tkcc-sp-brand-dark: #0f6aa3;
  --tkcc-sp-title: #0f3d5c;
  color: var(--tkcc-sp-ink);
  max-width: 560px;
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.tkcc-sp-path-form {
  max-width: 720px;
}

.tkcc-sp-landing-form-shell,
.tkcc-sp-path-form {
  background: #fff;
  border: 1px solid var(--tkcc-sp-line);
  border-radius: 14px;
  padding: 22px 22px 26px;
}

.tkcc-sp-landing-title,
.tkcc-sp-path-heading {
  margin: 0 0 8px;
  font-size: 1.55rem;
  line-height: 1.2;
}

.tkcc-sp-landing-intro,
.tkcc-sp-path-intro,
.tkcc-sp-path-hint,
.tkcc-sp-fineprint {
  color: var(--tkcc-sp-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.tkcc-sp-fineprint {
  font-size: 0.85rem;
  margin-top: 12px;
}

.tkcc-sp-landing-form .tkcc-sp-field-label,
.tkcc-sp-distributor-form .tkcc-sp-field-label,
.tkcc-sp-distributor-form label {
  display: block;
  margin: 0 0 12px;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Contractor-apply style required marker (matches .tkcc-required in calculator CSS). */
.tkcc-sp-landing .tkcc-required,
.tkcc-sp-path-form .tkcc-required {
  color: #a33a00;
  font-weight: 700;
}

.tkcc-sp-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 520px) {
  .tkcc-sp-field-row {
    grid-template-columns: 1fr;
  }
}

.tkcc-sp-input,
.tkcc-sp-landing-form input[type="text"],
.tkcc-sp-landing-form input[type="email"],
.tkcc-sp-landing-form input[type="tel"],
.tkcc-sp-distributor-form input,
.tkcc-sp-distributor-form textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  box-sizing: border-box;
  border: 1px solid var(--tkcc-sp-line);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
}

.tkcc-sp-input:focus,
.tkcc-sp-landing-form input:focus,
.tkcc-sp-distributor-form input:focus,
.tkcc-sp-distributor-form textarea:focus {
  outline: 2px solid rgba(22, 131, 199, 0.25);
  border-color: var(--tkcc-sp-brand);
}

.tkcc-sp-path-cards {
  border: 0;
  margin: 8px 0 18px;
  padding: 0;
}

.tkcc-sp-path-cards legend {
  font-weight: 700;
  margin-bottom: 4px;
}

.tkcc-sp-path-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

@media (max-width: 640px) {
  .tkcc-sp-path-grid {
    grid-template-columns: 1fr;
  }
}

/* Instant/Quick-class path tiles — title + one-line description, never mashed. */
.tkcc-sp-landing-form label.tkcc-sp-path-card,
.tkcc-sp-path-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: 100%;
  min-height: 118px;
  margin: 0;
  padding: 18px 44px 18px 18px;
  border: 2px solid var(--tkcc-sp-line);
  border-radius: 12px;
  background: var(--tkcc-sp-soft);
  color: #334155;
  font-weight: 400;
  font-size: inherit;
  cursor: pointer;
  box-sizing: border-box;
  box-shadow: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tkcc-sp-path-card input[type="radio"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none;
}

.tkcc-sp-path-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c9d4de;
  background: #fff;
  box-sizing: border-box;
  opacity: 0.55;
}

.tkcc-sp-path-card.is-selected .tkcc-sp-path-card-check,
.tkcc-sp-path-card:has(input:checked) .tkcc-sp-path-card-check {
  opacity: 1;
  border-color: var(--tkcc-sp-brand);
  background: var(--tkcc-sp-brand);
}

.tkcc-sp-path-card.is-selected .tkcc-sp-path-card-check::after,
.tkcc-sp-path-card:has(input:checked) .tkcc-sp-path-card-check::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.tkcc-sp-path-card-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.tkcc-sp-path-card:hover {
  border-color: var(--tkcc-sp-brand);
  background: #fff;
}

.tkcc-sp-path-card.is-selected,
.tkcc-sp-path-card:has(input:checked) {
  border-color: var(--tkcc-sp-brand);
  background: #eef7fc;
  box-shadow: 0 0 0 1px rgba(22, 131, 199, 0.35);
}

.tkcc-sp-path-card-title {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--tkcc-sp-title);
}

.tkcc-sp-path-card-blurb {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #475569;
}

.tkcc-sp-button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: var(--tkcc-sp-brand);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}

.tkcc-sp-button:hover {
  background: var(--tkcc-sp-brand-dark);
}

.tkcc-sp-status {
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 0 14px;
}

.tkcc-sp-status.is-error {
  background: #fdecec;
  color: #8a1f1f;
  border: 1px solid #f0b4b4;
}

.tkcc-sp-status.is-success {
  background: #e8f6ee;
  color: #1d5c38;
  border: 1px solid #b7dfc6;
}

.tkcc-sp-path-back {
  margin: 0 0 14px;
}

.tkcc-sp-path-back a {
  color: var(--tkcc-sp-brand);
  font-weight: 600;
  text-decoration: none;
}

.tkcc-sp-path-back a:hover {
  text-decoration: underline;
}

/* Collapse Formidable contact fields when landing prefill is active (JS adds class). */
.frm_forms.tkcc-sp-prefill-active .frm_form_field.tkcc-sp-landing-contact,
.frm_forms.tkcc-sp-prefill-active .tkcc-sp-landing-contact,
body.tkcc-sp-has-lead .frm_forms .frm_form_field.tkcc-sp-landing-contact {
  display: none !important;
}

.tkcc-sp-prefill-banner {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef7fc;
  border: 1px solid #b7d7ea;
  color: var(--tkcc-sp-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Worker B — dual-track / Referral offer panels */
.tkcc-sp-offer {
  margin: 0;
  padding: 4px 0 0;
  color: var(--tkcc-sp-ink);
}

.tkcc-sp-offer-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--tkcc-sp-title);
}

.tkcc-sp-offer-copy,
.tkcc-sp-offer-fineprint {
  margin: 0 0 14px;
  line-height: 1.5;
  color: var(--tkcc-sp-muted);
}

.tkcc-sp-offer-fineprint {
  font-size: 0.85rem;
  margin-top: 8px;
  margin-bottom: 0;
}

.tkcc-sp-offer-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 8px;
}

.tkcc-sp-offer-cta-form {
  margin: 0;
}

.tkcc-sp-button-secondary {
  background: #fff !important;
  color: var(--tkcc-sp-brand) !important;
  border: 1px solid var(--tkcc-sp-brand) !important;
}

.tkcc-sp-button-secondary:hover {
  background: #eef7fc !important;
}

.tkcc-sp-offer-result {
  max-width: 720px;
  margin: 0 0 18px;
}

/* Retired Consent checkbox (structure Apply removes or retires). */
.frm_forms .tkcc-sp-consent-retired,
.frm_form_field.tkcc-sp-consent-retired {
  display: none !important;
}

/*
 * Disclaimer belongs under Submit. Structure Apply creates the HTML field;
 * JS moves the node after the submit row (survives Formidable redraw).
 */
.frm_forms .tkcc-sp-submit-disclaimer,
.frm_forms .tkcc-sp-submit-disclaimer-field .tkcc-sp-submit-disclaimer {
  margin: 12px 0 0;
  padding: 0;
  color: var(--tkcc-sp-muted, #587085);
  font-size: 0.85rem;
  line-height: 1.45;
}

.frm_forms .tkcc-sp-submit-disclaimer p {
  margin: 0;
}

.frm_forms .frm_submit + .tkcc-sp-submit-disclaimer,
.frm_forms .frm_page_footer + .tkcc-sp-submit-disclaimer,
.frm_forms .tkcc-sp-submit-disclaimer-after-submit {
  margin-top: 14px;
  max-width: 40rem;
}

.frm_message .tkcc-sp-offer,
.frm_forms .tkcc-sp-offer {
  text-align: left;
}
