.calculator {
  background: #f7f9fc;
  border: 1px solid #e4e9f2;
  border-radius: 16px;
  padding: 24px;
  color: #0b1b33;
}

.calculator * {
  box-sizing: border-box;
}

.calculator-head {
  margin-bottom: 20px;
}

.calculator-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #010a44;
}

.calculator-subtitle {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5f6b7a;
  margin-bottom: 0;
}

.calculator-section {
  background: #ffffff;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}

.calculator-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #007aff;
  margin-bottom: 14px;
}

.calculator select,
.calculator input[type="number"] {
  width: 100%;
  background: #f7f9fc;
  border: 1px solid #dce4f0;
  border-radius: 8px;
  color: #0b1b33;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.calculator select:focus,
.calculator input[type="number"]:focus {
  border-color: #007aff;
  box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.15);
}

.calculator-card {
  background: #f7f9fc;
  border: 1px solid #e0e7f2;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.calculator-card.active {
  border-color: #007aff;
  box-shadow: 0 12px 30px rgba(0, 122, 255, 0.12);
}

.calculator-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

.calculator-toggle-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #9aa8bd;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: all 0.15s;
  color: #007aff;
}

.calculator-card.active .calculator-toggle-box {
  background: #007aff;
  border-color: #007aff;
  color: #ffffff;
}

.calculator-card-name {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
  color: #010a44;
}

.calculator-card-meta {
  font-size: 12px;
  color: #5f6b7a;
  display: flex;
  gap: 10px;
}

.calculator-card.active .calculator-card-meta {
  color: #3f4a58;
}

.calculator-card-base {
  font-size: 13px;
  color: #5f6b7a;
}

.calculator-card.active .calculator-card-base {
  color: #007aff;
}

.calculator-card-body {
  display: none;
  padding: 14px 16px 16px;
  border-top: 1px solid #e0e7f2;
}

.calculator-card.active .calculator-card-body {
  display: block;
}

.calculator-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calculator-label {
  font-size: 12px;
  color: #5f6b7a;
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.calculator-badge-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.calculator-badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #eef3fb;
  border: 1px solid #d9e4f5;
  color: #5f6b7a;
}

.calculator-badge.on {
  background: rgba(0, 122, 255, 0.1);
  border-color: #007aff;
  color: #007aff;
}

.calculator-badge.anticipo {
  background: rgba(12, 182, 104, 0.12);
  border-color: #0cc268;
  color: #0c7a4a;
}

.calculator-badge.time {
  background: rgba(0, 122, 255, 0.12);
  border-color: #4a90d9;
  color: #3167a6;
}

.calculator-breakdown {
  margin-top: 12px;
  background: #f0f4fb;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #5f6b7a;
  line-height: 1.7;
}

.calculator-breakdown .hl {
  color: #007aff;
  font-weight: 600;
}

.calculator-breakdown .hl-green {
  color: #0c7a4a;
  font-weight: 600;
}

.calculator-breakdown .hl-blue {
  color: #3167a6;
  font-weight: 600;
}

.calculator-time-box {
  background: #eef4ff;
  border: 1px solid #d3e3fa;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 14px;
}

.calculator-time-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #4a90d9;
  margin-bottom: 14px;
}

.calculator-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.calculator-time-stat {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  border: 1px solid #dfe7f4;
}

.calculator-time-label {
  font-size: 11px;
  color: #4a90d9;
  font-weight: 600;
  margin-bottom: 4px;
}

.calculator-time-value {
  font-size: 18px;
  font-weight: 700;
  color: #0b1b33;
}

.calculator-time-sub {
  font-size: 11px;
  color: #5f6b7a;
  margin-top: 2px;
}

.calculator-time-breakdown {
  margin-top: 12px;
  background: #ffffff;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #5f6b7a;
  line-height: 1.7;
  border: 1px solid #dfe7f4;
}

.calculator-time-breakdown .hl-blue {
  color: #3167a6;
  font-weight: 600;
}

.calculator-time-breakdown .hl {
  color: #007aff;
  font-weight: 600;
}

.calculator-card-subtotal {
  margin-top: 12px;
  font-size: 12px;
  color: #5f6b7a;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.calculator-card-subtotal span:last-child {
  color: #010a44;
  font-size: 14px;
  font-weight: 600;
}

.calculator-anticipo {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f7f9fc;
  border: 1px solid #e0e7f2;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
}

.calculator-anticipo.on {
  border-color: #007aff;
  background: rgba(0, 122, 255, 0.08);
}

.calculator-anticipo-label {
  flex: 1;
}

