/* 2. Switcher Button (Pill Style) */
.pricing-switch-wrapper {
  text-align: center;
  margin-bottom: 50px;
}

.pricing-switch-container {
  background: #f3f4f6;
  padding: 5px;
  border-radius: 50px;
  display: inline-flex;
}

.pricing-switch-btn {
  border: none;
  background: transparent;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  color: #666;
  transition: 0.3s;
  font-family: var(--heading-font);
}

.pricing-switch-btn.active {
  background: #fff;
  color: var(--accent-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.badge-save {
  font-size: 0.7rem;
  background: #dcfce7;
  color: #166534;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 5px;
  vertical-align: middle;
}

/* 3. Pricing Cards Layout */
.pricing-section .row {
  align-items: stretch;
  /* Supaya kartu tengah bisa scale up rapi */
}

.pricing-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: left;
  transition: 0.3s;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: var(--accent-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* FEATURED CARD (POPULAR) */
.pricing-card.featured {
  border: 2px solid var(--accent-color);
  /* Border Merah */
  transform: scale(1.08);
  /* Lebih besar dari yang lain */
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Badge "Most Popular" di atas */
.popular-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--heading-color);
  /* Hitam */
  color: #fff;
  padding: 5px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Typography dalam Card */
.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--heading-color);
}

.pricing-card .description {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 25px;
  min-height: 40px;
  /* Jaga tinggi konsisten */
}

/* Pricing Block */
.pricing-card .price-block {
  margin-bottom: 25px;
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 25px;
  min-height: 100px;
}

.pricing-card .price-strike {
  text-decoration: line-through;
  color: #9ca3af;
  font-size: 0.9rem;
  display: block;
}

.pricing-card .price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1.2;
}

.pricing-card.featured .price-value {
  color: var(--accent-color);
}

.pricing-card .price-period {
  font-size: 0.85rem;
  color: #6b7280;
}

.pricing-card .save-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b91c1c;
  background: #fecaca;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 5px;
  opacity: 0;
  transition: 0.3s;
}

.pricing-card .save-tag.visible {
  opacity: 1;
}

/* Button CTA */
.btn-plan {
  display: block;
  width: 100%;
  padding: 12px 0;
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  transition: 0.3s;
}

.pricing-card .btn-plan {
  background: #e0f2fe;
  /* Biru sangat muda / Abu */
  color: #0c4a6e;
  border: 1px solid transparent;
}

.pricing-card .btn-plan:hover {
  background: #bae6fd;
}

.pricing-card.featured .btn-plan {
  background: var(--accent-color);
  color: #fff;
  box-shadow: 0 4px 6px rgba(224, 58, 60, 0.3);
}

.pricing-card.featured .btn-plan:hover {
  background: #c92a2c;
}

/* Features List */
.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: #374151;
  display: flex;
  align-items: flex-start;
}

.features-list li i {
  color: var(--accent-color);
  margin-right: 10px;
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: -2px;
}

/* Responsif Mobile */
@media (max-width: 991px) {
  .pricing-card.featured {
    transform: scale(1);
    /* Reset scale di HP */
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .pricing-switch-container {
    width: 100%;
    justify-content: space-between;
  }

  .pricing-switch-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
}

/* Timer & Banner */
.promo-banner {
  background: #ffc107;
  color: #000;
  padding: 8px 0;
  font-weight: bold;
  text-align: center;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.countdown-box {
  background: #000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  margin: 0 2px;
}

.header {
  top: 38px;
}

@media (max-width: 991px) {
  .header {
    top: 0;
  }

  .promo-banner {
    position: relative;
  }
}

/* Custom Style untuk Bootstrap Accordion */
.accordion-item {
  border: 1px solid #e9ecef;
  margin-bottom: 10px;
  border-radius: 8px !important;
  overflow: hidden;
}

.accordion-button {
  font-weight: 600;
  color: var(--heading-color);
  background-color: #fff;
  box-shadow: none;
}

.accordion-button:not(.collapsed) {
  color: var(--accent-color);
  /* Ubah teks jadi merah saat aktif */
  background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
  /* Background merah muda tipis */
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
  box-shadow: none;
  /* Hilangkan garis biru default bootstrap */
  border-color: rgba(0, 0, 0, 0.125);
}

/* Mengubah warna icon panah saat aktif */
.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e03a3c'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
