/* =============================================================================
 * Visa Eligibility Quiz — scoped under #veq-quiz-app
 * ============================================================================= */

#veq-quiz-app.veq-root {
  --veq-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --veq-transition-slow: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --veq-primary-soft: var(--veq-secondary);
  --veq-focus-ring:
    0 0 0 2px var(--veq-card),
    0 0 0 4px color-mix(in srgb, var(--veq-ring) 28%, transparent);
  --veq-focus-ring-invalid:
    0 0 0 2px var(--veq-card),
    0 0 0 4px color-mix(in srgb, var(--veq-destructive) 22%, transparent);

  box-sizing: border-box;
  font-family:
    "Inter",
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  line-height: 1.5;
  color: var(--veq-foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#veq-quiz-app.veq-root *,
#veq-quiz-app.veq-root *::before,
#veq-quiz-app.veq-root *::after {
  box-sizing: border-box;
}

/* ---------- Theme / page-builder isolation ---------- */
#veq-quiz-app.veq-root button.q-option,
#veq-quiz-app.veq-root button.c-toggle-btn,
#veq-quiz-app.veq-root button.c-country-item,
#veq-quiz-app.veq-root .q-next,
#veq-quiz-app.veq-root .c-submit,
#veq-quiz-app.veq-root .veq-dq-cta {
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.4;
  font-family: inherit;
}

#veq-quiz-app.veq-root button.q-option {
  font-size: 1rem;
  font-weight: 500;
  color: var(--veq-foreground);
}

#veq-quiz-app.veq-root button.q-option .q-label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--veq-foreground);
  opacity: 1;
  visibility: visible;
  text-indent: 0;
  overflow: visible;
  white-space: normal;
  width: auto;
  height: auto;
}

#veq-quiz-app.veq-root .c-country,
#veq-quiz-app.veq-root .q-input,
#veq-quiz-app.veq-root .c-country-menu {
  border-width: 1.5px;
  border-style: solid;
}

#veq-quiz-app.veq-root input.q-input,
#veq-quiz-app.veq-root textarea.q-input,
#veq-quiz-app.veq-root .c-country {
  border-color: var(--veq-border);
  background-color: #ffffff;
  color: var(--veq-foreground);
}

#veq-quiz-app.veq-root button.c-toggle-btn {
  color: var(--veq-foreground);
  background: transparent;
}

#veq-quiz-app.veq-root button.c-toggle-btn.selected {
  color: var(--veq-primary-foreground);
  background: var(--veq-primary);
}

/* ---------- Card ---------- */
#veq-quiz-app.veq-root .quiz-card {
  background: var(--veq-card);
  color: var(--veq-card-foreground);
  border: none;
  border-radius: 1.125rem;
  padding: 1.75rem 1.75rem 2rem;
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* ---------- Progress ---------- */
#veq-quiz-app.veq-root .progress {
  height: 7px;
  width: 100%;
  overflow: hidden;
  border-radius: 9999px;
  background: var(--veq-primary-soft);
}

#veq-quiz-app.veq-root .progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 9999px;
  background: var(--veq-primary);
  transition: width 0.35s ease;
}

#veq-quiz-app.veq-root .quiz-root {
  margin-top: 1.375rem;
  min-height: 220px;
}

/* ---------- Step enter animation ---------- */
@keyframes veq-stagger-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#veq-quiz-app.veq-root .veq-stagger-in {
  animation: veq-stagger-in var(--veq-transition-slow) both;
}

/* ---------- Typography ---------- */
#veq-quiz-app.veq-root .q-prompt {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0.375rem 0 0.375rem;
  text-align: center;
  color: var(--veq-foreground);
}

#veq-quiz-app.veq-root .q-subhead {
  font-size: 0.9375rem;
  line-height: 1.5;
  margin: 0 0 1.125rem;
  text-align: center;
  color: var(--veq-muted-foreground);
}

#veq-quiz-app.veq-root .q-prompt.center,
#veq-quiz-app.veq-root .q-subhead.center {
  text-align: center;
}

/* ---------- Option cards ---------- */
#veq-quiz-app.veq-root .q-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.125rem;
}

#veq-quiz-app.veq-root .q-options.q-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

#veq-quiz-app.veq-root .q-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem 1.125rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--veq-foreground);
  background: #ffffff;
  border: 1.5px solid var(--veq-border);
  border-radius: var(--veq-radius);
  cursor: pointer;
  font-family: inherit;
  line-height: 1.4;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
}

