:root {
  --isaide-primary: #1e5a8a;
  --isaide-accent: #2d8f6f;
  --isaide-light: #f4f7fb;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: var(--isaide-light);
}

.legal-page__body h2 {
  font-size: 1.15rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1a2b3c;
}

.legal-draft-notice {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--isaide-primary);
  background: rgba(30, 90, 138, 0.06);
  color: #334155;
}

.legal-page__body h3 {
  font-size: 1rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: #2d4a63;
}

.legal-page__body p,
.legal-page__body li {
  line-height: 1.65;
  color: #3d5166;
}

.legal-page__body ul,
.legal-page__body ol {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-page__body a {
  color: var(--isaide-primary);
}

.legal-cookie-table {
  font-size: 0.875rem;
}

.legal-cookie-table th {
  background: var(--isaide-light);
  white-space: nowrap;
}

.text-primary { color: var(--isaide-primary) !important; }
.btn-primary {
  background: var(--isaide-primary);
  border-color: var(--isaide-primary);
}
.btn-primary:hover { background: #16466d; border-color: #16466d; }

.navbar-brand-logo {
  display: block;
  height: auto;
  width: auto;
  max-height: 36px;
  max-width: min(160px, 45vw);
}

.hero-home {
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(30, 90, 138, 0.12);
}

.hero-home__stage {
  position: relative;
  line-height: 0;
}

.hero-home__media {
  display: block;
}

.hero-home__img {
  width: 100%;
  height: auto;
  max-height: min(52vh, 420px);
  object-fit: cover;
  object-position: center 35%;
  display: block;
}

.hero-home__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem 2.5rem;
  max-width: min(34rem, 92%);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(255, 255, 255, 0.82) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  text-align: left;
  pointer-events: none;
}

.hero-home__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.25rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1a2b3c;
}

.hero-home__tagline {
  margin: 0;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  line-height: 1.45;
  color: #3d5166;
}

.hero-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 1.25rem 1.25rem 1.75rem;
  background: #fff;
}

@media (min-width: 768px) {
  .hero-home__overlay {
    padding: 1.5rem 1.75rem 3rem;
    max-width: 36rem;
  }

  .hero-home__img {
    max-height: min(48vh, 480px);
  }

  .hero-home__actions {
    padding: 1.5rem 1.75rem 2rem;
  }
}

/* RCA page hero background */
.hero-rca {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 8px 32px rgba(30, 90, 138, 0.15);
}

.hero-rca__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  line-height: 0;
}

.hero-rca__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-rca__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(15, 45, 75, 0.88) 0%,
    rgba(30, 90, 138, 0.45) 55%,
    rgba(30, 90, 138, 0.15) 100%
  );
}

.hero-rca__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem 1.75rem;
  color: #fff;
}

.hero-rca__content .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

@media (min-width: 768px) {
  .hero-rca {
    min-height: 280px;
  }

  .hero-rca__content {
    padding: 2.5rem 2.5rem;
  }
}

/* Product landing pages */
.product-hero {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 8px 32px rgba(30, 90, 138, 0.12);
  background: linear-gradient(135deg, #1e5a8a 0%, #2d8f6f 100%);
}

.product-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 45, 75, 0.85) 0%,
    rgba(30, 90, 138, 0.35) 100%
  );
}

.product-hero__icon {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

.product-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 2rem 1.75rem;
  color: #fff;
}

.product-hero__content .lead {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.05rem;
}

.product-info-panel h2,
.product-form-card h2 {
  color: var(--isaide-primary, #1e5a8a);
}

/* Formular wizard produs — un singur card exterior, pași ca secțiuni (fără card imbricat) */
.product-form-card--wizard > .card-body {
  padding-bottom: 1.25rem;
}

.product-form-card--wizard .quote-wizard-pane--product .quote-wizard-pane__surface {
  padding-top: 0.25rem;
  padding-bottom: 0.125rem;
  min-height: 0;
}

.product-form-card--wizard .quote-wizard-pane__heading {
  letter-spacing: 0.04em;
}

.product-form-card--wizard .quote-wizard-nav {
  margin-top: 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}


.password-strength-progress {
  height: 8px;
}

.auth-login-shell {
  max-width: 1080px;
  margin: 0 auto;
}

.auth-login-card {
  overflow: hidden;
  border-radius: 1.25rem;
}

.auth-login-visual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1.75rem;
  min-height: 100%;
  background: linear-gradient(135deg, rgba(30, 90, 138, 0.1) 0%, rgba(45, 143, 111, 0.08) 100%);
  text-align: center;
}

