:root { --tw-color: #FF5C00; }

#traslochi-wizard-root,
#traslochi-wizard-root * {
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

#traslochi-wizard-root {
  width: 100%;
  color: #102033;
}

.tw-form-wrap {
  width: 100%;
  max-width: 660px;
  margin: 0 auto;
  padding: 20px;
}

.tw-form-header {
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-bottom: none;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px 14px 0 0;
}

.tw-brand-icon {
  width: 32px;
  height: 32px;
  background: var(--tw-color);
  color: #fff;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px rgba(255, 92, 0, .22);
}

.tw-form-logo {
  font-weight: 850;
  font-size: 19px;
  letter-spacing: -.02em;
  color: #121827;
  line-height: 1.1;
}

.tw-form-logo span {
  color: var(--tw-color);
}

.tw-form-progress {
  padding: 18px 24px 0;
  background: #fff;
  border-left: 1px solid #eef1f5;
  border-right: 1px solid #eef1f5;
}

.tw-form-progress-bar-bg {
  height: 4px;
  background: #edf0f4;
  border-radius: 999px;
  margin-top: 12px;
  overflow: hidden;
}

.tw-form-progress-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--tw-color), #ff7d2f);
  border-radius: 999px;
  transition: width .35s ease;
}

.tw-form-step-label {
  font-size: 13px;
  color: #667085;
  font-weight: 500;
}

.tw-form-step-label strong {
  color: var(--tw-color);
  font-weight: 800;
}

.tw-form-body {
  background: #ffffff;
  padding: 30px 24px 26px;
  border: 1px solid #eef1f5;
  border-top: none;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 45px rgba(16, 24, 40, .08);
}

.tw-form-title {
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 850;
  letter-spacing: -.04em;
  color: #102033;
  margin: 0 0 24px;
}

.tw-form-title span {
  font-size: 13px;
  font-weight: 600;
  color: #98a2b3;
  letter-spacing: 0;
}

.tw-field {
  margin-bottom: 18px;
}

.tw-field label,
.tw-small-label {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: #263548;
  margin-bottom: 7px;
}

.tw-field input,
.tw-field select {
  width: 100%;
  min-height: 56px;
  border: 1.5px solid #dde4ee;
  background: #f4f7fb;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 16px;
  color: #101828;
  outline: none;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.tw-field input:focus,
.tw-field select:focus {
  border-color: var(--tw-color);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 92, 0, .10);
}

.tw-field input.tw-valid {
  border-color: rgba(255, 92, 0, .65);
  background: #fff8f3;
}

.tw-field-hint {
  font-size: 12px;
  color: #98a2b3;
  margin-top: 6px;
}

.tw-radio-opt,
.tw-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px solid #e4e9f1;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.tw-option-card {
  align-items: flex-start;
}

.tw-radio-opt:hover,
.tw-option-card:hover {
  border-color: rgba(255, 92, 0, .45);
  background: #fffaf6;
  transform: translateY(-1px);
}

.tw-radio-opt.tw-selected,
.tw-option-card.tw-selected {
  border-color: var(--tw-color);
  background: #fff7f0;
  box-shadow: 0 10px 28px rgba(255, 92, 0, .10);
}

.tw-radio-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  transition: border-color .18s ease;
}

.tw-radio-opt.tw-selected .tw-radio-dot {
  border-color: var(--tw-color);
}

.tw-radio-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tw-color);
  display: none;
}

.tw-radio-opt.tw-selected .tw-radio-inner {
  display: block;
}

.tw-option-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #fff1e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: 0 0 auto;
}

.tw-option-card-text strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  color: #102033;
  margin-bottom: 4px;
}

.tw-option-card-text small {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #667085;
}

.tw-btn-primary,
.tw-btn-skip {
  width: 100%;
  min-height: 62px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}

.tw-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--tw-color);
  color: #fff;
  border: none;
  padding: 16px 22px;
  margin-top: 14px;
  box-shadow: 0 16px 34px rgba(255, 92, 0, .24);
}

.tw-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(255, 92, 0, .30);
}

.tw-btn-primary:disabled {
  background: #e5e8ed;
  color: #98a2b3;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.tw-btn-skip {
  background: transparent;
  border: none;
  color: var(--tw-color);
  padding: 12px;
  margin-top: 4px;
  min-height: 44px;
  box-shadow: none;
  letter-spacing: 0;
  text-transform: none;
}

.tw-free-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  color: var(--tw-color);
  margin-top: 16px;
  font-weight: 500;
}

.tw-error {
  color: #ef4444;
  font-size: 13px;
  margin: 8px 0 0;
}

.tw-info-banner {
  background: #fff7f0;
  border: 1px solid rgba(255, 92, 0, .22);
  color: #9a3412;
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.45;
}

.tw-property-block {
  border: 1px solid #edf1f6;
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  background: #fcfdff;
}

.tw-property-block h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 3px;
  color: #102033;
}

.tw-property-block p {
  font-size: 12px;
  color: #98a2b3;
  margin: 0 0 14px;
}

.tw-inventory-box {
  border: 1.5px solid #e4e9f1;
  border-radius: 14px;
  overflow: hidden;
  max-height: 310px;
  overflow-y: auto;
  background: #fff;
}

.tw-inventory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 16px;
  border-bottom: 1px solid #f0f2f5;
}