#veq-quiz-app.veq-root .q-option:hover {
  border-color: var(--veq-primary);
  background: #ffffff;
  color: var(--veq-foreground);
}

#veq-quiz-app.veq-root .q-option:active {
  transform: scale(0.995);
}

#veq-quiz-app.veq-root .q-option:focus-visible {
  outline: none;
  border-color: var(--veq-primary);
}

#veq-quiz-app.veq-root .q-option.selected {
  border-color: var(--veq-primary);
  background: #ffffff;
  color: var(--veq-foreground);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--veq-primary) 18%, transparent);
}

#veq-quiz-app.veq-root .q-option:disabled {
  cursor: default;
  opacity: 1;
}

#veq-quiz-app.veq-root .q-option:disabled:not(.selected) {
  opacity: 0.55;
}

/* Radio indicator */
#veq-quiz-app.veq-root .q-radio {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid #cdc9c1;
  background: #ffffff;
  position: relative;
  transition: border-color var(--veq-transition);
}

#veq-quiz-app.veq-root .q-option .q-radio {
  border-color: #cdc9c1;
}

#veq-quiz-app.veq-root .q-option:hover .q-radio,
#veq-quiz-app.veq-root .q-option.selected .q-radio {
  border-color: var(--veq-primary);
}

#veq-quiz-app.veq-root .q-option.selected .q-radio {
  background: #ffffff;
}

#veq-quiz-app.veq-root .q-option.selected .q-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--veq-primary);
}

#veq-quiz-app.veq-root .q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--veq-muted-foreground);
  transition: color var(--veq-transition);
}

#veq-quiz-app.veq-root .q-icon.q-flag {
  width: 1.5rem;
  height: 1.125rem;
}

#veq-quiz-app.veq-root .q-icon.q-flag .fi {
  width: 1.5rem;
  line-height: 1em;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

#veq-quiz-app.veq-root .q-option:hover .q-icon,
#veq-quiz-app.veq-root .q-option.selected .q-icon {
  color: var(--veq-primary);
}

#veq-quiz-app.veq-root .veq-lucide {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

#veq-quiz-app.veq-root .c-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

#veq-quiz-app.veq-root .c-flag .fi {
  width: 1.25rem;
  line-height: 1em;
  border-radius: 2px;
  overflow: hidden;
}

#veq-quiz-app.veq-root .c-caret .veq-lucide {
  width: 14px;
  height: 14px;
  color: var(--veq-muted-foreground);
}

#veq-quiz-app.veq-root .c-toggle-btn .c-check {
  display: none;
  align-items: center;
}

#veq-quiz-app.veq-root .c-toggle-btn .c-check .veq-lucide {
  width: 14px;
  height: 14px;
}

#veq-quiz-app.veq-root .c-toggle-btn.selected .c-check {
  display: inline-flex;
}

#veq-quiz-app.veq-root .q-label {
  flex: 1;
}

/* ---------- Input ---------- */
#veq-quiz-app.veq-root .q-input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--veq-foreground);
  background: #ffffff;
  border: 1.5px solid var(--veq-border);
  border-radius: var(--veq-radius);
  outline: none;
  font-family: inherit;
  transition:
    border-color var(--veq-transition),
    box-shadow var(--veq-transition);
}

#veq-quiz-app.veq-root .q-input::placeholder {
  color: var(--veq-muted-foreground);
  opacity: 1;
}

#veq-quiz-app.veq-root .q-input:hover {
  border-color: color-mix(
    in srgb,
    var(--veq-border) 55%,
    var(--veq-foreground)
  );
}

#veq-quiz-app.veq-root .q-input:focus,
#veq-quiz-app.veq-root .q-input:focus-visible {
  border-color: var(--veq-ring);
  box-shadow: var(--veq-focus-ring);
  outline: none;
}

#veq-quiz-app.veq-root .q-input.invalid {
  border-color: var(--veq-destructive);
  box-shadow: var(--veq-focus-ring-invalid);
}

#veq-quiz-app.veq-root .c-country {
  transition:
    border-color var(--veq-transition),
    box-shadow var(--veq-transition),
    background-color var(--veq-transition);
}

#veq-quiz-app.veq-root .c-country:hover {
  background: #ffffff;
  border-color: color-mix(
    in srgb,
    var(--veq-border) 55%,
    var(--veq-foreground)
  );
}

#veq-quiz-app.veq-root .c-country-wrap:focus-within .c-country {
  border-color: var(--veq-ring);
  box-shadow: var(--veq-focus-ring);
}

