.pos-demo-page {
  --iti-path-flags-1x: url("/vendor/intl-tel-input/flags.webp");
  --iti-path-flags-2x: url("/vendor/intl-tel-input/flags@2x.webp");
  background: var(--forest);
  color: var(--forest);
  min-width: 320px;
}

.pos-demo-page .skip-link {
  color: var(--forest);
}

.pos-demo-main {
  display: grid;
  grid-template-areas:
    "story form"
    "outcomes form";
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: calc(100svh - 66px);
}

.pos-demo-story {
  background: var(--forest);
  color: var(--white);
  display: flex;
  flex-direction: column;
  grid-area: story;
  justify-content: space-between;
  min-height: 650px;
  padding: clamp(2rem, 4vw, 4.5rem) clamp(2.5rem, 6vw, 6.5rem) 2rem;
}

.pos-demo-logo {
  display: inline-flex;
  width: 132px;
}

.pos-demo-logo img {
  filter: brightness(0) invert(1);
  width: 100%;
}

.pos-demo-copy {
  margin: clamp(3.5rem, 8vh, 7rem) 0 2.5rem;
  max-width: 680px;
}

.pos-demo-eyebrow,
.pos-demo-outcomes > p {
  color: var(--sage);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  margin: 0 0 1.6rem;
  text-transform: uppercase;
}

.pos-demo-story h1 {
  font-size: clamp(4rem, 6vw, 6.7rem);
  font-weight: 400;
  letter-spacing: -.062em;
  line-height: .88;
  margin: 0;
}

.pos-demo-story h1 em {
  color: var(--sage);
  font-family: var(--serif);
  font-weight: 400;
}

.pos-demo-intro {
  color: rgba(255, 255, 255, .78);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.55;
  margin: 2rem 0 0;
  max-width: 520px;
}

.pos-demo-availability {
  border-top: 1px solid rgba(255, 255, 255, .24);
  color: rgba(255, 255, 255, .8);
  font-size: .75rem;
  margin: 0;
  padding-top: 1.35rem;
}

.pos-demo-form-panel {
  align-items: center;
  background: var(--white);
  display: grid;
  grid-area: form;
  padding: clamp(2.2rem, 5vw, 6rem);
}

.pos-demo-form {
  border: 1px solid rgba(33, 51, 33, .14);
  margin: auto;
  max-width: 650px;
  padding: clamp(2.2rem, 4vw, 4.5rem);
  width: 100%;
}

.pos-demo-progress {
  align-items: center;
  color: #647360;
  display: flex;
  font-size: .66rem;
  font-weight: 700;
  gap: 1rem;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.pos-demo-progress-track {
  background: rgba(33, 51, 33, .12);
  display: block;
  flex: 1;
  height: 2px;
  overflow: hidden;
}

.pos-demo-progress-track > span {
  background: var(--forest);
  display: block;
  height: 100%;
  transform: scaleX(.5);
  transform-origin: left;
  transition: transform .25s ease;
  width: 100%;
}

.pos-demo-form[data-current-step="2"] .pos-demo-progress-track > span {
  transform: scaleX(1);
}

.pos-demo-form h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 3.2vw, 3.55rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
  margin: 0;
}

.pos-demo-form-intro {
  color: #60705c;
  font-size: .84rem;
  margin: .9rem 0 1.7rem;
}

.pos-demo-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.pos-demo-field {
  border-bottom: 1px solid rgba(33, 51, 33, .34);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 76px;
  padding: .75rem 0 .45rem;
}

.pos-demo-field:focus-within {
  border-color: var(--forest);
  box-shadow: 0 1px 0 var(--forest);
}

.pos-demo-field label {
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .01em;
}

.pos-demo-field label span {
  color: #6c7969;
  font-weight: 500;
}

.pos-demo-field > input {
  background-color: transparent;
  border: 0;
  border-radius: 0;
  color: var(--forest);
  font-size: .9rem;
  min-height: 34px;
  outline: 0;
  padding: .35rem 0 0;
  width: 100%;
}

.pos-demo-conditional-field {
  animation: pos-demo-field-reveal .2s ease both;
}

.pos-demo-conditional-field[hidden] {
  display: none;
}

