:root {
  --lz-accent: #284079;
  --lz-white: #fff;
  --lz-text: #0f172a;
  --lz-muted: rgba(15, 23, 42, 0.7);
  --lz-line: rgba(15, 23, 42, 0.1);
  --lz-soft: rgba(40, 64, 121, 0.06);
  --lz-soft2: rgba(40, 64, 121, 0.1);
  --lz-ring: rgba(40, 64, 121, 0.18);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Vazirmatn", sans-serif;
  overflow-x: hidden;
  background: var(--lz-white);
  color: var(--lz-text);
}
i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* PAGE SURFACE */
.lz-app {
  min-height: 100vh;
  background: radial-gradient(
      900px 420px at 18% 0%,
      rgba(40, 64, 121, 0.08),
      transparent 60%
    ),
    radial-gradient(
      700px 360px at 95% 18%,
      rgba(0, 0, 0, 0.05),
      transparent 62%
    ),
    linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, #fff 55%);
}

/* TOPBAR */
.lz-topbar {
  padding: 18px 0;
}
.lz-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lz-brandline {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lz-brandlogo {
  height: 42px;
  width: auto;
  display: block;
}
.lz-brandtitle {
  font-weight: 950;
  letter-spacing: -0.2px;
}
.lz-brandsub {
  font-size: 13px;
  color: var(--lz-muted);
  margin-top: 2px;
}

/* STEPPER (more multi-step feel) */
.lz-stepper {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  z-index: 1020;
}
.lz-stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}
.lz-stepper-track {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0;
  flex: 1 1 auto;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.lz-stepper-track::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}
.lz-stepper-item {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 14px;
  color: rgba(15, 23, 42, 0.7);
  font-weight: 900;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
  position: relative;
}
.lz-stepper-item:hover {
  background: var(--lz-soft);
  color: var(--lz-text);
  transform: translateY(-1px);
}
.lz-stepper-item.is-active {
  background: var(--lz-soft2);
  color: var(--lz-text);
}
.lz-stepper-item.is-done {
  color: rgba(15, 23, 42, 0.85);
}
.lz-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 64, 121, 0.12);
  border: 1px solid rgba(40, 64, 121, 0.22);
  color: var(--lz-accent);
  font-weight: 950;
  flex: 0 0 auto;
}
.lz-stepper-item.is-active .lz-dot {
  background: rgba(40, 64, 121, 0.16);
  border-color: rgba(40, 64, 121, 0.32);
}
.lz-stepper-item.is-done .lz-dot {
  background: rgba(40, 64, 121, 0.14);
  border-color: rgba(40, 64, 121, 0.26);
}
.lz-dot i {
  font-size: 16px;
}
.lz-line {
  height: 2px;
  width: 18px;
  border-radius: 999px;
  flex: 0 0 auto;
  background: rgba(15, 23, 42, 0.12);
}

/* Progress chip */
.lz-progress {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  font-weight: 900;
  color: rgba(15, 23, 42, 0.78);
  white-space: nowrap;
}
.lz-progress b {
  color: var(--lz-accent);
}

/* LAYOUT */
.lz-page {
  padding: 20px 0 54px;
}
.lz-panel,
.lz-summary {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.lz-panel::before,
.lz-summary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    520px 220px at 30% 0%,
    rgba(40, 64, 121, 0.1),
    transparent 56%
  );
  pointer-events: none;
  opacity: 0.75;
}
.lz-panel-head,
.lz-summary-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

/* Choice Summary */
.lz-choice {
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 14px;
  position: relative;
  overflow: hidden;
}
.lz-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px 160px at 70% 0%,
    rgba(40, 64, 121, 0.08),
    transparent 56%
  );
  pointer-events: none;
}
.lz-choice-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 12px;
}

.lz-ic {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 64, 121, 0.1);
  border: 1px solid rgba(40, 64, 121, 0.18);
  color: var(--lz-accent);
  flex: 0 0 auto;
}
.lz-title {
  font-weight: 950;
  position: relative;
}
.lz-sub {
  font-size: 13px;
  color: var(--lz-muted);
  margin-top: 2px;
  position: relative;
}

