/* ===== Wrapper & Layout ===== */
.mvp-feature-wrapper {
  width: 100%;
  margin: 0 auto;
  font-family: "Poppins", sans-serif;
  background: #fff;
  padding: 30px;
}

#mfp-container {
  width: 50%;
  margin: 0 auto;
}

.mvp-feature-wrapper h2,
.mvp-feature-wrapper p {
  color: #002f87;
  text-align: center;
}

.mvp-feature-wrapper h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.mvp-feature-wrapper p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* ===== Feature List ===== */
#mvp-feature-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
}

#mfp-feature {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: #002f87;
  margin-bottom: 8px;
}

#mvp-feature-list li {
  padding: 10px 15px;
  background: #f1f5f9;
  border: 1px solid #002f87;
  margin-bottom: 8px;
  cursor: move;
  border-radius: 6px;
  color: #002f87;
  font-weight: 700;
}

#mvp-feature-list li:hover {
  background: #e2e8f0;
}

/* ===== Feature Pool ===== */
#mfp-feature-pool,
#mfp-selected-list {
  border: 1px solid #002f87;
  padding: 15px;
  margin-bottom: 20px;
  min-height: 100px;
  border-radius: 8px;
}

/* ===== Feature Item ===== */
.feature-item,
.feature-pool-item {
  background: #e2e8f0;
  padding: 10px;
  margin-bottom: 6px;
  border: 1px solid #002f87;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feature-item label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #002f87;
  margin-bottom: -2px;
}

/* ===== Select Box ===== */
#mfp-feature-select {
  width: 100%;
  min-height: 200px;
  margin-bottom: 20px;
  font-size: 16px;
  border: 1px solid #002f87;
  transition: all 0.3s ease;
}

/* ===== Buttons ===== */
#mfp-toggle-form,
#mfp-modal button,
.mfp-feature-section button {
  background: #002f87;
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

#mfp-toggle-form:hover,
#mfp-modal button:hover,
.mfp-feature-section button:hover {
  background-color: #005a8c;
}

/* ===== Add/Remove Buttons ===== */
.add-btn {
  color: #fff;
  border: none;
  font-size: 20px;
  font-weight: bold;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background: #002f87;
}

.remove-btn {
  color: #ff0000;
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
  transition: color 0.3s ease;
}

.remove-btn:hover {
  color: #cc0000;
}

/* ===== Modal Wrapper ===== */
.mvp-modal {
  position: fixed;
  z-index: 2999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.mvp-modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mvp-feature-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 0;
  border: 1px solid #888;
  width: 40%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mvp-feature-content h3 {
  margin: 20px;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.8rem;
  color: #002f87;
  border-bottom: 2px solid #002f87;
  padding-bottom: 8px;
  text-align: center;
}

.mvp-feature-close {
  float: right;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  margin: 1% 2% 0 0;
}

/* ===== Responsive Fixes ===== */
@media (max-width: 768px) {
  #mfp-container {
    width: 100%;
  }

  .mvp-feature-wrapper {
    padding: 20px;
  }

  .mvp-feature-wrapper h2 {
    font-size: 1.3rem;
  }

  .mvp-feature-wrapper p,
  #mfp-feature,
  .feature-item label {
    font-size: 1rem;
  }

  .mvp-modal-content {
    width: 90%;
    padding: 15px;
  }

  .mvp-feature-content {
    width: 90%;
    height: auto;
    margin-top: 20%;
  }

  .mvp-feature-content h3 {
    font-size: 1.4rem;
  }

  .add-btn,
  .remove-btn,
  #mfp-toggle-form,
  .mfp-feature-section button {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .mvp-feature-content h3 {
    font-size: 1.2rem;
  }

  .mvp-modal-content {
    width: 95%;
  }
}
