body.tp-quote-step-preview {
  --tp-step-ink: #111827;
  --tp-step-muted: #667085;
  --tp-step-line: #d9e2ef;
  --tp-step-blue: #0875e1;
  --tp-step-blue-soft: #eaf3ff;
  background: #f4f7fb !important;
  color: var(--tp-step-ink);
}

.tp-quote-step-preview #quote-request-header {
  padding: 128px 24px 22px !important;
  background: #f4f7fb !important;
}

.tp-quote-step-preview #quote-request-header .section-header {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto !important;
}

.tp-quote-step-preview #quote-request-header h1 {
  margin: 8px 0 0;
  color: var(--tp-step-ink) !important;
  font-size: clamp(32px, 4vw, 52px) !important;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.tp-quote-step-preview .wrap {
  width: min(1440px, calc(100% - 48px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 0 96px !important;
}

.tp-quote-step-preview .glass-card {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.tp-quote-step-preview .quote-simple-notice[hidden],
.tp-quote-step-preview .quote-start-card[hidden] {
  display: none !important;
}

.tp-step-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  border: 1px solid var(--tp-step-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.tp-step-nav li + li {
  border-left: 1px solid var(--tp-step-line);
}

.tp-step-nav button {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-rows: auto auto;
  width: 100%;
  min-height: 86px;
  padding: 17px 18px;
  border: 0;
  border-radius: 0;
  background: #fff;
  color: var(--tp-step-muted);
  text-align: left;
  cursor: pointer;
}

.tp-step-nav button:disabled {
  cursor: default;
  opacity: 0.66;
}

.tp-step-nav button > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  align-self: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--tp-step-line);
  border-radius: 50%;
  background: #fff;
  color: #667085;
  font-weight: 600;
}

.tp-step-nav b {
  align-self: end;
  color: var(--tp-step-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.tp-step-nav small {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.3;
}

.tp-step-nav li.is-current button {
  background: var(--tp-step-blue-soft);
}

.tp-step-nav li.is-current button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--tp-step-blue);
  content: "";
}

.tp-step-nav li.is-current button > span,
.tp-step-nav li.is-complete button > span {
  border-color: var(--tp-step-blue);
  background: var(--tp-step-blue);
  color: #fff;
}

.tp-step-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
}

.tp-step-main,
.tp-step-aside {
  min-width: 0;
}

.tp-step-main {
  border: 1px solid var(--tp-step-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(28, 48, 76, 0.08);
  overflow: hidden;
}

.tp-step-main #uploadForm {
  margin: 0;
}

.tp-step-panel[hidden] {
  display: none !important;
}

.tp-step-panel {
  min-height: 610px;
  padding: 34px 38px 18px;
}

.tp-step-panel-head {
  position: static !important;
  inset: auto !important;
  z-index: auto !important;
  display: block !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 28px;
  padding-bottom: 24px;
  background: transparent !important;
  backdrop-filter: none !important;
  border-bottom: 1px solid var(--tp-step-line);
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}

.tp-step-panel-head > span {
  color: var(--tp-step-blue);
  font-size: 12px;
  font-weight: 700;
}

.tp-step-panel-head h2 {
  margin: 7px 0 7px;
  color: var(--tp-step-ink);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.tp-step-panel-head p {
  margin: 0;
  color: var(--tp-step-muted);
  font-size: 15px;
}

.tp-step-panel > .section {
  margin: 0 !important;
  padding: 24px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #e7edf5 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tp-step-panel > .section:last-of-type {
  border-bottom: 0 !important;
}

.tp-quote-step-preview .section .label,
.tp-quote-step-preview .section label.label {
  color: #344054 !important;
  font-weight: 600 !important;
}

.tp-quote-step-preview .section .input,
.tp-quote-step-preview .section input[type="text"],
.tp-quote-step-preview .section input[type="email"],
.tp-quote-step-preview .section input[type="date"],
.tp-quote-step-preview .section select,
.tp-quote-step-preview .section textarea {
  border-color: #cdd8e6 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: var(--tp-step-ink) !important;
  box-shadow: none !important;
}

.tp-quote-step-preview .section .input:focus,
.tp-quote-step-preview .section input:focus,
.tp-quote-step-preview .section select:focus,
.tp-quote-step-preview .section textarea:focus {
  border-color: var(--tp-step-blue) !important;
  outline: 3px solid rgba(8, 117, 225, 0.12) !important;
}

.tp-quote-step-preview .dz-drop-area {
  border: 1px dashed #9fb7d5 !important;
  border-radius: 8px !important;
  background: #f8fbff !important;
}

.tp-step-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 16px 38px;
  border-top: 1px solid var(--tp-step-line);
  background: #f8fafc;
}

.tp-step-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 7px;
  font-weight: 600;
}