@keyframes pos-demo-field-reveal {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pos-demo-field[data-invalid="true"] > input {
  border-color: #9b4c43;
  color: #8c3e36;
}

.pos-demo-field-error {
  color: #9b302b;
  font-size: .62rem;
  line-height: 1.4;
  margin: .42rem 0 0;
}

.pos-demo-field-error:empty { display: none; }

.pos-demo-field > input[type="number"] {
  appearance: textfield;
}

.pos-demo-field > input[type="number"]::-webkit-inner-spin-button,
.pos-demo-field > input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.pos-demo-select-field {
  border-bottom: 0;
  min-height: 88px;
  padding-bottom: .4rem;
  padding-top: .6rem;
  position: relative;
}

.pos-demo-select-field:focus-within {
  border-color: transparent;
  box-shadow: none;
}

.shadcn-select {
  margin-top: .42rem;
  position: relative;
}

.shadcn-select-trigger {
  align-items: center;
  background: var(--white);
  border: 1px solid rgba(33, 51, 33, .24);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(33, 51, 33, .05);
  color: #768173;
  cursor: pointer;
  display: flex;
  font-size: .86rem;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 .8rem;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  width: 100%;
}

.shadcn-select-trigger:hover {
  background: #fbfaf7;
  border-color: rgba(33, 51, 33, .38);
}

.shadcn-select-trigger:focus-visible {
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(166, 183, 154, .34);
  outline: 0;
}

.shadcn-select[data-has-value="true"] .shadcn-select-trigger {
  color: var(--forest);
}

.shadcn-select-trigger .icon {
  color: #667263;
  transition: transform .16s ease;
}

.shadcn-select-trigger .icon svg {
  height: 1rem;
  width: 1rem;
}

.shadcn-select[data-open="true"] .shadcn-select-trigger .icon {
  transform: rotate(180deg);
}

.shadcn-select-content {
  background: var(--white);
  border: 1px solid rgba(33, 51, 33, .18);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(20, 34, 20, .16);
  left: 0;
  max-height: 250px;
  overflow-y: auto;
  padding: .3rem;
  position: absolute;
  right: 0;
  top: calc(100% + .35rem);
  z-index: 80;
}

.shadcn-select-content[hidden] {
  display: none;
}

.shadcn-select.opens-up .shadcn-select-content {
  bottom: calc(100% + .35rem);
  top: auto;
}

.shadcn-select-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--forest);
  cursor: pointer;
  display: flex;
  font-size: .82rem;
  justify-content: space-between;
  min-height: 40px;
  padding: .55rem .65rem;
  text-align: left;
  width: 100%;
}

.shadcn-select-item:hover,
.shadcn-select-item:focus-visible {
  background: rgba(166, 183, 154, .23);
  outline: 0;
}

.shadcn-select-item[aria-selected="true"] {
  background: rgba(166, 183, 154, .18);
  font-weight: 700;
}

.shadcn-select-item .icon {
  opacity: 0;
}

.shadcn-select-item[aria-selected="true"] .icon {
  opacity: 1;
}

.shadcn-select-item .icon svg {
  height: .95rem;
  stroke-width: 2;
  width: .95rem;
}

.shadcn-select[data-invalid="true"] .shadcn-select-trigger {
  border-color: #9b4c43;
  box-shadow: 0 0 0 3px rgba(155, 76, 67, .12);
}

.pos-demo-phone-field {
  border-bottom: 0;
  min-height: 88px;
  padding-bottom: .4rem;
  padding-top: .6rem;
}

.pos-demo-phone-field:focus-within {
  border-color: transparent;
  box-shadow: none;
}

.shadcn-phone-input {
  margin-top: .42rem;
}

.shadcn-phone-input .iti {
  --iti-border-color: rgba(33, 51, 33, .18);
  --iti-country-selector-bg: var(--white);
  --iti-hover-color: rgba(166, 183, 154, .23);
  --iti-icon-color: #667263;
  display: block;
  width: 100%;
}

.shadcn-phone-input .iti__tel-input {
  background: var(--white);
  border: 1px solid rgba(33, 51, 33, .24);
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(33, 51, 33, .05);
  color: var(--forest);
  font: inherit;
  font-size: .86rem;
  min-height: 46px;
  outline: 0;
  padding-bottom: 0;
  padding-top: 0;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
  width: 100%;
}

.shadcn-phone-input .iti__tel-input:hover {
  background: #fbfaf7;
  border-color: rgba(33, 51, 33, .38);
}