/* Inputs */
.lz-label {
  font-weight: 850;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.8);
}
.lz-input {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none !important;
}
.lz-input::placeholder {
  color: rgba(15, 23, 42, 0.42);
}
.lz-input:focus {
  border-color: rgba(40, 64, 121, 0.45);
  box-shadow: 0 0 0 4px rgba(40, 64, 121, 0.14) !important;
}
.lz-err {
  color: #b42318;
  font-size: 12px;
  margin-top: 6px;
  min-height: 16px;
}

/* Actions */
.lz-actions {
  position: relative;
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}
.lz-actions-split {
  justify-content: space-between;
  gap: 10px;
}

/* Steps visibility */
.lz-step {
  display: none;
  position: relative;
}
.lz-step.is-active {
  display: block;
}

/* Lists */
.lz-list {
  position: relative;
  display: grid;
  gap: 10px;
}

/* Buttons */
.lz-btn {
  border-radius: 16px;
  padding: 10px 16px;
  font-weight: 900;
  letter-spacing: -0.1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
}
.lz-btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(40, 64, 121, 0.16) !important;
}
.lz-btn-primary {
  color: #fff !important;
  background: linear-gradient(
    180deg,
    rgba(55, 92, 190, 1) 0%,
    var(--lz-accent) 55%,
    rgba(31, 51, 95, 1) 100%
  ) !important;
  border-color: rgba(40, 64, 121, 0.55) !important;
  box-shadow: 0 14px 30px rgba(40, 64, 121, 0.2);
}
.lz-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(40, 64, 121, 0.24);
}
.lz-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(40, 64, 121, 0.18);
}
.lz-btn-outline {
  background: rgba(255, 255, 255, 0.92) !important;
  color: var(--lz-text) !important;
  border-color: rgba(15, 23, 42, 0.22) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}
.lz-btn-outline:hover {
  background: rgba(40, 64, 121, 0.06) !important;
  border-color: rgba(40, 64, 121, 0.28) !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

/* Disabled State */
.lz-btn:disabled,
.lz-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed !important;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}
.lz-btn-primary:disabled,
.lz-btn-primary.disabled {
  background: linear-gradient(
    180deg,
    rgba(55, 92, 190, 0.6) 0%,
    rgba(40, 64, 121, 0.6) 55%,
    rgba(31, 51, 95, 0.6) 100%
  ) !important;
  border-color: rgba(40, 64, 121, 0.35) !important;
  box-shadow: none !important;
}
.lz-btn-outline:disabled,
.lz-btn-outline.disabled {
  background: rgba(255, 255, 255, 0.5) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
  color: rgba(15, 23, 42, 0.5) !important;
  box-shadow: none !important;
}

/* CAR ROWCARD (unique + image) */
.lz-rowcard {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  text-align: right;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.lz-rowcard:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 64, 121, 0.18);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}
.lz-rowcard.is-selected {
  border-color: rgba(40, 64, 121, 0.42);
  background: rgba(40, 64, 121, 0.06);
  box-shadow: 0 18px 44px rgba(40, 64, 121, 0.14);
}
.lz-rowcard-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.lz-rowcard-img {
  width: 100px;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(15, 23, 42, 0.03);
  flex: 0 0 auto;
}
.lz-rowcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lz-rowcard-text {
  min-width: 0;
}
.lz-rowcard-title {
  font-weight: 950;
  font-size: 15px;
  line-height: 1.35;
}
.lz-rowcard-sub {
  margin-top: 2px;
  color: rgba(15, 23, 42, 0.7);
  font-size: 13px;
}
.lz-rowcard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.lz-chipx {
  font-size: 12px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.78);
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 6px 10px;
  border-radius: 999px;
}
.lz-rowcard-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
}
.lz-selected-badge {
  display: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(40, 64, 121, 0.14);
  border: 1px solid rgba(40, 64, 121, 0.3);
  color: var(--lz-accent);
}
.lz-rowcard.is-selected .lz-selected-badge {
  /* display: inline-flex; */
}
.lz-price {
  font-weight: 950;
  color: var(--lz-text);
  font-size: 13px;
  white-space: nowrap;
}
.lz-rowcard-tag {
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(40, 64, 121, 0.1);
  border: 1px solid rgba(40, 64, 121, 0.22);
  color: var(--lz-accent);
  font-weight: 900;
  font-size: 12px;
}