.tp-step-actions button[hidden] {
  display: none !important;
}

.tp-step-back {
  border: 1px solid #cdd8e6;
  background: #fff;
  color: #344054;
}

.tp-step-next {
  border: 1px solid var(--tp-step-blue);
  background: var(--tp-step-blue);
  color: #fff;
}

.tp-step-actions p {
  margin: 0;
  color: #c2413b;
  font-size: 13px;
  text-align: center;
}

.tp-step-aside {
  position: sticky;
  top: 96px;
  border: 1px solid var(--tp-step-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(28, 48, 76, 0.07);
  overflow: hidden;
}

.tp-step-aside-head {
  padding: 23px 24px;
  border-bottom: 1px solid var(--tp-step-line);
  background: #10243e;
  color: #fff;
}

.tp-step-aside-head span {
  color: #9fc9f7;
  font-size: 12px;
  font-weight: 700;
}

.tp-step-aside-head strong {
  display: block;
  margin-top: 8px;
  color: #fff !important;
  font-size: 24px;
}

html body.tp-quote-step-preview .glass-card .tp-step-aside-head strong {
  color: #fff !important;
}

.tp-step-aside-head p {
  margin: 6px 0 0;
  color: #d7e4f2;
  font-size: 13px;
}

.tp-step-summary-section {
  margin: 0 !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.tp-step-summary-section .quote-live-summary {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.tp-step-summary-section .quote-live-summary-card {
  padding: 17px !important;
  border: 1px solid #dde5ef !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.tp-step-summary-section .quote-live-summary-grid {
  grid-template-columns: 1fr !important;
}

.tp-step-summary-section .quote-live-summary-item {
  padding: 11px 0 !important;
  border-bottom: 1px solid #edf1f6;
}

.tp-step-summary-section .quote-live-summary-item:last-child {
  border-bottom: 0;
}

.tp-step-panel .quote-submit-actions {
  margin: 26px 0 8px !important;
  padding: 24px !important;
  border: 1px solid #cfe0f4 !important;
  border-radius: 8px !important;
  background: #f4f9ff !important;
}

.tp-step-panel .btn-submit {
  border-radius: 7px !important;
  background: var(--tp-step-blue) !important;
  color: #fff !important;
}

.tp-quote-step-preview .quote-mobile-sticky-actions {
  display: none !important;
}

@media (max-width: 1080px) {
  .tp-step-layout {
    grid-template-columns: minmax(0, 1fr) 310px;
  }

  .tp-step-panel {
    padding-right: 26px;
    padding-left: 26px;
  }
}

@media (max-width: 860px) {
  .tp-quote-step-preview #quote-request-header {
    padding-top: 104px !important;
  }

  .tp-quote-step-preview #quote-request-header .section-header,
  .tp-quote-step-preview .wrap {
    width: min(100% - 28px, 720px) !important;
  }

  .tp-step-nav {
    grid-template-columns: repeat(4, minmax(132px, 1fr));
    overflow-x: auto;
  }

  .tp-step-nav button {
    min-height: 76px;
    padding: 14px;
  }

  .tp-step-layout {
    grid-template-columns: 1fr;
  }

  .tp-step-aside {
    position: static;
    order: -1;
  }

  .tp-step-summary-section {
    display: none;
  }

  .tp-step-aside-head {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }

  .tp-step-aside-head strong {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    margin: 0;
  }

  .tp-step-panel {
    min-height: 0;
    padding: 26px 20px 12px;
  }

  .tp-step-actions {
    grid-template-columns: 1fr 1fr;
    padding: 14px 20px;
  }

  .tp-step-actions p {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  .tp-step-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
  }

  .tp-step-nav li:nth-child(3) {
    border-top: 1px solid var(--tp-step-line);
    border-left: 0;
  }

  .tp-step-nav li:nth-child(4) {
    border-top: 1px solid var(--tp-step-line);
  }

  .tp-step-panel .section-grid-2 {
    grid-template-columns: 1fr !important;
  }

  .tp-step-panel-head h2 {
    font-size: 24px;
  }

  .tp-step-actions {
    gap: 10px;
  }

  .tp-step-actions button {
    min-width: 0;
    padding: 0 12px;
  }
}

/* Sample-aligned quote layout. Keep the production form controls and handlers intact. */
body.tp-quote-step-preview {
  --tp-step-ink: #17191f;
  --tp-step-muted: #687181;
  --tp-step-subtle: #8b94a3;
  --tp-step-line: #dce3eb;
  --tp-step-line-strong: #c7d1de;
  --tp-step-blue: #086bd8;
  --tp-step-blue-soft: #edf5ff;
  --tp-step-teal: #17867e;
  background: #f3f6fa !important;
  color: var(--tp-step-ink);
  font-family: Pretendard, "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tp-quote-step-preview .blob-container {
  display: none !important;
}

.tp-quote-step-preview #quote-request-header {
  display: none !important;
}

.tp-quote-step-preview .wrap {
  width: min(1240px, calc(100% - 48px)) !important;
  padding: 146px 0 96px !important;
  font-size: 16px;
  line-height: normal;
}

.tp-step-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.tp-step-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin: 0 0 12px;
  padding: 6px 13px;
  border: 1px solid #b9d7fb;
  border-radius: 999px;
  background: #ffffff;
  color: var(--tp-step-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.tp-step-eyebrow span {
  display: none;
}

.tp-step-page-heading h2 {
  margin: 0;
  color: var(--tp-step-ink) !important;
  font-size: clamp(36px, 3.2vw, 46px) !important;
  font-weight: 700;
  line-height: 1.08 !important;
  letter-spacing: 0 !important;
}

.tp-step-page-heading > div > p:last-child {
  margin: 13px 0 0;
  color: var(--tp-step-muted);
  font-size: 15px;
  line-height: 1.6;
}

.tp-step-save-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  color: var(--tp-step-teal);
  font-size: 13px;
  font-weight: 500;
}

.tp-step-save-state.is-saving {
  color: #a56300;
}

.tp-step-nav {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 30px 0 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
  scroll-margin-top: 118px;
}

.tp-quote-step-preview .quote-draft-notice {
  display: none !important;
}

.tp-step-nav li,
.tp-step-nav li + li {
  border: 0;
  border-bottom: 3px solid var(--tp-step-line);
}

.tp-step-nav li.is-current,
.tp-step-nav li.is-complete {
  border-color: var(--tp-step-blue);
}

.tp-step-nav button {
  grid-template-columns: 28px auto;
  grid-template-rows: 22px 18px;
  min-height: 62px;
  align-items: center;
  justify-content: start;
  gap: 0 10px;
  padding: 6px 12px 10px 0;
  background: transparent !important;
  color: var(--tp-step-muted);
}

.tp-step-nav button:disabled {
  opacity: 1;
}

.tp-step-nav button > span {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
  border-color: var(--tp-step-line-strong);
  color: var(--tp-step-muted);
  font-size: 11px;
}

.tp-step-nav b {
  align-self: end;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
}

.tp-step-nav small {
  align-self: start;
  margin: 0;
  color: var(--tp-step-subtle);
  font-size: 10px;
  font-weight: 400;
}

.tp-step-nav li.is-current button,
.tp-step-nav li.is-complete button {
  color: var(--tp-step-ink);
}

.tp-step-nav li.is-current button::after {
  display: none;
}

.tp-step-layout {
  grid-template-columns: minmax(0, 1fr) 328px;
  gap: 20px;
}

.tp-step-main,
.tp-step-aside {
  border: 1px solid var(--tp-step-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(43, 62, 88, 0.08);
}

.tp-step-main {
  overflow: hidden;
}

.tp-step-main #uploadForm {
  padding: 30px;
}

.tp-step-panel {
  min-height: 560px;
  padding: 0;
}

.tp-step-panel.is-active {
  animation: tp-step-enter 220ms ease both;
}

@keyframes tp-step-enter {
  from {
    opacity: 0;
    transform: translateX(8px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tp-step-panel-head {
  margin-bottom: 26px;
  padding: 0;
  border: 0;
}

.tp-step-panel-head > span {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  font-weight: 700;
}

.tp-step-panel-head h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.22;
}

.tp-step-panel-head p {
  margin: 8px 0 0;
  color: var(--tp-step-muted);
  font-size: 14px;
  line-height: 1.55;
}

.tp-step-panel > .section {
  margin: 0 0 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.tp-step-panel > .section:last-of-type {
  margin-bottom: 0 !important;
}

.tp-step-panel .quote-essential-section::before {
  display: none !important;
}

.tp-step-panel .section-grid-2 {
  gap: 18px !important;
}

.tp-quote-step-preview .section .input,
.tp-quote-step-preview .section input[type="text"],
.tp-quote-step-preview .section input[type="email"],
.tp-quote-step-preview .section input[type="date"],
.tp-quote-step-preview .section select,
.tp-quote-step-preview .section textarea {
  min-height: 48px;
  padding: 11px 13px !important;
  border: 1px solid var(--tp-step-line-strong) !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: var(--tp-step-ink) !important;
  font-size: 16px !important;
  line-height: normal;
}

.tp-step-panel .label,
.tp-step-panel .quote-no-file-subfield > span,
.tp-step-panel .ml-subfield > span,
.tp-step-panel .quote-option-subfield > span {
  color: var(--tp-step-ink) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: normal;
}

.tp-step-panel[data-tp-step="1"] > .section > .field > .label,
.tp-step-panel[data-tp-step="1"] .ml-upload-top,
.tp-step-panel[data-tp-step="1"] .quote-upload-state.is-empty,
.tp-step-panel[data-tp-step="1"] .quote-no-file-badge-slot {
  display: none !important;
}

.tp-step-panel[data-tp-step="1"] > .section > .field > .control {
  width: 100%;
}

.tp-step-panel[data-tp-step="1"] .ml-upload-shell {
  width: 100%;
}

.tp-step-panel[data-tp-step="1"] .dz-drop-area {
  min-height: 190px;
  padding: 24px;
  border: 1px dashed #92bce9 !important;
  border-radius: 8px !important;
  background: var(--tp-step-blue-soft) !important;
}

.tp-step-panel[data-tp-step="1"] .dz-icon {
  width: 48px !important;
  height: 48px !important;
  margin: 0 auto 10px !important;
  padding: 12px;
  border-radius: 50%;
  background: #fff;
  color: var(--tp-step-blue) !important;
  box-shadow: 0 5px 16px rgba(8, 107, 216, 0.1);
}

.tp-step-panel[data-tp-step="1"] .dz-msg strong,
.tp-step-panel[data-tp-step="1"] .dz-msg span {
  display: block;
}

.tp-step-panel[data-tp-step="1"] .dz-msg strong {
  color: var(--tp-step-ink) !important;
  font-size: 15px;
}

.tp-step-panel[data-tp-step="1"] .dz-sub-msg {
  margin-top: 5px;
  color: var(--tp-step-muted) !important;
  font-size: 12px;
}

.tp-step-panel[data-tp-step="1"] .dz-click-hint {
  display: none !important;
}

.tp-step-panel[data-tp-step="1"] #quoteUploadSummary.tp-step-upload-status {
  display: block;
  width: 100% !important;
  margin: 8px 0 0;
  color: var(--tp-step-muted) !important;
  font-size: 11px !important;
  line-height: 1.45;
  text-align: center !important;
}

.tp-step-panel[data-tp-step="1"] #quoteUploadSummary.tp-step-upload-status[hidden] {
  display: none !important;
}

.tp-step-panel[data-tp-step="1"] .file-list:not(:empty) {
  margin-top: 14px !important;
}

.tp-step-panel[data-tp-step="1"] .quote-no-file-detail,
.tp-step-panel[data-tp-step="1"] .quote-no-file-detail.is-hidden {
  display: block !important;
  margin-top: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.tp-step-panel[data-tp-step="1"] .quote-no-file-detail__head {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--tp-step-muted);
  font-size: 11px;
  text-align: center;
}

.tp-step-panel[data-tp-step="1"] .quote-no-file-detail__head::before,
.tp-step-panel[data-tp-step="1"] .quote-no-file-detail__head::after {
  height: 1px;
  flex: 1;
  background: var(--tp-step-line);
  content: "";
}

.tp-step-panel[data-tp-step="1"] .quote-no-file-detail__head > div {
  padding: 0 12px;
}

.tp-step-panel[data-tp-step="1"] .quote-no-file-detail__head strong {
  color: var(--tp-step-muted) !important;
  font-size: 11px;
  font-weight: 500;
}

.tp-step-panel[data-tp-step="1"] .quote-no-file-detail__head span {
  display: none;
}

.tp-step-panel[data-tp-step="1"] .quote-no-file-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tp-step-panel[data-tp-step="1"] .quote-security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 15px !important;
  border: 1px solid var(--tp-step-line) !important;
  border-radius: 6px !important;
  background: #f4f6f9 !important;
  color: var(--tp-step-muted) !important;
  font-size: 12px;
  line-height: 1.5;
}

.tp-step-panel[data-tp-step="1"] .quote-security-note i {
  color: var(--tp-step-teal) !important;
}

.tp-step-panel[data-tp-step="1"] .quote-security-note strong {
  display: inline;
  margin-right: 4px;
  color: var(--tp-step-ink) !important;
  font-weight: 600;
}

.tp-step-panel .opt,
.tp-step-panel .opt > span,
.tp-step-panel .ml-toggle,
.tp-step-panel .ml-toggle > span,
.tp-step-panel .dz-msg strong,
.tp-step-panel .quote-upload-state strong,
.tp-step-panel .quote-option-field-card strong {
  font-weight: 500 !important;
}

.tp-step-panel strong {
  font-weight: 600;
}

.tp-step-panel[data-tp-step="2"] .ml-base-language-row,
.tp-step-panel[data-tp-step="2"] .ml-base-language-selects,
.tp-step-panel[data-tp-step="2"] .ml-panel {
  width: 100%;
}

.tp-step-panel[data-tp-step="2"] .ml-base-language-selects {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.tp-step-panel[data-tp-step="2"] .ml-toggle-row {
  padding: 14px 16px;
  border: 1px solid var(--tp-step-line);
  border-radius: 6px;
  background: #f8fafc;
}

.tp-step-panel[data-tp-step="2"] .ml-panel {
  margin-top: 16px;
  background: #fff;
}

.tp-step-panel[data-tp-step="2"] .tp-deadline-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 12px !important;
  align-items: center !important;
}

.tp-step-panel[data-tp-step="2"] .tp-deadline-row > #txtDeadLine1,
.tp-step-panel[data-tp-step="2"] .tp-deadline-time > #selDeadHour {
  width: 100% !important;
}

