/* ========================================================
   SajtPro — Ponuda Page Styles
   ======================================================== */

/* ========== STEPPER ========== */

.stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  padding: 0 20px;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  min-width: 100px;
}
.step-marker {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-h);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-m);
  transition: all 0.3s;
}
.step-done .step-marker {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.step-marker-active {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 0 20px var(--accent-glow), 0 0 40px rgba(99,102,241,0.15);
}
.step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-m);
  text-align: center;
  white-space: nowrap;
}
.step-active .step-label {
  color: var(--white);
}
.step-done .step-label {
  color: var(--green);
}
.step-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-l);
  background: var(--accent-glow);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
}
.step-line {
  flex: 1;
  height: 2px;
  background: var(--border-h);
  margin-top: 22px;
  min-width: 40px;
  max-width: 120px;
}
.step-line-active {
  background: linear-gradient(90deg, var(--green), var(--accent));
}

/* ========== PREVIEW CARD ========== */

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--border-h);
  border-radius: var(--r-lg);
  padding: 48px 40px;
  max-width: 560px;
  margin: 0 auto;
}
.preview-icon {
  color: var(--accent-l);
  margin-bottom: 20px;
}
.preview-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.preview-card p {
  font-size: 15px;
  color: var(--text-m);
  margin-bottom: 28px;
  line-height: 1.6;
}

/* ========== PACKAGES GRID ========== */

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.pkg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
  transition: all 0.35s ease;
}
.pkg-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.pkg-card-featured {
  border-color: rgba(99,102,241,0.3);
  background: linear-gradient(180deg, rgba(99,102,241,0.06) 0%, var(--bg-card) 40%);
  transform: scale(1.03);
  animation: glowPulse 3s ease-in-out infinite;
}
.pkg-card-featured:hover {
  transform: scale(1.03) translateY(-4px);
  border-color: rgba(99,102,241,0.5);
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 30px rgba(99,102,241,0.15), 0 10px 40px rgba(0,0,0,0.2); }
  50% { box-shadow: 0 0 50px rgba(99,102,241,0.3), 0 10px 40px rgba(0,0,0,0.2); }
}

@media (prefers-reduced-motion: reduce) {
  .pkg-card-featured { animation: none; }
}
.pkg-ribbon {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 0 0 10px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pkg-header {
  margin-bottom: 24px;
}
.pkg-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-l);
  margin-bottom: 8px;
}
.pkg-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}
.pkg-desc {
  font-size: 14px;
  color: var(--text-m);
  line-height: 1.5;
}
.pkg-price {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.pkg-amount {
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -2px;
  line-height: 1;
}
.pkg-currency {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-m);
  margin-left: 4px;
}
.pkg-period {
  font-size: 14px;
  color: var(--text-m);
  margin-left: 4px;
}
.pkg-monthly {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-l);
  margin-top: 6px;
}
.pkg-features {
  list-style: none;
  margin-bottom: 28px;
}
.pkg-features li {
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.pkg-feat-yes {
  color: var(--text);
}
.pkg-feat-yes::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 18px;
  background: rgba(34,197,94,0.15);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.pkg-feat-no {
  color: var(--text-m);
  opacity: 0.5;
}
.pkg-feat-no::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 18px;
  height: 18px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2371717a' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

/* ========== NEXT STEPS ========== */

.next-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 740px;
  margin: 0 auto;
}
.ns-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  flex: 1;
  transition: all 0.35s ease;
}
.ns-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
}
.ns-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-glow);
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-l);
  margin-bottom: 16px;
}
.ns-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.ns-card p {
  font-size: 14px;
  color: var(--text-m);
  line-height: 1.7;
}
.ns-arrow {
  color: var(--text-m);
  flex-shrink: 0;
}

/* ========== LEGAL NOTICE ========== */

.legal-notice {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}
.legal-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-m);
  flex-shrink: 0;
}
.legal-text strong {
  font-size: 14px;
  color: var(--text);
  display: block;
  margin-bottom: 6px;
}
.legal-text p {
  font-size: 13px;
  color: var(--text-m);
  line-height: 1.7;
  margin: 0;
}

/* ========== PKG CONTRACT BADGE ========== */

.pkg-contract {
  font-size: 12px;
  font-weight: 600;
  color: var(--green, #22c55e);
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.15);
  border-radius: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  text-align: center;
  line-height: 1.4;
}

/* ========== DETAILS GRID (cenovnik page) ========== */