.auth-login-visual__media {
  width: min(100%, 320px);
  padding: 0.85rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(30, 90, 138, 0.12);
}

.auth-login-visual__img {
  display: block;
  width: 100%;
  height: auto;
}

.auth-login-visual__copy {
  max-width: 28rem;
  color: #24415f;
}

.auth-login-badge {
  color: var(--isaide-primary);
}

.auth-login-form {
  max-width: 32rem;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .auth-login-visual {
    padding: 1.75rem 1.25rem 1.25rem;
  }

  .auth-login-visual__media {
    width: min(100%, 240px);
  }
}

.products-page-other-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.products-page-other-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 90, 138, 0.12) !important;
}

.products-page-other-card__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #e8f2fa 0%, #d4ebe3 100%);
  color: var(--isaide-primary);
  font-size: 1.35rem;
}

.product-card {
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  height: 100%;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.product-card-popular {
  border: none;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card-popular:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(30, 90, 138, 0.15);
}

.product-card-popular__media {
  line-height: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.product-card-popular__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.product-card-popular__icon {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f2fa 0%, #d4ebe3 100%);
  color: var(--isaide-primary);
  font-size: 2.5rem;
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 1050;
  border-top: 1px solid #dee2e6;
}

.cookie-settings-trigger {
  text-decoration: none;
  font-size: inherit;
  line-height: inherit;
  vertical-align: baseline;
}

.cookie-settings-trigger:hover {
  text-decoration: underline;
  color: var(--isaide-primary) !important;
}

.glossary-toolbar {
  top: 56px;
  z-index: 1020;
}

.glossary-list__letter {
  color: var(--isaide-primary);
  border-bottom: 2px solid rgba(30, 90, 138, 0.15);
  padding-bottom: 0.35rem;
}

.glossary-term__title {
  scroll-margin-top: 7rem;
}

.glossary-term:target {
  outline: 2px solid rgba(30, 90, 138, 0.35);
  outline-offset: 4px;
}

.glossary-letter-btn.active {
  font-weight: 600;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--isaide-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.admin-stat {
  border-left: 4px solid var(--isaide-accent);
}

.article-card__img,
.blog-card__img--featured {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: #f4f7fa;
  transition: transform 0.35s ease;
}

.blog-page__hero {
  border-left: 4px solid var(--isaide-accent);
}

.blog-page__filters .btn.active {
  background-color: var(--isaide-primary);
  border-color: var(--isaide-primary);
  color: #fff;
}

.blog-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.blog-card:hover .blog-card__cta {
  text-decoration: underline;
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(30, 90, 138, 0.12) !important;
}

.blog-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f4f7fa;
}

.blog-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.blog-card:hover .article-card__img,
.blog-card:hover .blog-card__img--featured {
  transform: scale(1.03);
}

.blog-card--featured .card-body {
  padding: 1.25rem 1.5rem;
}

@media (min-width: 768px) {
  a.blog-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  }

  a.blog-card--featured .blog-card__media {
    min-height: 100%;
  }

  .blog-card__img--featured {
    max-height: none;
    height: 100%;
    min-height: 100%;
  }

  a.blog-card--featured .card-body {
    padding: 1.5rem 1.75rem;
  }
}

a.blog-card:focus-visible {
  outline: 2px solid var(--isaide-primary);
  outline-offset: 2px;
}

.blog-card__cta {
  position: relative;
}

/* Homepage — benzi cu scroll orizontal + săgeți (blog, parteneri) */
.home-scroll-carousel {
  position: relative;
}

.home-scroll-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: var(--isaide-primary);
  box-shadow: 0 4px 16px rgba(30, 90, 138, 0.18);
  transform: translateY(-50%);
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.home-scroll-carousel__nav:hover:not(:disabled) {
  background: var(--isaide-light);
  box-shadow: 0 6px 20px rgba(30, 90, 138, 0.22);
}

.home-scroll-carousel__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.home-scroll-carousel__nav--prev {
  left: 0;
}

.home-scroll-carousel__nav--next {
  right: 0;
}

.home-scroll-carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.25rem 2.75rem 0.75rem;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-scroll-carousel__track::-webkit-scrollbar {
  display: none;
}

.home-scroll-carousel__track:focus-visible {
  outline: 2px solid var(--isaide-primary);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

@media (max-width: 575.98px) {
  .home-scroll-carousel__nav {
    width: 2.15rem;
    height: 2.15rem;
    font-size: 0.9rem;
  }

  .home-scroll-carousel__track {
    padding-left: 2.25rem;
    padding-right: 2.25rem;
  }
}

.home-scroll-carousel__item {
  flex: 0 0 min(82vw, 300px);
  scroll-snap-align: start;
}

.home-scroll-carousel__item--partner {
  flex: 0 0 min(70vw, 220px);
}

.blog-card--scroll .article-card__img {
  max-height: none;
}

.blog-card--scroll .card-body {
  padding: 1rem;
}

.blog-card--scroll h2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
}

.blog-card--scroll .text-muted.flex-grow-1 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem !important;
}