.tp-step-panel[data-tp-step="2"] .tp-deadline-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.tp-step-panel[data-tp-step="2"] .tp-speed-options {
  display: grid !important;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px !important;
  margin-left: 0 !important;
}

.tp-step-panel[data-tp-step="2"] .tp-speed-options .opt {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid var(--tp-step-line);
  border-radius: 6px;
  background: #fff;
  text-align: center;
}

.tp-step-panel[data-tp-step="2"] .tp-speed-options .opt:has(input:checked) {
  border-color: var(--tp-step-blue);
  background: var(--tp-step-blue-soft);
}

.tp-step-panel[data-tp-step="3"] .preset-options {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tp-step-panel[data-tp-step="3"] .preset-options .opt {
  min-height: 78px;
  padding: 15px;
  border: 1px solid var(--tp-step-line);
  border-radius: 7px;
  background: #fff;
  color: var(--tp-step-ink);
}

.tp-step-panel[data-tp-step="3"] .preset-options .opt:has(input:checked) {
  border-color: var(--tp-step-blue);
  background: var(--tp-step-blue-soft);
}

.tp-step-panel .quote-submit-actions {
  margin: 24px 0 0 !important;
  padding: 20px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--tp-step-line) !important;
  background: transparent !important;
}

.tp-step-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
  margin-top: 28px;
  padding: 22px 0 0;
  border-top: 1px solid var(--tp-step-line);
  background: transparent;
}

