/* ========================================================
   247 MOBILE - KHỐI TRA CỨU BÁO GIÁ SỬA CHỮA ĐIỆN THOẠI ĐA NĂNG
   Chỉ hiển thị kết quả khi tìm kiếm - Tinh gọn, hiện đại
   ======================================================== */

.quote_index_wrapper {
  padding: 30px 0 35px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  margin: 25px 0;
  clear: both;
}

.quote_index_header {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 15px;
}

.quote_index_header .sub_title {
  font-size: 14px;
  color: #64748b;
  margin-top: -5px;
  margin-bottom: 22px;
  line-height: 1.5;
}

/* Thanh Tìm Kiếm Trung Tâm */
.quote_search_container {
  max-width: 780px;
  margin: 0 auto 16px;
  position: relative;
}

.quote_search_icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #94a3b8;
  pointer-events: none;
}

.quote_search_input {
  width: 100%;
  height: 54px;
  padding: 0 50px 0 52px;
  font-size: 15px;
  border: 2px solid #cbd5e1;
  border-radius: 30px;
  outline: none;
  background: #ffffff;
  box-sizing: border-box;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

.quote_search_input:focus {
  border-color: #d70018;
  box-shadow: 0 0 0 4px rgba(215, 0, 24, 0.12);
}

.quote_clear_btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #e2e8f0;
  border: none;
  color: #475569;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.2s;
}

.quote_clear_btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

/* Gợi Ý Nhanh (Quick Suggestions) */
.quote_quick_suggestions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.qib_sugg_label {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}

.qib_sugg_btn {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qib_sugg_btn:hover {
  background: #d70018;
  border-color: #d70018;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(215, 0, 24, 0.2);
}

/* Dòng Thương Hiệu Hỗ Trợ Đa Năng */
.quote_brands_supported {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.6;
}

.quote_brands_supported strong {
  color: #1e293b;
}

/* Vùng Kết Quả Tìm Kiếm */
#qib-results-wrapper {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px dashed #cbd5e1;
}

.quote_results_heading {
  margin-bottom: 18px;
  text-align: center;
}

.quote_results_heading span {
  font-size: 14px;
  font-weight: 800;
  color: #d70018;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #fff1f2;
  padding: 5px 16px;
  border-radius: 20px;
  border: 1px solid #fecdd3;
}

/* Grid Báo Giá (Desktop: 3 Cột | Tablet: 2 Cột | Mobile: 1 Cột) */
.quote_devices_grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
}

.quote_device_card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.quote_device_card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

.quote_card_header {
  padding: 14px 18px;
  background: #f8fafc;
  border-bottom: 1px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quote_card_title {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quote_card_badge {
  font-size: 11px;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 2px 10px;
  border-radius: 12px;
}

.quote_card_body {
  padding: 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Dịch Vụ Con */
.quote_service_row {
  border: 1px solid #edf2f7;
  border-radius: 10px;
  padding: 12px 14px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.quote_service_row:hover {
  border-color: #cbd5e1;
  background: #fafbfc;
}

.quote_service_top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.quote_service_name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  flex: 1;
}

/* Phân loại Tag dịch vụ */
.quote_service_tag {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.quote_service_tag.tag_screen {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.quote_service_tag.tag_glass {
  background: #fff7ed;
  color: #c2410c;
  border-color: #fed7aa;
}

.quote_service_tag.tag_battery {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.quote_service_tag.tag_battery_high {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.quote_service_tag.tag_hardware {
  background: #fdf4ff;
  color: #86198f;
  border-color: #f5d0fe;
}

.quote_service_tag.tag_camera {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.quote_service_tag.tag_housing {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.quote_service_tag.tag_default {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.quote_service_meta {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.quote_meta_sep {
  color: #cbd5e1;
}

.quote_service_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px dashed #e2e8f0;
}

.quote_service_price {
  font-size: 17px;
  font-weight: 900;
  color: #d70018;
}

.quote_service_price small {
  font-size: 10.5px;
  font-weight: 600;
  color: #059669;
  display: block;
}

.quote_action_btns {
  display: flex;
  gap: 6px;
}

.quote_btn_call {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
  padding: 5px 11px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.quote_btn_call:hover {
  background: #d70018;
  border-color: #d70018;
  color: #ffffff;
}

.quote_btn_zalo {
  background: #0088ff;
  color: #ffffff;
  padding: 5px 11px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: all 0.2s ease;
}

.quote_btn_zalo:hover {
  background: #0066cc;
  color: #ffffff;
}

/* Nút xem thêm dịch vụ trong card */
.quote_btn_toggle_more {
  width: 100%;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 4px;
}

.quote_btn_toggle_more:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}

.quote_btn_toggle_more.expanded {
  background: #f1f5f9;
  color: #64748b;
  border-style: solid;
}

.quote_more_results_hint {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  padding: 10px;
  font-style: italic;
}

/* Empty State */
.quote_empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}

.quote_empty_actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Responsive Mobile */
@media (max-width: 767px) {
  .quote_index_wrapper {
    padding: 20px 0 25px;
    margin: 15px 0;
  }
  .quote_index_header .sub_title {
    font-size: 12.5px;
    padding: 0 10px;
  }
  .quote_search_input {
    height: 48px;
    font-size: 13.5px;
    padding-left: 44px;
  }
  .quote_quick_suggestions {
    gap: 6px;
    padding: 0 8px;
  }
  .qib_sugg_btn {
    font-size: 11.5px;
    padding: 4px 10px;
  }
  .quote_devices_grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .quote_device_card {
    border-radius: 12px;
  }
  .quote_service_row {
    padding: 10px 12px;
  }
  .quote_service_price {
    font-size: 15.5px;
  }
}