#veq-quiz-app.veq-root .c-country:focus-visible {
  border-color: var(--veq-ring);
  box-shadow: var(--veq-focus-ring);
  outline: none;
}

#veq-quiz-app.veq-root .c-country.invalid {
  border-color: var(--veq-destructive);
  box-shadow: var(--veq-focus-ring-invalid);
}

#veq-quiz-app.veq-root .c-country-search:focus,
#veq-quiz-app.veq-root .c-country-search:focus-visible {
  border-bottom-color: var(--veq-ring);
  box-shadow: var(--veq-focus-ring);
  outline: none;
}

#veq-quiz-app.veq-root .c-notes {
  min-height: 5rem;
  resize: vertical;
}

/* ---------- Buttons (shadcn Button variants) ---------- */
#veq-quiz-app.veq-root .q-nav {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
  gap: 0.75rem;
}

/* ---------- Back button (theme-safe) ---------- */
#veq-quiz-app.veq-root button.q-back,
#veq-quiz-app.veq-root button.c-back {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.625rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--veq-foreground);
  background-color: transparent;
  background-image: none;
  border: none;
  border-radius: var(--veq-radius);
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  -webkit-text-fill-color: currentColor;
  opacity: 0.8;
  transition-duration: 0.3s;
  transition:
    opacity var(--veq-transition),
    color var(--veq-transition),
    background-color var(--veq-transition);
}

#veq-quiz-app.veq-root button.q-back:hover,
#veq-quiz-app.veq-root button.c-back:hover,
#veq-quiz-app.veq-root button.q-back:focus-visible,
#veq-quiz-app.veq-root button.c-back:focus-visible {
  opacity: 1;
  color: var(--veq-foreground);
  background-color: color-mix(in srgb, var(--veq-border) 50%, var(--veq-card));
  box-shadow: none;
}

#veq-quiz-app.veq-root button.q-back:focus-visible,
#veq-quiz-app.veq-root button.c-back:focus-visible {
  outline: none;
  box-shadow: var(--veq-focus-ring);
  background-color: transparent;
}

#veq-quiz-app.veq-root .c-form button.q-back,
#veq-quiz-app.veq-root .c-form button.c-back {
  align-self: flex-start;
  margin-top: 0.25rem;
}

#veq-quiz-app.veq-root .q-next,
#veq-quiz-app.veq-root .veq-dq-cta,
#veq-quiz-app.veq-root .c-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--veq-primary-foreground);
  background: var(--veq-primary);
  border: none;
  border-radius: var(--veq-radius);
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  white-space: nowrap;
  transition:
    background-color var(--veq-transition),
    transform var(--veq-transition);
}

#veq-quiz-app.veq-root .veq-dq-cta,
#veq-quiz-app.veq-root .c-submit {
  margin-left: 0;
  width: 100%;
  margin-top: 1rem;
}

#veq-quiz-app.veq-root .q-next:hover,
#veq-quiz-app.veq-root .veq-dq-cta:hover,
#veq-quiz-app.veq-root .c-submit:hover {
  background: var(--veq-primary-dark);
}

#veq-quiz-app.veq-root .q-next:active,
#veq-quiz-app.veq-root .veq-dq-cta:active,
#veq-quiz-app.veq-root .c-submit:active {
  transform: scale(0.98);
}

#veq-quiz-app.veq-root .q-next:focus-visible,
#veq-quiz-app.veq-root .veq-dq-cta:focus-visible,
#veq-quiz-app.veq-root .c-submit:focus-visible {
  outline: none;
  box-shadow: var(--veq-focus-ring);
}

#veq-quiz-app.veq-root .veq-mini-capture {
  margin-top: 1.5rem;
  text-align: left;
}

#veq-quiz-app.veq-root .veq-qualified-capture {
  margin-top: 1.25rem;
  margin-bottom: 0.25rem;
  text-align: left;
}

#veq-quiz-app.veq-root .veq-dq-cta-secondary {
  margin-top: 1rem;
}

/* ---------- Spinner (shadcn Loader2 style) ---------- */
#veq-quiz-app.veq-root .q-spinner {
  width: 3.5rem;
  height: 3.5rem;
  margin: 2.25rem auto;
  border: 5px solid var(--veq-primary-soft);
  border-top-color: var(--veq-primary);
  border-radius: 50%;
  animation: veq-spin 0.9s linear infinite;
}

@keyframes veq-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Form (shadcn form field spacing) ---------- */
#veq-quiz-app.veq-root .c-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.25rem;
  text-align: left;
}

