/* BetterSell Quote Form — Figma-accurate */

:root {
  --bsqf-teal: #38ae9b;
  --bsqf-teal-dark: #2f9686;
  --bsqf-lime: #a6ce39;
  --bsqf-ink: #001523;
  --bsqf-muted: #556777;
  --bsqf-placeholder: #abb8c4;
  --bsqf-gray: #f8f9fa;
  --bsqf-med-gray: #c5ced6;
  --bsqf-white: #ffffff;
  --bsqf-danger: #e74c3c;
  --bsqf-font: "Manrope", "Segoe UI", sans-serif;
}

.bsqf {
  font-family: var(--bsqf-font);
  color: var(--bsqf-ink);
  background: #ffffff !important;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
}

/* Full white page around the form */
body:has(.bsqf),
.wp-site-blocks:has(.bsqf),
.entry-content:has(.bsqf),
.wp-block-post-content:has(.bsqf),
.is-layout-constrained:has(.bsqf) {
  background: #ffffff !important;
}

/* Break out of theme constrained content */
.entry-content .bsqf,
.wp-block-post-content .bsqf,
.is-layout-constrained > .bsqf {
  max-width: none !important;
  width: 100% !important;
  background: #ffffff !important;
}

.bsqf *,
.bsqf *::before,
.bsqf *::after {
  box-sizing: border-box;
}

/* ——— Stepper bar ——— */
.bsqf-stepper-wrap {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  background: var(--bsqf-gray);
  margin-bottom: 48px;
  overflow: hidden;
}

.bsqf-stepper {
  width: min(1440px, 100%);
  max-width: 100%;
  min-height: 166px;
  margin: 0 auto;
  padding: 25px clamp(16px, 8vw, 160px);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
}

.bsqf-stepper__item {
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
  flex-shrink: 0;
}

.bsqf-stepper__circle {
  width: 84px;
  height: 80px;
  border-radius: 100px;
  padding: 30px 20px;
  gap: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #c9d2d8;
  color: #fff;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.bsqf-stepper__circle span {
  font-family: var(--bsqf-font);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
}

.bsqf-stepper__item.is-active .bsqf-stepper__circle,
.bsqf-stepper__item.is-done .bsqf-stepper__circle {
  background: var(--bsqf-teal);
}

.bsqf-stepper__label {
  width: 84px;
  font-family: var(--bsqf-font);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  color: var(--bsqf-ink);
  text-align: center;
}

.bsqf-stepper__line {
  position: relative;
  width: 90px;
  height: 10px;
  flex: 0 0 90px;
  margin: 0;
  align-self: flex-start;
  margin-top: 35px; /* centers with 80px circle ≈ (80-10)/2 */
  background: transparent;
  border: none;
}

.bsqf-stepper__line::before {
  content: "";
  position: absolute;
  left: 0;
  right: 10px;
  top: 50%;
  border-top: 2px dotted #c5ced6;
  transform: translateY(-50%);
}

.bsqf-stepper__dot {
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #c5ced6;
  transition: background 0.3s ease;
}

.bsqf-stepper__line.is-active::before {
  border-top-color: #7a8a96;
}

.bsqf-stepper__line.is-active .bsqf-stepper__dot {
  background: var(--bsqf-teal);
}

/* ——— Titles ——— */
.bsqf-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 0 0 38px;
  font-family: var(--bsqf-font);
  font-weight: 700;
  font-size: 28px;
  line-height: 100%;
  letter-spacing: 0;
  color: var(--bsqf-ink);
}

.bsqf-title--lg {
  font-size: 35px;
  margin-bottom: 48px;
}

.bsqf-title__dots {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.bsqf-title__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
  background: var(--bsqf-teal);
}

.bsqf-title__dots--right i:last-child,
.bsqf-title__dots:not(.bsqf-title__dots--right) i:last-child {
  background: var(--bsqf-lime);
}

.bsqf-title__mobile {
  display: none;
}

.bsqf-title__desktop {
  display: inline;
}

/* ——— Panels (only one step visible) ——— */
.bsqf-panel {
  animation: bsqfFade 0.35s ease;
  background: #ffffff;
}

