/* ============================================================
   BC Condos & Homes — Lead Capture Widgets
   All classes prefixed .bcch-w- to avoid Bootstrap collisions
   ============================================================ */

/* ── Shared form base ── */
.bcch-w-wrap {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #333;
  line-height: 1.5;
}

.bcch-w-heading {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #222;
}

.bcch-w-form .bcch-w-field {
  margin-bottom: 10px;
}

.bcch-w-form input[type="text"],
.bcch-w-form input[type="email"],
.bcch-w-form input[type="tel"],
.bcch-w-form textarea {
  display: block;
  width: 100%;
  padding: 7px 10px;
  font-size: 14px;
  line-height: 1.42857143;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.bcch-w-form input:focus,
.bcch-w-form textarea:focus {
  border-color: #66afe9;
  outline: 0;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 6px rgba(102,175,233,.6);
}

.bcch-w-form textarea {
  resize: vertical;
  min-height: 70px;
}

.bcch-w-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.42857143;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  background-color: #337ab7;
  border-color: #2e6da4;
  width: 100%;
  transition: background-color .15s ease;
}

.bcch-w-btn:hover:not(:disabled) {
  background-color: #286090;
  border-color: #204d74;
}

.bcch-w-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.bcch-w-error {
  color: #c0392b;
  font-size: 12px;
  margin-top: 2px;
  display: block;
}

.bcch-w-success {
  color: #27ae60;
  font-weight: 600;
  padding: 16px 0;
  font-size: 15px;
  text-align: center;
}

/* ── Profile Card widget ── */
.bcch-w-profile {
  border: 1px solid #e4e4e4;
  border-radius: 6px;
  padding: 16px;
  background: #fafafa;
}

.bcch-w-profile-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.bcch-w-profile-agent img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ddd;
  flex-shrink: 0;
}

.bcch-w-profile-agent-info {
  flex: 1;
  min-width: 0;
}

.bcch-w-profile-agent-name {
  font-weight: 700;
  font-size: 15px;
  color: #222;
  margin: 0 0 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bcch-w-profile-agent-phone {
  font-size: 13px;
  color: #555;
}

.bcch-w-profile-agent-phone a {
  color: #337ab7;
  text-decoration: none;
}

/* ── Home Eval widget ── */
.bcch-w-homeeval {
  padding: 16px 0;
}

/* ── Sticky Bar widget ── */
.bcch-w-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: #222;
  color: #fff;
}

.bcch-w-sticky-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  gap: 10px;
}

.bcch-w-sticky-text {
  font-size: 14px;
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bcch-w-sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bcch-w-sticky-cta {
  display: inline-block;
  padding: 7px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background-color: #337ab7;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .15s ease;
}

.bcch-w-sticky-cta:hover {
  background-color: #286090;
}

.bcch-w-sticky-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  flex-shrink: 0;
}

.bcch-w-sticky-close:hover {
  color: #fff;
}

.bcch-w-drawer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  background: #fff;
  border-top: 2px solid #0073aa;
}

.bcch-w-drawer.open {
  max-height: 300px;
}

.bcch-w-drawer-inner {
  padding: 16px;
}

.bcch-w-drawer .bcch-w-form .bcch-w-field {
  margin-bottom: 8px;
}

.bcch-w-drawer .bcch-w-btn {
  margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .bcch-w-sticky-bar {
    padding: 8px 10px;
  }
  .bcch-w-sticky-text {
    font-size: 12px;
  }
  .bcch-w-sticky-cta {
    padding: 6px 12px;
    font-size: 12px;
  }
  .bcch-w-drawer.open {
    max-height: 360px;
  }
  .bcch-w-profile-agent img {
    width: 48px;
    height: 48px;
  }
  .bcch-w-btn {
    font-size: 13px;
    padding: 8px 14px;
  }
}
