/* =====================================================================
   HOUSBE — "Finance or Refinance" entry (js/hb-finance-entry.js)
   The public card on index.php, the "Do you have a Housbe account?" sheet,
   and the financing guest sign-up. Prefix .hbfe.
   ===================================================================== */
.hbfe-band { padding: 26px 16px 34px; }
.hbfe-card {
    position: relative; max-width: 760px; margin: 0 auto; padding: 30px 30px 24px; border-radius: 26px; text-align: center;
    background:
        radial-gradient(80% 60% at 50% -10%, rgba(244, 217, 149, .10), transparent 70%),
        linear-gradient(180deg, #0a1322 0%, #070d18 100%);
    border: 2px solid rgba(240, 191, 76, .85);
    box-shadow: 0 0 0 1px rgba(240, 191, 76, .15), 0 22px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 233, 163, .12);
    color: #F4F7FA; font-family: 'Montserrat', 'Outfit', 'Inter', sans-serif;
}
.hbfe-card *, .hbfe-modal * { box-sizing: border-box; }
.hbfe-card h2 { margin: 0; font-size: clamp(24px, 4.2vw, 38px); line-height: 1.12; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #fff; }
.hbfe-card h2 span { display: block; }
.hbfe-card .hbfe-tag { margin: 10px 0 22px; color: #f0bf4c; font-size: clamp(15px, 2.1vw, 19px); font-weight: 600; }
.hbfe-opts { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: stretch; }
.hbfe-or { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; font-weight: 800; font-size: 18px; }
.hbfe-or::before, .hbfe-or::after { content: ''; width: 2px; flex: 1 1 auto; min-height: 22px; background: linear-gradient(180deg, transparent, rgba(240, 191, 76, .9), transparent); }
.hbfe-opt {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 148px;
    padding: 18px 14px; border-radius: 18px; cursor: pointer; text-align: center; color: #fff;
    background: linear-gradient(180deg, rgba(20, 24, 34, .9), rgba(10, 13, 20, .95)); border: 1.5px solid rgba(240, 191, 76, .55);
    transition: border-color .2s, box-shadow .2s, transform .15s;
}
.hbfe-opt:hover { border-color: rgba(240, 191, 76, .95); transform: translateY(-1px); }
.hbfe-opt.on { border-color: #f0bf4c; box-shadow: 0 0 0 3px rgba(240, 191, 76, .22), 0 12px 30px -10px rgba(240, 191, 76, .55); }
.hbfe-opt.on::after { content: '\2713'; position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
                      font-size: 13px; font-weight: 800; color: #1c1405; background: #f0bf4c; }
.hbfe-opt svg { width: 54px; height: 54px; color: #f0bf4c; }
.hbfe-opt > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hbfe-opt b { font-size: 21px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hbfe-opt span { color: #f0bf4c; font-size: 14px; line-height: 1.35; }
.hbfe-opt:focus-visible, .hbfe-cta:focus-visible, .hbfe-modal button:focus-visible { outline: 2px solid #8BCBFF; outline-offset: 3px; }
.hbfe-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin-top: 20px; padding: 15px 22px; border-radius: 40px;
    cursor: pointer; font-family: inherit; font-size: clamp(15px, 2vw, 19px); font-weight: 700; color: #fff;
    background: linear-gradient(180deg, #160a0c, #0c0608); border: 2px solid #e0392c;
    box-shadow: 0 0 22px rgba(224, 57, 44, .55), inset 0 0 18px rgba(224, 57, 44, .18); transition: box-shadow .2s, transform .12s;
}
.hbfe-cta:hover { box-shadow: 0 0 30px rgba(224, 57, 44, .75), inset 0 0 22px rgba(224, 57, 44, .25); }
.hbfe-cta:active { transform: translateY(1px); }
.hbfe-foot { margin: 14px 0 0; color: #c9a34a; font-size: 13.5px; }
.hbfe-disc { margin: 6px auto 0; max-width: 560px; color: #8b93a3; font-size: 12px; line-height: 1.5; }
@media (max-width: 560px) {
    .hbfe-card { padding: 22px 16px 18px; border-radius: 20px; }
    .hbfe-opts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .hbfe-or { flex-direction: row; font-size: 15px; }
    .hbfe-or::before, .hbfe-or::after { width: auto; height: 2px; min-height: 0; flex: 1 1 auto; background: linear-gradient(90deg, transparent, rgba(240, 191, 76, .9), transparent); }
    .hbfe-opt { min-height: 116px; flex-direction: row; justify-content: flex-start; text-align: left; gap: 14px; }
    .hbfe-opt svg { width: 44px; height: 44px; flex: 0 0 auto; }
    .hbfe-opt > div { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
    .hbfe-opt b { font-size: 17px; }
}

/* ---------------- sheets ---------------- */
.hbfe-modal {
    position: fixed; inset: 0; z-index: 100450; display: none; align-items: center; justify-content: center; padding: 20px 14px;
    background: rgba(2, 6, 14, .74); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    font-family: 'Outfit', 'Inter', sans-serif; color: #F4F7FA;
}
.hbfe-modal.open { display: flex; }
.hbfe-sheet {
    position: relative; width: 460px; max-width: 100%; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto;
    padding: 26px 22px 20px; border-radius: 24px; overscroll-behavior: contain;
    background: radial-gradient(80% 40% at 50% 0%, rgba(240, 191, 76, .08), transparent 70%), linear-gradient(180deg, #0a1220, #060b15);
    border: 1.5px solid rgba(240, 191, 76, .7); box-shadow: 0 30px 80px rgba(0, 0, 0, .65);
}
.hbfe-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
          color: #cbd5e1; font-size: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); }
.hbfe-x:hover { color: #fff; }
.hbfe-brand { text-align: center; color: #f0bf4c; font-weight: 800; letter-spacing: .32em; font-size: 13px; margin-bottom: 6px; }
.hbfe-sheet h3 { margin: 0; text-align: center; font-size: 24px; font-weight: 800; color: #fff; }
.hbfe-sheet .hbfe-lead { margin: 6px 0 16px; text-align: center; color: #aab4c3; font-size: 14px; line-height: 1.5; }
.hbfe-lbl { display: block; margin: 12px 0 7px; color: #f0bf4c; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hbfe-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hbfe-pick button { min-width: 0; flex-wrap: wrap; }
.hbfe-pick button, .hbfe-tabs button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 9px 10px; border-radius: 12px; cursor: pointer;
    font-family: inherit; font-size: 15px; font-weight: 700; color: #e6edf8; background: rgba(255, 255, 255, .04); border: 1.5px solid rgba(255, 255, 255, .16);
}
.hbfe-pick button.on, .hbfe-tabs button.on { color: #f7d987; border-color: #f0bf4c; background: rgba(240, 191, 76, .10); box-shadow: inset 0 0 0 1px rgba(240, 191, 76, .25); }
.hbfe-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.hbfe-field { position: relative; margin-bottom: 10px; }
.hbfe-field > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8b95a5; font-size: 14px; pointer-events: none; z-index: 1; }
.hbfe-in {
    width: 100%; min-height: 48px; padding: 12px 14px 12px 40px; border-radius: 12px; font-family: inherit; font-size: 15px; color: #fff; outline: none;
    background: rgba(255, 255, 255, .04); border: 1.5px solid rgba(255, 255, 255, .14); transition: border-color .2s;
}
.hbfe-in:focus { border-color: #f0bf4c; }
/* field glow, as the registration pages (agent-signup.php / buyer-register.php) */
.hbfe-in { border-color: rgba(34, 211, 238, .55); box-shadow: 0 0 0 1px rgba(34, 211, 238, .06), 0 0 12px rgba(34, 211, 238, .18);
    transition: border-color .18s ease, box-shadow .18s ease; }
.hbfe-in:hover { border-color: rgba(34, 211, 238, .82); box-shadow: 0 0 0 1px rgba(34, 211, 238, .10), 0 0 16px rgba(34, 211, 238, .28); }
.hbfe-in:focus { border-color: #8af3ff; box-shadow: 0 0 0 3px rgba(34, 211, 238, .22), 0 0 18px rgba(34, 211, 238, .32); }
.hbfe-field:focus-within > i { color: #8af3ff; }
/* the phone box housbe-phone-auto.js builds around #hbfePhone glows the same */
.hbfe-sheet .housbe-phone-inline { border: 1.5px solid rgba(34, 211, 238, .55) !important; border-radius: 12px !important; background: rgba(255, 255, 255, .04) !important; overflow: hidden;
    box-shadow: 0 0 0 1px rgba(34, 211, 238, .06), 0 0 12px rgba(34, 211, 238, .18) !important; transition: border-color .18s ease, box-shadow .18s ease; }
.hbfe-sheet .housbe-phone-inline:hover { border-color: rgba(34, 211, 238, .82) !important; box-shadow: 0 0 0 1px rgba(34, 211, 238, .10), 0 0 16px rgba(34, 211, 238, .28) !important; }
.hbfe-sheet .housbe-phone-inline .hbfe-in, .hbfe-sheet .housbe-phone-inline .hbfe-in:hover, .hbfe-sheet .housbe-phone-inline .hbfe-in:focus { border-color: transparent !important; box-shadow: none !important; background: transparent !important; }
.hbfe-sheet .housbe-phone-inline:focus-within { border-color: #8af3ff !important; box-shadow: 0 0 0 3px rgba(34, 211, 238, .22), 0 0 18px rgba(34, 211, 238, .32) !important; }
.hbfe-in::placeholder { color: #6f7a8c !important; opacity: 1; }
.hbfe-eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: none; background: none; color: #8b95a5; cursor: pointer; }
.hbfe-note { margin: -2px 2px 10px; color: #7e8899; font-size: 12px; line-height: 1.45; }
.hbfe-check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; padding: 12px; border-radius: 12px; border: 1.5px solid rgba(240, 191, 76, .35); background: rgba(240, 191, 76, .04); cursor: pointer; }
.hbfe-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: #f0bf4c; }
.hbfe-check span { color: #c3cbd8; font-size: 12.3px; line-height: 1.5; }
.hbfe-check span b { display: block; margin-bottom: 3px; color: #fff; font-size: 13.5px; }
/* The red neon key, as on the homepage cards. A block with an inline arrow,
   not a flex row: if the label ever wraps, the arrow stays after the last
   word instead of being stranded at the far right. Montserrat because the
   sheet's Outfit is not loaded on most pages. */
.hbfe-go {
    display: block; box-sizing: border-box; width: 100%; min-height: 54px; margin-top: 12px; padding: 15px 18px; border-radius: 14px;
    cursor: pointer; font-family: 'Montserrat', 'Outfit', 'Inter', sans-serif; font-size: clamp(14px, 3.9vw, 16px); font-weight: 700;
    line-height: 1.25; letter-spacing: .005em; text-align: center; text-wrap: balance; color: #fff6e3;
    background: radial-gradient(90% 140% at 50% 50%, rgba(90, 8, 16, .55) 0%, rgba(0, 0, 0, 0) 70%), #0b0507;
    border: 2px solid #ec2639; border-top-color: #f0293d; border-bottom-color: #cd2239;
    box-shadow: 0 0 14px rgba(255, 28, 48, .5), 0 0 28px rgba(255, 28, 48, .18), inset 0 0 12px rgba(255, 40, 60, .3);
    transition: box-shadow .2s ease, transform .12s ease;
}
.hbfe-go > i { display: inline-block; margin-left: .45em; font-size: .9em; transition: transform .2s ease; }
.hbfe-go:hover { box-shadow: 0 0 18px rgba(255, 28, 48, .7), 0 0 34px rgba(255, 28, 48, .28), inset 0 0 14px rgba(255, 40, 60, .4); }
.hbfe-go:hover > i { transform: translateX(3px); }
.hbfe-go:active { transform: translateY(1px); }
.hbfe-go:focus-visible { outline: 2px solid #f0bf4c; outline-offset: 3px; }
.hbfe-go:disabled { opacity: .55; cursor: wait; }
.hbfe-go.gold { color: #1c1405; background: linear-gradient(145deg, #F8E4AB, #F4D995 45%, #DDB760); border-color: rgba(255, 235, 184, .85); box-shadow: 0 8px 22px rgba(238, 196, 101, .25); }
.hbfe-go.gold:hover { box-shadow: 0 10px 26px rgba(238, 196, 101, .38); }
.hbfe-err { display: none; margin: 8px 0 0; padding: 9px 11px; border-radius: 10px; color: #ffb4b4; background: rgba(224, 57, 44, .10); border: 1px solid rgba(224, 57, 44, .35); font-size: 13px; line-height: 1.45; }
.hbfe-err.show { display: block; }
.hbfe-err a { color: #fff; font-weight: 700; }
.hbfe-alt { margin-top: 14px; text-align: center; color: #9aa5b6; font-size: 13.5px; }
.hbfe-alt button { background: none; border: none; color: #f0bf4c; font: inherit; font-weight: 800; cursor: pointer; padding: 0 2px; }
.hbfe-fee { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(34, 211, 238, .06); border: 1px solid rgba(34, 211, 238, .25); color: #b9cbd8; font-size: 12.5px; line-height: 1.5; }
/* the ID card icon, large enough to read at a glance */
.hbfe-fee i { flex: 0 0 auto; color: #e8eef6; font-size: 22px; margin-top: 1px; }
.hbfe-fee b { color: #fff; }
.hbfe-fee .hbfe-fee-t { display: block; margin-bottom: 3px; font-size: 14px; }
/* Property Profile & Ownership Verification (refinance; required) */
.hbfe-check.hbfe-own { border-color: rgba(239, 68, 68, .7); background: rgba(239, 68, 68, .04); }
.hbfe-check.hbfe-own input { accent-color: #ef4444; }
.hbfe-own-err { display: none; margin-top: 6px; color: #ef4444; font-style: normal; font-weight: 600; font-size: 12.5px; }
.hbfe-check.hbfe-own.need .hbfe-own-err { display: block; }
.hbfe-check.hbfe-own.need { box-shadow: 0 0 0 3px rgba(239, 68, 68, .15); }
.hbfe-check.hbfe-own.need:has(input:checked) { box-shadow: none; }
.hbfe-check.hbfe-own.need:has(input:checked) .hbfe-own-err { display: none; }
.hbfe-choice { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.hbfe-choice button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 16px; cursor: pointer; text-align: left;
                      font-family: inherit; color: #fff; background: rgba(255, 255, 255, .04); border: 1.5px solid rgba(255, 255, 255, .16); }
.hbfe-choice button:hover { border-color: #f0bf4c; }
.hbfe-choice button > i { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; display: grid; place-items: center; font-size: 17px; color: #1c1405; background: linear-gradient(145deg, #F8E4AB, #DDB760); }
.hbfe-choice b { display: block; font-size: 16px; }
.hbfe-choice small { display: block; margin-top: 2px; color: #9aa5b6; font-size: 12.5px; line-height: 1.4; }
.hbfe-otp { width: 100%; min-height: 56px; text-align: center; letter-spacing: .5em; font-size: 24px; font-weight: 800; padding-left: 14px; }
@media (max-width: 480px) { .hbfe-sheet { padding: 22px 16px 16px; border-radius: 20px; } .hbfe-sheet h3 { font-size: 21px; } }

.hbfe-spin { display: inline-block; width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: hbfeSpin .8s linear infinite; vertical-align: -3px; }
.hbfe-go.gold .hbfe-spin { border-color: rgba(28, 20, 5, .25); border-top-color: #1c1405; }
@keyframes hbfeSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hbfe-spin { animation: none; } }

/* the Deal Room menu tile: an id outranks the guest-room rule that keeps only
   four items (".deal-navigation-menu.temp-room-nav .left-nav-item:not(...)") */
#hbFinMenuItem.left-nav-item { display: flex !important; }
/* ...except for lenders and agents (hb-finance-entry.js sets the class): they
   cannot start a request, and in a room they joined the Financing stage is
   one click away on the timeline */
html.hbfe-pro #hbFinMenuItem.left-nav-item, html.hbfe-pro [data-hbfe-menu] { display: none !important; }
