/* ============================================================
   Echo — Funnel styles (waitlist / request-demo pages) plus
   shared additions: CTA buttons as links, "Coming Soon" tooltip
   ============================================================ */

/* CTA buttons as links */
a.hero__button,
a.cta__button {
  text-decoration: none;
}

/* ============================================================
   Log In / Coming Soon tooltip popover
   ============================================================ */
.login-tooltip {
  position: fixed;
  z-index: 2000;
  width: min(250px, calc(100vw - 24px));
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--echo-black);
  color: var(--echo-white);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 1.45;
  animation: login-tooltip-in 0.18s ease;
}

@keyframes login-tooltip-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-tooltip p {
  margin: 0 0 8px;
}

.login-tooltip a {
  color: var(--echo-orange-light);
  font-weight: 600;
  text-decoration: underline;
}

.login-tooltip a:hover {
  color: var(--echo-orange);
}

.login-tooltip::after {
  content: '';
  position: absolute;
  top: -5px;
  left: var(--login-tooltip-arrow, 50%);
  width: 10px;
  height: 10px;
  background: var(--echo-black);
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}

/* ============================================================
   Funnel pages — forms
   ============================================================ */
.funnel {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) 16px clamp(4rem, 8vw, 7rem);
  font-family: var(--font-ui);
  min-height: calc(100vh - 200px);
}

.funnel__eyebrow {
  font-family: var(--font-hand);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--echo-orange);
  margin-bottom: 0.75rem;
}

.funnel__headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  color: #060b13;
  max-width: 22ch;
}

.funnel__headline em {
  font-style: normal;
  color: var(--echo-orange);
}

.funnel__subtext {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(0.95rem, 2.4vw, 1.125rem);
  line-height: 1.5;
  text-align: center;
  color: #555555;
  max-width: 52ch;
  margin: 1rem auto 0;
}

.funnel__card {
  width: min(100%, 560px);
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--echo-white);
  border: 1px solid rgba(36, 36, 36, 0.12);
  border-radius: clamp(16px, 3vw, 24px);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: #060b13;
}

.form-field .form-field__optional {
  font-weight: 400;
  color: #838383;
  font-size: 0.8125rem;
}

/* Required-field asterisks — echo-orange, matching the brand accent */
.form-field .form-field__required {
  color: var(--echo-orange);
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  color: #060b13;
  background: var(--echo-cream);
  border: 1px solid rgba(36, 36, 36, 0.16);
  border-radius: 10px;
  padding: 11px 14px;
  outline: none;
  width: 100%;
  transition: border-color 0.15s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 96px;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--echo-orange);
}

.friend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.friend-row input {
  flex: 1;
  min-width: 0;
}

.friend-row .friend-row__remove {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(36, 36, 36, 0.16);
  border-radius: 8px;
  background: var(--echo-cream);
  color: #838383;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.friend-row .friend-row__remove:hover {
  background: #fbe7cd;
  color: var(--echo-orange);
}

/* ── Institution combobox ─────────────────────────────── */
.institution-combobox {
  position: relative;
}

.institution-combobox__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 260px;
  overflow-y: auto;
  background-color: #ffffff;
  border: 1px solid rgba(36, 36, 36, 0.16);
  border-radius: 10px;
}

.institution-combobox__option {
  padding: 10px 12px;
  font-size: 15px;
  color: #060b13;
  cursor: pointer;
  border-radius: 8px;
}

.institution-combobox__option:hover,
.institution-combobox__option.is-active {
  background-color: #fbe7cd;
}

.institution-combobox__option--not-listed {
  margin-top: 4px;
  border-top: 1px solid rgba(36, 36, 36, 0.12);
  border-radius: 0 0 8px 8px;
  color: #854f0b;
  font-weight: 500;
}

.institution-combobox__back {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--echo-orange);
  text-decoration: underline;
  cursor: pointer;
}

.add-friend-button {
  border: 1px dashed var(--echo-orange);
  border-radius: 10px;
  background: transparent;
  color: var(--echo-orange);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 8px 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.add-friend-button:hover {
  background: #fbe7cd;
}

.funnel__submit {
  width: 100%;
  border: 1px solid var(--echo-orange);
  border-radius: 999px;
  background: var(--echo-orange);
  color: var(--echo-white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  height: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.funnel__submit:hover:not(:disabled) { background-color: #e08a1f; }
.funnel__submit:focus-visible { outline: 3px solid var(--echo-orange-light); outline-offset: 2px; }
.funnel__submit:disabled { opacity: 0.65; cursor: not-allowed; }

.funnel__error {
  display: none;
  margin-top: 0.875rem;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fdecec;
  border: 1px solid #f5b5b5;
  color: #aa3333;
  font-size: 0.875rem;
  line-height: 1.4;
}

.funnel__error.is-visible { display: block; }

.funnel__success {
  display: none;
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem) 0;
}

.funnel__success.is-visible { display: block; }

.funnel__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--echo-orange-light);
  color: var(--echo-white);
  font-size: 30px;
  margin-bottom: 1.25rem;
}

.funnel__success h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.375rem, 4vw, 1.875rem);
  color: #060b13;
  margin-bottom: 0.625rem;
}

.funnel__success p {
  font-family: var(--font-ui);
  font-size: 0.96875rem;
  line-height: 1.55;
  color: #555555;
}

.funnel__success a {
  color: var(--echo-orange);
  font-weight: 600;
}

/* Styled "back" CTA on the success panels (demo request + waitlist).
   Selector is doubled so it outranks `.funnel__success a` (0,2,0 vs 0,1,1). */
.funnel__back-button.funnel__back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  margin-top: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--echo-orange);
  background-color: var(--echo-orange);
  color: #ffffff;
  text-decoration: none;
}
.funnel__success a.funnel__back-button:hover {
  background-color: #e08a1f;
  border-color: #e08a1f;
  color: #ffffff;
}
.funnel__success a.funnel__back-button:focus-visible {
  outline: 3px solid var(--echo-orange-light, #ffc37b);
  outline-offset: 2px;
}