.blog-resource-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--isaide-light);
  color: var(--isaide-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.blog-resource-link:hover {
  background: #e8f0f8;
  color: #164a72;
}

/* —— Articol blog (stil știri) —— */
.article-news__header {
  max-width: 48rem;
  margin-bottom: 1.5rem;
}

.article-news__title {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  line-height: 1.2;
  color: #1a2b3c;
  letter-spacing: -0.02em;
}

.article-news__deck {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #4a5f73;
  margin-bottom: 0;
  max-width: 42rem;
}

.article-news__figure {
  margin: 0 auto 1.5rem;
  max-width: 40rem;
}

.article-news__cover {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(180deg, #f4f7fa 0%, #eef3f8 100%);
  border: 1px solid rgba(30, 90, 138, 0.08);
}

.article-news__cover picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.article-detail__img,
.article-news__cover img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: none;
  height: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.article-news__body {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #2c3e50;
}

.article-news__body > p:first-child {
  font-size: 1.125rem;
  color: #374151;
}

.article-detail__body h2,
.article-news__body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2.25rem;
  margin-bottom: 0.85rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--isaide-primary);
  color: var(--isaide-primary);
  scroll-margin-top: 5.5rem;
}

.article-detail__body h3,
.article-news__body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
  color: #1a2b3c;
}

.article-detail__body p,
.article-detail__body li,
.article-news__body p,
.article-news__body li {
  line-height: 1.75;
  margin-bottom: 1rem;
}

.article-news__body a {
  color: var(--isaide-primary);
  font-weight: 500;
  text-underline-offset: 2px;
}

.article-news__body a:hover {
  color: #164a72;
}

.article-news__body table {
  font-size: 0.95rem;
  margin: 1.25rem 0;
}

.article-news__body ul,
.article-news__body ol {
  padding-left: 1.35rem;
  margin-bottom: 1.25rem;
}

.article-news__body strong {
  color: #1a2b3c;
}

@media (min-width: 992px) {
  .article-news__sidebar {
    position: sticky;
    top: 5.5rem;
  }
}

.article-news__toc-list a {
  color: #4a5f73;
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
  line-height: 1.4;
}

.article-news__toc-list a:hover {
  color: var(--isaide-primary);
}

.article-news__related-item + .article-news__related-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e8eef4;
}

.article-news__related-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.article-news__related-link:hover .fw-semibold {
  color: var(--isaide-primary);
}

.article-news__nav-link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: var(--isaide-light);
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: background 0.2s, box-shadow 0.2s;
}

.article-news__nav-link:hover {
  background: #e8f0f8;
  box-shadow: 0 4px 12px rgba(30, 90, 138, 0.08);
}

.article-news__nav-link--next {
  text-align: right;
}

.article-news__nav-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--isaide-primary);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.article-news__nav-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1a2b3c;
}

.article-references a {
  word-break: break-word;
}

.home-partners .partner-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 16px rgba(30, 90, 138, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.home-partners .partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(30, 90, 138, 0.12);
}

.partner-card__link {
  display: block;
  text-decoration: none;
}

.partner-card__logo {
  max-width: 100%;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--isaide-primary);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-page__section:target,
.accordion-item:target {
  scroll-margin-top: 5rem;
}