#veq-quiz-app.veq-root .c-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#veq-quiz-app.veq-root .c-name-row {
  display: flex;
  gap: 0.75rem;
  width: 100%;
}

#veq-quiz-app.veq-root .c-name-row .c-field {
  flex: 1 1 0;
  min-width: 0;
  width: 50%;
}

#veq-quiz-app.veq-root .c-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--veq-foreground);
}

#veq-quiz-app.veq-root .c-req {
  color: var(--veq-destructive);
}

/* Phone row */
#veq-quiz-app.veq-root .c-phone-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
  overflow: visible;
}

#veq-quiz-app.veq-root .c-country-wrap {
  position: relative;
  overflow: visible;
}

#veq-quiz-app.veq-root .c-country {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  min-width: 6.75rem;
  padding: 0 0.875rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--veq-foreground);
  background: #ffffff;
  border: 1.5px solid var(--veq-border);
  border-radius: var(--veq-radius);
  cursor: pointer;
  user-select: none;
}

#veq-quiz-app.veq-root .c-country .c-dial {
  color: var(--veq-foreground);
  font-weight: 600;
}

#veq-quiz-app.veq-root .c-caret {
  color: var(--veq-muted-foreground);
  font-size: 0.75rem;
  margin-left: auto;
}

#veq-quiz-app.veq-root .c-phone-input {
  flex: 1;
}

/* Popover / Command list (shadcn Popover + Command) */
#veq-quiz-app.veq-root .c-country-menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  z-index: 2147483000;
  width: 21.25rem;
  max-width: 82vw;
  overflow: hidden;
  background: #ffffff;
  color: var(--veq-foreground);
  border: 1px solid var(--veq-border);
  border-radius: var(--veq-radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  animation: veq-popover-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#veq-quiz-app.veq-root .c-country-menu.is-open {
  position: fixed;
  top: auto;
  left: auto;
  z-index: 2147483000;
}

/* Body portal — escapes Elementor/theme stacking contexts */
#veq-country-portal.veq-root {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 2147483000;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  overflow: visible;
}

#veq-country-portal.veq-root .c-country-menu {
  pointer-events: auto;
}

@keyframes veq-popover-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#veq-quiz-app.veq-root .c-country-search {
  width: 100%;
  height: auto;
  padding: 0.9375rem 1.125rem;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid var(--veq-border);
  background: #ffffff;
  outline: none;
  font-family: inherit;
  color: var(--veq-foreground);
}

#veq-quiz-app.veq-root .c-country-search::placeholder {
  color: var(--veq-muted-foreground);
}

#veq-quiz-app.veq-root .c-country-list {
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.25rem;
}

#veq-quiz-app.veq-root button.c-country-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.125rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--veq-foreground);
  background: #ffffff;
  border: none;
  border-width: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  transition: background-color var(--veq-transition);
}

#veq-quiz-app.veq-root button.c-country-item:hover {
  background: #f5f5f6;
  color: var(--veq-foreground);
}

#veq-quiz-app.veq-root button.c-country-item .c-cname {
  flex: 1;
  min-width: 0;
  color: var(--veq-foreground);
  font-weight: 500;
}

#veq-quiz-app.veq-root button.c-country-item .c-cdial {
  flex-shrink: 0;
  color: var(--veq-foreground);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Toggle group (shadcn ToggleGroup) */
#veq-quiz-app.veq-root .c-toggle {
  display: inline-flex;
  gap: 0.375rem;
  width: 100%;
  padding: 0.3125rem;
  background: #ffffff;
  border: 1.5px solid var(--veq-border);
  border-radius: var(--veq-radius);
  transition: border-color var(--veq-transition);
}

#veq-quiz-app.veq-root .c-toggle.invalid {
  border-color: var(--veq-destructive);
}

#veq-quiz-app.veq-root .c-toggle-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 0.625rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--veq-foreground);
  background: transparent;
  border: none;
  border-radius: 0.625rem;
  cursor: pointer;
  font-family: inherit;
  transition:
    background-color var(--veq-transition),
    color var(--veq-transition),
    box-shadow var(--veq-transition);
}

#veq-quiz-app.veq-root .c-toggle-btn span {
  color: inherit;
}

#veq-quiz-app.veq-root .c-toggle-btn:hover {
  color: var(--veq-foreground);
  background: color-mix(in srgb, var(--veq-border) 25%, transparent);
}

