/* ========== GENERAL STYLES ========== */
.wpsb-listings-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.wpsb-listing-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  transition: box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wpsb-listing-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========== CARD HEADER: LOGO + TITLE + LOCATION ========== */
.wpsb-listing-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.wpsb-listing-logo {
  flex-shrink: 0;
  width: 90px;
  height: auto;
}

.wpsb-listing-logo img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.wpsb-header-info h2 {
  font-size: 1.9rem;
  font-weight: bold;
  margin: 0;
}

.wpsb-region {
  font-size: 0.95rem;
  color: #444;
  margin-top: 0.4rem;
}

/* ========== CARD BODY ========== */
.wpsb-listing-body p {
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.wpsb-industry-tags {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.wpsb-tag {
  display: inline-block;
  background-color: #e0e7ff;
  color: #1e3a8a;
  font-size: 1.2rem;
  padding: 0.3rem 0.6rem;
  margin: 0.2rem;
  border-radius: 12px;
  font-weight: 500;
}

/* ========== CTA BUTTON ========== */
.wpsb-profile-button {
  background: #02315e;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  display: inline-block;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.wpsb-profile-button:hover {
  background: #ff6600;
  transform: translateY(-1px);
}

/* ========== FILTER FORM ========== */
.wpsb-industry-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.wpsb-industry-filter label {
  font-weight: bold;
  margin-right: 0.5rem;
}

.wpsb-industry-filter select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  min-width: 200px;
}

/* ========== FORM STYLES ========== */
.wpsb-form {
  background: #fff;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  max-width: 600px;
  margin: 2rem auto;
}

.wpsb-form label {
  display: block;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.wpsb-form input[type="text"],
.wpsb-form textarea,
.wpsb-form input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.wpsb-btn {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.7rem 1.4rem;
    background: #02315e;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
}

.wpsb-btn:hover {
    background: #ff6600;
}

/* ========== SYNERGY CARD (OPTIONAL) ========== */
.wpsb-synergy-card {
  background: #eef;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}

.wpsb-file-button {
  background: #ff9900;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  border: none;
  transition: background 0.3s ease;
  display: inline-block;
}

.wpsb-file-button:hover {
  background: #e38300;
}

.wpsb-file-name {
  margin-left: 1rem;
  font-style: italic;
  color: #444;
}

.wpsb-connected-card {
    background: #1e2d3d;
    color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border-radius: 1rem;
    border-left: 5px solid orange;
}

.wpsb-connected-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.wpsb-bundle-button {
    background-color: orange;
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1.4rem;
}

.wpsb-bundle-result {
    margin-top: 1rem;
    font-size: 1.4rem;
    background: #fff;
    color: #000;
    padding: 1rem;
    border-radius: 8px;
    display: none;
}

.wpsb-msg-form textarea {
    width: 100%;
    padding: 0.5rem;
    font-size: 1rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.wpsb-msg-form button {
    background-color: #003366;
    color: #fff;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.wpsb-msg-status {
    font-size: 0.9rem;
    margin-top: 0.3rem;
    color: orange;
}

.wpsb-chat-box {
    background: #1e2d3d;
    padding: 1rem;
    margin-bottom: 2rem;
    color: white;
    border-radius: 1rem;
}
.wpsb-chat-thread {
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    color: #000;
    padding: 0.8rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.msg-line {
    margin-bottom: 0.5rem;
}
.msg-line .time {
    font-size: 0.8rem;
    color: #666;
}
.wpsb-chat-form textarea {
    width: 100%;
    height: 60px;
    margin-bottom: 0.5rem;
}