.tp-step-actions p {
  align-self: center;
  flex: 1;
}

.tp-step-actions button {
  min-height: 46px;
  padding: 11px 17px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
}

.tp-step-actions .tp-step-next,
.tp-step-panel .btn-submit {
  font-weight: 700 !important;
}

.tp-step-aside {
  top: 122px;
  overflow: hidden;
}

.tp-step-aside-head {
  display: block;
  padding: 20px 22px;
  border-bottom: 1px solid var(--tp-step-line);
  background: var(--tp-step-blue-soft);
  color: var(--tp-step-ink);
  line-height: normal;
}

.tp-step-aside-head > span {
  color: var(--tp-step-blue);
  font-size: 10px;
  font-weight: 700;
}

.tp-step-aside-head > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 3px;
}

.tp-step-aside-head strong,
html body.tp-quote-step-preview .glass-card .tp-step-aside-head strong {
  display: block;
  margin: 0;
  color: var(--tp-step-ink) !important;
  font-size: 18px;
  font-weight: 700;
}

.tp-step-aside-head small {
  color: var(--tp-step-muted);
  font-size: 11px;
  font-weight: 500;
}

.tp-step-aside-body dl {
  margin: 0;
  padding: 8px 22px;
}

.tp-step-aside-body dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--tp-step-line);
  font-size: 12px;
  line-height: normal;
}