/* PLAN */
.lz-plan {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.lz-plan:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 64, 121, 0.18);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}
.lz-plan.is-selected {
  border-color: rgba(40, 64, 121, 0.42);
  background: rgba(40, 64, 121, 0.06);
  box-shadow: 0 18px 44px rgba(40, 64, 121, 0.14);
}
.lz-plan-title {
  font-weight: 950;
}
.lz-plan-sub {
  margin-top: 2px;
  color: rgba(15, 23, 42, 0.7);
  font-size: 13px;
}
.lz-plan-badge {
  white-space: nowrap;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(40, 64, 121, 0.1);
  border: 1px solid rgba(40, 64, 121, 0.22);
  color: var(--lz-accent);
  font-weight: 900;
  font-size: 12px;
}

/* Note box */
.lz-noteBox {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.72);
  line-height: 1.9;
  font-size: 14px;
  align-items: flex-start;
}

/* Contract */
.lz-contract-box {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
.lz-contract-title {
  font-weight: 950;
  margin-bottom: 10px;
}
.lz-contract-text {
  resize: none;
}

.lz-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  color: rgba(15, 23, 42, 0.8);
  user-select: none;
}
.lz-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--lz-accent);
}

/* Pay */
.lz-pay {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.15s ease;
}
.lz-pay:hover {
  transform: translateY(-1px);
  border-color: rgba(40, 64, 121, 0.18);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}
.lz-pay input {
  display: none;
}
.lz-pay-title {
  font-weight: 950;
}
.lz-pay-sub {
  margin-top: 2px;
  color: rgba(15, 23, 42, 0.7);
  font-size: 13px;
}
.lz-pay i {
  opacity: 0.55;
}
.lz-pay input:checked ~ i {
  opacity: 1;
  color: var(--lz-accent);
}

/* Summary */
.lz-summary {
  top: 16px;
}
.lz-summary-block {
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  padding: 12px;
  margin-top: 12px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}
.lz-srow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.lz-srow:last-child {
  border-bottom: 0;
}
.lz-skey {
  color: rgba(15, 23, 42, 0.7);
  font-weight: 850;
  font-size: 13px;
}
.lz-sval {
  color: var(--lz-text);
  font-weight: 950;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 991.98px) {
  .lz-summary {
    position: static;
    top: auto;
  }
  .lz-stepper-wrap {
    gap: 10px;
  }
}
@media (max-width: 575.98px) {
  .lz-rowcard {
    flex-direction: column;
    gap: 12px;
  }

  .lz-rowcard-main {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .lz-rowcard-img {
    width: 100%;
    height: 160px;
  }

  .lz-rowcard-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }

  .lz-rowcard-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
  }

  .lz-progress {
    display: none;
  }
}

/* ================================== new codes =================== */

/* Plan Group */
.lz-plan-group {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 14px;
  margin-bottom: 12px;
}
.lz-plan-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 12px;
}
.lz-plan-group-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 64, 121, 0.1);
  border: 1px solid rgba(40, 64, 121, 0.18);
  color: var(--lz-accent);
  font-size: 18px;
}
.lz-plan-group-title {
  font-weight: 950;
  font-size: 15px;
}
.lz-plan-group-sub {
  font-size: 12px;
  color: var(--lz-muted);
  margin-top: 2px;
}

/* Plan Options */
.lz-plan-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.lz-plan-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s ease;
}
.lz-plan-card:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 64, 121, 0.22);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}
.lz-plan-card.is-selected {
  border-color: rgba(40, 64, 121, 0.45);
  background: rgba(40, 64, 121, 0.08);
  box-shadow: 0 14px 32px rgba(40, 64, 121, 0.15);
}
.lz-plan-card-title {
  font-weight: 950;
  font-size: 14px;
}
.lz-plan-card-check {
  display: none;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(40, 64, 121, 0.14);
  border: 1px solid rgba(40, 64, 121, 0.3);
  color: var(--lz-accent);
  margin: 10px auto 0;
}
.lz-plan-card.is-selected .lz-plan-card-check {
  display: inline-flex;
}

