.company-database-section {
  padding: 72px 24px;
  background: #f7f7f4;
}

.company-database-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px;
  background: #ffffff;
  border: 1px solid #e6e2d8;
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
}

.company-database-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  color: #777;
  margin-bottom: 8px;
}

.company-database-header h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.company-database-header p {
  max-width: 680px;
  color: #555;
  line-height: 1.6;
}

.primary-listing-button,
.company-primary-button {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
  cursor: pointer;
}

.company-secondary-button {
  background: #fff;
  color: #111;
  border: 1px solid #d5d0c5;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
  cursor: pointer;
}

.company-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 24px;
}

.company-modal {
  position: relative;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  color: #111;
}

.company-modal-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: transparent;
  border: none;
  font-size: 30px;
  cursor: pointer;
}

.company-modal-progress {
  color: #777;
  font-size: 14px;
  margin-bottom: 20px;
}

.company-form-step {
  display: none;
}

.company-form-step.active {
  display: block;
}

.company-form-step h3 {
  margin-top: 0;
  margin-bottom: 24px;
  font-size: 24px;
}

.company-modal label {
  display: block;
  margin-bottom: 16px;
  font-weight: 600;
}

.company-modal input,
.company-modal select,
.company-modal textarea {
  width: 100%;
  margin-top: 8px;
  padding: 13px 14px;
  border: 1px solid #d8d3ca;
  border-radius: 12px;
  font: inherit;
  box-sizing: border-box;
}

.company-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.company-modal-actions {
  margin-top: 28px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.company-valuation-result {
  margin: 24px 0;
  padding: 28px;
  border-radius: 18px;
  background: #f7f7f4;
  border: 1px solid #e6e2d8;
  font-size: 30px;
  font-weight: 700;
}

.company-hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .company-database-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-form-grid {
    grid-template-columns: 1fr;
  }

  .company-modal {
    padding: 24px;
  }
}
