/* Myhna Vistara | components.css — Buttons, forms, cards, panels
   Do not edit selectors — only values */

  /* -------- STICKY BOTTOM NAV BAR -------- */
  .sticky-bar{
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    height: 56px;
    background: var(--navy-dark);
    border-top: 1px solid var(--gold-accent);
    display: flex;
    align-items: stretch;
    transform: translateY(110%);
    transition: transform .45s cubic-bezier(.2,.7,.2,1);
    box-shadow: 0 -16px 40px -18px rgba(0,0,0,0.50);
  }
  .sticky-bar.show{ transform: translateY(0); }
  .sticky-bar a,
  .sticky-bar button{
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
    border: 0;
    background: transparent;
    font-family: var(--body);
    cursor: pointer;
    padding: 0 14px;
    transition: background-color .2s ease;
    min-width: 0;
  }
  .sticky-bar a:hover{ background: rgba(255,255,255,0.04); }
  .sticky-bar .ic{
    width: 22px; height: 22px;
    flex: 0 0 22px;
    color: var(--gold-accent);
    display: flex; align-items: center; justify-content: center;
  }
  .sticky-bar .ic.wa{ color: var(--color-wa); }
  .sticky-bar .ic svg{ width: 100%; height: 100%; display: block; }
  .sticky-bar .lbl{
    display: flex; flex-direction: column;
    line-height: 1.15;
    text-align: left;
    min-width: 0;
  }
  .sticky-bar .lbl .title{
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: var(--white);
    text-transform: uppercase;
  }
  .sticky-bar .lbl .sub{
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.60);
    margin-top: 3px;
    letter-spacing: 0.02em;
    text-transform: none;
  }
  .sticky-bar .sb-book{
    flex: 0 0 auto;
    background: var(--gold-accent);
    color: var(--white);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    height: 64px;
    margin-top: -9px;
    padding: 0 32px;
    min-width: 220px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -10px 24px -10px rgba(201,168,76,0.55),
                inset 0 1px 0 rgba(255,255,255,0.20);
    transition: background-color .2s ease, box-shadow .25s ease;
    align-self: flex-end;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  }
  .sticky-bar .sb-book:hover{
    background: var(--gold-hover);
    box-shadow: 0 -12px 30px -10px rgba(201,168,76,0.75),
                inset 0 1px 0 rgba(255,255,255,0.20);
  }
  .sticky-bar .sb-book .arrow{ display: inline-block; transition: transform .2s ease; }
  .sticky-bar .sb-book:hover .arrow{ transform: translateX(4px); }

  body.sticky-active .footer{ padding-bottom: 76px; }
  body.sticky-active .lead-tab{ display: none !important; }

  /* -------- LEAD SLIDE-IN PANEL -------- */
  .lead-panel{
    position: fixed;
    top: 0; right: 0;
    width: 420px;
    height: 100vh;
    background: var(--cream);
    border-left: 1px solid var(--rule-mid);
    box-shadow: -30px 0 80px -20px rgba(0,0,0,0.30);
    z-index: 200;
    transform: translateX(105%);
    transition: transform .55s cubic-bezier(.2,.7,.2,1);
    padding: 68px 36px 32px;
    overflow-y: auto;
    display: flex; flex-direction: column;
  }
  .lead-panel.open,
  .lead-panel.is-open{ transform: translateX(0); }
  .lead-close{
    position: absolute;
    top: 22px; right: 22px;
    width: 36px; height: 36px;
    background: var(--gold);
    color: var(--white);
    display:flex; align-items:center; justify-content:center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
    border: none;
    z-index: 2;
  }
  .lead-close:hover{ background: var(--gold-dark); transform: rotate(90deg); }
  .lead-close svg{ width: 14px; height: 14px; stroke: currentColor; stroke-width: 2.5; fill: none; stroke-linecap: round; }

  /* re-open tab (after dismissal) */
  .lead-tab{
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(100%);
    background: var(--navy);
    color: var(--gold);
    padding: 16px 14px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-family: var(--body);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    z-index: 150;
    cursor: pointer;
    border: none;
    border-radius: 0;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .2s ease;
    box-shadow: -6px 0 24px -8px rgba(0,0,0,0.25);
    display: flex; align-items: center; gap: 10px;
  }
  .lead-tab.show{ transform: translateY(-50%) translateX(0); }
  .lead-tab:hover{ background: var(--navy-deep); }
  .lead-tab .dot{
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 0 rgba(210,171,103,0.7);
    animation: pulseDot 2.2s infinite;
  }

  .lead-backdrop{
    position: fixed; inset: 0;
    background: rgba(33, 55, 101, 0.25);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
  }
  .lead-backdrop.show{ opacity: 1; pointer-events: auto; }

  /* hero form (now lives in lead panel) */
  .hero-form{
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }
  .form-eyebrow{
    font-family: var(--body);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 700;
  }
  .form-title{
    font-family: var(--display);
    font-size: 30px;
    font-weight: 500;
    color: var(--navy);
    margin: 8px 0 0;
    line-height: 1.1;
  }
  .form-rule{
    width: 32px; height: 2px;
    background: var(--gold);
    margin: 14px 0 8px;
  }
  .form-subtitle{
    font-size: 14px;
    color: var(--text-dim);
    font-weight: 400;
  }

  .form-fields{ margin-top: 20px; display:flex; flex-direction:column; gap:12px; }
  .row-2{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  .field{
    display:flex; align-items:stretch;
    border: 1px solid rgba(48,76,134,0.15);
    background: var(--white);
    transition: border-color .15s ease;
  }
  .field:focus-within{ border-color: var(--navy); }
  .field input{
    flex:1;
    border: none; outline: none;
    background: transparent;
    padding: 13px 14px;
    font-family: var(--body);
    font-size: 14px;
    color: var(--charcoal);
    min-width: 0;
  }
  .field input::placeholder{ color: var(--color-placeholder); }
  .prefix{
    display:flex; align-items:center;
    background: var(--cream);
    color: var(--navy);
    font-size: 14px;
    padding: 0 14px;
    border-right: 1px solid rgba(48,76,134,0.15);
    font-weight: 700;
  }

  /* country-code dropdown inside lead panel phone field */
  .field .country-code{
    flex: 0 0 auto;
    width: 72px;
    border: 0;
    outline: 0;
    background: var(--cream);
    color: var(--navy);
    font-family: var(--body);
    font-size: 14px;
    font-weight: 700;
    padding: 0 22px 0 12px;
    border-right: 1px solid rgba(48,76,134,0.15);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%), linear-gradient(135deg, var(--navy) 50%, transparent 50%);
    background-position: calc(100% - 10px) 50%, calc(100% - 6px) 50%;
    background-size: 4px 4px;
    background-repeat: no-repeat;
  }
  .field .country-code:focus{ background-color: var(--cream-soft); }

  .consent{
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 10px 0 18px;
  }
  .consent .navy-mark{ color: var(--navy); font-weight: 700; }

  .submit{
    width: 100%;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    padding: 16px;
    border-radius: 0;
    display:flex; align-items:center; justify-content:center; gap:10px;
    transition: background-color .2s ease;
  }
  .submit:hover{ background: var(--navy-deep); }
  .submit .arrow{
    display:inline-block;
    transition: transform .2s ease;
  }
  .submit:hover .arrow{ transform: translateX(4px); }

  .whatsapp{
    width: 100%;
    margin-top: 10px;
    background: transparent;
    border: 1px solid rgba(48,76,134,0.2);
    color: var(--charcoal);
    font-family: var(--body);
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 14px;
    border-radius: 0;
    display:flex; align-items:center; justify-content:center; gap:8px;
    transition: all .2s ease;
  }
  .whatsapp:hover{ border-color:var(--color-wa); color:var(--color-wa-dark); }
  .whatsapp svg{ width: 14px; height: 14px; }

  .trust-strip{
    display:flex; flex-wrap:wrap; gap:14px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(175,129,46,0.2);
    font-size: 11px;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
  }
  .trust-strip span{ display:flex; align-items:center; gap:5px; }
  .trust-strip .tick{ color: var(--gold); }

  /* scroll cue keyframe (rules above use this) */
  /* -------- STATS BAR -------- */
  .stats{
    background: var(--navy);
    padding: 40px 80px;
    display:grid;
    grid-template-columns: repeat(5, 1fr);
  }
  .stat{
    text-align: center;
    padding: 6px 0;
    position: relative;
  }
  .stat + .stat::before{
    content:'';
    position:absolute; left:0; top: 18%; bottom: 18%;
    width: 1px;
    background: rgba(210,171,103,0.20);
  }
  .stat-value{
    font-family: var(--display);
    font-size: clamp(48px, 4.4vw, 56px);
    color: var(--gold);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .stat-value sup{
    font-size: 0.45em;
    vertical-align: super;
    color: var(--gold);
    margin-left: 2px;
  }
  .stat-label{
    font-family: var(--body);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-top: 12px;
    font-weight: 700;
  }
  .stat-sublabel{
    font-family: var(--body);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 4px;
    font-weight: 400;
  }

  /* -------- TRUST BAR (social proof, below stats) -------- */
  .trust-bar{
    background: var(--trust-bar-bg);
    border-top: 1px solid var(--gold-accent);
    border-bottom: 1px solid var(--gold-accent);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-height: 64px;
    position: relative;
  }
  .tb-item{
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 28px;
    border-left: 1px solid rgba(10, 31, 68, 0.08);
    position: relative;
    min-width: 0;
  }
  .tb-item:first-child{ border-left: 0; }
  .tb-ic{
    width: 24px; height: 24px;
    flex: 0 0 24px;
    color: var(--gold-accent);
    display: flex; align-items: center; justify-content: center;
  }
  .tb-ic svg{
    width: 100%; height: 100%;
    stroke: currentColor; stroke-width: 1.6; fill: none;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .tb-text{
    display: flex; flex-direction: column;
    line-height: 1.2;
    min-width: 0;
  }
  .tb-stat{
    font-family: var(--body);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy-dark);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tb-stat .star{ color: var(--gold-accent); font-size: 13px; margin: 0 2px 0 1px; }
  .tb-sub{
    font-family: var(--body);
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 3px;
    font-weight: 400;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .tb-live{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    background: var(--white);
    border: 1px solid var(--badge-border);
    color: var(--badge-text);
    font-family: var(--body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.02em;
    padding: 3px 10px;
    border-radius: 999px;
    margin-top: 5px;
    white-space: nowrap;
  }
  .tb-live .pulse{
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--badge-pulse);
    animation: tbPulseScale 2s ease-in-out infinite;
  }

  /* -------- FLOOR PLAN PERMANENT BLUR GATE -------- */
  /* Images and variant prices are ALWAYS blurred — no unlock, no JS needed */

  .floor-plan-img{
    display: block;
    width: 100%;
    height: auto;
    filter: blur(14px);
    transform: scale(1.05);
    user-select: none;
    pointer-events: none;
  }

  /* Lock overlay — always visible */
  .floor-plan-lock-overlay{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(10, 31, 68, 0.40);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 8px;
    gap: 12px;
    z-index: 2;
    padding: 20px;
    text-align: center;
  }
  .floor-plan-lock-overlay .lock-icon{
    font-size: 28px;
    color: var(--gold-accent);
    line-height: 1;
  }
  .floor-plan-lock-overlay .lock-title{
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    color: var(--white);
    letter-spacing: -0.005em;
    margin: 0;
  }
  .floor-plan-lock-overlay .lock-sub{
    font-family: var(--body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    max-width: 220px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
  }
  .floor-plan-lock-overlay .btn-unlock{
    background: var(--gold-accent);
    color: var(--navy-dark);
    font-family: var(--body);
    font-size: 12px;
    font-weight: 700;
    padding: 12px 24px;
    min-height: 44px;
    border-radius: var(--btn-radius);
    border: none;
    cursor: pointer;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    margin-top: 4px;
    transition: background-color .2s ease;
  }
  .floor-plan-lock-overlay .btn-unlock:hover{
    background: var(--gold-muted);
  }

  /* -------- PRICE PERMANENT BLUR -------- */
  /* Variant prices only — starting price (first unit) stays visible */
  .price-variant{
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
  }