/* —— Mega-meniu Asigurări —— */
.nav-link--featured,
.mega-menu--featured .mega-menu__desktop-trigger,
.mega-menu--featured .mega-menu__mobile-trigger {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

@media (min-width: 992px) {
  .mega-menu--featured .mega-menu__desktop-trigger {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
}

@media (min-width: 992px) {
  .navbar,
  .navbar .container,
  .navbar-collapse {
    overflow: visible;
  }
}

.mega-menu {
  position: static;
}

@media (min-width: 992px) {
  .mega-menu {
    position: relative;
  }
}

.mega-menu__desktop-trigger::after {
  display: inline-block;
  margin-left: 0.15em;
  vertical-align: 0.15em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-left: 0.3em solid transparent;
}

.mega-menu-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  width: min(760px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(30, 90, 138, 0.12);
  padding: 1.35rem 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem 1.5rem;
  z-index: 1050;
}

@media (min-width: 992px) {
  .mega-menu-dropdown {
    width: min(900px, calc(100vw - 2rem));
    padding: 1.65rem 1.85rem;
    gap: 1.5rem 1.85rem;
  }

  .mega-menu-dropdown .mega-col-title {
    font-size: 0.78rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.6rem;
  }

  .mega-menu-dropdown .mega-col-link {
    font-size: 0.96rem;
    padding: 0.42rem 0.15rem;
    line-height: 1.4;
  }

  .mega-menu-dropdown .mega-col-link--all {
    font-size: 1rem;
    margin-top: 0.45rem;
  }

  .mega-menu-dropdown .badge-pad {
    font-size: 0.68rem;
  }

  .mega-menu:hover .mega-menu-dropdown,
  .mega-menu:focus-within .mega-menu-dropdown {
    display: grid;
  }

  .mega-menu.mega-menu--closed .mega-menu-dropdown,
  .mega-menu.mega-menu--closed:hover .mega-menu-dropdown,
  .mega-menu.mega-menu--closed:focus-within .mega-menu-dropdown {
    display: none !important;
  }
}

.mega-col-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
  margin: 0 0 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
}

.mega-col-link {
  display: block;
  font-size: 0.84rem;
  color: #374151;
  padding: 0.3rem 0;
  text-decoration: none;
  line-height: 1.35;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.mega-col-link:hover,
.mega-col-link:focus-visible {
  color: var(--isaide-primary);
  background: var(--isaide-light);
}

.mega-col-link.is-active {
  color: var(--isaide-primary);
  font-weight: 600;
}

.mega-col-link--all {
  font-weight: 600;
  margin-top: 0.35rem;
  color: var(--isaide-primary);
}

.badge-pad {
  font-size: 0.62rem;
  font-weight: 600;
  background: #eaf3de;
  color: #27500a;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.2rem;
  vertical-align: middle;
}

.admin-sticky-sidebar {
  position: static;
}

@media (min-width: 992px) {
  .admin-sticky-sidebar {
    position: sticky;
    top: 5.5rem;
  }
}

/* Wizard produs / solicită ofertă: mobil = progres → formular → explicații */
.product-wizard-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 992px) {
  .product-wizard-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--bs-gutter-x, 1.5rem);
    row-gap: 1.5rem;
    align-items: start;
  }

  .product-wizard-layout__progress {
    grid-column: span 4;
    grid-row: 1;
  }

  .product-wizard-layout__rest {
    grid-column: span 4;
    grid-row: 2;
  }

  .product-wizard-layout__form {
    grid-column: span 8;
    grid-row: 1 / span 2;
    min-width: 0;
  }
}

/* Mobil: mască bare progres redundantă în form — există cardul Progres solicitare sus */
@media (max-width: 991.98px) {
  .product-wizard-layout__form #quote-wizard-progress-mobile,
  .product-form-card--wizard #quote-wizard-progress-mobile {
    display: none !important;
  }
}



.product-wizard-sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-wizard-progress-card .card-body {
  padding-bottom: 1rem;
}

.product-wizard-progress-card .quote-wizard-product-summary {
  margin-bottom: 0;
}

.product-wizard-progress-card #quote-wizard-product-summary-divider {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.product-wizard-info-card__intro {
  line-height: 1.55;
}

.product-wizard-highlight-list {
  margin: 0;
  padding: 0;
}

.product-wizard-highlight-list__item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.product-wizard-highlight-list__item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-wizard-highlight-list__item .bi {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 0.95rem;
}

.product-wizard-bullet-list {
  padding-left: 1.15rem;
  margin-bottom: 0;
}

.product-wizard-bullet-list li + li {
  margin-top: 0.35rem;
}

.product-wizard-note {
  margin-bottom: 0;
}

.product-wizard-resource-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.product-wizard-resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(30, 90, 138, 0.15);
  background: #fff;
  color: #1a2b3c;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.product-wizard-resource-link:hover {
  background: rgba(30, 90, 138, 0.06);
  border-color: rgba(30, 90, 138, 0.28);
  color: var(--isaide-primary);
}

.product-wizard-resource-link--primary {
  border-color: rgba(30, 90, 138, 0.35);
  background: rgba(30, 90, 138, 0.05);
}

.product-wizard-resource-link__label {
  flex: 1;
  min-width: 0;
}

.product-wizard-resource-link .bi {
  flex-shrink: 0;
  font-size: 1.15rem;
  color: var(--isaide-primary);
}