.bsqf-panel[hidden],
.bsqf-panel:not(.is-active) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.bsqf-field[hidden] {
  display: none !important;
}

.bsqf .bsqf-input[hidden] {
  display: none !important;
}

.bsqf-panel.is-active {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

.bsqf-panel__inner {
  width: 1231px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 24px 64px;
}

.bsqf-panel__inner--category {
  width: 1100px;
}

.bsqf-panel__inner--photos {
  width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes bsqfFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ——— Category boxes ——— */
.bsqf-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 0 auto 40px;
}

.bsqf-cat {
  position: relative;
  width: 180px;
  height: 138px;
  padding: 30px;
  border-radius: 20px;
  background: var(--bsqf-gray);
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1.5px solid transparent;
  isolation: isolate;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.bsqf-cat input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bsqf-cat__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 8px;
}

.bsqf-cat__img {
  max-width: 88px;
  max-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.bsqf-cat__label {
  font-family: var(--bsqf-font);
  font-size: 13px;
  font-weight: 700;
  color: #6b7575;
  text-align: center;
  line-height: 1.2;
  transition: color 0.2s ease;
}

/* Left-side chic light hover — fast */
.bsqf-cat__glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.75) 0%,
    rgba(166, 206, 57, 0.28) 18%,
    rgba(56, 174, 155, 0.18) 38%,
    transparent 62%
  );
  transform: translateX(-100%);
}

.bsqf-cat::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(
    180deg,
    transparent,
    #fff,
    var(--bsqf-lime),
    var(--bsqf-teal),
    transparent
  );
  opacity: 0;
  box-shadow:
    0 0 14px rgba(166, 206, 57, 0.55),
    6px 0 20px rgba(56, 174, 155, 0.28);
  transition: opacity 0.22s ease;
  z-index: 3;
}

.bsqf-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 22px 0 32px -18px rgba(56, 174, 155, 0.28);
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
  z-index: 1;
}

.bsqf-cat:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 174, 155, 0.4);
}

.bsqf-cat:hover .bsqf-cat__glow {
  opacity: 1;
  animation: bsqfLeftSweep 0.55s ease-out;
}

.bsqf-cat:hover::before,
.bsqf-cat:hover::after {
  opacity: 1;
}

.bsqf-cat:hover .bsqf-cat__img {
  transform: scale(1.05);
}

.bsqf-cat:hover .bsqf-cat__label {
  color: var(--bsqf-teal);
}

.bsqf-cat:has(input:checked),
.bsqf-cat.is-selected {
  border-color: var(--bsqf-teal);
  background: #f2fbf9;
}

.bsqf-cat:has(input:checked) .bsqf-cat__label,
.bsqf-cat.is-selected .bsqf-cat__label {
  color: var(--bsqf-teal);
}

.bsqf-cat:has(input:checked)::before,
.bsqf-cat.is-selected::before,
.bsqf-cat:has(input:checked)::after,
.bsqf-cat.is-selected::after {
  opacity: 1;
}

@keyframes bsqfLeftSweep {
  0% {
    transform: translateX(-110%);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateX(30%);
    opacity: 0;
  }
}

/* ——— Split layouts ——— */
.bsqf-split--details {
  position: relative;
  width: 1231px;
  max-width: 100%;
  min-height: 750px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 495px 600px;
  column-gap: 136px;
  align-items: start;
  justify-content: center;
}