/* @media (max-width: 575.98px) {
  .lz-plan-options {
    grid-template-columns: 1fr;
  }
} */

/* Confirm Card */
.lz-confirm-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.lz-confirm-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    280px 140px at 20% 0%,
    rgba(40, 64, 121, 0.06),
    transparent 56%
  );
  pointer-events: none;
}
.lz-confirm-card-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 12px;
}
.lz-confirm-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 64, 121, 0.1);
  border: 1px solid rgba(40, 64, 121, 0.18);
  color: var(--lz-accent);
  font-size: 18px;
}
.lz-confirm-card-info {
  flex: 1 1 auto;
}
.lz-confirm-card-title {
  font-weight: 950;
  font-size: 15px;
}
.lz-confirm-card-plan {
  font-size: 12px;
  color: var(--lz-muted);
  margin-top: 2px;
}
.lz-confirm-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(40, 64, 121, 0.08);
  border: 1px solid rgba(40, 64, 121, 0.18);
  color: var(--lz-accent);
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lz-confirm-edit:hover {
  background: rgba(40, 64, 121, 0.14);
  transform: translateY(-1px);
}
.lz-confirm-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lz-confirm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.02);
}
.lz-confirm-label {
  font-size: 13px;
  color: var(--lz-muted);
  font-weight: 850;
}
.lz-confirm-value {
  font-size: 13px;
  font-weight: 950;
  color: var(--lz-text);
}

/* Summary Box */
.lz-summary-box {
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(40, 64, 121, 0.08),
    rgba(40, 64, 121, 0.04)
  );
  border: 1px solid rgba(40, 64, 121, 0.2);
  box-shadow: 0 12px 28px rgba(40, 64, 121, 0.1);
  padding: 14px;
  margin-bottom: 12px;
}
.lz-summary-box-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(40, 64, 121, 0.12);
  margin-bottom: 12px;
}
.lz-summary-box-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 64, 121, 0.15);
  border: 1px solid rgba(40, 64, 121, 0.25);
  color: var(--lz-accent);
  font-size: 18px;
}
.lz-summary-box-title {
  font-weight: 950;
  font-size: 15px;
  color: var(--lz-accent);
}
.lz-summary-box-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lz-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}
.lz-summary-item {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.lz-summary-label {
  font-size: 12px;
  color: var(--lz-muted);
  font-weight: 850;
}
.lz-summary-value {
  font-size: 14px;
  font-weight: 950;
  color: var(--lz-text);
}
.lz-summary-highlight {
  color: var(--lz-accent);
  font-size: 16px;
}

/* Confirm Checkbox */
.lz-confirm-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  margin-bottom: 14px;
  user-select: none;
  transition: background 0.15s ease;
}
.lz-confirm-check:hover {
  background: rgba(40, 64, 121, 0.06);
}
.lz-confirm-check input {
  display: none;
}
.lz-confirm-check-box {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(15, 23, 42, 0.2);
  color: transparent;
  font-size: 14px;
  transition: all 0.15s ease;
  flex: 0 0 auto;
}
.lz-confirm-check input:checked + .lz-confirm-check-box {
  background: var(--lz-accent);
  border-color: var(--lz-accent);
  color: #fff;
}
.lz-confirm-check-text {
  font-weight: 900;
  font-size: 14px;
  color: var(--lz-text);
}

