/* === Base Section === */
.mfc-survey {
  position: relative;
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

#surveyList {
  display: block !important;
}

.filter {
  margin-top: 24px;
}

@media (min-width: 992px) {
  .filter {
    margin-top: 0;
  }
  .mfc-survey {
    padding: 2rem 0 2.5rem;
  }
}

/* === Group Section === */
.survey-group {
  margin-bottom: 2.5rem;
}
.survey-group-header {
  margin-bottom: 1rem;
  /* padding-bottom: 0.6rem; */
  /* border-bottom: 1.5px solid hsl(var(--gold-4) / 0.4); */
}
.survey-group-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: hsl(var(--white));
  margin: 0;
  line-height: 1.15;
}
.survey-group-title em {
  font-style: italic;
  font-weight: 400;
  color: hsl(var(--gold-3));
}

/* === Group Grid (dinamis per breakpoint) === */
.survey-group-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .survey-group-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1200px) {
  .survey-group-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1600px) {
  .survey-group-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* === Sub-category Card === */
.scard {
  background: hsl(var(--dark-1));
  border: 1px solid hsl(var(--gold-2) / 0.15);
  border-radius: 0.5rem;
  padding: 1rem 0.875rem;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
.scard.show {
  opacity: 1;
  transform: translateY(0);
}
.scard-header {
  margin-bottom: 0.625rem;
  padding-bottom: 0.5rem;
}
.scard-title {
  font-size: 0.925rem;
  font-weight: 800;
  color: hsl(var(--white));
  margin: 0;
}
.scard-subtitle {
  font-size: 0.75rem;
  color: hsl(var(--white) / 0.5);
  margin: 0.1rem 0 0;
  line-height: 1.3;
}

/* === Column Headers === */
.scard-cols {
  display: flex;
  align-items: center;
  padding: 0 0.5rem 0.4rem;
  margin-bottom: 0.35rem;
}
.scard-col-brand {
  flex: 1;
  font-size: 0.65rem;
  font-weight: 600;
  color: hsl(var(--white) / 0.54);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.scard-col-mbi {
  font-size: 0.65rem;
  font-weight: 600;
  color: hsl(var(--white) / 0.54);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === Brand Rows Container === */
.scard-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  counter-reset: brand-rank;
}

/* === Brand Rows === */
.srow {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.4rem 0.5rem 0.4rem 0.75rem;
  border-radius: 5px;
  overflow: hidden;
  min-height: 32px;
}

/* Hide the JS-injected bar — styling is via background instead */
.srow-bar {
  display: none;
}

/* Brand rows: dark bg + gold left accent + rank number */
.srow.is-brand {
  background: linear-gradient(
    to right,
    hsl(var(--gold-5) / 0.25) 0%,
    hsl(var(--dark-4) / 0.75) 65%,
    transparent 100%
  );
  /* border-left: 2px solid hsl(var(--gold-4) / 0.7); */
  counter-increment: brand-rank;
}
.srow.is-brand::before {
  content: counter(brand-rank);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: hsl(var(--white) / 0.2);
  color: hsl(var(--white));
  font-size: 0.6rem;
  font-weight: 800;
  margin-right: 0.5rem;
  display: none;
}

/* "Lainnya" rows */
.srow.is-others {
  padding-left: 0.75rem;
}

.srow-name {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: hsl(var(--white));
  position: relative;
  z-index: 1;
  padding-right: 0.4rem;
  line-height: 1.3;
}
.srow.is-others .srow-name {
  font-weight: 400;
  color: hsl(var(--white) / 0.65);
}

.srow-score {
  font-size: 0.78rem;
  font-weight: 600;
  color: hsl(var(--gold-2));
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-right: 0.3rem;
}
.srow.is-others .srow-score {
  color: hsl(var(--white) / 0.65);
  font-weight: 400;
}

.srow-badge {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === MBI Badge === */
.mbi-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(
    116deg,
    hsl(43deg 100% 87.38%),
    hsl(43deg 71.74% 33.26%)
  );
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  line-height: 1;
  gap: 1px;
}
.mbi-badge i {
  font-size: 1rem;
  color: #1a0f00;
  line-height: 1;
}
.mbi-badge span {
  font-size: 0.36rem;
  font-weight: 800;
  color: #1a0f00;
  letter-spacing: 0.3px;
  line-height: 1;
  text-transform: uppercase;
}

/* === SlimSelect English sub-label === */
.ss-opt-english {
  font-size: 0.75rem;
  opacity: 0.65;
  margin-top: 0.15rem;
}

/* === Empty State === */
.luxury-placeholder {
  text-align: center;
  animation: fadeInLuxury 0.6s ease-in-out;
  padding: 3rem 0;
}
.luxury-icon {
  color: hsl(var(--gold-5));
  margin-bottom: 5px;
  font-size: 4rem;
}
.luxury-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--light));
  margin-bottom: 5px;
}
.luxury-desc {
  font-size: 0.925rem;
  color: hsl(var(--light));
  max-width: 420px;
  margin: 0 auto;
}

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

/* === Loading Trigger === */
.loading-trigger {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 50px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    margin-top 0.3s ease;
  pointer-events: none;
  color: hsl(var(--light));
  font-size: 0.95rem;
}
.loading-trigger.show {
  margin-top: 30px;
  opacity: 1;
  transform: translateY(0);
}

/* === Spinner === */
.spinner {
  display: flex;
  align-items: center;
  gap: 5px;
}
.spinner div {
  width: 8px;
  height: 8px;
  background: hsl(var(--gold-5));
  border-radius: 50%;
  animation: bounce 0.6s infinite alternate;
}
.spinner div:nth-child(2) {
  animation-delay: 0.2s;
}
.spinner div:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  to {
    transform: translateY(-6px);
    opacity: 0.6;
  }
}

/* === Done Message === */
.loading-done {
  display: none;
  transition: 0.3s ease;
}
.loading-done.show {
  display: block;
}