#veq-quiz-app.veq-root .c-toggle-btn:focus-visible {
  outline: none;
  box-shadow: var(--veq-focus-ring);
}

#veq-quiz-app.veq-root .c-toggle-btn.selected {
  background: var(--veq-primary);
  color: var(--veq-primary-foreground);
}

#veq-quiz-app.veq-root .c-toggle-btn.selected span {
  color: inherit;
}

#veq-quiz-app.veq-root .c-toggle-btn.selected .veq-lucide {
  color: currentColor;
}

#veq-quiz-app.veq-root .c-privacy {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: color-mix(
    in srgb,
    var(--veq-muted-foreground) 88%,
    var(--veq-foreground)
  );
  margin: 0.25rem 0 0;
}

/* Validation shake */
#veq-quiz-app.veq-root .shake {
  animation: veq-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes veq-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-4px);
  }
  40% {
    transform: translateX(4px);
  }
  60% {
    transform: translateX(-3px);
  }
  80% {
    transform: translateX(3px);
  }
}

/* Success / thank-you inline state */
#veq-quiz-app.veq-root .veq-thank-inline {
  text-align: center;
  padding: 1rem 0;
  animation: veq-stagger-in var(--veq-transition-slow) both;
}

#veq-quiz-app.veq-root .veq-thank-cta {
  display: inline-flex;
  margin: 1.25rem auto 0;
}

#veq-quiz-app.veq-root .veq-thank-closing {
  margin-top: 0.75rem;
}

/* Greet Lottie — confetti on Great News contact step (80% scale, centered) */
.veq-greet-lottie-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.45s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.veq-greet-lottie-overlay.is-fading {
  opacity: 0;
}

.veq-greet-lottie-overlay svg {
  width: 80% !important;
  height: 80% !important;
  max-width: 80vw;
  max-height: 80vh;
}

#veq-quiz-app.veq-root .veq-contact-step .veq-contact-headline {
  animation: veq-contact-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

#veq-quiz-app.veq-root .veq-contact-step .veq-contact-subhead {
  animation: veq-contact-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.28s both;
}

#veq-quiz-app.veq-root .veq-contact-step .c-form,
#veq-quiz-app.veq-root .veq-contact-step .veq-qualified-cta,
#veq-quiz-app.veq-root .veq-contact-step .veq-qualified-bullet {
  animation: veq-contact-in 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.42s both;
}

#veq-quiz-app.veq-root .veq-qualified-bullet {
  margin: 0.35rem 0;
  text-align: left;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

#veq-quiz-app.veq-root .veq-qualified-intro,
#veq-quiz-app.veq-root .veq-qualified-prompt {
  margin-top: 1.25rem;
}

@keyframes veq-contact-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  #veq-quiz-app.veq-root .veq-contact-step .veq-contact-headline,
  #veq-quiz-app.veq-root .veq-contact-step .veq-contact-subhead,
  #veq-quiz-app.veq-root .veq-contact-step .c-form,
  #veq-quiz-app.veq-root .veq-contact-step .veq-qualified-cta,
  #veq-quiz-app.veq-root .veq-contact-step .veq-qualified-bullet {
    animation: none;
  }

  #veq-quiz-app.veq-root *,
  #veq-quiz-app.veq-root *::before,
  #veq-quiz-app.veq-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  #veq-quiz-app.veq-root .q-options.q-grid {
    grid-template-columns: 1fr;
  }

  #veq-quiz-app.veq-root .quiz-card {
    padding: 1.25rem 1.125rem 1.5rem;
    border-radius: var(--veq-radius);
  }

  #veq-quiz-app.veq-root .q-prompt {
    font-size: 1.25rem;
  }

  #veq-quiz-app.veq-root .q-option {
    padding: 0.875rem;
  }
}

/* Country portal picker (body layer) */
#veq-country-portal.veq-root .c-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

#veq-country-portal.veq-root .c-flag .fi {
  width: 1.25rem;
  line-height: 1em;
  border-radius: 2px;
  overflow: hidden;
}

#veq-country-portal.veq-root .c-country-menu {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  z-index: 2147483000;
  width: 21.25rem;
  max-width: 82vw;
  overflow: hidden;
  background: #ffffff;
  color: var(--veq-foreground);
  border: 1px solid var(--veq-border);
  border-radius: var(--veq-radius);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  animation: veq-popover-in 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

#veq-country-portal.veq-root .c-country-menu.is-open {
  position: fixed;
  top: auto;
  left: auto;
  z-index: 2147483000;
}

