/* ===== Modal Header & Layout ===== */
#cpfFinderModal .modal-content {
  border-radius: 18px;
  border: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  font-family: "Inter", "Poppins", sans-serif;
}

#cpfFinderModal .modal-header {
  border-bottom: 1px solid #f0f0f0;
  background: #f9fafc;
  padding: 20px 24px;
}

#cpfFinderModal .modal-title {
  font-size: 2.25rem;
  font-weight: 600;
  color: #282D88;
}

#cpfFinderModal .modal-body {
  padding: 24px;
}

/* ===== Category Header (icon + desc) ===== */
.cpf-category-header {
  display: flex;
  align-items: start;
  gap: 15px;
  margin-bottom: 15px;
}

.cpf-cat-icon {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.cpf-cat-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #0BB288;
  margin-bottom: 4px;
}

.cpf-cat-desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
}

/* ===== Search Bar ===== */

.cpf-search-input {
  width: 100%;
  height: 54px; /* Increased height for modern look */
  border-radius: 12px;
  border: 2px solid #d9d9d9;
  padding: 0 18px;
  font-size: 1.05rem;
  transition: all 0.25s ease;
  background-color: #fff;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

.cpf-search-input::placeholder {
  color: #aaa;
  font-weight: 400;
}

.cpf-search-input:focus {
  outline: none;
  border-color: #0BB288;
  background-color: #f9fffc;
  box-shadow: 0 0 0 3px rgba(11, 178, 136, 0.15);
}



/* ===== Product Cards ===== */
.cpf-product-item {
  border: 2px solid #eee;
  border-radius: 14px;
  transition: all 0.25s ease;
  cursor: pointer;
  background-color: #fff;
}

.cpf-product-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.cpf-thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.cpf-product-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}

/* ===== Select Button ===== */
.cpf-select-btn {
  display: inline-block;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.25s ease;
}

.cpf-select-btn.btn-outline-primary {
  color: #0BB288;
  border-color: #0BB288;
}

.cpf-select-btn.btn-outline-primary:hover {
  background-color: #0BB288;
  color: #fff;
}

.cpf-select-btn.remove {
  background-color: #ff5252 !important;
  color: #fff;
  border: none;
}

.cpf-select-btn.remove:hover {
  background-color: #e14343 !important;
}

/* ===== Selected Product Area ===== */
#cpf_selected_wrap {
  background-color: #e9fdf7;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  color: #333;
  border: 1px solid #0BB288;
}

#cpf_selected_wrap .text-muted {
  color: #444 !important;
}

/* ===== Modal Footer Buttons ===== */
#cpfFinderModal .modal-footer {
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
  padding: 16px 24px;
  justify-content: flex-end;
}

#cpf_request_info {
  background-color: #0BB288;
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 20px;
  transition: background 0.2s ease;
}

#cpf_request_info:hover {
  background-color: #099b74;
}

#cpfFinderModal .btn-secondary {
  font-size: 1rem;
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  #cpfFinderModal .modal-dialog {
    margin: 10px;
  }

  .cpf-cat-icon {
    width: 60px;
    height: 60px;
  }

  .cpf-product-title {
    font-size: 0.85rem;
  }

  .cpf-select-btn {
    font-size: 0.9rem;
    padding: 6px 14px;
  }
}
