/* ── Oferte Wizard — Emerald Elegance ── */

.wizard-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
  min-height: 70vh;
}

/* ── Breadcrumb ── */
.wizard-crumb {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.crumb-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.6rem 0.3rem 0.2rem;
  border-radius: 6px;
  transition: background 0.15s;
  white-space: nowrap;
}
.crumb-back:hover { background: rgba(4,99,7,0.07); }

.crumb-trail {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.crumb-trail li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.crumb-trail li:not(:last-child)::after { content: "›"; }
.crumb-trail li:last-child { color: var(--text-primary); font-weight: 600; }

/* ── Step transitions ── */
.wizard-step { animation: stepIn 0.28s ease both; }
.wizard-step--hidden { display: none; }

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

/* ── Intro header ── */
.wizard-intro { text-align: center; margin-bottom: 2rem; }
.wizard-intro--sm { margin-bottom: 1.75rem; }

.wizard-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}
.wizard-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 54ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Step 1: Package hub grid ── */
.pkg-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .pkg-hub-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (min-width: 960px) {
  .pkg-hub-grid { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
}
@media (min-width: 1200px) {
  .pkg-hub-grid { grid-template-columns: repeat(5, 1fr); }
}

/* ── Hub card — aceeași structură vizuală ca .services-carousel .service-card ── */
.pkg-hub-card {
  /* Reset min-width: 320px din homepage.css @768px */
  min-width: 0 !important;
  flex: none !important;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.18s;
}
.pkg-hub-card:hover,
.pkg-hub-card:focus-visible {
  box-shadow: none;
  transform: translateY(-2px);
}
.pkg-hub-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Media — identic cu .services-carousel .service-media */
.pkg-hub-card .service-media {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-bottom: 0;
  padding: 0.35rem 0.25rem 0.55rem;
  display: grid;
  place-items: center;
  min-height: 150px;
}
.pkg-hub-card .service-media img {
  width: min(94%, 250px);
  height: auto;
  object-fit: contain;
  object-position: center;
  aspect-ratio: 1 / 1;
  filter: saturate(0.96) contrast(1.03);
  transition: filter 0.2s;
}
.pkg-hub-card:hover .service-media img {
  filter: saturate(0.98) contrast(1.04);
}

/* Content — identic cu .services-carousel .service-content */
.pkg-hub-card .service-content {
  text-align: center;
  padding: 0.75rem 0.95rem 0.9rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.pkg-hub-card .service-title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.pkg-hub-card .service-summary {
  margin: 0 0 0.65rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-size: 0.86rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Buton — identic cu .services-carousel .service-card .btn */
.pkg-hub-btn {
  padding: 0.7rem 1.4rem !important;
  font-size: 0.78rem !important;
  letter-spacing: 1.8px !important;
  margin-top: auto;
  align-self: center;
  min-width: 150px;
  justify-content: center;
  pointer-events: none;
  display: flex;
}

/* Mobile ajustări — identic cu carousel @max-width: 767px */
@media (max-width: 639px) {
  .pkg-hub-card .service-media {
    min-height: 130px;
    padding: 0.25rem 0 0.45rem;
  }
  .pkg-hub-card .service-media img { width: min(100%, 180px); }
  .pkg-hub-card .service-content { padding: 0.55rem 0.65rem 0.85rem; }
  .pkg-hub-card .service-title {
    font-size: 0.9rem;
    line-height: 1.25;
    margin-bottom: 0.3rem;
    min-height: 2.5em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pkg-hub-card .service-summary {
    font-size: 0.76rem;
    line-height: 1.45;
    margin-bottom: 0.7rem;
    -webkit-line-clamp: 3;
  }
  .pkg-hub-btn {
    padding: 0.55rem 0.85rem !important;
    font-size: 0.7rem !important;
    letter-spacing: 1.2px !important;
    min-width: 0;
  }
}

/* ── Package cards (step 3) ── */
.pkg-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
  max-width: 640px;
  margin: 0 auto;
}

.pkg-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1.5px solid rgba(30,42,31,0.12);
  border-radius: 20px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: 0 2px 10px rgba(30,42,31,0.06);
}

.pkg-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.pkg-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.pkg-features {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.pkg-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}
.pkg-features li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23046307' fill-opacity='.1'/%3E%3Cpath d='M5 8l2.5 2.5L11 5' stroke='%23046307' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: contain;
}

.pkg-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.pkg-price-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.pkg-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  padding: 0.75rem 1.6rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  width: fit-content;
}
.pkg-cta:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* ── Footer CTA ── */
.pkg-footer {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pkg-footer-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 46ch;
  margin: 0;
}

@media (max-width: 600px) {
  .wizard-shell { padding: 1.5rem 1rem 4rem; }
  .pkg-footer { flex-direction: column; align-items: flex-start; }
}