.shadcn-phone-input .iti__tel-input:focus {
  background: var(--white);
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(166, 183, 154, .34);
}

.shadcn-phone-input .iti__selected-country-primary {
  border-radius: 9px 0 0 9px;
}

.shadcn-phone-input .iti__country-container {
  border-right: 1px solid rgba(33, 51, 33, .14);
}

.iti__dropdown-content {
  background: var(--white);
  border: 1px solid rgba(33, 51, 33, .18);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(20, 34, 20, .16);
  color: var(--forest);
  margin-top: .35rem;
  overflow: hidden;
  z-index: 100;
}

.iti__search-input {
  background: var(--white);
  border: 0;
  color: var(--forest);
  font: inherit;
  font-size: .82rem;
  min-height: 42px;
  outline: 0;
}

.iti__country {
  font-size: .8rem;
  min-height: 42px;
}

.pac-container {
  background: var(--white);
  border: 1px solid rgba(33, 51, 33, .18);
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(20, 34, 20, .16);
  color: var(--forest);
  font-family: inherit;
  margin-top: .35rem;
  overflow: hidden;
  z-index: 1000;
}

.pac-item {
  border-top: 0;
  color: #60705c;
  cursor: pointer;
  font-size: .76rem;
  min-height: 46px;
  padding: .65rem .8rem;
}

.pac-item:hover,
.pac-item-selected {
  background: rgba(166, 183, 154, .23);
}

.pac-item-query {
  color: var(--forest);
  font-size: .82rem;
}

.pos-demo-primary,
.pos-demo-back {
  align-items: center;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  font-size: .8rem;
  font-weight: 700;
  justify-content: center;
  min-height: 58px;
  padding: 0 1.4rem;
}

.pos-demo-primary {
  background: var(--forest);
  color: var(--white);
  gap: 1rem;
  margin-top: 2rem;
  transition: background .2s ease, transform .2s ease;
  width: 100%;
}

.pos-demo-primary:hover {
  background: #314831;
  transform: translateY(-1px);
}