#veq-country-portal.veq-root .c-country-menu {
  pointer-events: auto;
}

#veq-country-portal.veq-root .c-country-search {
  width: 100%;
  height: auto;
  padding: 0.9375rem 1.125rem;
  font-size: 1rem;
  border: none;
  border-bottom: 1px solid var(--veq-border);
  background: #ffffff;
  outline: none;
  font-family: inherit;
  color: var(--veq-foreground);
}

#veq-country-portal.veq-root .c-country-search::placeholder {
  color: var(--veq-muted-foreground);
}

#veq-country-portal.veq-root .c-country-list {
  max-height: 16rem;
  overflow-y: auto;
  padding: 0.25rem;
}

#veq-country-portal.veq-root button.c-country-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.125rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  color: var(--veq-foreground);
  background: #ffffff;
  border: none;
  border-width: 0;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  transition: background-color var(--veq-transition);
}

#veq-country-portal.veq-root button.c-country-item:hover {
  background: #f5f5f6;
  color: var(--veq-foreground);
}

#veq-country-portal.veq-root button.c-country-item .c-cname {
  flex: 1;
  min-width: 0;
  color: var(--veq-foreground);
  font-weight: 500;
}

#veq-country-portal.veq-root button.c-country-item .c-cdial {
  flex-shrink: 0;
  color: var(--veq-foreground);
  font-size: 0.9375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Theme / Elementor hard overrides
   ========================================================================== */

#veq-quiz-app.veq-root,
#veq-country-portal.veq-root {
  isolation: isolate;
}

#veq-quiz-app.veq-root button,
#veq-country-portal.veq-root button {
  text-transform: none !important;
  letter-spacing: normal !important;
  text-decoration: none !important;
  background-image: none !important;
}

#veq-quiz-app.veq-root button.q-option {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-height: unset !important;
  padding: 1rem 1.125rem !important;
  background-color: #ffffff !important;
  color: var(--veq-foreground) !important;
  border: 1.5px solid var(--veq-border) !important;
  border-radius: var(--veq-radius) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#veq-quiz-app.veq-root button.q-option:hover,
#veq-quiz-app.veq-root button.q-option.selected {
  background-color: #ffffff !important;
  color: var(--veq-foreground) !important;
}

#veq-quiz-app.veq-root button.q-option .q-label,
#veq-quiz-app.veq-root button.q-option span {
  color: var(--veq-foreground) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#veq-quiz-app.veq-root .q-icon,
#veq-quiz-app.veq-root .q-icon i,
#veq-quiz-app.veq-root i[data-lucide],
#veq-quiz-app.veq-root svg.veq-lucide,
#veq-country-portal.veq-root svg.veq-lucide {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}

#veq-quiz-app.veq-root svg.veq-lucide,
#veq-country-portal.veq-root svg.veq-lucide {
  width: 20px !important;
  height: 20px !important;
  fill: none !important;
  stroke: currentColor !important;
}

#veq-quiz-app.veq-root .q-icon.q-flag .fi,
#veq-quiz-app.veq-root .c-flag .fi,
#veq-country-portal.veq-root .c-flag .fi {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  background-size: contain !important;
  background-position: 50% !important;
  background-repeat: no-repeat !important;
}

#veq-quiz-app.veq-root input.q-input,
#veq-quiz-app.veq-root textarea.q-input,
#veq-country-portal.veq-root .c-country-search {
  appearance: none !important;
  -webkit-appearance: none !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: var(--veq-foreground) !important;
  -webkit-text-fill-color: currentColor !important;
  border-style: solid !important;
}

#veq-quiz-app.veq-root input.q-input:not(:focus):not(:focus-visible),
#veq-quiz-app.veq-root textarea.q-input:not(:focus):not(:focus-visible) {
  box-shadow: none !important;
}

#veq-quiz-app.veq-root button.q-back,
#veq-quiz-app.veq-root button.c-back {
  background-color: transparent !important;
  color: var(--veq-foreground) !important;
  -webkit-text-fill-color: currentColor !important;
  border: none !important;
  box-shadow: none !important;
}

#veq-quiz-app.veq-root button.c-toggle-btn {
  background-color: transparent !important;
  color: var(--veq-foreground) !important;
}

#veq-quiz-app.veq-root button.c-toggle-btn.selected {
  background-color: var(--veq-primary) !important;
  color: var(--veq-primary-foreground) !important;
}

#veq-country-portal.veq-root button.c-country-item {
  background-color: #ffffff !important;
  color: var(--veq-foreground) !important;
}