.tp-step-aside-body dl div:last-child {
  border-bottom: 0;
}

.tp-step-aside-body dt {
  color: var(--tp-step-muted);
}

.tp-step-aside-body dd {
  margin: 0;
  color: var(--tp-step-ink);
  font-weight: 500;
  overflow-wrap: anywhere;
  text-align: right;
}

.tp-step-summary-status {
  display: flex;
  gap: 10px;
  margin: 6px 12px 12px;
  padding: 14px;
  border-radius: 6px;
  background: #f4f6f9;
}

.tp-step-summary-status > i {
  flex: 0 0 auto;
  color: var(--tp-step-teal);
  font-size: 18px;
}

.tp-step-summary-status p,
.tp-step-summary-status b,
.tp-step-summary-status span {
  display: block;
}

.tp-step-summary-status p {
  margin: 0;
  font-size: 12px;
}

.tp-step-summary-status b {
  font-weight: 600;
}

.tp-step-summary-status span {
  margin-top: 4px;
  color: var(--tp-step-muted);
  line-height: 1.45;
}

.tp-step-summary-section[hidden] {
  display: none !important;
}

.tp-quote-step-preview .glass-card.tp-step-is-complete > .tp-step-page-heading,
.tp-quote-step-preview .glass-card.tp-step-is-complete > .tp-step-nav,
.tp-quote-step-preview .glass-card.tp-step-is-complete > .tp-step-layout {
  display: none !important;
}