.calculator-anticipo-label strong {
  font-size: 14px;
  font-weight: 700;
  display: block;
  color: #010a44;
}

.calculator-anticipo-label small {
  font-size: 12px;
  color: #5f6b7a;
}

.calculator-anticipo.on .calculator-anticipo-label small {
  color: #007aff;
}

.calculator-switch {
  width: 36px;
  height: 20px;
  background: #d4dbe7;
  border-radius: 20px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.calculator-switch::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.calculator-anticipo.on .calculator-switch {
  background: #007aff;
}

.calculator-anticipo.on .calculator-switch::after {
  left: 19px;
}

.calculator-result {
  background: #007aff;
  border-radius: 14px;
  padding: 24px;
  margin-top: 8px;
  color: #ffffff;
}

.calculator-result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
}

.calculator-result-row .label {
  opacity: 0.75;
  font-weight: 600;
}

.calculator-result-row .value {
  font-size: 14px;
  font-weight: 600;
}

.calculator-result-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 10px 0;
}

.calculator-result-total .label {
  font-size: 15px;
  opacity: 1;
  font-weight: 800;
}

.calculator-result-total .value {
  font-size: 24px;
  font-weight: 800;
}

.calculator-result-note {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 12px;
}

.calculator-result-footnote {
  font-size: 11px;
  opacity: 0.7;
  margin-top: 10px;
}

.calculator-empty {
  text-align: center;
  color: #5f6b7a;
  font-size: 14px;
  padding: 24px 0;
}

@media (max-width: 767px) {
  .calculator {
    padding: 18px;
  }

  .calculator-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   ZakaClean — Public Quote Wizard (calculator-public.js)
   Appended to calculator.css — loaded on homepage via head.html
   ═══════════════════════════════════════════════════════════ */

/* Section wrapper */
.zk-calc-area { background: #f8f9fb; }

/* Wizard card container */
.zk-calc-wizard {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e4e9f2;
  padding: 36px 40px;
  box-shadow: 0 8px 40px rgba(1,10,68,0.07);
}

/* ── Progress ────────────────────────────────────────────── */
.zk-calc-progress {
  margin-bottom: 32px;
}

.zk-calc-progress-track {
  height: 4px;
  background: #e4e9f2;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}

.zk-calc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #25D366, #007AFF);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.zk-calc-progress-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 6px;
}

.zk-calc-step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #d0d8e6;
  background: #fff;
  color: #9aa8bd;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.zk-calc-step-dot.active {
  border-color: #007AFF;
  background: #007AFF;
  color: #fff;
}

.zk-calc-step-dot.done {
  border-color: #25D366;
  background: #25D366;
  color: #fff;
}

.zk-calc-progress-label {
  font-size: 12px;
  color: #5f6b7a;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.3px;
}

/* ── Step transition ────────────────────────────────────── */
.zk-calc-step { animation: zkFadeIn 0.3s ease; }

@keyframes zkFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.zk-calc-step-title {
  font-size: 18px;
  font-weight: 700;
  color: #010A44;
  margin-bottom: 24px;
}

/* ── Step 1: Service type cards ─────────────────────────── */
.zk-calc-service-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: #f7f9fc;
  border: 2px solid #e4e9f2;
  border-radius: 12px;
  padding: 16px 18px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.zk-calc-service-card:hover {
  border-color: #007AFF;
  background: #f0f6ff;
}

.zk-calc-service-card.active {
  border-color: #007AFF;
  background: rgba(0,122,255,0.05);
  box-shadow: 0 4px 20px rgba(0,122,255,0.12);
}

.zk-calc-service-icon {
  width: 44px;
  height: 44px;
  background: #eef3fb;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #007AFF;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.zk-calc-service-card.active .zk-calc-service-icon {
  background: #007AFF;
  color: #fff;
}

.zk-calc-service-body {
  flex: 1;
}

.zk-calc-service-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #010A44;
  margin-bottom: 2px;
}

.zk-calc-service-body span {
  font-size: 12px;
  color: #5f6b7a;
}

.zk-calc-service-check {
  width: 22px;
  height: 22px;
  border: 2px solid #d0d8e6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
  color: transparent;
  transition: all 0.2s;
}

.zk-calc-service-card.active .zk-calc-service-check {
  border-color: #007AFF;
  background: #007AFF;
  color: #fff;
}