/* Progress Bar */
.lz-progress-bar {
  position: relative;
  height: 6px;
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 12px;
}
.lz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--lz-accent), rgba(40, 64, 121, 0.7));
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Payment Amount */
.lz-pay-amount {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(40, 64, 121, 0.1),
    rgba(40, 64, 121, 0.05)
  );
  border: 1px solid rgba(40, 64, 121, 0.2);
  box-shadow: 0 12px 28px rgba(40, 64, 121, 0.1);
  margin-bottom: 14px;
}
.lz-pay-amount-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 64, 121, 0.15);
  border: 1px solid rgba(40, 64, 121, 0.25);
  color: var(--lz-accent);
  font-size: 24px;
  flex: 0 0 auto;
}
.lz-pay-amount-info {
  flex: 1 1 auto;
}
.lz-pay-amount-label {
  font-size: 13px;
  color: var(--lz-muted);
  font-weight: 850;
  margin-bottom: 4px;
}
.lz-pay-amount-value {
  font-size: 20px;
  font-weight: 950;
  color: var(--lz-accent);
}

/* Bank Card */
.lz-bank-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
  padding: 14px;
  margin-bottom: 14px;
}
.lz-bank-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 12px;
}
.lz-bank-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 64, 121, 0.1);
  border: 1px solid rgba(40, 64, 121, 0.18);
  color: var(--lz-accent);
  font-size: 18px;
}
.lz-bank-card-title {
  font-weight: 950;
  font-size: 15px;
}
.lz-bank-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lz-bank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.02);
}
.lz-bank-label {
  font-size: 13px;
  color: var(--lz-muted);
  font-weight: 850;
}
.lz-bank-value-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lz-bank-value {
  font-size: 13px;
  font-weight: 950;
  color: var(--lz-text);
  direction: ltr;
}
.lz-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(40, 64, 121, 0.1);
  border: 1px solid rgba(40, 64, 121, 0.2);
  color: var(--lz-accent);
  font-weight: 900;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.lz-copy-btn:hover {
  background: rgba(40, 64, 121, 0.16);
  transform: translateY(-1px);
}
.lz-copy-btn.copied {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.3);
  color: #16a34a;
}

/* Reference Section */
.lz-ref-section {
  margin-bottom: 14px;
}
.lz-ref-title {
  font-size: 13px;
  font-weight: 850;
  color: var(--lz-muted);
  margin-bottom: 10px;
}
.lz-ref-input {
  text-align: center;
  font-size: 16px;
  letter-spacing: 2px;
  direction: ltr;
}

/* Confirm Checkbox */
.lz-confirm-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  margin-bottom: 14px;
  user-select: none;
  transition: background 0.15s ease;
}
.lz-confirm-check:hover {
  background: rgba(40, 64, 121, 0.06);
}
.lz-confirm-check input {
  display: none;
}
.lz-confirm-check-box {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(15, 23, 42, 0.2);
  color: transparent;
  font-size: 14px;
  transition: all 0.15s ease;
  flex: 0 0 auto;
}
.lz-confirm-check input:checked + .lz-confirm-check-box {
  background: var(--lz-accent);
  border-color: var(--lz-accent);
  color: #fff;
}
.lz-confirm-check-text {
  font-weight: 900;
  font-size: 14px;
  color: var(--lz-text);
}

/* Modal Styling */
#maxCarsModal .modal-content {
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
}

#maxCarsModal .lz-modal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 64, 121, 0.1);
  color: var(--lz-accent);
  font-size: 28px;
}

#maxCarsModal .modal-title {
  color: var(--lz-text);
}

#maxCarsModal .text-muted {
  color: var(--lz-muted) !important;
}

/* Container for the financial details on the right */
.financial-summary {
  background-color: #f8f9fa; /* Light gray background */
  padding: 10px 15px;
  border-radius: 12px;
  min-width: 160px;
  border: 1px solid #e9ecef;
}

/* Individual rows inside financial summary */
.finance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.finance-row:last-child {
  margin-bottom: 0;
}

/* Label styling */
.finance-label {
  color: #6c757d; /* Muted text */
  font-weight: 500;
}

/* Value styling */
.finance-value {
  font-weight: 700;
  font-family: inherit; /* Keep your main font */
  direction: ltr; /* Keep numbers left-to-right for better readability */
  text-align: right;
}

/* Specific styling for the monthly installment to make it pop */
.finance-value.text-primary {
  color: #0d6efd !important;
  font-size: 0.95rem;
}

/* Responsive */

