/* ============================================================
   Kratos Moving — styles-additions.css
   Supplement to styles.css. Add <link> for this file in index.html.
   ============================================================ */

/* Step 1 — Next button aligned right */
.form-navigation--right {
  display: flex;
  justify-content: flex-end;
}

/* Step 4 — Estimate block */
#estimateBlock {
  background: #fff8f0;
  border: 1px solid #ff9902;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

#estimateBlock .summary-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
  font-size: 0.95rem;
}

#estimateBlock .summary-item span:first-child {
  font-weight: 600;
  color: #2c3e50;
  min-width: 180px;
}

#estimateBlock .summary-item span:last-child {
  color: #ff7700;
  font-weight: 700;
  font-size: 1rem;
  text-align: right;
}

.estimate-disclaimer {
  margin-top: 10px;
  font-size: 0.82rem;
  color: #888;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 153, 2, 0.25);
  padding-top: 8px;
}

/* Step 4 — Booking Summary rows with bold labels */
.booking-summary .summary-item span:first-child {
  font-weight: 600;
  color: #2c3e50;
}

/* Service config label required star */
.required-star {
  color: #e74c3c;
}

/* Service Type validation: highlight empty select */
#localServiceType:invalid,
#localServiceType[value=""] {
  border-color: #ccc;
}

/* ============================================================
   Step 1 — Junk Removal pricing table
   ============================================================ */
.junk-pricing-table {
  margin-top: 12px;
  background: #fff8f0;
  border: 1px solid #ff9902;
  border-radius: 10px;
  padding: 14px 16px;
}

.junk-pricing-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #2c3e50;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.junk-pricing-title i {
  color: #ff9902;
}

.junk-pricing-list {
  list-style: none;
  margin: 0 0 10px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.junk-pricing-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255, 153, 2, 0.12);
}

.junk-pricing-list li:last-child {
  border-bottom: none;
}

.junk-label {
  color: #555;
  font-weight: 500;
}

.junk-value {
  color: #ff7700;
  font-weight: 700;
  white-space: nowrap;
  margin-left: 8px;
}

.junk-service-area {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 153, 2, 0.2);
  padding-top: 8px;
  margin-top: 4px;
}

.junk-service-area i {
  color: #ff9902;
  margin-right: 4px;
}

/* ============================================================
   Step 2 — Date info cards (last-minute + urgent relocation)
   ============================================================ */
.date-info-cards {
  display: none;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.date-info-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  line-height: 1.5;
}

.date-info-card__icon {
  font-size: 1.1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.date-info-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.date-info-card__body strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: #2c3e50;
}

.date-info-card__body span {
  color: #555;
}

/* Warning card — last-minute fee */
.date-info-card--warning {
  background: #fff8f0;
  border: 1px solid #ff9902;
}

.date-info-card--warning .date-info-card__icon {
  color: #e67e00;
}

/* Info card — urgent relocation */
.date-info-card--info {
  background: #f0f7ff;
  border: 1px solid #5b8dee;
}

.date-info-card--info .date-info-card__icon {
  color: #5b8dee;
}


/* ============================================================
   Step 1 — Junk Removal: No Online Booking card
   ============================================================ */

/* service-card--no-booking: looks like a card but cannot be "selected" */
.service-card--no-booking {
  position: relative;
  cursor: default;
}

/* Prevent the junk-removal card from ever showing a selected ring */
.service-card--no-booking.selected,
.service-card--no-booking:focus {
  outline: none;
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.08);
}

/* No-booking call-us card */
.junk-no-booking-card {
  margin-top: 14px;
  background: #ffffff;
  border: 1.5px solid #ff9902;
  border-radius: 14px;
  padding: 20px 18px 18px;
  box-shadow: 0 4px 18px rgba(255, 153, 2, 0.10);
  text-align: center;
}

.junk-no-booking-card__header {
  margin-bottom: 12px;
}

.junk-no-booking-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff3e0;
  color: #e67e00;
  border: 1px solid rgba(255, 153, 2, 0.4);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  margin-bottom: 10px;
}

.junk-no-booking-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

.junk-no-booking-card__body {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.65;
  margin: 0 0 16px 0;
}

.junk-no-booking-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, #ff9902, #ff6600);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 13px 20px;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 14px rgba(255, 102, 0, 0.28);
  transition: opacity 0.2s ease, transform 0.15s ease;
}

.junk-no-booking-card__cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   Mobile Sticky Bottom Navigation Bar
   Visible ONLY on screens <= 768px
   ============================================================ */
.mobile-sticky-bar {
  display: none; /* hidden by default — shown only on mobile */
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    align-items: stretch;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #111111;
    border-top: 2px solid #ff6600;
    height: 60px;
    padding: 0 4px;
    gap: 4px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.40);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .mobile-sticky-bar--hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }

  .mobile-sticky-bar__btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent;
    border: none;
    color: #e0e0e0;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 4px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-sticky-bar__btn i {
    font-size: 1rem;
    margin-bottom: 1px;
  }

  .mobile-sticky-bar__btn--next {
    flex: 2;
    background: #ff6600;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.75rem;
  }

  .mobile-sticky-bar__btn--next:hover,
  .mobile-sticky-bar__btn--next:active {
    background: #e05500;
  }

  .mobile-sticky-bar__btn--back:hover,
  .mobile-sticky-bar__btn--back:active {
    background: #2a2a2a;
    color: #ffffff;
  }

  .mobile-sticky-bar__btn--help {
    color: #aaaaaa;
  }

  .mobile-sticky-bar__btn--help:hover,
  .mobile-sticky-bar__btn--help:active {
    background: #1e1e1e;
    color: #ff9902;
  }

  /* Invisible back button (step 1) — keeps layout stable */
  .mobile-sticky-bar__btn--invisible {
    opacity: 0;
    pointer-events: none;
  }

  /* Disabled next button */
  .mobile-sticky-bar__btn--disabled,
  .mobile-sticky-bar__btn--next:disabled {
    background: #444444 !important;
    color: #888888 !important;
    cursor: not-allowed;
  }
}