.tp-quote-step-preview .glass-card.tp-step-is-complete > .quote-completion-panel {
  width: 100%;
  margin: 0 !important;
  scroll-margin-top: 112px;
}

/* Keep the completion state in the same visual system as the four quote steps. */
.tp-quote-step-preview .quote-completion-panel {
  box-sizing: border-box;
  padding: 32px;
  border: 1px solid var(--tp-step-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px -38px rgba(29, 52, 82, 0.34);
  color: var(--tp-step-ink);
  font-size: 16px;
  line-height: normal;
}

.tp-quote-step-preview .quote-completion-head {
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.tp-quote-step-preview .quote-completion-icon {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--tp-step-blue);
  box-shadow: none;
  font-size: 18px;
}

.tp-quote-step-preview .quote-completion-kicker {
  margin: 1px 0 5px;
  color: var(--tp-step-blue);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.tp-quote-step-preview .quote-completion-panel h3 {
  margin: 0;
  color: var(--tp-step-ink) !important;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

.tp-quote-step-preview .quote-completion-panel p {
  margin: 8px 0 0;
  color: var(--tp-step-muted);
  font-size: 14px;
  line-height: 1.55;
}

.tp-quote-step-preview .quote-completion-number {
  margin-top: 22px;
  padding: 20px;
  gap: 8px;
  border: 1px solid var(--tp-step-line);
  border-radius: 6px;
  background: #f8fafc;
}

.tp-quote-step-preview .quote-completion-number__head {
  gap: 12px;
}

.tp-quote-step-preview .quote-completion-number span,
.tp-quote-step-preview .quote-completion-number em {
  color: var(--tp-step-muted);
  font-size: 13px;
  line-height: 1.45;
}

.tp-quote-step-preview .quote-completion-number strong {
  color: var(--tp-step-ink);
  font-size: 42px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.tp-quote-step-preview .quote-completion-copy {
  min-height: 38px;
  padding: 0 13px;
  gap: 7px;
  border: 1px solid var(--tp-step-line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--tp-step-ink);
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
}

.tp-quote-step-preview .quote-completion-file-note {
  margin-top: 12px;
  padding: 14px 16px;
  gap: 12px;
  border: 1px solid var(--tp-step-line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--tp-step-muted);
  font-size: 13px;
  line-height: 1.5;
}

.tp-quote-step-preview .quote-completion-file-note i {
  width: 28px;
  height: 28px;
  background: var(--tp-step-blue-soft);
  color: var(--tp-step-blue);
}

.tp-quote-step-preview .quote-completion-file-note strong {
  margin-bottom: 3px;
  color: var(--tp-step-ink);
  font-size: 14px;
  font-weight: 600;
}

.tp-quote-step-preview .quote-completion-file-note.is-file {
  border-color: #bfe9d9;
  background: #effbf7;
}

.tp-quote-step-preview .quote-completion-file-note.is-file i {
  background: #dff5ed;
  color: var(--tp-step-teal);
}

.tp-quote-step-preview .quote-completion-file-note.is-no-file {
  border-color: #efd8a7;
  background: #fffaf0;
}

.tp-quote-step-preview .quote-completion-steps {
  gap: 12px;
  margin-top: 14px;
}

.tp-quote-step-preview .quote-completion-step {
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--tp-step-line);
  border-radius: 6px;
  background: #ffffff;
}

.tp-quote-step-preview .quote-completion-step span {
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  background: var(--tp-step-blue-soft);
  color: var(--tp-step-blue);
  font-size: 12px;
  font-weight: 600;
}

.tp-quote-step-preview .quote-completion-step strong {
  color: var(--tp-step-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.tp-quote-step-preview .quote-completion-step small {
  margin-top: 5px;
  color: var(--tp-step-muted);
  font-size: 13px;
  line-height: 1.45;
}

.tp-quote-step-preview .quote-completion-actions {
  gap: 10px;
  margin-top: 18px;
}

.tp-quote-step-preview .quote-completion-action {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--tp-step-line-strong);
  border-radius: 6px;
  background: #ffffff;
  color: var(--tp-step-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: normal;
}

.tp-quote-step-preview .quote-completion-action.is-primary {
  border-color: var(--tp-step-blue);
  background: var(--tp-step-blue);
  color: #ffffff;
  font-weight: 700;
  box-shadow: none;
}

.tp-quote-step-preview.tp-step-is-complete .wrap {
  padding-top: 118px !important;
}

@media (max-width: 1200px) {
  .tp-quote-step-preview .wrap {
    padding-top: 120px !important;
  }
}

@media (max-width: 1024px) {
  .tp-step-layout {
    grid-template-columns: 1fr;
  }

  .tp-step-aside {
    position: static;
    order: -1;
  }

  .tp-step-aside-body dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
}

@media (max-width: 760px) {
  .tp-quote-step-preview .wrap {
    width: min(100%, calc(100% - 24px)) !important;
    padding-top: 112px !important;
  }

  .tp-step-page-heading {
    align-items: flex-start;
  }

  .tp-step-page-heading h2 {
    font-size: 32px !important;
  }

  .tp-step-page-heading > div > p:last-child {
    font-size: 13px;
  }

  .tp-step-save-state span {
    display: none;
  }

  .tp-step-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 0;
    overflow: hidden;
    scroll-margin-top: 102px;
  }

  .tp-step-nav li:nth-child(3),
  .tp-step-nav li:nth-child(4) {
    border-top: 0;
  }

  .tp-step-main #uploadForm {
    padding: 20px;
  }

  .tp-step-panel {
    min-height: 0;
  }

  .tp-step-panel-head h2 {
    font-size: 23px;
  }

  .tp-step-panel[data-tp-step="1"] .quote-no-file-grid,
  .tp-step-panel[data-tp-step="2"] .tp-deadline-row,
  .tp-step-panel[data-tp-step="2"] .tp-speed-options,
  .tp-step-panel[data-tp-step="3"] .preset-options,
  .tp-step-aside-body dl {
    grid-template-columns: 1fr;
  }

  .tp-step-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tp-step-actions p {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .tp-quote-step-preview .quote-completion-panel {
    padding: 22px 18px;
    border-radius: 8px;
  }

  .tp-quote-step-preview .quote-completion-head {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .tp-quote-step-preview .quote-completion-icon {
    width: 44px;
    height: 44px;
  }

  .tp-quote-step-preview .quote-completion-panel h3 {
    font-size: 26px;
  }

  .tp-quote-step-preview .quote-completion-number strong {
    font-size: 36px;
  }

  .tp-quote-step-preview .quote-completion-number__head {
    align-items: center;
    flex-direction: row;
  }

  .tp-quote-step-preview .quote-completion-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .tp-quote-step-preview .wrap {
    width: min(100%, calc(100% - 16px)) !important;
  }

  .tp-step-page-heading h2 {
    font-size: 30px !important;
  }

  .tp-step-nav button {
    grid-template-columns: 26px auto;
    padding-right: 6px;
  }

  .tp-step-nav button > span {
    width: 26px;
    height: 26px;
  }

  .tp-step-nav small {
    display: none;
  }

  .tp-quote-step-preview .quote-completion-actions {
    grid-template-columns: 1fr;
  }

  .tp-step-main #uploadForm {
    padding: 18px 16px;
  }

  .tp-step-panel[data-tp-step="1"] .dz-drop-area {
    min-height: 168px;
  }

  .tp-step-actions {
    grid-template-columns: 1fr;
  }

  .tp-step-actions .tp-step-next {
    grid-row: 1;
  }
}

/* Deliberate step transitions and visible validation feedback. */
.tp-quote-step-preview .tp-step-panel.is-active {
  animation: none;
}

.tp-quote-step-preview .tp-step-panel.is-entering {
  animation: tp-step-enter-controlled 320ms cubic-bezier(.22, .72, .22, 1) both;
}

@keyframes tp-step-enter-controlled {
  from {
    opacity: .45;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tp-quote-step-preview .tp-step-actions p.is-error {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid #f0c7c7;
  border-radius: 6px;
  background: #fff7f7;
  color: #a13f3f;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.tp-quote-step-preview [data-tp-step-invalid="1"] {
  border-color: #d97070 !important;
  box-shadow: 0 0 0 3px rgba(217, 112, 112, .12) !important;
}

.tp-quote-step-preview .tp-step-actions button:disabled {
  cursor: wait;
  opacity: .58;
}

.tp-quote-step-preview .tp-step-next.is-busy i {
  animation: tp-step-arrow-pulse .7s ease-in-out infinite alternate;
}

@keyframes tp-step-arrow-pulse {
  to { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .tp-quote-step-preview .tp-step-panel.is-entering,
  .tp-quote-step-preview .tp-step-next.is-busy i {
    animation: none;
  }
}
