/* —— shared —— */
.hidden{display:none!important;}

/* Modal popup overlay */
.bizsel-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.bizsel-popup:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.bizsel-close{position: absolute;
    top: 20px;
    right: 24px;
    height: 38px;
    width: 38px;
    padding: 1.5px;
    font-size: 20px;
    color: #818186;
	border-radius: 50%;
    border: 2px solid;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
	transition: 0.5s;
}
.bizsel-close:hover{color:#fff;}
.modal-content-container, .top-modal-content { display: flex; flex-direction: column; }
.modal-content-container {gap: 32px; height: 100%;}
.top-modal-content {gap: 24px;}
.bizsel-stage{
  background:#273643;
  top:-100vh;
  width:100%;
  height:80%;
  padding:48px 64px;
  position:relative;
  color:#fff;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  transition: top 0.4s ease-in-out;
}

.bizsel-stage.slide-down {
  top: 125px;
  overflow: auto;
}
h2.bizsel-h{margin:0;font-size:24px;font-weight:600;line-height:140%;letter-spacing:-1%;}
.bizsel-small{font-size:18px;color:#fff;margin:0;font-weight:400;line-height:150%;letter-spacing:0%;}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  color: #fff;
  margin: 0;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: 0%;
}

/* —— step 1 layout —— */
.bizsel-grid{display:grid;grid-template-columns:400px 1fr; height:100%; gap:16px;}

/* Mobile responsive */
@media (max-width: 768px) {
  .bizsel-stage {
    padding:30px 20px;
  }

  .bizsel-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 20px;
  }
  
  #bizsel-map {
    min-height: 85px !important;
  }
  
  .modal-content-container {
    gap: 20px;
  }
  
  .top-modal-content {
    gap: 16px;
  }
  
  h2.bizsel-h {
    font-size: 20px;
  }
  
  .bizsel-small, .list-header {
    font-size: 16px;
  }
  
  .bizsel-close {
    width: 32px;
    height: 32px;
    font-size: 18px;
    top: 15px;
    right: 15px;
	padding: 1px;
  }
}

@media (max-width: 480px) {
  .bizsel-card {
    height: auto;
    min-height: 80px;
    padding: 12px 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .biz-name-address {
    padding: 0;
    width: 100%;
  }
  
  .bizsel-star-container {
    align-self: flex-end;
    margin: 0;
  }
  
  label {
    width: 100%;
  }
  
  .bizsel-close {
    width: 28px;
    height: 28px;
    font-size: 16px;
    top: 10px;
    right: 10px;
    border-width: 1px;
  }
}

.bizsel-list-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bizsel-list {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 500px);
}

.bizsel-list::-webkit-scrollbar {
  width: 6px;
}

.bizsel-list::-webkit-scrollbar-track {
  background: #394959;
  border-radius: 3px;
}

.bizsel-list::-webkit-scrollbar-thumb {
  background: #85B7E2;
  border-radius: 3px;
}

.bizsel-list::-webkit-scrollbar-thumb:hover {
  background: #6BA3D6;
}
.bizsel-card{
	border: 1px solid #394959;
    border-radius: 3px;
    padding: 8px 10px;
    margin: 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
	min-height: 115px;
    font-size: 14px;
    background: #fff;
    color: black;
}