/* ============================================================
   Part B — Saved Progress Banner
   ============================================================ */
.saved-progress-banner {
  background: #fff8f0;
  border: 1px solid #ff9902;
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 0;
  overflow: hidden;
}

.saved-progress-banner__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.875rem;
  color: #2c3e50;
}

.saved-progress-banner__inner i {
  color: #ff9902;
  flex-shrink: 0;
}

.saved-progress-banner__inner span {
  flex: 1;
}

.saved-progress-banner__clear {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(255, 102, 0, 0.4);
  color: #e05500;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.saved-progress-banner__clear:hover {
  background: #fff0e0;
  color: #c04000;
}

/* ============================================================
   Part C — Estimated Subtotal value (green)
   ============================================================ */
.estimate-subtotal-value {
  color: #1a9e4a !important; /* override the default orange from #estimateBlock span:last-child */
  font-weight: 700;
  font-size: 1rem;
}

/* Ensure the time value keeps normal orange styling */
#summaryEstimatedTime {
  color: #ff7700;
  font-weight: 700;
}

/* ============================================================
   Success Page — Redesign
   ============================================================ */

/* Header block */
.success-header {
  margin-bottom: 32px;
}

/* Two-column grid: summary left, timeline right */
.success-body-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* Each panel */
.success-panel {
  border: 1.5px solid rgba(255, 153, 2, 0.22);
  border-radius: 16px;
  padding: 22px;
  background: rgba(255, 249, 242, 0.75);
}

.success-panel > h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ff9902;
  margin: 0 0 16px 0;
}

/* Neutralise the standalone border/bg of summary elements when inside a panel */
.success-panel .success-summary,
.success-panel .success-materials,
.success-panel .materials-total-line {
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  margin-bottom: 14px;
}

.success-panel .success-materials:empty,
.success-panel .materials-total-line:empty {
  display: none;
}

/* --- Vertical Timeline --- */
.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-step {
  display: flex;
  gap: 14px;
  position: relative;
}

/* Connecting line between steps */
.timeline-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  width: 2px;
  bottom: -6px;
  background: #e2e8f0;
}

.timeline-step.completed:not(:last-child)::after {
  background: #48bb78;
}

.timeline-step__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.timeline-step.completed .timeline-step__dot {
  background: #48bb78;
  color: #fff;
}

.timeline-step.pending .timeline-step__dot {
  background: #edf2f7;
  border: 2px solid #cbd5e0;
}

.timeline-step__content {
  padding-bottom: 22px;
  flex: 1;
}

.timeline-step:last-child .timeline-step__content {
  padding-bottom: 0;
}

.timeline-step__title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 3px 0;
  color: #1f2a37;
}

.timeline-step.pending .timeline-step__title {
  color: #718096;
}

.timeline-step__meta {
  font-size: 11.5px;
  color: #a0aec0;
  margin: 0;
  line-height: 1.45;
}

.timeline-step.completed .timeline-step__meta {
  color: #68d391;
}

/* --- Kratos Account placeholder --- */
.success-loyalty {
  border: 1.5px dashed rgba(255, 153, 2, 0.32);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 28px;
  background: rgba(255, 249, 242, 0.35);
}

.success-loyalty__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.success-loyalty__header h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #ff9902;
  margin: 0;
}

.loyalty-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 153, 2, 0.75);
  padding: 2px 8px;
  border-radius: 20px;
}

.loyalty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.loyalty-card {
  background: #fff;
  border: 1px solid rgba(255, 153, 2, 0.13);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loyalty-card__icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 153, 2, 0.1);
  color: #ff9902;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.loyalty-card__title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2a37;
  margin: 0;
}

.loyalty-card__desc {
  font-size: 11.5px;
  color: #a0aec0;
  margin: 0;
  line-height: 1.5;
}

/* Mobile */
@media (max-width: 640px) {
  .success-body-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px;
  }

  .loyalty-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .success-loyalty {
    padding: 18px;
    margin-bottom: 20px;
  }
}

/* ============================================================
   Phase 2 — Map Panel (Step 4: Addresses)
   ============================================================ */

.address-map-hint {
  font-size: 0.82rem;
  color: #8a97a8;
  margin: 6px 0 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
}

.address-map-hint i {
  font-size: 0.78rem;
  flex-shrink: 0;
  opacity: 0.75;
}
#moveMap {
  width: 100%;
  height: 360px;
  border-radius: 12px;
  margin-top: 24px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #f8fafc;
}

@media (max-width: 768px) {
  #moveMap {
    height: 240px;
    margin-top: 16px;
    border-radius: 8px;
  }
}
