/* Step Form - Full Screen: full-screen dark chat-style presentation. Scoped to the block so the original step form is unaffected. */

.tp-step-form-full-screen {
  --cmf26-bg: #010f31;
  --cmf26-surface: #0a1a42;
  --cmf26-border: #6c9eff;
  --cmf26-accent: #1f62d1;
  --cmf26-muted: #8a9abf;
  --cmf26-error: #ff7a9c;
  --cmf26-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background-color: var(--cmf26-bg) !important;
  color: #fff;
  font-family: "Inter-Regular", "Inter", sans-serif;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  max-width: 100vw !important;
  padding: 0 !important;
  width: 100vw !important;
}

.tp-step-form-full-screen [data-block-name="acf/step-form-full-screen"] {
  color: #fff;
}

/* Root shell: full viewport height */
.tp-step-form-full-screen__root {
  background-color: var(--cmf26-bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.tp-step-form-full-screen__root[data-result-state] .tp-step-form-full-screen__inner,
.tp-step-form-full-screen__root[data-result-state] .tp-step-form-full-screen__progress,
.tp-step-form-full-screen__root[data-result-state] .tp-step-form-full-screen__frame {
  display: none;
}

/* Gradient blobs: positioned against the full screen (left side), like the reference */
.tp-step-form-full-screen__frame {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.tp-step-form-full-screen__blob {
  align-items: center;
  display: flex;
  justify-content: center;
  pointer-events: none;
  position: absolute;
}

.tp-step-form-full-screen__blob-inner {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  flex: none;
  position: relative;
  transform: rotate(109.84deg);
}

.tp-step-form-full-screen__blob--pink {
  height: 691.588px;
  left: 21.44px;
  top: 467.5px;
  width: 658.956px;
}

.tp-step-form-full-screen__blob--pink .tp-step-form-full-screen__blob-inner {
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 554.68 500.41' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%25' width='100%25' fill='url(%23grad)' opacity='1'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(1.6982e-15 25.02 -27.734 1.5321e-15 277.34 250.2)'><stop stop-color='rgba(255,95,169,1)' offset='0'/><stop stop-color='rgba(255,95,169,0)' offset='1'/></radialGradient></defs></svg>");
  height: 500.409px;
  opacity: 0.25;
  width: 554.681px;
}

.tp-step-form-full-screen__blob--blue {
  height: 707.036px;
  left: -344.01px;
  top: 378px;
  width: 673.669px;
}

.tp-step-form-full-screen__blob--blue .tp-step-form-full-screen__blob-inner {
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 567.07 511.58' xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none'><rect x='0' y='0' height='100%25' width='100%25' fill='url(%23grad)' opacity='1'/><defs><radialGradient id='grad' gradientUnits='userSpaceOnUse' cx='0' cy='0' r='10' gradientTransform='matrix(1.7362e-15 25.579 -28.354 1.5663e-15 283.54 255.79)'><stop stop-color='rgba(49,119,255,1)' offset='0'/><stop stop-color='rgba(49,119,255,0)' offset='1'/></radialGradient></defs></svg>");
  height: 511.58px;
  opacity: 0.61;
  width: 567.074px;
}

/* Steps container */
.tp-step-form-full-screen__inner {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 640px;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(96px, 18vh, 175px) 32px 160px;
  position: relative;
  width: 100%;
  z-index: 1;
}

@media (max-width: 480px) {
  .tp-step-form-full-screen__inner {
    padding-top: 100px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

@keyframes tp-step-form-full-screen-fadeIn {
  0% {
    opacity: 0;
    transform: translateX(-28px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

[data-block-name="acf/step-form-full-screen"] [data-step]:not(.u-wp-3-hidden) {
  animation: tp-step-form-full-screen-fadeIn 0.28s ease;
}

/* Heading: subheading above, large question below */
.tp-step-form-full-screen__heading {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 40px;
}

.tp-step-form-full-screen__subheading,
.tp-step-form-full-screen__subheading * {
  color: #fff;
  font-family: "Inter-Regular", "Inter", sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 22px;
  margin: 0;
}

.tp-step-form-full-screen__title {
  color: #fff;
  font-family: "Inter-SemiBold", "Inter", sans-serif;
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.43px;
  line-height: 44px;
  margin: 0;
  min-height: 44px;
}

@media (max-width: 480px) {
  .tp-step-form-full-screen__title {
    font-size: 30px;
    line-height: 36px;
    min-height: 36px;
  }

  .tp-step-form-full-screen__subheading,
  .tp-step-form-full-screen__subheading * {
    font-size: 18px;
  }
}

.tp-step-form-full-screen__title.is-typing::after {
  animation: tp-step-form-full-screen-blink 1.06s steps(1) infinite;
  background: #fff;
  border-radius: 1px;
  content: "";
  display: inline-block;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  width: 2px;
}

@keyframes tp-step-form-full-screen-blink {
  50% {
    opacity: 0;
  }
}

/* Fields reveal once the question has been typed */
.tp-step-form-full-screen__fields {
  transition: opacity 0.42s var(--cmf26-ease), transform 0.42s var(--cmf26-ease);
}

.tp-step-form-full-screen__step[data-typing="true"] .tp-step-form-full-screen__fields {
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  /* Hide instantly; only the reveal animates */
  transition: none;
}

/* Text-like inputs: pill style */
[data-block-name="acf/step-form-full-screen"] input:not([type="radio"]):not([type="checkbox"]),
[data-block-name="acf/step-form-full-screen"] select,
[data-block-name="acf/step-form-full-screen"] textarea {
  background-color: transparent;
  border: 1px solid var(--cmf26-border);
  border-radius: 500px;
  box-sizing: border-box;
  color: #fff;
  font-family: "Inter-Regular", "Inter", sans-serif;
  font-size: 17px;
  height: 56px;
  letter-spacing: -0.43px;
  padding: 0 24px;
  text-indent: 0 !important;
  width: 100%;
}

[data-block-name="acf/step-form-full-screen"] select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'><path d='M3 6l5 5 5-5' stroke='white' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: right 22px center;
  background-repeat: no-repeat;
  padding-right: 52px;
}

[data-block-name="acf/step-form-full-screen"] input[type="date"] {
  color-scheme: dark;
}

[data-block-name="acf/step-form-full-screen"] textarea {
  border-radius: 20px;
  height: auto;
  padding: 16px 24px;
}

[data-block-name="acf/step-form-full-screen"] select option {
  background-color: var(--cmf26-surface);
  color: #fff;
}

[data-block-name="acf/step-form-full-screen"] input::placeholder,
[data-block-name="acf/step-form-full-screen"] textarea::placeholder {
  color: var(--cmf26-muted);
}

[data-block-name="acf/step-form-full-screen"] input:focus,
[data-block-name="acf/step-form-full-screen"] select:focus,
[data-block-name="acf/step-form-full-screen"] textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--cmf26-accent);
  outline: none;
}

/* Validation error state added by the step form JS */
[data-block-name="acf/step-form-full-screen"] .u-wp-3-border-legacy-brand-pink,
[data-block-name="acf/step-form-full-screen"] .u-wp-3-border-brand-pink {
  border-color: var(--cmf26-error);
}

[data-block-name="acf/step-form-full-screen"] .u-wp-3-placeholder-legacy-brand-pink::placeholder {
  color: var(--cmf26-error);
}

[data-block-name="acf/step-form-full-screen"] [data-error-state-message] {
  color: var(--cmf26-error);
}

/* Radio / checkbox / opt-in: selectable outlined cards */
[data-block-name="acf/step-form-full-screen"] [data-input-container$="radio-type"],
[data-block-name="acf/step-form-full-screen"] [data-input-container$="checkbox-type"],
[data-block-name="acf/step-form-full-screen"] [data-input-container$="opt-in-type"] {
  position: relative;
}

[data-block-name="acf/step-form-full-screen"] input[type="radio"],
[data-block-name="acf/step-form-full-screen"] input[type="checkbox"] {
  height: 1px;
  margin: 0;
  opacity: 0;
  position: absolute;
  width: 1px;
}

[data-block-name="acf/step-form-full-screen"] input[type="radio"] + label,
[data-block-name="acf/step-form-full-screen"] input[type="checkbox"] + label {
  background-color: transparent !important;
  border: 1px solid var(--cmf26-border);
  border-radius: 20px;
  box-sizing: border-box;
  color: #fff !important;
  cursor: pointer;
  display: block;
  font-size: 17px;
  letter-spacing: -0.43px;
  line-height: 22px;
  padding: 18px 24px;
  transition: background-color 0.2s, border-color 0.2s;
  width: 100%;
}

[data-block-name="acf/step-form-full-screen"] input[type="radio"] + label p,
[data-block-name="acf/step-form-full-screen"] input[type="checkbox"] + label p {
  color: var(--cmf26-muted) !important;
  margin-top: 4px;
}

@media (hover: hover) {
  [data-block-name="acf/step-form-full-screen"] input[type="radio"] + label:hover,
  [data-block-name="acf/step-form-full-screen"] input[type="checkbox"] + label:hover {
    background-color: rgba(108, 158, 255, 0.14) !important;
    border-color: #8db4ff;
  }
}

[data-block-name="acf/step-form-full-screen"] input[type="radio"]:checked + label,
[data-block-name="acf/step-form-full-screen"] input[type="checkbox"]:checked + label {
  background-color: rgba(108, 158, 255, 0.18) !important;
  border-color: rgba(108, 158, 255, 0.9);
}

[data-block-name="acf/step-form-full-screen"] input[type="radio"]:focus-visible + label,
[data-block-name="acf/step-form-full-screen"] input[type="checkbox"]:focus-visible + label {
  background-color: var(--cmf26-accent) !important;
  border-color: #fff;
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Visible checkbox on multi-select cards (the input itself is visually hidden) */
[data-block-name="acf/step-form-full-screen"] input[type="checkbox"] + label {
  padding-left: 60px;
  position: relative;
}

[data-block-name="acf/step-form-full-screen"] input[type="checkbox"] + label::before {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
  border: 1.5px solid var(--cmf26-border);
  border-radius: 6px;
  box-sizing: border-box;
  content: "";
  height: 22px;
  left: 24px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color 0.2s, border-color 0.2s;
  width: 22px;
}

[data-block-name="acf/step-form-full-screen"] input[type="checkbox"]:checked + label::before {
  background-color: var(--cmf26-accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none'><path d='M2.5 7.5l3 3 6-6.5' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  border-color: var(--cmf26-accent);
}

/* Pricing cards nest the radio inside the label, so style the label itself */
[data-block-name="acf/step-form-full-screen"] [data-pricing-block-group] > label {
  transition: border-color 0.2s, box-shadow 0.2s;
}

[data-block-name="acf/step-form-full-screen"] [data-pricing-block-group] > label:has(input[type="radio"]:checked) {
  border-color: var(--cmf26-accent);
  box-shadow: 0 0 0 3px var(--cmf26-accent);
}

[data-block-name="acf/step-form-full-screen"] [data-pricing-block-group] > label:has(input[type="radio"]:focus-visible) {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Choice cards fade/slide in staggered */
@keyframes tp-step-form-full-screen-itemIn {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

[data-block-name="acf/step-form-full-screen"] [data-input-container$="radio-type"] {
  animation: tp-step-form-full-screen-itemIn 0.42s var(--cmf26-ease) both;
}

[data-block-name="acf/step-form-full-screen"] [data-input-container$="radio-type"]:nth-child(2) { animation-delay: 60ms; }
[data-block-name="acf/step-form-full-screen"] [data-input-container$="radio-type"]:nth-child(3) { animation-delay: 120ms; }
[data-block-name="acf/step-form-full-screen"] [data-input-container$="radio-type"]:nth-child(4) { animation-delay: 180ms; }
[data-block-name="acf/step-form-full-screen"] [data-input-container$="radio-type"]:nth-child(5) { animation-delay: 240ms; }

/* Progress bar + navigation. The container is in normal flow; children position against the root. */
.tp-step-form-full-screen__progress {
  display: contents;
}

/* Editor preview marks the wrapper hidden; display: contents would otherwise keep the fixed buttons visible. */
.tp-step-form-full-screen__progress.u-wp-3-hidden {
  display: none;
}

/* The reference design has no progress bar; the element stays in the DOM because the step form JS updates it. */
.tp-step-form-full-screen__progress-track {
  display: none;
}

.tp-step-form-full-screen__back {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 36px;
  justify-content: center;
  left: max(20px, calc(50% - 300px));
  padding: 0;
  position: absolute;
  top: 56px;
  transition: background-color 0.2s;
  width: 36px;
  z-index: 5;
}

@media (max-width: 480px) {
  .tp-step-form-full-screen__back {
    top: 35px;
  }
}

.tp-step-form-full-screen__back:not(.u-wp-3-hidden) {
  display: flex;
}

.tp-step-form-full-screen__back:hover {
  background: rgba(255, 255, 255, 0.16);
}

.tp-step-form-full-screen__back:focus-visible,
.tp-step-form-full-screen__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Buttons must stay siblings of [data-previous] (JS toggles them via siblings), so each is pinned individually. */
.tp-step-form-full-screen__btn {
  border-radius: 20px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  position: fixed;
  transform: translateX(-50%);
  width: min(576px, calc(100% - 64px));
  z-index: 5;
  background-color: var(--cmf26-accent);
  border: 0;
  color: #fff;
  cursor: pointer;
  font-family: "Inter-SemiBold", "Inter", sans-serif;
  font-size: 17px;
  height: 56px;
  letter-spacing: -0.43px;
  transition: opacity 0.2s;
}

@media (max-width: 480px) {
  .tp-step-form-full-screen__btn {
    width: calc(100% - 48px);
  }
}

.tp-step-form-full-screen__btn:not(.u-wp-3-hidden) {
  display: block;
}

.tp-step-form-full-screen__btn[data-next-disabled="true"],
.tp-step-form-full-screen__btn[data-submit-disabled="true"] {
  background-color: var(--cmf26-accent) !important;
  color: #fff !important;
  opacity: 0.4;
}

.tp-step-form-full-screen__btn[data-next-disabled="false"],
.tp-step-form-full-screen__btn[data-submit-disabled="false"] {
  background-color: var(--cmf26-accent) !important;
  color: #fff !important;
  opacity: 1;
}

/* Result screens */
.tp-step-form-full-screen__result {
  display: none;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  width: 100%;
}

.tp-step-form-full-screen__root[data-result-state="success"] .tp-step-form-full-screen__result--success,
.tp-step-form-full-screen__root[data-result-state="error"] .tp-step-form-full-screen__result--error {
  display: block;
}

.tp-step-form-full-screen__scanner {
  background: linear-gradient(160deg, #070f2e, #010f31);
  height: 234px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 480px) {
  .tp-step-form-full-screen__scanner {
    height: 150px;
  }
}

.tp-step-form-full-screen__scanner::after {
  background: linear-gradient(to bottom, #070f2e 0%, transparent 22%, transparent 68%, #010f31 100%),
    linear-gradient(to right, #010f31 0%, transparent 10%, transparent 90%, #010f31 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.tp-step-form-full-screen__scanner-columns {
  box-sizing: border-box;
  display: flex;
  gap: 8px;
  height: 100%;
  margin: 0 auto;
  max-width: 640px;
  padding: 10px 12px 0;
}

.tp-step-form-full-screen__scanner-column {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

@keyframes tp-step-form-full-screen-profileScroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-440px);
  }
}

.tp-step-form-full-screen__scanner-track {
  animation: tp-step-form-full-screen-profileScroll linear infinite;
}

.tp-step-form-full-screen__scanner-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
  padding: 8px 8px 9px;
  transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.tp-step-form-full-screen__scanner-card[data-state="active"] {
  background: rgba(49, 119, 255, 0.32);
  border-color: rgba(140, 185, 255, 0.9);
  box-shadow: 0 0 14px rgba(49, 119, 255, 0.55);
}

.tp-step-form-full-screen__scanner-card[data-state="settled"] {
  background: rgba(49, 119, 255, 0.06);
}

.tp-step-form-full-screen__scanner-avatar {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  height: 20px;
  justify-content: center;
  overflow: hidden;
  width: 20px;
}

.tp-step-form-full-screen__scanner-lines {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
}

.tp-step-form-full-screen__scanner-line {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  display: block;
}

.tp-step-form-full-screen__scanner-line--name {
  height: 3px;
}

.tp-step-form-full-screen__scanner-line--sub {
  background: rgba(255, 255, 255, 0.1);
  height: 2.5px;
}

.tp-step-form-full-screen__result-body {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 0 auto;
  max-width: 640px;
  padding: 14px 32px 60px;
}

.tp-step-form-full-screen__result-body--error {
  padding-top: clamp(96px, 20vh, 175px);
}

@media (max-width: 480px) {
  .tp-step-form-full-screen__result-body--error {
    padding-top: 100px;
  }

  .tp-step-form-full-screen__result-body {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.tp-step-form-full-screen__result-title:focus {
  outline: none;
}

.tp-step-form-full-screen__result-title {
  color: #fff;
  font-family: "Inter-SemiBold", "Inter", sans-serif;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.5px;
  line-height: 34px;
  margin: 0;
}

.tp-step-form-full-screen__result-text,
.tp-step-form-full-screen__result-footer,
.tp-step-form-full-screen__result-footer * {
  color: #fff;
  font-size: 16px;
  line-height: 26px;
  margin: 0;
}

.tp-step-form-full-screen__result-footer,
.tp-step-form-full-screen__result-footer * {
  font-size: 14px;
  line-height: 22px;
}

.tp-step-form-full-screen__result-text {
  margin-top: 12px;
}

.tp-step-form-full-screen__result-footer a {
  color: var(--cmf26-border);
  text-decoration: underline;
}

.tp-step-form-full-screen__card {
  background: rgba(49, 119, 255, 0.07);
  border: 1px solid rgba(108, 158, 255, 0.14);
  border-radius: 20px;
  box-sizing: border-box;
  padding: 22px;
}

.tp-step-form-full-screen__card--cta {
  background: rgba(49, 119, 255, 0.12);
  border-color: rgba(108, 158, 255, 0.3);
  padding: 20px 22px;
}

.tp-step-form-full-screen__cta-section-headline{
  color: #ffffff;
  font-family: "Inter-SemiBold", "Inter", sans-serif;
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 0.25rem;
}

.tp-step-form-full-screen__cta-section-copy{
  color: #9aa5b8;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 0.75rem;
}

.tp-step-form-full-screen__card-label {
  color: var(--cmf26-border);
  font-family: "Inter-SemiBold", "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.8px;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.tp-step-form-full-screen__steps-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tp-step-form-full-screen__steps-item {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.tp-step-form-full-screen__steps-number {
  align-items: center;
  background: rgba(49, 119, 255, 0.25);
  border: 1px solid rgba(108, 158, 255, 0.3);
  border-radius: 50%;
  display: flex;
  flex: none;
  font-size: 12px;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.tp-step-form-full-screen__steps-text {
  color: #fff;
  font-size: 14px;
  line-height: 22px;
}

.tp-step-form-full-screen__steps-text strong {
  font-family: "Inter-SemiBold", "Inter", sans-serif;
  font-weight: 400;
  margin-right: 4px;
}

.tp-step-form-full-screen__cta {
  align-items: center;
  background: var(--cmf26-accent);
  border-radius: 20px;
  box-sizing: border-box;
  color: #fff !important;
  display: flex;
  font-family: "Inter-SemiBold", "Inter", sans-serif;
  font-size: 15px;
  height: 52px;
  justify-content: center;
  text-decoration: none !important;
  width: 100%;
}

.tp-step-form-full-screen__cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Result elements fade in by phase */
.tp-step-form-full-screen__root[data-result-state] .tp-step-form-full-screen__result-heading,
.tp-step-form-full-screen__root[data-result-state] .tp-step-form-full-screen__card:not(.tp-step-form-full-screen__card--cta),
.tp-step-form-full-screen__root[data-result-state] .tp-step-form-full-screen__result-footer,
.tp-step-form-full-screen__root[data-result-state] .tp-step-form-full-screen__card--cta {
  animation: tp-step-form-full-screen-itemIn 0.5s ease both;
}

.tp-step-form-full-screen__result-heading { animation-delay: 200ms !important; }
.tp-step-form-full-screen__card:not(.tp-step-form-full-screen__card--cta),
.tp-step-form-full-screen__result-footer { animation-delay: 700ms !important; }
.tp-step-form-full-screen__card--cta { animation-delay: 1200ms !important; }

@media (prefers-reduced-motion: reduce) {
  [data-block-name="acf/step-form-full-screen"] [data-step],
  [data-block-name="acf/step-form-full-screen"] [data-input-container$="radio-type"],
  .tp-step-form-full-screen__root[data-result-state] * ,
  .tp-step-form-full-screen__scanner-track,
  .tp-step-form-full-screen__fields {
    animation: none !important;
    transition: none !important;
  }
}

/* In-input continue arrow (single text input steps) */
.tp-step-form-full-screen__arrow {
  align-items: center;
  background-color: var(--cmf26-accent);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  height: 44px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 6px;
  width: 44px;
}

.tp-step-form-full-screen__arrow.is-visible {
  display: flex;
}

.tp-step-form-full-screen__arrow:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* Location step: searchable dropdown (matches the reference LocationStep).
   The native select stays in the DOM, visually hidden, as the form's source of truth. */
[data-block-name="acf/step-form-full-screen"] select.tp-step-form-full-screen__native-select {
  border: 0;
  height: 1px;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

[data-block-name="acf/step-form-full-screen"] [data-location-dependent] input[type="text"] {
  border-radius: 20px;
}

.tp-step-form-full-screen__combobox {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.tp-step-form-full-screen__combobox-control {
  position: relative;
  width: 100%;
}

.tp-step-form-full-screen__combobox-field {
  background: transparent;
  border: 1px solid var(--cmf26-border);
  border-radius: 20px;
  box-sizing: border-box;
  color: #fff;
  cursor: text;
  font-family: "Inter-Regular", "Inter", sans-serif;
  font-size: 17px;
  height: 56px;
  letter-spacing: -0.43px;
  line-height: 54px;
  outline: none;
  overflow: hidden;
  padding: 0 52px 0 24px;
  transition: border-radius 150ms ease, background-color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.tp-step-form-full-screen__combobox-field:empty::before {
  color: var(--cmf26-muted);
  content: attr(data-placeholder);
}

.tp-step-form-full-screen__combobox-field:focus {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--cmf26-accent);
}

.tp-step-form-full-screen__combobox.is-open .tp-step-form-full-screen__combobox-field {
  border-radius: 20px 20px 0 0;
}

.tp-step-form-full-screen__combobox.is-confirmed:not(.is-open) .tp-step-form-full-screen__combobox-field {
  background-color: rgba(108, 158, 255, 0.18);
  border-color: rgba(108, 158, 255, 0.9);
}

.tp-step-form-full-screen__combobox-chevron {
  color: var(--cmf26-border);
  display: flex;
  pointer-events: none;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.tp-step-form-full-screen__combobox.is-confirmed:not(.is-open) .tp-step-form-full-screen__combobox-chevron {
  color: rgba(108, 158, 255, 0.7);
}

.tp-step-form-full-screen__combobox-list {
  background-color: var(--cmf26-surface);
  border: 1px solid var(--cmf26-border);
  border-radius: 0 0 20px 20px;
  border-top-color: rgba(108, 158, 255, 0.2);
  box-sizing: border-box;
  max-height: 220px;
  overflow-y: auto;
  width: 100%;
}

.tp-step-form-full-screen__combobox-list[hidden] {
  display: none;
}

.tp-step-form-full-screen__combobox-option {
  color: #fff;
  cursor: pointer;
  font-family: "Inter-Regular", "Inter", sans-serif;
  font-size: 16px;
  letter-spacing: -0.3px;
  padding: 14px 24px;
  transition: background-color 0.1s;
}

.tp-step-form-full-screen__combobox-option + .tp-step-form-full-screen__combobox-option {
  border-top: 1px solid rgba(108, 158, 255, 0.12);
}

.tp-step-form-full-screen__combobox-option:hover,
.tp-step-form-full-screen__combobox-option.is-active {
  background-color: rgba(108, 158, 255, 0.14);
}

/* Validation error state (the step form JS puts the error classes on the native select) */
.tp-step-form-full-screen__native-select.u-wp-3-border-legacy-brand-pink + .tp-step-form-full-screen__combobox .tp-step-form-full-screen__combobox-field,
.tp-step-form-full-screen__native-select.u-wp-3-border-brand-pink + .tp-step-form-full-screen__combobox .tp-step-form-full-screen__combobox-field {
  border-color: var(--cmf26-error);
}

/* Underage alert (matches the reference showUnderageAlert modal) */
.tp-step-form-full-screen__underage {
  align-items: center;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  background-color: rgba(1, 15, 49, 0.82);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 0 24px;
  position: fixed;
  z-index: 50;
}

.tp-step-form-full-screen__underage.is-open {
  display: flex;
}

.tp-step-form-full-screen__underage-card {
  background-color: #0a1a42;
  border: 1px solid rgba(108, 158, 255, 0.45);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 420px;
  padding: 24px;
  width: 100%;
}

.tp-step-form-full-screen__underage-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tp-step-form-full-screen__underage-title {
  color: #fff;
  font-family: "Inter-SemiBold", "Inter", sans-serif;
  font-size: 24px;
  line-height: 30px;
  margin: 0;
}

.tp-step-form-full-screen__underage-text {
  color: #9aa5b8;
  font-family: "Inter-Regular", "Inter", sans-serif;
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.tp-step-form-full-screen__underage-button {
  align-items: center;
  background-color: #1f62d1;
  border: 0;
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: "Inter-SemiBold", "Inter", sans-serif;
  font-size: 17px;
  height: 52px;
  justify-content: center;
  width: 100%;
}

/* Submit request in flight */
.tp-step-form-full-screen__btn.is-submitting {
  cursor: progress;
  opacity: 0.8;
}

.tp-step-form-full-screen__btn.is-submitting::before {
  animation: tp-step-form-full-screen-spin 0.7s linear infinite;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-right-color: transparent;
  content: "";
  display: inline-block;
  height: 1em;
  margin-right: 0.5em;
  vertical-align: -0.15em;
  width: 1em;
}

@keyframes tp-step-form-full-screen-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tp-step-form-full-screen__btn.is-submitting::before {
    animation-duration: 2s;
  }
}