.bsqf-split__art {
  padding-top: 227px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.bsqf-split__art img {
  width: 495px;
  max-width: 100%;
  height: auto;
  display: block;
}

.bsqf-split__form {
  width: 600px;
  max-width: 100%;
  min-height: 750px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.bsqf-split--contact {
  position: relative;
  width: 1231px;
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 495px 600px;
  column-gap: 136px;
  align-items: start;
  justify-content: center;
}

.bsqf-split__art--contact {
  position: relative;
  padding-top: 80px;
  width: 495px;
  max-width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bsqf-pattern {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}

.bsqf-pattern__img {
  width: 441px;
  height: 613px;
  max-width: none;
  object-fit: cover;
  opacity: 0.2;
  transform: rotate(-90deg);
  filter: brightness(0) invert(0.35) sepia(1) saturate(3) hue-rotate(130deg);
}

.bsqf-contact-phone {
  position: relative;
  z-index: 1;
  width: 220px !important;
  max-width: 55% !important;
  height: auto !important;
}

/* Contact step — desktop: 495px art + 136px gap + 600px form */
.bsqf-contact {
  position: relative;
  width: 1231px;
  max-width: 100%;
  min-height: 900px;
  margin: 0 auto;
  background: #ffffff;
  display: grid;
  grid-template-columns: 495px 600px;
  column-gap: 136px;
  align-items: start;
  justify-content: center;
}

.bsqf-contact__art {
  width: 495px;
  max-width: 495px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px;
  min-height: 500px;
}

.bsqf-contact__illus {
  width: 495px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.bsqf-contact__form {
  width: 600px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding-bottom: 40px;
}

.bsqf-contact__footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ——— Fields ——— */
.bsqf-fields {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: 100%;
  max-width: 600px;
}

.bsqf-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.bsqf-field__label {
  font-family: var(--bsqf-font);
  font-weight: 700;
  font-size: 15px;
  line-height: 100%;
  letter-spacing: 0;
  color: var(--bsqf-ink);
}

.bsqf-input {
  width: 600px;
  max-width: 100%;
  height: 59px;
  padding: 20px;
  border: none !important;
  border-radius: 10px;
  background-color: #f8f9fa !important;
  background-image: none;
  color: #001523 !important;
  font-family: var(--bsqf-font);
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-shadow: none !important;
  transition: box-shadow 0.2s ease, filter 0.2s ease;
}

/* Force contact fields identical to step 2 */
.bsqf-contact .bsqf-input,
.bsqf-panel[data-panel="4"] .bsqf-input,
.bsqf-panel[data-panel="2"] .bsqf-input {
  width: 100%;
  max-width: 600px;
  height: 59px;
  padding: 20px;
  border: none !important;
  border-radius: 10px !important;
  background-color: #f8f9fa !important;
  color: #001523 !important;
  font-family: var(--bsqf-font) !important;
  font-weight: 400 !important;
  font-size: 14px !important;
}

.bsqf-input::placeholder {
  color: var(--bsqf-placeholder);
  opacity: 1;
  font-weight: 400;
  font-size: 14px;
}

select.bsqf-input,
.bsqf-contact select.bsqf-input,
.bsqf-panel[data-panel="4"] select.bsqf-input,
.bsqf-panel[data-panel="2"] select.bsqf-input {
  background-color: #f8f9fa !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6' fill='none'%3E%3Cpath d='M0 0L6 6L12 0H0Z' fill='%2338AE9B'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 20px center !important;
  background-size: 12px 6px !important;
  padding-right: 44px !important;
  cursor: pointer;
}

.bsqf-input:hover {
  filter: brightness(0.97);
}

.bsqf-input:focus {
  box-shadow: 0 0 0 2px rgba(56, 174, 155, 0.25);
  filter: none;
}

.bsqf-input.is-invalid {
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.45);
}

.bsqf-field--textarea {
  gap: 0;
}

.bsqf-input--textarea,
textarea.bsqf-input {
  width: 600px;
  max-width: 100%;
  height: 145px;
  min-height: 145px;
  resize: none;
  padding: 20px;
  border-radius: 10px;
  background: var(--bsqf-gray);
  line-height: 1.4;
  gap: 10px;
}

/* ——— Upload ——— */
.bsqf-upload {
  width: 812px;
  max-width: 100%;
  height: 172px;
  margin: 0 auto 28px;
  padding: 30px 100px;
  border: 1px dashed #c5ced6;
  border-radius: 30px;
  background: #fff;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
  cursor: pointer;
}

.bsqf-upload.is-dragover {
  border-color: var(--bsqf-teal);
  background: #f3fbf9;
}

.bsqf-upload__icon {
  margin: 0;
  line-height: 0;
}

.bsqf-upload__title {
  margin: 0;
  font-family: var(--bsqf-font);
  font-weight: 700;
  font-size: 22px;
  line-height: 100%;
  text-align: center;
  color: var(--bsqf-ink);
}

@media (min-width: 900px) {
  .bsqf-upload__title {
    font-size: 28px;
  }
}

.bsqf-upload__browse {
  background: none;
  border: none;
  color: var(--bsqf-teal);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bsqf-upload__hint {
  margin: 0;
  font-family: var(--bsqf-font);
  font-weight: 400;
  font-size: 14px;
  line-height: 100%;
  color: var(--bsqf-muted);
}

.bsqf-details-submit {
  width: 812px;
  max-width: 100%;
  margin: 0 auto 28px;
  text-align: left;
}

.bsqf-details-submit__title {
  margin: 0 0 12px;
  font-family: var(--bsqf-font);
  font-weight: 700;
  font-size: 15px;
  color: var(--bsqf-ink);
}

.bsqf-details-submit__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsqf-details-submit__list li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 8px;
  font-family: var(--bsqf-font);
  font-size: 14px;
  color: var(--bsqf-ink);
}

.bsqf-details-submit__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bsqf-teal);
}

.bsqf-files {
  list-style: none;
  margin: 0 auto 28px;
  padding: 0;
  width: 812px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bsqf-file {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bsqf-gray);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.bsqf-file__thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  background: #dde5e5;
}

.bsqf-file__meta {
  min-width: 0;
}

.bsqf-file__name {
  display: block;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--bsqf-ink);
}