/* Quote request wizard */
.quote-wizard-progress {
  --quote-wizard-marker-size: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.quote-wizard-progress__item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
  padding-bottom: 1.25rem;
}

.quote-wizard-progress__item:last-child {
  padding-bottom: 0;
}

.quote-wizard-progress__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--quote-wizard-marker-size) / 2 - 1px);
  top: var(--quote-wizard-marker-size);
  bottom: 0;
  width: 2px;
  background: #dee2e6;
}

.quote-wizard-progress__item.is-complete:not(:last-child)::after {
  background: var(--isaide-accent);
}

.quote-wizard-progress__marker {
  flex-shrink: 0;
  width: var(--quote-wizard-marker-size);
  height: var(--quote-wizard-marker-size);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: #e9ecef;
  color: #6c757d;
  border: 2px solid #dee2e6;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.quote-wizard-progress__item.is-active .quote-wizard-progress__marker {
  background: var(--isaide-primary);
  border-color: var(--isaide-primary);
  color: #fff;
}

.quote-wizard-progress__item.is-complete .quote-wizard-progress__marker {
  background: var(--isaide-accent);
  border-color: var(--isaide-accent);
  color: #fff;
}

.quote-wizard-progress__label {
  font-size: 0.95rem;
  font-weight: 500;
  color: #6c757d;
  padding-top: 0.35rem;
  line-height: 1.3;
}

.quote-wizard-progress__item.is-active .quote-wizard-progress__label {
  color: #1a2b3c;
  font-weight: 600;
}

.quote-wizard-progress__item.is-complete .quote-wizard-progress__label {
  color: #334155;
}

.quote-wizard-progress--compact {
  flex-direction: column;
}

.quote-wizard-progress--compact .quote-wizard-progress__item {
  display: none;
}

.quote-wizard-progress__bar {
  height: 0.35rem;
  border-radius: 999px;
  background: #e9ecef;
  overflow: hidden;
}

.quote-wizard-progress__bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--isaide-primary), var(--isaide-accent));
  transition: width 0.3s ease;
}

.quote-wizard-pane {
  display: none;
  animation: quote-wizard-fade-in 0.25s ease;
}

.quote-wizard-pane.is-active {
  display: block;
}

@keyframes quote-wizard-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quote-wizard-nav {
  padding-top: 0.25rem;
}

.quote-wizard-product-summary {
  padding: 0.75rem 0.85rem;
  border-radius: 0.5rem;
  background: rgba(30, 90, 138, 0.06);
  border: 1px solid rgba(30, 90, 138, 0.12);
}

.quote-wizard-product-summary__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.quote-wizard-product-summary__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a2b3c;
  line-height: 1.35;
}

.quote-wizard-product-summary__meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.quote-wizard-product-summary--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
}

.quote-wizard-selected-product {
  border-radius: 0.5rem;
  background: #fff;
  border: 1px solid #dee2e6;
  box-shadow: 0 0.125rem 0.35rem rgba(26, 43, 60, 0.06);
}

.quote-wizard-selected-product__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.quote-wizard-selected-product__icon {
  font-size: 1.35rem;
  color: var(--isaide-primary);
  flex-shrink: 0;
}

.quote-wizard-selected-product__text {
  flex: 1;
  min-width: 0;
}

.quote-wizard-selected-product__change {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .quote-wizard-nav .btn-lg {
    width: 100%;
  }

  .quote-wizard-nav .d-flex.ms-auto {
    width: 100%;
    flex-direction: column;
  }
}

.mega-menu-mobile {
  width: 100%;
  padding: 0.25rem 0 0.5rem;
}

.mega-accordion {
  border-top: 1px solid #e9ecef;
}

.mega-accordion-item + .mega-accordion-item {
  border-top: 1px solid #e9ecef;
}

.mega-accordion-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.25rem;
  border: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a2b3c;
  text-align: left;
}

.mega-accordion-btn::after {
  flex-shrink: 0;
  margin-left: 0.5rem;
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.mega-accordion-btn:not(.collapsed)::after {
  transform: rotate(-135deg);
}

.mega-accordion-panel {
  padding: 0 0.25rem 0.65rem 0.75rem;
}

.mega-menu__mobile-trigger .mega-menu__chevron {
  transition: transform 0.2s;
}

.mega-menu__mobile-trigger[aria-expanded="true"] .mega-menu__chevron {
  transform: rotate(180deg);
}

@media (max-width: 991.98px) {
  .mega-menu {
    width: 100%;
  }

  .mega-menu__mobile-trigger {
    padding-left: 0;
    padding-right: 0;
  }
}
