/**
 * Public TopKote contractor Formidable application — get-started door + decision cards + Step 2 path copy.
 * Plugin-enforced gates live in PHP; this file only polishes Instant/Quick selection UI.
 */

.frm_forms.tkcc-contractor-application-form .frm_save_draft,
.frm_forms .tkcc-contractor-application-form .frm_save_draft,
form.tkcc-contractor-application-form .frm_save_draft,
.frm_forms form .frm_button_submit.frm_save_draft,
.frm_forms .frm_submit .frm_save_draft {
  display: none !important;
}

/* Retired duplicate Step 1 kickers (page H1 owns framing). */
.tkcc-contractor-step1-intro,
.frm_form_field.tkcc-contractor-step1-intro-retired,
.frm_forms .tkcc-contractor-step1-intro-retired {
  display: none !important;
}

/* Side-by-side Instant / Quick path cards (stack on mobile).
   Include .vertical_radio so Formidable stacked-radio layout cannot override before Apply clears align. */
.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_opt_container,
.frm_forms .tkcc-access-choice-cards .frm_opt_container,
.frm_forms .frm_form_field.tkcc-access-choice-cards .tkcc-access-card-row,
.frm_forms .frm_form_field.tkcc-access-choice-cards.vertical_radio .frm_opt_container,
.frm_forms .frm_form_field.tkcc-access-choice-cards.vertical_radio .tkcc-access-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_opt_container .frm_radio,
.frm_forms .tkcc-access-choice-cards .frm_opt_container .frm_radio,
.frm_forms .frm_form_field.tkcc-access-choice-cards .tkcc-access-card-row .frm_radio,
.frm_forms .frm_form_field.tkcc-access-choice-cards.vertical_radio .frm_opt_container .frm_radio {
  margin: 0;
  width: 100%;
  min-width: 0;
}

@media (max-width: 640px) {
  .frm_forms .frm_form_field.tkcc-access-choice-cards .frm_opt_container,
  .frm_forms .tkcc-access-choice-cards .frm_opt_container,
  .frm_forms .frm_form_field.tkcc-access-choice-cards .tkcc-access-card-row,
  .frm_forms .frm_form_field.tkcc-access-choice-cards.vertical_radio .frm_opt_container,
  .frm_forms .frm_form_field.tkcc-access-choice-cards.vertical_radio .tkcc-access-card-row {
    grid-template-columns: 1fr;
  }
}

.frm_forms .frm_radio {
  margin: 0 0 10px;
}

.frm_forms .frm_radio label,
.frm_forms .frm_checkbox label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c9d4de;
  border-radius: 10px;
  padding: 14px 16px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

/* Whole-card selectable path tiles — radios stay in DOM for Formidable, visually hidden. */
.frm_forms .tkcc-access-choice-cards .frm_radio label,
.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_radio label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: 100%;
  min-height: 148px;
  padding: 18px 18px 18px 18px;
  border-width: 2px;
  border-color: #d5dee7;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  box-shadow: none;
}

.frm_forms .tkcc-access-choice-cards .frm_radio input[type="radio"],
.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_radio 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;
}

.frm_forms .frm_radio input[type="radio"],
.frm_forms .frm_checkbox input[type="checkbox"] {
  margin-top: 3px;
  flex: 0 0 auto;
}

.frm_forms .frm_radio label:hover,
.frm_forms .frm_checkbox label:hover {
  border-color: #1683c7;
  background: #fff;
}

.frm_forms .tkcc-access-choice-cards .frm_radio label:hover,
.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_radio label:hover {
  border-color: #1683c7;
  background: #fff;
}

.frm_forms .frm_radio input[type="radio"]:checked + *,
.frm_forms .frm_radio label:has(input[type="radio"]:checked) {
  border-color: #1683c7;
  background: #eef7fc;
  box-shadow: 0 0 0 1px #1683c7;
}

.frm_forms .tkcc-access-choice-cards .frm_radio label:has(input[type="radio"]:checked),
.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_radio label:has(input[type="radio"]:checked),
.frm_forms .tkcc-access-choice-cards .frm_radio label.tkcc-access-card-selected,
.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_radio label.tkcc-access-card-selected {
  border-color: #1683c7;
  background: #eef7fc;
  box-shadow: 0 0 0 1px rgba(22, 131, 199, 0.35);
}

/* Selected checkmark (not a radio-dot focus). */
.frm_forms .tkcc-access-choice-cards .tkcc-access-card-check,
.frm_forms .frm_form_field.tkcc-access-choice-cards .tkcc-access-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;
}

.frm_forms .tkcc-access-choice-cards .frm_radio label:has(input[type="radio"]:checked) .tkcc-access-card-check,
.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_radio label:has(input[type="radio"]:checked) .tkcc-access-card-check,
.frm_forms .tkcc-access-choice-cards .frm_radio label.tkcc-access-card-selected .tkcc-access-card-check,
.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_radio label.tkcc-access-card-selected .tkcc-access-card-check {
  opacity: 1;
  border-color: #1683c7;
  background: #1683c7;
}

.frm_forms .tkcc-access-choice-cards .frm_radio label:has(input[type="radio"]:checked) .tkcc-access-card-check::after,
.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_radio label:has(input[type="radio"]:checked) .tkcc-access-card-check::after,
.frm_forms .tkcc-access-choice-cards .frm_radio label.tkcc-access-card-selected .tkcc-access-card-check::after,
.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_radio label.tkcc-access-card-selected .tkcc-access-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);
}

