.asc-shell *,
.asc-shell *::before,
.asc-shell *::after {
  box-sizing: border-box;
}

.asc-form {
  position: relative;
}

.asc-step {
  display: none;
}

.asc-step.is-active {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 32px;
  align-items: start;
}

.asc-step.asc-no-story {
  grid-template-columns: 1fr;
}

.asc-story-position-right {
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 1fr);
}

.asc-story-position-right .asc-story {
  order: 2;
}

.asc-story-position-right .asc-card {
  order: 1;
}

.asc-story-position-top,
.asc-story-position-bottom {
  grid-template-columns: 1fr;
}

.asc-story-position-bottom .asc-story {
  order: 2;
}

.asc-story-position-bottom .asc-card {
  order: 1;
}

.asc-story[hidden] {
  display: none;
}

.asc-card label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.asc-step-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 14px;
  align-items: end;
}

.asc-step-head > div {
  min-width: 0;
}

.asc-step-head h2 {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.asc-step-head > span {
  grid-column: 2;
  grid-row: 1;
  white-space: nowrap;
}

.asc-progress {
  margin-bottom: 22px;
}

.asc-card input,
.asc-card textarea,
.asc-card select,
.asc-primary {
  font: inherit;
}

.asc-card input,
.asc-card textarea,
.asc-card select {
  width: 100%;
}

.asc-phone {
  display: grid;
  grid-template-columns: 70px 1fr;
}

.asc-phone b {
  display: grid;
  place-items: center;
}

.asc-grid-2,
.asc-quote-grid,
.asc-summary dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.asc-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.asc-fields > * {
  grid-column: 1 / -1;
  min-width: 0;
  margin-bottom: 0;
  align-self: start;
}

.asc-fields > .asc-width-half {
  grid-column: span 3;
}

.asc-fields > .asc-width-third {
  grid-column: span 2;
}

.asc-upload {
  display: grid;
  place-items: center;
  min-height: 140px;
  cursor: pointer;
}

.asc-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.asc-option-list {
  display: grid;
  gap: 8px;
}

.asc-option-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.asc-option-list input {
  width: auto;
}

.asc-choice-style-icon,
.asc-choice-style-image {
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.asc-choice-style-icon .asc-choice-option,
.asc-choice-style-image .asc-choice-option {
  min-height: 64px;
  padding: 12px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  flex-wrap: nowrap;
  cursor: pointer;
}

.asc-choice-option.has-choice-media > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.asc-choice-option.has-choice-media:focus-within,
.asc-choice-option.has-choice-media:has(> input:checked) {
  border-color: #ef5747;
  background: #fff7f5;
}

.asc-choice-icon {
  display: inline-grid;
  flex: 0 0 32px;
  place-items: center;
  font-size: 28px;
  line-height: 1;
}

.asc-choice-icon svg,
.asc-choice-icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.asc-choice-image {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: cover;
  border-radius: 6px;
}

.asc-map {
  display: block;
  min-height: 220px;
}

.asc-map-search {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.asc-map-search > input {
  flex: 1 1 280px;
  min-width: 0;
}

.asc-map-search > button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.asc-map-search.is-gps-only {
  justify-content: flex-start;
}

.asc-map-status[hidden] {
  display: none;
}

.asc-map-result {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.asc-map-result[hidden] {
  display: none;
}

.asc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.asc-progress-template {
  width: 100%;
  margin: 0 0 22px;
  color: var(--asc-progress-label, #657184);
  font-size: inherit;
}

.asc-progress-current,
.asc-progress-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.asc-progress-current span,
.asc-progress-status span {
  flex: 1;
}

.asc-progress-track {
  position: relative;
  height: var(--asc-progress-line, 3px);
  border-radius: var(--asc-progress-radius, 30px);
  background: var(--asc-progress-inactive, #dbe8fb);
}

.asc-progress-track > i {
  display: block;
  width: var(--asc-progress-percent, 0%);
  height: 100%;
  border-radius: inherit;
  background: var(--asc-progress-complete, #24c95b);
}

.asc-progress-template-marker .asc-progress-track > em {
  position: absolute;
  left: clamp(18px, var(--asc-progress-percent, 0%), calc(100% - 18px));
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--asc-progress-active, #f45b78);
  color: var(--asc-progress-indicator-text, #fff);
  font-style: normal;
  font-size: 11px;
}

.asc-progress-template-marker .asc-progress-track > em::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 4px solid transparent;
  border-top-color: var(--asc-progress-active, #f45b78);
  transform: translateX(-50%);
}

.asc-progress-template-segmented .asc-progress-items {
  display: flex;
  gap: var(--asc-progress-gap, 12px);
}

.asc-progress-template-segmented .asc-progress-items > i {
  flex: 1;
  height: max(5px, var(--asc-progress-line, 3px));
  border: 1px solid var(--asc-progress-inactive, #dbe8fb);
  border-radius: var(--asc-progress-radius, 30px);
}

.asc-progress-template-segmented .asc-progress-items > .is-complete {
  border-color: var(--asc-progress-complete, #24c95b);
  background: var(--asc-progress-complete, #24c95b);
}

.asc-progress-template-segmented .asc-progress-items > .is-active {
  border-color: var(--asc-progress-active, #f45b78);
  background: var(--asc-progress-active, #f45b78);
}

.asc-progress-status {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--asc-progress-active, #f45b78);
}

.asc-progress-status > b {
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--asc-progress-active, #f45b78);
  color: var(--asc-progress-indicator-text, #fff);
}

.asc-progress-template-status_box .asc-progress-track {
  border-radius: 0;
}

.asc-progress-template-radial {
  display: flex;
  align-items: center;
  gap: 18px;
}

.asc-progress-template-radial .asc-progress-ring {
  display: grid;
  width: calc(var(--asc-progress-size, 34px) * 2);
  height: calc(var(--asc-progress-size, 34px) * 2);
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--asc-progress-active, #f45b78) var(--asc-progress-percent), var(--asc-progress-inactive, #dbe8fb) 0);
}

.asc-progress-template-radial .asc-progress-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: var(--asc-progress-surface, #fff);
}

.asc-progress-template-radial .asc-progress-ring > b {
  z-index: 1;
  grid-area: 1 / 1;
  color: var(--asc-progress-active, #f45b78);
}

.asc-progress-template-radial .asc-progress-current {
  display: grid;
  justify-content: start;
  margin: 0;
}

.asc-progress-template > .asc-progress-items {
  display: flex;
  align-items: flex-start;
  gap: var(--asc-progress-gap, 12px);
}

.asc-progress-template > .asc-progress-items > span {
  position: relative;
  display: grid;
  flex: 1;
  min-width: 0;
  justify-items: center;
  gap: var(--asc-progress-label-gap, 7px);
  text-align: center;
}

.asc-progress-template > .asc-progress-items > span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--asc-progress-size, 34px) / 2);
  left: calc(50% + var(--asc-progress-size, 34px) / 2);
  width: calc(100% - var(--asc-progress-size, 34px) + var(--asc-progress-gap, 12px));
  height: 0;
  border-top: var(--asc-progress-line, 3px) var(--asc-progress-connector-style, solid) var(--asc-progress-connector, #dbe8fb);
}

.asc-progress-template > .asc-progress-items > span.is-complete:not(:last-child)::after {
  border-color: var(--asc-progress-complete, #24c95b);
}

.asc-progress-template > .asc-progress-items b {
  z-index: 1;
  display: grid;
  width: var(--asc-progress-size, 34px);
  height: var(--asc-progress-size, 34px);
  place-items: center;
  border: var(--asc-progress-indicator-border, 2px) solid var(--asc-progress-inactive, #dbe8fb);
  border-radius: var(--asc-progress-indicator-radius, 50%);
  background: var(--asc-progress-surface, #fff);
  color: var(--asc-progress-label, #657184);
}

.asc-progress-template > .asc-progress-items .is-complete b {
  border-color: var(--asc-progress-complete, #24c95b);
  background: var(--asc-progress-complete, #24c95b);
  color: var(--asc-progress-indicator-text, #fff);
}

.asc-progress-template > .asc-progress-items .is-active b {
  border-color: var(--asc-progress-active, #f45b78);
  background: var(--asc-progress-active, #f45b78);
  color: var(--asc-progress-indicator-text, #fff);
  transform: scale(var(--asc-progress-active-scale, 1));
}

.asc-progress-template > .asc-progress-items em {
  color: inherit;
  font-style: normal;
  font-size: var(--asc-progress-label-size, 14px);
  font-weight: var(--asc-progress-label-weight, 700);
  line-height: 1.3;
}

.asc-progress-percent {
  display: block;
  margin-top: 10px;
  text-align: right;
}

.asc-progress-template-progress_dots > .asc-progress-items {
  justify-content: center;
}

.asc-progress-template-progress_dots > .asc-progress-items > span {
  flex: 0 0 var(--asc-progress-size, 34px);
}

.asc-progress-template-progress_dots > .asc-progress-items > span::after {
  display: none;
}

.asc-progress-template-progress_dots > .asc-progress-items b {
  font-size: 0;
}

.asc-progress-template-chevrons > .asc-progress-items {
  gap: 0;
}

.asc-progress-template-chevrons > .asc-progress-items > span {
  display: flex;
  min-height: var(--asc-progress-size, 34px);
  padding: 8px 20px;
  justify-content: center;
  background: var(--asc-progress-inactive, #dbe8fb);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}

.asc-progress-template-chevrons > .asc-progress-items > span:first-child {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}

.asc-progress-template-chevrons > .asc-progress-items > span::after,
.asc-progress-template-chevrons > .asc-progress-items b {
  display: none;
}

.asc-progress-template-chevrons > .asc-progress-items > .is-complete {
  background: var(--asc-progress-complete, #24c95b);
  color: var(--asc-progress-indicator-text, #fff);
}

.asc-progress-template-chevrons > .asc-progress-items > .is-active {
  background: var(--asc-progress-active, #f45b78);
  color: var(--asc-progress-indicator-text, #fff);
}

.asc-step-design-vertical_timeline .asc-card {
  display: grid;
  grid-template-columns: minmax(160px, var(--asc-progress-vertical-width, 240px)) minmax(0, 1fr);
  column-gap: 32px;
}

.asc-step-design-vertical_timeline .asc-card > .asc-progress-template-vertical_timeline {
  grid-column: 1;
  grid-row: 1 / span 30;
  align-self: start;
}

.asc-step-design-vertical_timeline .asc-card > :not(.asc-progress-template-vertical_timeline) {
  grid-column: 2;
}

.asc-step-design-vertical_timeline .asc-progress-template-vertical_timeline > .asc-progress-items {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--asc-progress-gap, 12px);
}

.asc-step-design-vertical_timeline .asc-progress-template-vertical_timeline > .asc-progress-items > span {
  flex: 0 0 auto;
  width: 100%;
  grid-template-columns: var(--asc-progress-size, 34px) 1fr;
  justify-items: start;
  align-items: start;
  padding: 0;
  text-align: left;
}

.asc-step-design-vertical_timeline .asc-progress-template-vertical_timeline > .asc-progress-items > span b {
  grid-row: 1 / span 2;
}

.asc-step-design-vertical_timeline .asc-progress-template-vertical_timeline > .asc-progress-items > span:not(:last-child)::after {
  top: var(--asc-progress-size, 34px);
  right: auto;
  bottom: auto;
  left: calc((var(--asc-progress-size, 34px) - var(--asc-progress-line, 3px)) / 2);
  width: 0;
  height: var(--asc-progress-gap, 12px);
  border-top: 0;
  border-left: var(--asc-progress-line, 3px) var(--asc-progress-connector-style, solid) var(--asc-progress-connector, #dbe8fb);
  transform: none;
}

.asc-step-design-vertical_timeline .asc-progress-template-vertical_timeline > .asc-progress-items > span.is-complete:not(:last-child)::after {
  border-left-color: var(--asc-progress-complete, #24c95b);
}

.asc-step-design-vertical_timeline .asc-progress-template-vertical_timeline > .asc-progress-items small {
  grid-column: 2;
}

@media (max-width: 680px) {
  .asc-map-search {
    flex-wrap: wrap;
  }

  .asc-map-search > input {
    flex-basis: 100%;
  }

  .asc-step-head {
    grid-template-columns: 1fr;
  }

  .asc-step-head > span {
    grid-column: 1;
    grid-row: auto;
  }

  .asc-progress-status > span {
    flex-basis: calc(100% - 80px);
  }

  .asc-progress-status > small {
    width: 100%;
  }
}

.asc-error {
  display: block;
  color: #b42318;
}

.asc-required {
  color: #d63638;
  font-weight: 700;
}

.asc-field-label-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.asc-field-label-icon {
  display: inline-grid;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 1.15em;
  place-items: center;
  color: currentColor;
  line-height: 1;
}

.asc-field-label-icon svg,
.asc-field-label-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.has-error input,
.has-error textarea,
.has-error select,
.has-error .asc-upload {
  border-color: #d63638;
}

.asc-success-card[hidden] {
  display: none;
}

@media (max-width: 980px) {
  .asc-step.is-active,
  .asc-story-position-right,
  .asc-story-position-top,
  .asc-story-position-bottom {
    grid-template-columns: 1fr;
  }

  .asc-mobile-story-hide .asc-story {
    display: none;
  }

  .asc-mobile-story-above .asc-story {
    order: 1;
  }

  .asc-mobile-story-above .asc-card {
    order: 2;
  }

  .asc-mobile-story-below .asc-story {
    order: 2;
  }

  .asc-mobile-story-below .asc-card {
    order: 1;
  }

  .asc-grid-2,
  .asc-quote-grid,
  .asc-summary dl {
    grid-template-columns: 1fr;
  }

  .asc-map-search {
    grid-template-columns: 1fr;
  }

  .asc-step-design-vertical_timeline .asc-card {
    display: block;
  }

  .asc-step-design-vertical_timeline .asc-progress-template-vertical_timeline > .asc-progress-items {
    flex-direction: row;
    align-items: flex-start;
  }

  .asc-step-design-vertical_timeline .asc-progress-template-vertical_timeline > .asc-progress-items > span {
    display: grid;
    flex: 1 1 0;
    width: auto;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .asc-step-design-vertical_timeline .asc-progress-template-vertical_timeline > .asc-progress-items > span b,
  .asc-step-design-vertical_timeline .asc-progress-template-vertical_timeline > .asc-progress-items small {
    grid-row: auto;
    grid-column: auto;
  }

  .asc-step-design-vertical_timeline .asc-progress-template-vertical_timeline > .asc-progress-items > span:not(:last-child)::after {
    top: calc(var(--asc-progress-size, 34px) / 2);
    left: calc(50% + var(--asc-progress-size, 34px) / 2);
    width: calc(100% - var(--asc-progress-size, 34px) + var(--asc-progress-gap, 12px));
    height: 0;
    border-top: var(--asc-progress-line, 3px) var(--asc-progress-connector-style, solid) var(--asc-progress-connector, #dbe8fb);
    border-left: 0;
  }

  .asc-step-design-vertical_timeline .asc-progress-template-vertical_timeline > .asc-progress-items > span.is-complete:not(:last-child)::after {
    border-top-color: var(--asc-progress-complete, #24c95b);
  }
}

@media (max-width: 640px) {
  .asc-fields > .asc-width-half,
  .asc-fields > .asc-width-third {
    grid-column: 1 / -1;
  }

  .asc-progress-template-numbered_steps > .asc-progress-items,
  .asc-progress-template-check_steps > .asc-progress-items,
  .asc-progress-template-icon_steps > .asc-progress-items,
  .asc-progress-template-chevrons > .asc-progress-items,
  .asc-progress-template-vertical_timeline > .asc-progress-items {
    overflow-x: auto;
    padding: 4px 2px 10px;
    scroll-snap-type: x proximity;
  }

  .asc-progress-template-numbered_steps > .asc-progress-items > span,
  .asc-progress-template-check_steps > .asc-progress-items > span,
  .asc-progress-template-icon_steps > .asc-progress-items > span,
  .asc-progress-template-chevrons > .asc-progress-items > span,
  .asc-progress-template-vertical_timeline > .asc-progress-items > span {
    min-width: 96px;
    scroll-snap-align: start;
  }
}
