/* ================================
   IV Sedation Pricing - Final Style
   ================================ */

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.ivsp-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Open Sans', Arial, sans-serif;
}

/* Section Title */
.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #1a1a1a;
}

/* Accordion Container */
.accordion {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

/* Accordion Item */
.accordion-item {
  border-bottom: 1px solid #e5e7eb;
}
.accordion-item:last-child {
  border-bottom: none;
}

/* Accordion Header */
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer;
  background: #ffffff;
  transition: background 0.3s ease;
  user-select: none;
}
.accordion-header:hover {
  background: #f0f8ff;
}
.accordion-header.active {
  background: #e8f4ff; /* light blue when open */
}

/* Title + Icon Wrapper */
.accordion-title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
}
.accordion-icon {
  width: 38px;
  height: 38px;
}
.accordion-title {
  font-size: 18px;
  font-weight: 700;
  color: #111;
}

/* Price and Arrow */
.accordion-price {
  font-size: 22px;
  font-weight: 700;
  color: #0066ff;
  margin-left: 15px;
}
.accordion-arrow {
  font-size: 20px;
  color: #444;
  margin-left: 10px;
  transition: transform 0.3s ease;
}
.accordion-arrow.active {
  transform: rotate(180deg);
}

/* Accordion Content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  background: #fcfcfc;
}
.accordion-content.active {
  max-height: 600px;
  padding: 28px;
}
.accordion-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #333;
}
.accordion-content strong {
  color: #111;
}

/* Add to Cart Button */
.add-to-cart-btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 4px;
  background-color: #0066ff;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}
.add-to-cart-btn:hover {
  background-color: #0052cc;
  transform: translateY(-1px);
}

/* ================================
   MAIN DROPDOWN (Outer Wrapper)
   ================================ */

.ivsp-main-toggle {
  background: #f8f9fc;
  padding: 22px 28px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e5e7eb;
  margin-bottom: 12px;
  transition: background 0.3s ease;
}

.ivsp-main-toggle:hover {
  background: #eef6ff;
}

.ivsp-main-arrow {
  font-size: 22px;
  transition: transform 0.3s ease;
  color: #444;
}

.ivsp-main-arrow.active {
  transform: rotate(180deg);
}

/* Main content collapsible */
.ivsp-main-content {
  display: none; /* collapsed by default */
  animation: fadeIn 0.25s ease forwards;
}

/* Smooth fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 22px;
  }
  .accordion-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .accordion-arrow {
    position: absolute;
    right: 25px;
    top: 25px;
  }
  .accordion-price {
    font-size: 18px;
  }
}