.company-step-v2 {
  background: #eef2f7;
}

.company-step-shell {
  max-width: 920px;
}

.company-step-header-card,
.company-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 48px rgba(18, 40, 76, 0.08);
}

.company-step-header-card {
  padding: 28px;
  margin-bottom: 18px;
}

.company-step-form {
  display: grid;
  gap: 18px;
}

.company-card {
  padding: 24px;
}

.company-card-head {
  margin-bottom: 18px;
}

.company-card-head p {
  margin-bottom: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group-full {
  grid-column: 1 / -1;
}

.field-group span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

.label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.required-mark {
  color: #dc2626;
}

.field-error {
  min-height: 18px;
  color: #dc2626;
  font-size: 0.86rem;
}

.siret-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.field-group-grow {
  min-width: 0;
}

.search-loader {
  margin-top: 12px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  animation: pulseFade 1.2s ease-in-out infinite;
}

.premium-search-status {
  border-radius: 16px;
  background: #f6f8fc;
  border: 1px solid rgba(45, 104, 196, 0.12);
  padding: 14px 16px;
  margin-top: 14px;
}

.company-found-card {
  margin-top: 16px;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5ff 100%);
  border: 1px solid rgba(45, 104, 196, 0.16);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 30px rgba(45, 104, 196, 0.08);
}

.company-found-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.company-found-head p {
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.company-found-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 163, 74, 0.14);
  color: var(--success);
  font-weight: 800;
  flex: 0 0 auto;
}

.company-found-details {
  display: grid;
  gap: 6px;
  color: var(--dark);
  margin-bottom: 16px;
}

.company-found-actions,
.company-step-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(10, 37, 64, 0.08);
  background: #f9fbfe;
}

.toggle-card input {
  display: none;
}

.toggle-indicator {
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #d7deea;
  position: relative;
  flex: 0 0 auto;
  transition: background 0.2s ease;
}

.toggle-indicator::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
  transition: transform 0.2s ease;
}

.toggle-card input:checked + .toggle-indicator {
  background: rgba(31, 170, 89, 0.32);
}

.toggle-card input:checked + .toggle-indicator::after {
  transform: translateX(22px);
}

.toggle-copy strong {
  display: block;
  margin-bottom: 4px;
  color: var(--dark);
}

.toggle-copy small {
  color: var(--muted);
}

.info-dot {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(45, 104, 196, 0.18);
  background: #eef4ff;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

.field-tooltip {
  display: none;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  box-shadow: 0 14px 28px rgba(10, 37, 64, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.field-tooltip.open {
  display: block;
}

.convention-help-text {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.convention-help-toggle {
  width: fit-content;
  margin-top: 2px;
  padding: 0;
  border: none;
  background: transparent;
  color: #2d68c4;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.convention-help-panel,
.convention-suggestion {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(45, 104, 196, 0.12);
  background: #f7fbff;
}

.convention-help-panel p,
.convention-suggestion p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.convention-help-panel ul {
  margin: 8px 0;
  padding-left: 18px;
  color: var(--dark);
}

.convention-help-note {
  margin-top: 8px !important;
}

.convention-suggestion strong {
  display: block;
  margin-bottom: 6px;
  color: var(--dark);
  font-size: 0.95rem;
}

.company-step-actions {
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.company-continue-btn,
.search-action-btn {
  min-width: 220px;
  min-height: 54px;
  background: #1faa59;
  color: #fff;
  border: none;
  border-radius: 18px;
  box-shadow: 0 16px 32px rgba(31, 170, 89, 0.18);
  font-size: 1rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.company-continue-btn:hover,
.search-action-btn:hover {
  transform: translateY(-1px);
}

.company-continue-btn:active,
.search-action-btn:active {
  transform: translateY(0);
}

@keyframes pulseFade {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@media (hover: hover) {
  .label-with-help:hover + select + .field-tooltip,
  .label-with-help:hover + .field-tooltip {
    display: block;
  }
}

@media (max-width: 900px) {
  .company-step-header-card,
  .company-card {
    padding: 18px;
    border-radius: 20px;
  }

  .form-grid-2,
  .siret-search-row {
    grid-template-columns: 1fr;
  }

  .company-step-actions,
  .company-found-actions {
    flex-direction: column;
  }

  .company-continue-btn,
  .company-step-actions .btn,
  .company-found-actions .btn,
  .search-action-btn {
    width: 100%;
  }
}