@media (max-width: 767.98px) {
  .lz-plan-group-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .lz-plan-group-head > div {
    width: 100%;
  }

  .financial-summary {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }

  .lz-plan-options {
    justify-content: center;
  }
}

/* The financial summary box on the right */
.financial-summary {
  min-width: 180px; /* Ensures it doesn't get squished on small screens */
  padding: 8px 12px;
  background-color: #f8f9fa;
  border-radius: 6px;
}

/* Alignment for the rows inside financial summary */
.finance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px; /* Space between label and value */
}

/* Ensure labels are right-aligned to the value */
.finance-label {
  text-align: right;
}

/* Ensure values are left-aligned */
.finance-value {
  text-align: left;
  direction: ltr; /* Numbers read better LTR */
}

/* ======================== Choice Item ======================== */
.lz-choice-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

.lz-choice-item:hover {
  background: rgba(40, 64, 121, 0.04);
  border-color: rgba(40, 64, 121, 0.12);
  transform: translateY(-1px);
}

/* ======================== Header Row ======================== */
.lz-choice-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lz-choice-num {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(40, 64, 121, 0.1);
  border: 1px solid rgba(40, 64, 121, 0.2);
  color: var(--lz-accent);
  font-weight: 950;
  font-size: 12px;
  flex-shrink: 0;
}

.lz-choice-name {
  font-weight: 900;
  font-size: 14px;
  color: #0f172a;
  flex: 1;
}

.lz-choice-price {
  font-size: 12px;
  color: var(--lz-muted);
  white-space: nowrap;
  font-weight: 600;
}

/* ======================== Details Row ======================== */
.lz-choice-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 23, 42, 0.08);
}

/* Individual Chip */
.lz-detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 12px;
}

/* Primary Chip (for installment) */
.lz-detail-chip-primary {
  background: rgba(40, 64, 121, 0.08);
  border-color: rgba(40, 64, 121, 0.15);
}

.lz-detail-chip-primary .lz-detail-value {
  color: var(--lz-accent);
}

/* Icon in chip */
.lz-detail-icon {
  display: inline-flex;
  align-items: center;
  color: var(--lz-muted);
  font-size: 11px;
}

/* Label text */
.lz-detail-label {
  color: var(--lz-muted);
  font-weight: 500;
}

/* Value text */
.lz-detail-value {
  font-weight: 700;
  color: #0f172a;
}

/* Plan name (special styling) */
.lz-detail-chip .lz-detail-text {
  font-weight: 700;
  color: var(--lz-accent);
}

/* ======================== Contract Box ======================== */
.lz-contract-box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.lz-contract-title {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  color: #0f172a;
  background: rgba(40, 64, 121, 0.04);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.lz-contract-text {
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 13px;
  line-height: 1.8;
  color: #475569;
  resize: none;
  background: #fafafa;
}

.lz-contract-text:focus {
  box-shadow: none !important;
  border: none !important;
}

@media (max-width: 575px) {
  .cardDetail {
    flex-direction: row;
  }
  .lz-copy-btn {
    display: none;
  }
}

.lz-error-message {
  font-size: 12px;
  color: #dc3545;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.lz-error-message::before {
  content: "⚠";
  font-size: 11px;
}

.is-invalid {
  border-color: #dc3545 !important;
  background-image: none;
}

.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.15);
}

/* Bale Link */
.lz-bale-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--lz-soft);
  border: 1px solid var(--lz-soft2);
  border-radius: 12px;
  text-decoration: none;
  color: var(--lz-accent);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.lz-bale-link:hover {
  background: var(--lz-soft2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--lz-ring);
  color: var(--lz-accent);
}

.lz-bale-icon {
  width: 48px;
  height: 48px;
  background: var(--lz-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lz-white);
  flex-shrink: 0;
}

.lz-bale-icon svg {
  width: 28px;
  height: 28px;
}

.lz-bale-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lz-bale-label {
  font-size: 13px;
  color: var(--lz-muted);
}

.lz-bale-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--lz-text);
}

.lz-bale-arrow {
  font-size: 20px;
  color: var(--lz-muted);
}