.bsqf-file__size {
  font-size: 12px;
  color: var(--bsqf-muted);
}

.bsqf-file__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #e2eaea;
}

.bsqf-file__bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--bsqf-teal);
  transition: width 0.25s ease;
}

.bsqf-file__pct {
  position: absolute;
  right: 52px;
  bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--bsqf-teal);
}

.bsqf-file__remove {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--bsqf-danger);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: none;
  overflow: hidden;
}

.bsqf-file__remove:hover,
.bsqf-file__remove:focus {
  background: var(--bsqf-danger);
  filter: none;
  outline: none;
}

.bsqf-file__check {
  width: 28px;
  height: 28px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.bsqf-file__check img {
  width: 28px;
  height: 28px;
  display: block;
  object-fit: contain;
}

.bsqf-file__check:hover {
  filter: none;
  background: transparent;
}

.bsqf-file__done {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #e7f8ef;
  color: #27ae60;
  font-size: 14px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.bsqf-file.is-done .bsqf-file__bar > span {
  width: 100%;
}

/* ——— Nav / buttons ——— */
.bsqf-nav {
  display: flex;
  align-items: center;
  width: 100%;
  margin-top: 8px;
}

.bsqf-nav--end {
  justify-content: flex-end;
}

.bsqf-nav--center {
  justify-content: center;
}

.bsqf-next,
.bsqf-back {
  background: transparent !important;
  border: none;
  font-family: var(--bsqf-font);
  cursor: pointer;
  padding: 8px 4px;
  box-shadow: none !important;
}

.bsqf-next {
  color: var(--bsqf-teal);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.bsqf-next:hover,
.bsqf-next:focus,
.bsqf-next:active {
  color: var(--bsqf-teal-dark);
  background: transparent !important;
  filter: brightness(0.92);
  outline: none;
}

.bsqf-next__sep {
  opacity: 0.7;
}

.bsqf-next__arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.bsqf-next:hover .bsqf-next__arrow {
  transform: translateX(3px);
}

.bsqf-submit {
  width: 100%;
  max-width: 600px;
  height: 56px;
  border: none;
  border-radius: 999px;
  background: var(--bsqf-teal);
  color: #fff;
  font-family: var(--bsqf-font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.25s ease, transform 0.2s ease;
  box-shadow: 0 10px 24px rgba(56, 174, 155, 0.28);
}

.bsqf-submit:hover {
  background: var(--bsqf-teal-dark);
  transform: translateY(-1px);
}

.bsqf-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.bsqf-check {
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--bsqf-font);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: var(--bsqf-ink);
  max-width: 600px;
  width: 100%;
  cursor: pointer;
}

.bsqf-check input {
  width: 30px;
  height: 30px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--bsqf-teal);
  cursor: pointer;
  border-radius: 4px;
}

.bsqf-info {
  display: flex;
  gap: 20px;
  align-items: center;
  background: #f8f9fa;
  border-radius: 20px;
  padding: 20px;
  max-width: 600px;
  width: 100%;
}

.bsqf-info__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  object-fit: contain;
}

.bsqf-info p {
  margin: 0;
  font-family: var(--bsqf-font);
  font-weight: 400;
  font-size: 13px;
  line-height: 1.45;
  color: var(--bsqf-ink);
}

.bsqf-error {
  margin: 16px auto 0;
  max-width: 600px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #ffecec;
  color: #a83232;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.bsqf-success {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
}

.bsqf-success[hidden] {
  display: none !important;
}

.bsqf-success__card {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  padding: 36px 28px 32px;
  text-align: center;
  box-shadow:
    0 4px 24px rgba(0, 21, 35, 0.08),
    0 1px 3px rgba(0, 21, 35, 0.06);
}

.bsqf-success__icon {
  margin-bottom: 16px;
  line-height: 0;
}

.bsqf-success__icon img {
  width: 56px;
  height: 56px;
  display: inline-block;
}

.bsqf-success__heading {
  margin: 0 0 8px;
  font-family: var(--bsqf-font);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.2;
  color: var(--bsqf-ink);
}

.bsqf-success__text {
  margin: 0;
  color: var(--bsqf-muted);
  font-size: 14px;
  line-height: 1.45;
}

.bsqf-success__ref {
  margin: 16px 0 0;
  color: var(--bsqf-teal);
  font-size: 14px;
  font-weight: 600;
}

.bsqf.is-success {
  min-height: 60vh;
}

/* Kill theme button red/hover bleed on Next */
.bsqf .bsqf-next:hover,
.bsqf button.bsqf-next:hover,
.entry-content .bsqf .bsqf-next:hover,
.wp-block-post-content .bsqf .bsqf-next:hover {
  background-color: transparent !important;
  background-image: none !important;
}

/* ——— Responsive ——— */
@media (max-width: 1200px) {
  .bsqf-stepper {
    padding: 25px 60px;
  }

  .bsqf-split--details {
    grid-template-columns: 1fr;
    column-gap: 0;
    min-height: 0;
  }

  .bsqf-split__art {
    padding-top: 0;
    justify-content: center;
    margin-bottom: 24px;
  }

  .bsqf-split__form {
    min-height: 0;
    margin: 0 auto;
  }
}

/* ——— Mobile (Figma) ——— */
@media (max-width: 767px) {
  /* Stepper container */
  .bsqf-stepper-wrap {
    width: 100%;
    max-width: 393px;
    margin: 0 auto;
    left: auto;
    right: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
  }

  .bsqf-stepper {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 25px 20px;
    min-height: 457px;
    width: 100%;
    gap: 0;
  }

  .bsqf-stepper__item {
    flex-direction: row;
    align-items: center;
    width: auto;
    gap: 16px;
    height: auto;
    flex: 0 0 auto;
  }

  .bsqf-stepper__circle {
    width: 64px;
    min-width: 64px;
    height: 40px;
    padding: 10px;
    gap: 10px;
    border-radius: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .bsqf-stepper__circle span {
    font-family: var(--bsqf-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0;
  }

  .bsqf-stepper__label {
    width: auto;
    text-align: left;
    font-family: var(--bsqf-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 100%;
    color: var(--bsqf-ink);
    white-space: nowrap;
  }

  /*
    Connector: 20px gap above, 40px dashed line (#001523),
    dot at tip, 20px gap below. Left-aligned with pill.
  */
  .bsqf-stepper__line {
    display: block;
    position: relative;
    width: 10px;
    height: 80px;
    flex: 0 0 80px;
    min-height: 80px;
    margin: 0;
    padding: 0;
    align-self: flex-start;
    background: transparent;
  }

  .bsqf-stepper__line::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 0;
    width: 0;
    height: 40px;
    border: none;
    border-left: 1px dashed #001523;
    background: transparent;
    transform: none;
    right: auto;
    bottom: auto;
  }

  .bsqf-stepper__line::after {
    display: none;
    content: none;
  }

  .bsqf-stepper__dot {
    position: absolute;
    top: 55px;
    bottom: auto;
    left: 0;
    right: auto;
    margin: 0;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c5ced6;
    border: none;
    z-index: 1;
  }

  .bsqf-stepper__line.is-active::before {
    border-left-color: #001523;
  }

  .bsqf-stepper__line.is-active .bsqf-stepper__dot {
    background: var(--bsqf-teal);
    border: none;
  }

  /* Panels */
  .bsqf-panel__inner {
    padding: 28px 20px 40px;
    max-width: 393px;
    margin: 0 auto;
    width: 100%;
  }

  .bsqf-panel__inner--category,
  .bsqf-panel__inner--photos {
    width: 100%;
  }

  /* Titles */
  .bsqf-title,
  .bsqf-title--lg {
    font-size: 22px;
    gap: 12px;
    margin-bottom: 28px;
    width: 100%;
    max-width: 353px;
    margin-left: auto;
    margin-right: auto;
  }

  .bsqf-title__desktop {
    display: none;
  }

  .bsqf-title__mobile {
    display: inline;
  }

  /* Category grid — 2 columns */
  .bsqf-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    justify-items: center;
    max-width: 353px;
    margin-left: auto;
    margin-right: auto;
  }

  .bsqf-cat {
    width: 100%;
    max-width: 180px;
    height: 138px;
    padding: 24px 16px;
  }

  .bsqf-cat:nth-child(5) {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 180px;
  }

  /* Hide illustrations on mobile */
  .bsqf-split__art,
  .bsqf-contact__art {
    display: none !important;
  }

  /* Full-width containers + fields 353×59 */
  .bsqf-split--details,
  .bsqf-split--contact,
  .bsqf-contact {
    width: 100% !important;
    max-width: 353px !important;
    min-height: 0;
    margin: 0 auto;
    display: block !important;
    grid-template-columns: none !important;
    column-gap: 0 !important;
  }

  .bsqf-split__form,
  .bsqf-contact__form {
    width: 100% !important;
    max-width: 353px !important;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .bsqf-fields {
    gap: 30px;
    width: 100% !important;
    max-width: 353px !important;
    margin: 0;
    padding: 0;
  }

  .bsqf-field {
    gap: 10px;
    width: 100% !important;
    max-width: 353px !important;
    margin: 0;
    padding: 0;
  }

  .bsqf-field__label {
    font-family: var(--bsqf-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 100%;
    color: var(--bsqf-ink);
    width: 100%;
  }

  .bsqf-input:not(textarea):not(.bsqf-input--textarea),
  .bsqf-contact .bsqf-input:not(textarea):not(.bsqf-input--textarea),
  .bsqf-panel[data-panel="4"] .bsqf-input:not(textarea):not(.bsqf-input--textarea),
  .bsqf-panel[data-panel="2"] .bsqf-input:not(textarea):not(.bsqf-input--textarea) {
    display: block;
    width: 100% !important;
    max-width: 353px !important;
    height: 59px !important;
    min-height: 59px !important;
    padding: 20px !important;
    gap: 10px;
    border-radius: 10px !important;
    background-color: #f8f9fa !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  select.bsqf-input,
  .bsqf-contact select.bsqf-input,
  .bsqf-panel[data-panel="4"] select.bsqf-input,
  .bsqf-panel[data-panel="2"] select.bsqf-input {
    display: block;
    width: 100% !important;
    max-width: 353px !important;
    height: 59px !important;
    min-height: 59px !important;
    padding: 20px !important;
    padding-right: 44px !important;
    gap: 10px;
    border-radius: 10px !important;
    justify-content: space-between;
    background-color: #f8f9fa !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='6' viewBox='0 0 12 6' fill='none'%3E%3Cpath d='M0 0L6 6L12 0H0Z' fill='%2338AE9B'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 12px 6px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .bsqf-input--textarea,
  textarea.bsqf-input,
  textarea.bsqf-input.bsqf-input--textarea,
  .bsqf-panel[data-panel="2"] textarea.bsqf-input,
  .bsqf-panel[data-panel="2"] .bsqf-input--textarea,
  .bsqf-panel[data-panel="2"] textarea.bsqf-input.bsqf-input--textarea,
  .bsqf-split__form textarea.bsqf-input,
  .bsqf-field--textarea textarea.bsqf-input {
    display: block;
    width: 100% !important;
    max-width: 353px !important;
    height: 145px !important;
    min-height: 145px !important;
    max-height: 145px !important;
    padding: 20px !important;
    gap: 10px;
    border-radius: 10px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    resize: none !important;
  }

  .bsqf-contact__footer,
  .bsqf-check,
  .bsqf-info {
    width: 100% !important;
    max-width: 353px !important;
    margin-left: 0;
    margin-right: 0;
  }

  /* Upload — 353×203 */
  .bsqf-upload {
    width: 100%;
    max-width: 353px;
    height: 203px;
    min-height: 203px;
    margin-left: auto;
    margin-right: auto;
    padding: 30px 16px;
    border-radius: 30px;
    gap: 10px;
    justify-content: center;
  }

  .bsqf-upload__title {
    font-family: var(--bsqf-font);
    font-weight: 600;
    font-size: 22px;
    line-height: 1.2;
    text-align: center;
  }

  .bsqf-upload__hint {
    font-family: var(--bsqf-font);
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    text-align: center;
    color: #556777;
  }

  .bsqf-files {
    width: 100%;
    max-width: 353px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Navigation — centered Next */
  .bsqf-nav {
    justify-content: center !important;
    margin-top: 20px;
  }

  .bsqf-nav--end,
  .bsqf-nav--center,
  .bsqf-nav--between {
    justify-content: center !important;
  }

  .bsqf-back {
    display: none;
  }

  /* Submit & info */
  .bsqf-submit {
    height: 54px;
    font-size: 15px;
    max-width: 353px;
    margin-left: auto;
    margin-right: auto;
  }

  .bsqf-check {
    align-items: flex-start;
    gap: 14px;
    max-width: 353px;
    margin: 0 auto;
  }

  .bsqf-info {
    align-items: flex-start;
    padding: 16px;
    border-radius: 16px;
    max-width: 353px;
    margin: 0 auto;
  }

  .bsqf-info p {
    font-size: 12px;
  }

  .bsqf-contact__footer {
    gap: 16px;
    max-width: 353px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 900px) and (min-width: 768px) {
  .bsqf-stepper {
    min-height: auto;
    padding: 20px 24px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .bsqf-stepper__line {
    display: none;
  }

  .bsqf-title,
  .bsqf-title--lg {
    font-size: 24px;
    gap: 16px;
  }

  .bsqf-upload {
    height: auto;
    min-height: 160px;
    padding: 28px 24px;
  }

  .bsqf-upload__title {
    font-size: 20px;
  }

  .bsqf-contact {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .bsqf-contact__art {
    display: none;
  }
}

@media (max-width: 400px) {
  .bsqf-stepper {
    padding: 25px 20px;
  }

  .bsqf-panel__inner {
    padding: 28px 20px 40px;
    max-width: 393px;
  }

  .bsqf-cat {
    max-width: none;
    height: 124px;
    padding: 18px 12px;
  }

  .bsqf-cat:nth-child(5) {
    max-width: none;
    width: calc(50% - 8px);
  }

  .bsqf-categories {
    gap: 12px;
  }

  .bsqf-stepper__circle {
    width: 64px;
    min-width: 64px;
    height: 40px;
    padding: 10px;
  }

  .bsqf-stepper__circle span {
    font-size: 15px;
  }

  .bsqf-stepper__label {
    font-size: 15px;
  }

  .bsqf-stepper__line {
    margin-left: 0;
    height: 80px;
    flex: 0 0 80px;
    min-height: 80px;
  }
}
