/* HIP sign-up widget (shared/hip-signup.js): the project search, the sign-up form and the WhatsApp QR,
   mounted on /hip, every /hip/<estate> page and /hip/signup. Namespaced hsu-* so it never collides. */
.hsu { --hsu-line: #C9D6DA; --hsu-soft: #E3F1F4; --hsu-bad: #B42318; background: linear-gradient(180deg, #E3F1F4 0%, var(--warm-white, #EEF7F9) 100%); padding: 40px 0 48px; scroll-margin-top: 80px; }
.hsu * { box-sizing: border-box; }
.hsu-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hsu-head { max-width: 46rem; margin-bottom: 20px; }
.hsu-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hera-teal-deep, #3D8B9E); }
.hsu-head h2 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; color: var(--soft-black, #1A1A1A); margin: 8px 0 8px; }
.hsu-offer { font-size: 1.06rem; line-height: 1.55; color: var(--clay, #5A5F63); min-height: 1.6em; }
.hsu-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 24px; align-items: start; }
.hsu-card { background: #fff; border: 1px solid #DCE9EC; border-radius: 20px; padding: 26px; box-shadow: 0 12px 40px rgba(26,58,74,.07); }
.hsu-wa { background: #fff; border: 1px solid #DCE9EC; border-radius: 20px; padding: 24px; text-align: center; box-shadow: 0 12px 40px rgba(26,58,74,.05); }
.hsu-wa h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.5rem; color: var(--soft-black, #1A1A1A); margin: 0 0 6px; }
.hsu-wa p { font-size: .92rem; line-height: 1.5; color: var(--clay, #5A5F63); margin: 0 0 14px; }
.hsu-qr { width: 196px; height: 196px; margin: 0 auto 10px; padding: 8px; border: 1px solid #DCE9EC; border-radius: 14px; background: #fff; }
.hsu-qr svg { display: block; width: 100%; height: 100%; }
.hsu-qr-cap { font-size: .8rem; color: var(--stone, #9BA0A5); margin-bottom: 14px; }
.hsu-wa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 18px; border-radius: 999px; background: #25D366; color: #fff !important; text-decoration: none; font-weight: 600; font-size: 1rem; transition: transform .16s cubic-bezier(.23,1,.32,1); }
.hsu-wa-btn:active { transform: scale(.97); }
.hsu-wa-btn svg { width: 20px; height: 20px; fill: currentColor; }

.hsu-f { display: grid; gap: 6px; margin-bottom: 16px; position: relative; }
.hsu-f label, .hsu-lbl { font-size: .9rem; font-weight: 600; color: var(--soft-black, #1A1A1A); }
.hsu input[type=text], .hsu input[type=email], .hsu input[type=tel], .hsu input[type=search], .hsu select { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid var(--hsu-line); border-radius: 12px; background: #fff; color: var(--charcoal, #2C2C2C); }
.hsu input:focus, .hsu select:focus { outline: 2px solid var(--hera-teal, #8CC8C4); outline-offset: 1px; border-color: var(--hera-teal-deep, #3D8B9E); }
.hsu input[type=search]::-webkit-search-cancel-button { display: none; }
.hsu select { appearance: none; -webkit-appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5F63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1rem; }
.hsu-hint { font-size: .82rem; color: var(--stone, #9BA0A5); }
.hsu-err { font-size: .85rem; color: var(--hsu-bad); min-height: 1.1em; }
.hsu input.bad { border-color: #D92D20; }

/* project search */
.hsu-search { position: relative; }
.hsu-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); stroke: var(--stone, #9BA0A5); fill: none; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.hsu-search input[type=search] { padding-left: 42px; font-size: 1.05rem; border-width: 2px; border-color: #A9CBD3; }
.hsu-list { list-style: none; margin: 6px 0 0; padding: 6px; border: 1px solid var(--hsu-line); border-radius: 14px; background: #fff; box-shadow: 0 16px 40px rgba(26,58,74,.12); max-height: 320px; overflow-y: auto; }
.hsu-list[hidden] { display: none; }
.hsu-opt { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.hsu-opt[aria-selected=true], .hsu-opt:hover { background: var(--hsu-soft); }
.hsu-opt b { font-weight: 600; color: var(--soft-black, #1A1A1A); }
.hsu-opt span { font-size: .84rem; color: var(--clay, #5A5F63); }
.hsu-opt mark { background: #FFF1C2; color: inherit; border-radius: 3px; padding: 0 1px; }
.hsu-opt.hsu-other b { color: var(--hera-teal-deep, #3D8B9E); }
.hsu-tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--hsu-soft); color: var(--hera-teal-deep, #3D8B9E); vertical-align: 1px; }
.hsu-tag.on { background: #FFF1C2; color: #7A5B00; }
.hsu-tag.done { background: #EEF0F1; color: var(--clay, #5A5F63); }
.hsu-picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 2px solid var(--hera-teal-deep, #3D8B9E); border-radius: 14px; background: var(--hsu-soft); }
.hsu-picked[hidden] { display: none; }
.hsu-picked div { flex: 1; min-width: 0; }
.hsu-picked b { display: block; color: var(--soft-black, #1A1A1A); }
.hsu-picked span { font-size: .84rem; color: var(--clay, #5A5F63); }
.hsu-link { font: inherit; font-size: .88rem; font-weight: 600; color: var(--hera-teal-deep, #3D8B9E); background: none; border: 0; padding: 6px 4px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.hsu-phone { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px; }
.hsu-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.hsu-pill { font: inherit; font-size: .85rem; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--hsu-line); background: #fff; color: var(--clay, #5A5F63); cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.hsu-pill[aria-pressed=true] { background: var(--hsu-soft); border-color: var(--hera-teal-deep, #3D8B9E); color: var(--hera-teal-deep, #3D8B9E); font-weight: 600; }
.hsu-pill:disabled { opacity: .45; cursor: not-allowed; }
.hsu-pdpa { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: .8rem; line-height: 1.55; color: var(--clay, #5A5F63); margin: 4px 0 14px; }
.hsu-pdpa input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--hera-teal-deep, #3D8B9E); }
.hsu-ts { margin: 4px 0 14px; display: flex; justify-content: center; min-height: 65px; }
.hsu-btn { width: 100%; font: inherit; font-size: 1.04rem; font-weight: 600; padding: 15px 18px; border: 0; border-radius: 999px; background: var(--hera-teal-deep, #3D8B9E); color: #fff; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: 10px; transition: transform .16s cubic-bezier(.23,1,.32,1); }
.hsu-btn:active { transform: scale(.97); }
.hsu-btn:disabled { opacity: .7; cursor: progress; }
.hsu-orb { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: hsu-pulse 1s ease-in-out infinite; }
@keyframes hsu-pulse { 50% { opacity: .35; } }
.hsu-notice { margin-top: 12px; font-size: .9rem; border-radius: 12px; padding: 12px 14px; display: none; background: #FEF3F2; color: #912018; border: 1px solid #FECDCA; }
.hsu-notice.show { display: block; }
.hsu-notice a { color: inherit; font-weight: 600; }
.hsu-done { display: none; text-align: center; padding: 18px 4px; }
.hsu-done.show { display: block; }
.hsu-done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--hsu-soft); display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.6rem; }
.hsu-done h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; font-size: 1.7rem; margin: 0 0 8px; color: var(--soft-black, #1A1A1A); }
.hsu-done p { color: var(--clay, #5A5F63); line-height: 1.6; margin: 0 auto 14px; max-width: 30rem; }
.hsu-done .hsu-wa-btn { width: auto; }

@media (max-width: 860px) {
  .hsu { padding: 28px 0 36px; }
  .hsu-wrap { padding: 0 16px; }
  .hsu-grid { grid-template-columns: 1fr; gap: 14px; }
  /* On a phone the WhatsApp button comes first and the QR goes: nobody scans their own screen. */
  .hsu-wa { order: -1; padding: 16px; text-align: left; display: grid; grid-template-columns: 1fr; gap: 10px; }
  .hsu-wa h3 { font-size: 1.25rem; margin: 0; }
  .hsu-wa p { margin: 0; }
  .hsu-qr, .hsu-qr-cap { display: none; }
  .hsu-card { padding: 20px 16px; }
  .hsu-phone { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .hsu-orb { animation: none; } .hsu-btn, .hsu-wa-btn { transition: none; } }