.frm_forms .tkcc-access-choice-cards .tkcc-access-card-copy,
.frm_forms .frm_form_field.tkcc-access-choice-cards .tkcc-access-card-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding-right: 28px;
}

.frm_forms .tkcc-access-choice-cards .tkcc-access-card-title,
.frm_forms .frm_form_field.tkcc-access-choice-cards .tkcc-access-card-title {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
  color: #0f3d5c;
}

.frm_forms .tkcc-access-choice-cards .tkcc-access-card-subtitle,
.frm_forms .frm_form_field.tkcc-access-choice-cards .tkcc-access-card-subtitle {
  display: block;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
  color: #1683c7;
}

.frm_forms .tkcc-access-choice-cards .tkcc-access-card-desc,
.frm_forms .frm_form_field.tkcc-access-choice-cards .tkcc-access-card-desc {
  display: block;
  font-weight: 400;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #475569;
}

/* Hide empty / cleared access-field essay description. */
.frm_forms .tkcc-access-choice-cards .frm_description:empty,
.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_description:empty,
.frm_forms .tkcc-access-choice-cards .frm_description[hidden],
.frm_forms .frm_form_field.tkcc-access-choice-cards .frm_description[hidden] {
  display: none !important;
}

/* Retired consent checkbox (structure apply removes or hides). */
.frm_forms .tkcc-contractor-consent-retired,
.frm_form_field.tkcc-contractor-consent-retired {
  display: none !important;
}

/*
 * Disclaimer belongs visually under Continue. Structure apply places the HTML field
 * before the page break; JS moves the node after the Step 1 submit row.
 */
.frm_forms .tkcc-contractor-continue-disclaimer,
.frm_forms .tkcc-contractor-continue-disclaimer-field .tkcc-contractor-continue-disclaimer {
  margin: 12px 0 0;
  padding: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
}

.frm_forms .tkcc-contractor-continue-disclaimer p {
  margin: 0;
}

.frm_forms .frm_submit + .tkcc-contractor-continue-disclaimer,
.frm_forms .frm_page_footer + .tkcc-contractor-continue-disclaimer,
.frm_forms .tkcc-continue-disclaimer-after-submit {
  margin-top: 14px;
  max-width: 40rem;
}

.tkcc-contractor-step2-copy {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-left: 4px solid #1683c7;
  background: #f4f8fb;
  color: #1f2933;
  font-size: 15px;
  line-height: 1.5;
}

.tkcc-contractor-step2-copy[hidden] {
  display: none !important;
}

/* Plain geo section title — no blue/shaded essay callout (0.10.60). */
.tkcc-contractor-geo-intro,
.tkcc-contractor-geo-intro.tkcc-contractor-geo-plain {
  margin: 0 0 10px;
  padding: 0;
  background: none;
  border: none;
  color: #1f2933;
  line-height: 1.35;
}

.tkcc-contractor-geo-intro p {
  margin: 6px 0 0;
}

.tkcc-contractor-geo-title {
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f3d5c;
  line-height: 1.3;
}

.tkcc-contractor-step2-admin-copy .tkcc-step2-instant,
.tkcc-contractor-step2-admin-copy .tkcc-step2-quick {
  display: none;
  margin: 0 0 12px;
  padding: 0;
  background: none;
  border: none;
  line-height: 1.45;
}

.tkcc-contractor-step2-admin-copy .tkcc-step2-quick {
  color: #1f2933;
  font-size: 15px;
}

/* Retired Resale Yes/No + four always-on Instant uploads (non-Step1 leftovers only).
   Step 1 leftover proof (form 6 field id 182 / tk_contractor_additional_business_proof
   and twin leftovers) must be DESTROYED — CSS hide is NOT acceptance
   (Formidable validation redraw re-shows CSS-hidden fields). */
.frm_forms .tkcc-instant-legacy-proof-retired,
.frm_form_field.tkcc-instant-legacy-proof-retired,
.frm_forms .tkcc-step1-legacy-proof-retired,
.frm_form_field.tkcc-step1-legacy-proof-retired {
  display: none !important;
}

/* Instant verification-first block. */
.tkcc-instant-verify-heading h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 750;
  color: #0f3d5c;
  line-height: 1.25;
}

.tkcc-instant-verify-heading p,
.tkcc-instant-verify-intro p {
  margin: 0;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.5;
}

.tkcc-instant-verify-intro {
  margin: 0 0 14px;
}

.frm_forms .tkcc-verify-slot-extra.tkcc-verify-slot-collapsed,
.frm_forms .frm_form_field.tkcc-verify-slot-extra.tkcc-verify-slot-collapsed {
  display: none !important;
}

.frm_forms .tkcc-verify-input-hidden,
.frm_forms .frm_form_field.tkcc-verify-input-hidden {
  display: none !important;
}

.tkcc-verify-add-another-wrap {
  margin: 4px 0 18px;
}

.tkcc-verify-add-another {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 12px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #fff;
  color: #0f3d5c;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.tkcc-verify-add-another:hover {
  border-color: #1683c7;
  color: #1683c7;
}

.tkcc-verify-add-another[hidden] {
  display: none !important;
}
