/* Flex container for trait buttons */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start; /* change to center if you want centered rows */
}

/* Trait buttons style */
.selection-btn {
  flex: 1 1 calc(20% - 10px); /* 5 buttons per row approx */
  max-width: calc(20% - 10px);
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  cursor: pointer;
  padding: 8px 6px;
  user-select: none;
  text-align: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 140px; /* consistent height */
}

/* Trait icon image */
.selection-btn img {
  width: 70px;
  height: auto;
  margin-bottom: 6px;
  display: block;
  flex-shrink: 0;
}

/* Label under icon */
.selection-btn .trait-label {
  white-space: nowrap;
  line-height: 1.2;
  margin: 0;
  font-weight: 600;
  color: inherit;
}

/* Selected trait button */
.selection-btn.selected {
  background-color: #0073aa;
  border-color: #005177;
  color: #eee !important;
}

/* Unselected trait buttons text color */
.selection-btn:not(.selected) {
  color: #222 !important;
}

/* Responsive: 2 traits per row on small screens */
@media (max-width: 600px) {
  .selection-btn {
    flex: 1 1 calc(50% - 10px);
    max-width: calc(50% - 10px);
    min-height: 140px;
  }
}

/* Checkout button styling */
#checkout_button_e3 {
  display: block;
  margin: 20px auto 0;
  padding: 12px 30px;
  background-color: #0073aa;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease;
  width: max-content;
  white-space: nowrap;
}

#checkout_button_e3:hover:not(:disabled) {
  background-color: #005177;
}

#checkout_button_e3[disabled],
#checkout_button_e3[style*="display: none"] {
  cursor: default;
  opacity: 0.6;
  pointer-events: none;
}

/* Container for checkout button */
#checkout_buttons_container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}

/* Input fields styling */
#industry,
#specialty {
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 12px 0 20px 0;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

#industry:focus,
#specialty:focus {
  border-color: #0073aa;
  outline: none;
}

/* Responsive input fields */
@media (max-width: 600px) {
  #industry,
  #specialty {
    max-width: 100%;
    font-size: 14px;
  }
}