.tw-inventory-row:last-child {
  border-bottom: none;
}

.tw-inventory-row > span {
  font-size: 14px;
  color: #263548;
  line-height: 1.3;
}

.tw-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.tw-qty button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid #d0d7e2;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #263548;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tw-qty button:last-child {
  border-color: var(--tw-color);
  color: var(--tw-color);
}

.tw-qty button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.tw-qty strong {
  min-width: 18px;
  text-align: center;
  font-size: 14px;
}

.tw-privacy {
  text-align: center;
  font-size: 11px;
  line-height: 1.45;
  color: #98a2b3;
  margin: 12px 0 0;
}

.tw-success-box {
  text-align: center;
  padding: 42px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(16, 24, 40, .08);
}

.tw-success-icon {
  width: 70px;
  height: 70px;
  background: #fff0e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 30px;
}

.tw-success-box h2 {
  font-size: 28px;
  margin: 0 0 10px;
  color: #102033;
}

.tw-success-box p {
  color: #667085;
  line-height: 1.6;
  margin: 0;
}

/* Landing block */
.tw-landing-wrap {
  max-width: 760px;
  padding: 42px 20px;
  margin: 0;
}

.tw-landing-card {
  width: 100%;
}

.tw-landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.tw-landing-title {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.04em;
  color: #102033;
  font-weight: 850;
  margin: 0 0 8px;
}

.tw-landing-subtitle {
  color: #667085;
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 26px;
}

.tw-landing-search {
  width: 100%;
  max-width: 490px;
  display: flex;
  align-items: stretch;
  border: 1.8px solid var(--tw-color);
  border-radius: 16px;
  padding: 4px;
  background: #fff7f0;
  box-shadow: 0 18px 38px rgba(255, 92, 0, .10);
}

.tw-landing-search input {
  min-width: 0;
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 18px;
  min-height: 58px;
  font-size: 16px;
  color: #102033;
}

.tw-landing-search input::placeholder {
  color: #8b95a5;
}

.tw-landing-search button {
  flex: 0 0 auto;
  min-width: 116px;
  border: none;
  border-radius: 13px;
  background: var(--tw-color);
  color: #fff;
  font-weight: 850;
  font-size: 16px;
  letter-spacing: .04em;
  padding: 0 26px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 92, 0, .25);
  transition: transform .18s ease, box-shadow .18s ease;
}

.tw-landing-search button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(255, 92, 0, .32);
}

@media (max-width: 640px) {
  .tw-form-wrap,
  .tw-landing-wrap {
    padding: 14px;
  }

  .tw-form-header,
  .tw-form-progress,
  .tw-form-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tw-form-title {
    font-size: 30px;
  }

  .tw-form-logo {
    font-size: 17px;
  }

  .tw-landing-title {
    font-size: 31px;
  }

  .tw-landing-search {
    max-width: 100%;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
  }

  .tw-landing-search input {
    min-height: 52px;
    padding: 0 12px;
  }

  .tw-landing-search button {
    width: 100%;
    min-height: 54px;
  }

  .tw-btn-primary {
    min-height: 58px;
    font-size: 13px;
    letter-spacing: .08em;
  }

  .tw-inventory-row {
    padding: 12px;
  }
}

/* v2.2 client fixes: centered layout, content box, back navigation, stable inventory scroll */
#traslochi-wizard-root {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#traslochi-wizard-root > .tw-form-wrap,
#traslochi-wizard-root .tw-form-wrap {
  margin-left: auto;
  margin-right: auto;
}

.tw-btn-back {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 1.5px solid #e3e8ef;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.tw-btn-back:hover {
  border-color: rgba(255, 92, 0, .45);
  background: #fff7f0;
  color: var(--tw-color);
  transform: translateY(-1px);
}

.tw-landing-wrap {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
}

.tw-landing-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  align-items: center;
  gap: 28px;
}

.tw-landing-card,
.tw-content-box {
  min-width: 0;
}

.tw-content-box {
  background: #ffffff;
  border: 1px solid #eef1f5;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(16, 24, 40, .08);
}

.tw-content-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tw-color);
  background: #fff4ec;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.tw-content-box h3 {
  margin: 0 0 10px;
  color: #102033;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -.03em;
  font-weight: 850;
}

.tw-content-box p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.65;
}

.tw-content-box ul {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.tw-content-box li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #263548;
  font-size: 14px;
  line-height: 1.45;
}

.tw-content-box li span {
  color: var(--tw-color);
  font-weight: 900;
  flex: 0 0 auto;
}

.tw-content-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf1f6;
  font-size: 12px;
  line-height: 1.55;
  color: #98a2b3;
}

.tw-inventory-box {
  overscroll-behavior: contain;
  scroll-behavior: auto;
}

@media (max-width: 900px) {
  .tw-landing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tw-content-box {
    padding: 20px;
  }
}

.tw-whatsapp-box {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #dcfce7;
  background: #f0fdf4;
  border-radius: 14px;
}

.tw-whatsapp-box p {
  margin: 0 0 12px;
  color: #166534;
  font-size: 14px;
}

.tw-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(34, 197, 94, .22);
}

.tw-whatsapp-btn:hover {
  transform: translateY(-1px);
  filter: brightness(.96);
}
