/* ECHIVO /oradea — hero-ask.css · the hub hero search "Unde beau cel mai bun vin?" (OWNER: W4).
   One glass field over the night, the submit a gold circle with an arrow inside it (FX §6). The answer reads under the
   field, inside the hero. Message styles (.oxa-msg …) come from assistant.css, which every /oradea page loads.
   Scope: form.ox-ask only. The field is static (backdrop-filter allowed); nothing on it animates except opacity. */

.ox-ask { position: relative; width: min(640px, 100%); margin: clamp(22px, 3.4vw, 36px) 0 clamp(14px, 2vw, 20px); }
.ox-ask:not(.is-ready) { display: none; } /* no-JS: the hero stays clean, the list below is the content */
.ox-ask__field { position: relative; display: flex; align-items: center; }
.ox-ask__field[hidden] { display: none; }
.ox-ask__ico { position: absolute; left: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: var(--gold); pointer-events: none; }
.ox-ask__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ox-ask__input {
  flex: 1; min-width: 0; height: 64px; padding: 0 76px 0 56px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(20, 29, 51, .62); color: var(--text);
  font: 500 clamp(16px, 1.35vw, 1.12rem)/1 var(--font);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 60px -30px rgba(0, 0, 0, .9);
  transition: border-color .3s var(--ease-out), background-color .3s var(--ease-out);
}
html:not(.lp) .ox-ask__input { -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); }
.lp .ox-ask__input { background: rgba(20, 29, 51, .92); }
.ox-ask__input::placeholder { color: var(--text-3); }
.ox-ask__input:hover { border-color: rgba(245, 200, 130, .35); }
.ox-ask__input:focus { outline: none; border-color: rgba(245, 200, 130, .65); background: rgba(20, 29, 51, .8); }
.ox-ask__input:focus-visible { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 0 0 4px rgba(245, 200, 130, .16); }

/* cycling placeholder: three real questions crossfade (opacity only) */
.ox-ask__ph { position: absolute; left: 57px; right: 80px; top: 0; bottom: 0; pointer-events: none; color: var(--text-3);
  font: 500 clamp(16px, 1.35vw, 1.12rem)/1 var(--font); }
.ox-ask__ph > span { position: absolute; inset: 0; display: flex; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity .7s var(--ease-out); }
.ox-ask__ph > span.is-on { opacity: 1; }
.ox-ask__ph.is-hidden, .ox-ask__input:focus ~ .ox-ask__ph { opacity: 0; }
.ox-ask__ph.is-hidden > span, .ox-ask__input:focus ~ .ox-ask__ph > span { transition-duration: .15s; }
.ox-ask__ph { transition: opacity .15s linear; }

.ox-ask__go { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--gold); color: #1a1206; cursor: pointer;
  transition: transform .25s var(--ease-out), opacity .2s; }
.ox-ask__field > .ox-ask__go[data-ox-ask-submit] { position: absolute; } /* beats finish.css .ox [data-ox-ask-submit] { position: relative } */
.ox-ask__go svg { width: 22px; height: 22px; }
.ox-ask__go:hover svg { transform: translateX(2px); }
.ox-ask__go svg { transition: transform .3s var(--ease-out); }
.ox-ask__go:active { transform: scale(.94); }
.ox-ask__go:disabled { opacity: .55; cursor: default; }
.ox-ask__go:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.ox-ask__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0 22px; color: var(--text-3); font-size: .78rem; line-height: 1.4; }
.ox-ask__left { color: var(--text-2); }
.ox-ask__ai { flex-basis: 100%; }
@media (min-width: 761px) { .ox-ask__ai { flex-basis: auto; } .ox-ask__ai::before { content: "·"; margin-right: 12px; } }

/* the answer reads under the field */
.ox-ask__log { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 0; padding: 18px 20px; border-radius: 24px;
  background: rgba(11, 16, 32, .9); border: 1px solid var(--hairline); max-width: 100%; }
.ox-ask__log[hidden] { display: none; }
.ox-ask__log .oxa-msg { max-width: 100%; }
.ox-ask__log .oxa-msg--me { max-width: 88%; }
.ox-ask .oxa-cta { padding: 16px 20px; border-radius: 24px; background: rgba(11, 16, 32, .9); border: 1px solid rgba(245, 200, 130, .25); }
.ox-ask .oxa-cta__line { font-size: 1.02rem; }

@media (max-width: 760px) {
  .ox-ask__input { height: 58px; padding: 0 68px 0 50px; }
  .ox-ask__ico { left: 17px; }
  .ox-ask__ph { left: 51px; right: 70px; }
  .ox-ask__go { width: 44px; height: 44px; top: 7px; right: 7px; }
  .ox-ask__bar { margin-left: 14px; }
  .ox-ask__log { padding: 16px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .ox-ask__ph > span, .ox-ask__go, .ox-ask__go svg { transition: none; } }

/* guards against page-wide :focus-visible rules (core.css / finish.css set a small border-radius) */
form.ox-ask .ox-ask__field .ox-ask__input:focus-visible { outline: none; border-radius: 999px; }
form.ox-ask .ox-ask__field .ox-ask__go:focus-visible { border-radius: 50%; }
form.ox-ask .oxa-cta .oxa-cta__btn:focus-visible { border-radius: 999px; }