.zk-calc-badge-pill {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #25D366;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ── Step 2: Panel labels ───────────────────────────────── */
.zk-calc-panel { margin-bottom: 24px; }

.zk-calc-panel-label {
  font-size: 12px;
  font-weight: 700;
  color: #007AFF;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

/* ── Step 2: Detail cards (packages + dirt levels) ──────── */
.zk-calc-detail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  background: #f7f9fc;
  border: 2px solid #e4e9f2;
  border-radius: 12px;
  padding: 18px 14px;
  cursor: pointer;
  gap: 6px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  position: relative;
}

.zk-calc-detail-card:hover {
  border-color: #007AFF;
  background: #f0f6ff;
}

.zk-calc-detail-card.active {
  border-color: #007AFF;
  background: rgba(0,122,255,0.06);
  box-shadow: 0 4px 20px rgba(0,122,255,0.12);
}

.zk-calc-detail-card strong {
  font-size: 14px;
  font-weight: 700;
  color: #010A44;
}

.zk-calc-detail-card em {
  font-size: 12px;
  color: #5f6b7a;
  font-style: normal;
}

.zk-calc-pkg-price {
  font-size: 22px;
  font-weight: 800;
  color: #007AFF;
  line-height: 1.1;
}

.zk-calc-pkg-level {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.zk-calc-pkg-popular {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #25D366;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
}

.zk-calc-detail-card small {
  font-size: 11px;
  color: #9aa8bd;
}

/* ── Step 2: Add-ons ────────────────────────────────────── */
.zk-calc-addon-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zk-calc-addon-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f7f9fc;
  border: 1.5px solid #e4e9f2;
  border-radius: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  margin: 0;
}

.zk-calc-addon-row:hover {
  border-color: #007AFF;
  background: #f0f6ff;
}

.zk-calc-addon-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #007AFF;
  cursor: pointer;
  flex-shrink: 0;
}

.zk-calc-addon-info {
  flex: 1;
}

.zk-calc-addon-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #010A44;
}

.zk-calc-addon-info span {
  font-size: 11px;
  color: #5f6b7a;
}

.zk-calc-addon-price {
  font-size: 14px;
  font-weight: 700;
  color: #007AFF;
  white-space: nowrap;
}

/* ── Navigation buttons ─────────────────────────────────── */
.zk-calc-nav {
  margin-top: 24px;
}

.zk-calc-btn-next {
  background: #007AFF;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
}

.zk-calc-btn-next:hover:not(:disabled) {
  background: #005fd4;
  transform: translateY(-1px);
}

.zk-calc-btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.zk-calc-btn-back {
  background: transparent;
  color: #5f6b7a !important;
  border: 1.5px solid #d0d8e6;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.zk-calc-btn-back:hover {
  border-color: #007AFF;
  color: #007AFF !important;
}

.zk-calc-btn-reset {
  background: transparent;
  color: #9aa8bd !important;
  border: 1.5px solid #e4e9f2;
  border-radius: 8px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s;
}

.zk-calc-btn-reset:hover {
  border-color: #9aa8bd;
  color: #5f6b7a !important;
}

/* ── Step 3: Summary ────────────────────────────────────── */
.zk-calc-summary-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  border: 1px solid #e4e9f2;
  border-radius: 10px;
  overflow: hidden;
}

.zk-calc-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f4fb;
  font-size: 14px;
}

.zk-calc-summary-item:last-child { border-bottom: none; }

.zk-calc-summary-name {
  color: #3a4459;
  font-weight: 500;
}

.zk-calc-summary-price {
  font-size: 15px;
  font-weight: 700;
  color: #010A44;
  white-space: nowrap;
}

/* ── Step 3: Total panel ────────────────────────────────── */
.zk-calc-total-panel {
  background: linear-gradient(135deg, #010A44 0%, #0f3460 100%);
  border-radius: 14px;
  padding: 24px 28px;
  color: #fff;
  margin-bottom: 20px;
}

.zk-calc-total-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 8px;
}

.zk-calc-total-price {
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.zk-calc-currency {
  font-size: 28px;
  font-weight: 700;
  opacity: 0.8;
  margin-top: 8px;
}

.zk-calc-total-note {
  font-size: 12px;
  opacity: 0.65;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}

.zk-calc-total-note i { margin-top: 2px; flex-shrink: 0; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .zk-calc-wizard {
    padding: 24px 20px;
  }

  .zk-calc-service-card {
    gap: 10px;
    padding: 14px;
  }

  .zk-calc-service-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .zk-calc-service-body strong { font-size: 13px; }

  .zk-calc-total-price { font-size: 40px; }
  .zk-calc-currency { font-size: 22px; }

  .zk-calc-nav.d-flex { flex-direction: column-reverse; gap: 8px; }
  .zk-calc-btn-next,
  .zk-calc-btn-back,
  .zk-calc-btn-reset { width: 100%; text-align: center; justify-content: center; }
}