.pos-demo-primary[disabled] {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.pos-demo-primary.is-sent {
  cursor: default;
  opacity: 1;
}

.pos-demo-primary .icon {
  margin-left: auto;
}

.pos-demo-actions {
  align-items: center;
  display: grid;
  gap: .75rem;
  grid-template-columns: auto 1fr;
  margin-top: 2rem;
}

.pos-demo-actions .pos-demo-primary {
  margin-top: 0;
}

.pos-demo-back {
  background: transparent;
  color: var(--forest);
  gap: .45rem;
  min-width: 96px;
}

.pos-demo-form-note {
  color: #697666;
  font-size: .66rem;
  line-height: 1.5;
}

.pos-demo-honeypot {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

.pos-demo-mobile-availability {
  display: none;
}

.pos-demo-form-note {
  margin: .9rem 0 0;
}

.pos-demo-form-note[data-state="success"] { color: #315b31; }
.pos-demo-form-note[data-state="error"] { color: #9b302b; }

.pos-demo-outcomes {
  background: var(--forest);
  color: var(--white);
  grid-area: outcomes;
  padding: 0 clamp(2.5rem, 6vw, 6.5rem) clamp(2.5rem, 5vw, 4.8rem);
}

.pos-demo-outcomes > p {
  border-top: 1px solid rgba(255, 255, 255, .24);
  margin: 0;
  padding: 1.45rem 0 1.15rem;
}

.pos-demo-outcome-grid {
  border-top: 1px solid rgba(255, 255, 255, .22);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pos-demo-outcome-grid article {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
  display: flex;
  font-size: .78rem;
  gap: 1rem;
  min-height: 64px;
  padding: .8rem 1rem .8rem 0;
}

.pos-demo-outcome-grid article:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, .22);
}

.pos-demo-outcome-grid article:nth-child(even) {
  padding-left: 1.5rem;
}

.pos-demo-outcome-grid .icon {
  color: var(--sage);
}

.pos-demo-outcome-grid .icon svg {
  height: 1.45rem;
  stroke-width: 1.6;
  width: 1.45rem;
}

.pos-demo-footer {
  align-items: center;
  background: var(--forest);
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
  display: flex;
  font-size: .72rem;
  justify-content: space-between;
  min-height: 66px;
  padding: 1rem max(3vw, 1.25rem);
}

.pos-demo-footer > a {
  font-size: .8rem;
  font-weight: 700;
}

.pos-demo-footer div {
  display: flex;
  gap: 2rem;
}

@media (max-width: 920px) {
  .pos-demo-main {
    grid-template-areas:
      "story"
      "form"
      "outcomes";
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .pos-demo-story {
    min-height: auto;
    padding: 1.35rem max(1.25rem, 5vw) 2rem;
  }

  .pos-demo-logo {
    width: 116px;
  }

  .pos-demo-copy {
    margin: 3.2rem 0 2rem;
  }

  .pos-demo-story h1 {
    font-size: clamp(3.15rem, 13.5vw, 5.4rem);
    line-height: .9;
  }

  .pos-demo-intro {
    font-size: 1rem;
    margin-top: 1.5rem;
    max-width: 560px;
  }

  .pos-demo-availability {
    font-size: .72rem;
  }

  .pos-demo-form-panel {
    background: var(--ivory);
    padding: 1.4rem max(.75rem, 3vw) 2.5rem;
  }

  .pos-demo-form {
    background: var(--white);
    border-radius: 18px;
    padding: clamp(1.65rem, 7vw, 3rem) clamp(1.25rem, 6vw, 2.5rem);
  }

  .pos-demo-outcomes {
    padding: 2.5rem max(1.25rem, 5vw) 3rem;
  }

  .pos-demo-outcomes > p {
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .pos-demo-story {
    padding-bottom: 1.3rem;
  }

  .pos-demo-copy {
    margin-top: 2rem;
  }

  .pos-demo-eyebrow {
    display: none;
  }

  .pos-demo-story h1 {
    font-size: clamp(3rem, 12.7vw, 4rem);
    letter-spacing: -.058em;
  }

  .pos-demo-intro {
    line-height: 1.5;
    margin-top: 1.2rem;
  }

  .pos-demo-availability {
    display: none;
  }

  .pos-demo-form-panel {
    padding-left: .7rem;
    padding-right: .7rem;
  }

  .pos-demo-form {
    padding: 1.5rem 1.2rem 1.4rem;
  }

  .pos-demo-form h2 {
    font-size: 2.05rem;
  }

  .pos-demo-form-intro {
    margin: .7rem 0 .9rem;
  }

  .pos-demo-field {
    min-height: 64px;
    padding-bottom: 0;
    padding-top: 0;
  }

  .pos-demo-field > input,
  .shadcn-select-trigger,
  .shadcn-phone-input .iti__tel-input {
    font-size: 1rem;
    min-height: 44px;
  }

  .pos-demo-select-field,
  .pos-demo-phone-field {
    min-height: 80px;
    padding-bottom: .3rem;
    padding-top: .45rem;
  }

  .shadcn-select-item {
    font-size: .92rem;
    min-height: 48px;
  }

  .pos-demo-primary {
    margin-top: 1.4rem;
  }

  .pos-demo-mobile-availability {
    color: #697666;
    display: block;
    font-size: .66rem;
    line-height: 1.45;
    margin: .75rem 0 0;
    text-align: center;
  }

  .pos-demo-actions {
    grid-template-columns: 1fr;
  }

  .pos-demo-actions .pos-demo-back {
    grid-row: 2;
  }

  .pos-demo-outcome-grid {
    grid-template-columns: 1fr;
  }

  .pos-demo-outcome-grid article:nth-child(odd) {
    border-right: 0;
  }

  .pos-demo-outcome-grid article:nth-child(even) {
    padding-left: 0;
  }

  .pos-demo-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 1.4rem;
    padding-top: 1.4rem;
  }

  .pos-demo-footer div {
    flex-direction: column;
    gap: .45rem;
  }
}

@media (min-width: 921px) and (max-height: 850px) {
  .pos-demo-story {
    min-height: 570px;
    padding-bottom: 1.5rem;
    padding-top: 2rem;
  }

  .pos-demo-copy {
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
  }

  .pos-demo-form-panel {
    padding-bottom: 2rem;
    padding-top: 2rem;
  }

  .pos-demo-form {
    padding-bottom: 2.3rem;
    padding-top: 2.3rem;
  }

  .pos-demo-field {
    min-height: 65px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pos-demo-conditional-field {
    animation: none;
  }

  .pos-demo-progress-track > span,
  .pos-demo-primary {
    transition: none;
  }
}
