/* PropertyHub inline lead form — premium-restrained navy block with teal accent.
   Used on listing detail (SSR), neighbourhood landing (SSR), and homepage. */

.cg-lead{
  background: linear-gradient(180deg, #0c1f38 0%, #0a1828 100%);
  color: #fff;
  border-radius: 16px;
  padding: 44px 40px;
  max-width: 760px;
  margin: 48px auto;
  position: relative;
  overflow: hidden;
}
.cg-lead-eyebrow{
  font-size: 11px;
  font-weight: 600;
  color: #EA0649;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.cg-lead-title{
  font-family: Georgia, 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -.3px;
  line-height: 1.15;
  margin: 0 0 10px;
  color: #fff;
}
.cg-lead-sub{
  font-size: 14.5px;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
  margin: 0 0 26px;
  max-width: 540px;
}
.cg-lead-form{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cg-lead-fld{ display: flex; flex-direction: column; min-width: 0; }
.cg-lead-fld--full{ grid-column: 1 / -1; }
.cg-lead-form label{
  font-size: 11.5px;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: .2px;
}
.cg-lead-form label .cg-lead-opt{
  color: rgba(255,255,255,.4);
  font-weight: 400;
  margin-left: 4px;
}
.cg-lead-form input,
.cg-lead-form textarea{
  font-family: inherit;
  font-size: 14.5px;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 9px;
  padding: 12px 13px;
  transition: border-color .15s, background .15s;
  width: 100%;
}
.cg-lead-form input::placeholder,
.cg-lead-form textarea::placeholder{ color: rgba(255,255,255,.32) }
.cg-lead-form input:focus,
.cg-lead-form textarea:focus{
  outline: none;
  border-color: #EA0649;
  background: rgba(255,255,255,.10);
}
.cg-lead-form textarea{
  min-height: 92px;
  resize: vertical;
  line-height: 1.5;
}
.cg-lead-honey{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.cg-lead-actions{
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cg-lead-btn{
  background: #EA0649;
  color: #fff;
  border: 0;
  padding: 13px 28px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .1px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.cg-lead-btn:hover{ background: #CE2C44 }
.cg-lead-btn:disabled{ background: #4b5563; cursor: default }
.cg-lead-fineprint{
  font-size: 12px;
  color: rgba(255,255,255,.5);
  line-height: 1.45;
  flex: 1 1 240px;
}
.cg-lead-error{
  grid-column: 1 / -1;
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.4);
  color: #fecaca;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  margin-top: 4px;
}
.cg-lead-error[hidden]{ display: none }
.cg-lead-confirm{
  text-align: center;
  padding: 16px 0 8px;
}
.cg-lead-confirm[hidden]{ display: none }
.cg-lead-confirm-check{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(158,13,54,.18);
  border: 1px solid rgba(158,13,54,.5);
  color: #d33461;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 22px;
  font-weight: 700;
}
.cg-lead-confirm h3{
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 8px;
  color: #fff;
}
.cg-lead-confirm p{
  font-size: 14.5px;
  color: rgba(255,255,255,.72);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px){
  .cg-lead{ padding: 30px 22px; border-radius: 14px; margin: 32px 16px; }
  .cg-lead-title{ font-size: 24px; }
  .cg-lead-sub{ font-size: 14px; margin-bottom: 22px }
  .cg-lead-form{ grid-template-columns: 1fr; gap: 12px }
  .cg-lead-fld--full{ grid-column: 1; }
  .cg-lead-actions{ flex-direction: column; align-items: stretch; gap: 12px }
  .cg-lead-actions .cg-lead-btn{ width: 100%; }
  .cg-lead-fineprint{ text-align: center }
}
