/* [TFH-003:TFH_COMPANY_SELECTION:CSS-START] */
.tfh-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(3, 13, 27, 0.64);
  backdrop-filter: blur(9px);
}

.tfh-modal-card {
  width: min(760px, 100%);
  max-height: min(720px, calc(100dvh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(3,13,27,0.38);
}

.tfh-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 20px;
  border-bottom: 1px solid var(--tfh-line);
  background:
    radial-gradient(circle at 90% 0%, rgba(47,127,196,0.12), transparent 28%),
    linear-gradient(135deg, #fbfcfd, #f3f7fa);
}

.tfh-modal-head span {
  color: var(--tfh-blue-600);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.tfh-modal-head h2 {
  margin: 5px 0 6px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: -0.035em;
}

.tfh-modal-head p {
  margin: 0;
  color: var(--tfh-ink-600);
  font-size: 0.82rem;
}

.tfh-modal-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(17,49,84,0.1);
  border-radius: 10px;
  color: #607086;
  background: #fff;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.tfh-modal-close:hover {
  color: var(--tfh-navy-900);
  background: var(--tfh-blue-100);
}

.tfh-company-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  align-content: start;
  gap: 13px;
  padding: 22px 24px 26px;
}

.tfh-company-choice {
  min-height: 112px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(17,49,84,0.13);
  border-radius: 15px;
  color: var(--tfh-ink-900);
  background: linear-gradient(145deg, #fff, #f5f8fb);
  text-align: left;
  cursor: pointer;
}

.tfh-company-choice:hover,
.tfh-company-choice.is-active {
  border-color: rgba(29,95,159,0.34);
  background: linear-gradient(145deg, #fdfefe, #edf5fb);
  box-shadow: 0 12px 24px rgba(8,27,49,0.09);
}

.tfh-company-choice-badge {
  width: 52px;
  height: 52px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, var(--tfh-blue-600), var(--tfh-navy-800));
  font-size: 0.78rem;
  font-weight: 900;
}

.tfh-company-choice-badge img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  background: rgba(255,255,255,0.98);
}

.tfh-company-choice-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.tfh-company-choice-copy strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.tfh-company-choice-copy span {
  width: fit-content;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--tfh-gold-600);
  background: rgba(185,135,50,0.10);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tfh-company-choice-arrow {
  color: var(--tfh-blue-600);
  font-size: 1.2rem;
}
/* [TFH-003:TFH_COMPANY_SELECTION:CSS-END] */