.biz-name-address{padding: 8px 16px;}
.bizsel-name{font-size: 18px;}
.bizsel-addr{font-size: 16px; font-weight: 400; color: #3D3D3D;}
.bizsel-star-container {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #F4F7FC;
  border: 1px solid #E7E7E7;
  border-radius: 4px;
  padding: 2px 4px;
  margin: 0 0 12px;
}

.bizsel-star-icon {
  color: #B0B0B0;
  font-size: 18px;
}

.bizsel-rating {
  font-size: 18px;
  font-weight: 600;
}

.bizsel-rating-total {
  font-size: 16px;
  font-weight: 400;
  color: #5D5D5D;
}
#bizsel-map{max-height:680px;height:100%;border-radius:3px;overflow:hidden;}
#bizsel-continue{width:100%;height:44px;background:#3338FF;color:#fff;border:1px solid #3338FF;border-radius:6px;padding:10px 24px;line-height: 150%; letter-spacing: 0%; font-weight:500; font-size: 16px; cursor:pointer;}
label {
	display: flex;
    line-height: 150%;
    vertical-align: middle;
	cursor: pointer;
}

/* Custom checkbox styling */
.bizsel-card input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 22px;
    height: 22px;
    background: #F4F7FC;
    border: 1px solid #85B7E2;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.bizsel-card input[type="checkbox"]:checked {
    background: #3338FF;
    border-color: #3338FF;
}

.bizsel-card input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
/* —— step 2 —— */
.bizsel-list2 {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 430px);
  padding-right: 8px;
}

.bizsel-list2::-webkit-scrollbar {
  width: 6px;
}

.bizsel-list2::-webkit-scrollbar-track {
  background: #394959;
  border-radius: 3px;
}

.bizsel-list2::-webkit-scrollbar-thumb {
  background: #85B7E2;
  border-radius: 3px;
}

.bizsel-list2::-webkit-scrollbar-thumb:hover {
  background: #6BA3D6;
}
.bizsel-card2 {
  border: 1px solid #394959;
  margin: 8px 0;
  min-height: 115px;
  font-size: 14px;
  background: #fff;
  color: black;
  display: flex;
  flex-direction: column;
}
.bizsel-card2:first-child {
	margin-top: 0 !important;
}
.card2-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  gap: 12px;
}

.biz-info {
  flex: 1;
}

.bizsel-map-img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 3px;
  margin: 4px 0;
}

.category-info {
  padding: 16px;
  font-size: 14px;
  color: #3D3D3D;
}

.bizsel-form-container {
  flex: 1;
  min-width: 280px;
  background-color: #fff;
}

.hs-form-frame {
  color: #000;
}

/* —— remove HubSpot inline styles for coherence —— */
.hs-form input, .hs-form textarea, .hs-form select{
	border:1px solid #ccd4e1;border-radius:3px;padding:10px 12px;width:100%!important;font-size:14px;
}
.hs-form fieldset{margin-bottom:14px;}
.hsfc-Step .hsfc-Step__Content {
	background-color: white;
}
.hsfc-Button {
	width: 100%;
}
.bizsel-wrapper{position:relative;display:flex;gap:.75rem;align-items:stretch;}
.bizsel-clear{
  position: absolute;
  right: 160px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  background-color: #060e4d;
  border: 1px solid;
  cursor: pointer;
  user-select: none;
  z-index: 10;
  transition: background 0.2s ease;
}

.bizsel-clear:hover {
  background: #999;
}

/* custom PAC dropdown (dummy) */
.bizsel-pac{
  position:absolute;left:0;z-index:9999;
  background:#fff;border-radius:8px;box-shadow:0 6px 25px rgba(0,0,0,.18);
  margin-top:55px;max-height:260px;overflow-y:auto;
  padding:24px;gap:12px;display:none;flex-direction:column;
  width:calc(100% - 4.5rem - .75rem);
}
.bizsel-pac .pac-item{
  padding:8px;font-size:14px;cursor:pointer;color:#22375F;
  display:flex;align-items:center;gap:10px;
  border-bottom:1px solid #e8e8e8;position:relative;
}
.bizsel-pac .pac-item:last-child{border-bottom:none;}
.bizsel-pac .pac-item:hover{background:#E8F0FF;border-radius:8px;}
.bizsel-pac .pac-item.exact-input .pac-item-query{font-weight:bold;}
.pac-icon-marker{width:18px;height:18px;background:url('https://maps.gstatic.com/mapfiles/markers2/marker.png') center/contain no-repeat;}
.pac-icon-search{width:18px;height:18px;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21-4.35-4.35"/></svg>') center/contain no-repeat;}