/* ==========================================================================
   home-hero-keyline/tray.css — the live "Tray" (home-hero-tray/tray.css) on the
   Keyline hero's form, 2026-09-25. Same drawer, same material, same numbers;
   every rule re-anchored from form#auditForm to #hx form#hxForm, and the
   field's pieces are the Horizon ones (.hx-fix is the "+91" plate).
   Dormant until the first submit adds .tr-open to the form.
   ========================================================================== */
#hx .hx-hero { position: relative; }               /* the flying button is placed in here */

#hx form#hxForm.tr-open { flex-wrap: wrap; overflow: clip; }
/* Keyline's field has one fixed height (--fh); open, it grows, and the first
   row keeps exactly the height it had closed */
#hx form#hxForm.tr-open { height: auto; }
#hx form#hxForm.tr-open > :is(.hx-fix, input, .tr-ok) { height: calc(var(--fh) - 15px); }
@media (max-width: 760px) { #hx form#hxForm.tr-open > :is(.hx-fix, input, .tr-ok) { height: 50px; } }   /* phone: --fh is auto; 50px is the phone input's own height */   /* rows stay stretched: the https://www. plate keeps its height */

/* the quiet mark where the button used to be */
#hx form#hxForm .tr-ok { flex: none; display: flex; align-items: center; align-self: stretch; padding: 0 14px 0 6px; }
.tr-ok svg, .tr-done svg { display: block; }
.tr-ok circle, .tr-done circle { fill: #0760C6; }
.tr-ok path, .tr-done path { fill: none; stroke: #fff; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the drawer: a tier of the same object, edge to edge ---------- */
#hx form#hxForm .tr-tray {
  order: 9; box-sizing: border-box;
  flex: 0 0 calc(100% + 12px); width: calc(100% + 12px);
  margin: 6px -6px -6px;
  display: flex; align-items: center; gap: 8px;
  padding: 8px;
  background: #F2F6FC;
  border-top: 1px solid #D7E2F3;
  text-align: left;
}
#hx form#hxForm .tr-field {
  flex: 1 1 0; min-width: 0; box-sizing: border-box;
  display: flex; align-items: center; height: 54px; margin: 0; padding: 4px;
  background: #FFFFFF; border: 1px solid #D7E2F3; border-radius: 8px;
  cursor: text; transition: border-color .2s ease;
}
#hx form#hxForm .tr-field:focus-within { border-color: #0A66C2; }
#hx form#hxForm .tr-tray input {
  flex: 1 1 0; min-width: 0; width: auto; height: 44px; margin: 0;
  padding: 0 12px; border: 0; background: transparent; box-shadow: none; outline: none;
  font-size: 16px; color: #031D40;
}
#hx form#hxForm .tr-tray .hx-fix { flex: none; height: 44px; padding: 0 12px; font-size: 13px; border-radius: 5px; }
#hx form#hxForm .tr-tray button.tr-go { flex: 0 0 auto; height: 54px; margin: 0; position: relative; overflow: clip; }
.tr-lbl { display: inline-block; }

/* ---------- done ---------- */
#hx form#hxForm .tr-done { flex: 1 1 auto; display: flex; align-items: flex-start; gap: 12px; padding: 6px 6px 6px 4px; text-align: left; }
#hx .tr-done svg { flex: none; margin-top: 1px; }
#hx .tr-done b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.015em; color: #0E1E35; line-height: 1.3; }
#hx .tr-done span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: #505C6C; }
#hx .tr-done span strong { font-weight: 700; color: #21416D; white-space: nowrap; }

/* ---------- the quiet line under the field doubles as the helper line ---------- */
#hx .hx-micro.tr-say { color: #0B3B7A; font-weight: 650; }

/* ---------- the button's flight ---------- */
.tr-fly {
  position: absolute; z-index: 6; pointer-events: none; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: clip;
}
.tr-fly svg { width: 16px; height: 16px; flex: none; }

/* ---------- phones: the drawer stacks ---------- */
@media (max-width: 620px) {
  #hx form#hxForm .tr-tray { flex-direction: column; align-items: stretch; }
  #hx form#hxForm .tr-field { flex: none; width: 100%; }
  #hx form#hxForm .tr-tray button.tr-go { width: 100%; flex: none; }
  #hx form#hxForm .tr-ok { padding: 0 10px 0 4px; }
}