.details-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.detail-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.detail-cat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  color: var(--accent-l, #a5b4fc);
}
.detail-cat-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.detail-table {
  width: 100%;
}
.detail-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px 100px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-row-head {
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
}
.detail-row-head .detail-feat,
.detail-row-head .detail-val {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-m);
  padding: 12px 16px;
}
.detail-feat {
  padding: 11px 28px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}
.detail-val {
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-m);
  text-align: center;
}
.detail-yes {
  color: var(--green, #22c55e);
}
.detail-no {
  opacity: 0.35;
}
.detail-footnote {
  font-size: 12px;
  color: var(--text-m);
  line-height: 1.7;
  padding: 14px 28px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}

/* ========== COST COMPARISON ========== */

.cost-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 840px;
  margin: 0 auto;
}
.cost-card {
  border-radius: var(--r-lg);
  padding: 32px;
  position: relative;
}
.cost-card-other {
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.15);
}
.cost-card-ours {
  background: linear-gradient(180deg, rgba(99,102,241,0.07) 0%, rgba(34,197,94,0.04) 100%);
  border: 1px solid rgba(99,102,241,0.25);
  box-shadow: 0 0 40px rgba(99,102,241,0.08);
}
.cost-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.cost-card-other .cost-card-header {
  color: #f87171;
}
.cost-card-ours .cost-card-header {
  color: var(--accent-l, #a5b4fc);
}
.cost-card-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin: 0;
}
.cost-card-desc {
  font-size: 13px;
  color: var(--text-m);
  margin-bottom: 24px;
  line-height: 1.5;
}
.cost-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 20px;
}
.cost-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 14px;
  color: var(--text);
}
.cost-line:last-child {
  border-bottom: none;
}
.cost-line span:last-child {
  font-weight: 600;
  white-space: nowrap;
  margin-left: 12px;
}
.cost-line-empty span:last-child {
  color: var(--text-m);
  opacity: 0.5;
  font-weight: 400;
  font-size: 12px;
}
.cost-line-free span:last-child {
  color: var(--green, #22c55e);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
}
.cost-total span {
  font-weight: 600;
  color: var(--text-m);
}
.cost-total strong {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.cost-total-other {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.12);
}
.cost-total-other strong {
  color: #f87171;
}
.cost-total-ours {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.12);
}
.cost-total-ours strong {
  color: var(--green, #22c55e);
}
.cost-saving {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green, #22c55e);
  background: rgba(34,197,94,0.06);
  border: 1px solid rgba(34,197,94,0.1);
  border-radius: 8px;
  padding: 10px 16px;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  .packages-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  .pkg-card-featured {
    transform: none;
  }
  .pkg-card-featured:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  .cost-compare {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 0 auto;
  }
  .cost-card {
    padding: 24px 20px;
  }
  .cost-card-header h3 {
    font-size: 18px;
  }
  .cost-line {
    font-size: 13px;
  }
  .cost-total strong {
    font-size: 20px;
  }
  .stepper {
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
  }
  .step-line {
    display: none;
  }
  .step {
    min-width: 70px;
  }
  .step-marker {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .step-label {
    font-size: 11px;
  }
  .step-badge {
    font-size: 10px;
    padding: 2px 8px;
  }
  .preview-card {
    padding: 32px 24px;
  }
  .preview-card h3 {
    font-size: 19px;
  }
  .next-steps {
    flex-direction: column;
  }
  .ns-arrow {
    transform: rotate(90deg);
  }
  .legal-notice {
    flex-direction: column;
    gap: 12px;
  }
  .ns-card p,
  .legal-text p,
  .preview-card p,
  .pkg-desc,
  .pkg-contract { text-align: justify; }
  .packages-grid {
    max-width: 100%;
  }
  .pkg-card {
    padding: 24px 20px;
  }
  .pkg-header h3 {
    font-size: 20px;
  }
  .pkg-amount {
    font-size: 36px;
  }
  .pkg-features li {
    font-size: 13px;
  }
  .detail-row {
    grid-template-columns: 1fr 70px 70px 70px;
  }
  .detail-feat {
    padding: 10px 16px;
    font-size: 12px;
  }
  .detail-val {
    padding: 10px 8px;
    font-size: 11px;
  }
  .detail-row-head .detail-feat,
  .detail-row-head .detail-val {
    padding: 10px 8px;
    font-size: 10px;
  }
  .detail-cat-header {
    padding: 16px 16px;
  }
  .detail-cat-header h3 {
    font-size: 15px;
  }
  .detail-footnote {
    padding: 12px 16px;
    font-size: 11px;
  }
}
