/* ========================================
   Modern Feedback Popup & Score List
   ======================================== */

/* Score list (existing feedback display) */
.score_list * {box-sizing: border-box;}
.score_list {float:left;clear:both;width:100%;margin:10px 0;}
.score_list .row {float:left;clear:both;width:100%;background:#fff;padding:10px 7px;border:1px solid #e8e8e8;border-top:none;}
.score_list .row.original_user {background:#f9fafb;}
.score_list .left {width:25%;float:left;}
.score_list .right {width:75%;float:right;padding-left:10px;}
.score_list .name {float:left;clear:both;width:100%;font-size:13px;font-weight:600;color:#333;margin-top:2px;}
.score_list .date {float:left;clear:both;width:100%;font-style:italic;color:#888;margin-top:3px;font-size:11px;}
.score_list .tit {float:left;font-size:16px;font-weight:normal;color:#333;}
.score_list .score {float:right;}
.score_list .score strong {font-weight:500;color:#F44336;border-bottom:1px dashed #ddd;}
.score_list .message {float:left;width:100%;font-size:12px;margin-top:2px;color:#444;}
.score_list .row.header {font-size:14px;padding:10px 12px;font-weight:600;color:#fff;background:#333;border:1px solid #333;border-radius:6px 6px 0 0;}
.score_list .row.header span {font-weight:bold;float:none!important;margin:0;padding:0;}

.score_detail * {box-sizing: border-box;}
.score_detail {width:190px;float:left;}
.score_detail .score_quality, .score_detail .score_delivery, .score_detail .score_communication {float:left;clear:both;width:100%;}
.score_detail .score_quality .lab, .score_detail .score_delivery .lab, .score_detail .score_communication .lab {float:left;width:100px;margin-top:2px;}

.score_list.best_rated .left {width:50%;float:left;}
.score_list.best_rated .right {width:50%;float:right;}

/* ========================================
   Feedback Popup Modal
   ======================================== */
#user-feedback {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999999;
  display: none;
  overflow-y: auto;
}
#user-feedback * {box-sizing: border-box;}

#user-feedback .inside {
  position: relative;
  margin: 20px auto;
  width: 440px;
  max-width: 92%;
  max-height: calc(100vh - 40px);
  background: #fff;
  float: none;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: feedbackSlideIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

@keyframes feedbackSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

#user-feedback .wrap {
  width: 100%;
  padding: 18px 24px;
  background: #fff;
  border-radius: 12px;
  overflow-y: auto;
  flex: 1;
}

#user-feedback .row {
  float: left;
  clear: both;
  width: 100%;
  margin: 3px 0;
}
#user-feedback .row.user_info {height:30px;overflow:hidden;text-overflow:ellipsis;}
#user-feedback .row.loc {font-size:11px;color:#666;font-weight:600;margin-top:4px;}

#user-feedback .left {width:50%;float:left;}
#user-feedback .right {width:50%;float:right;}

#user-feedback .photo {padding:15px 10px;background:#fff;margin:0;}
#user-feedback .photo img {float:left;clear:both;width:100%;height:auto;border:1px solid #e0e0e0;background:#fff;padding:2px;border-radius:8px;}
#user-feedback .photo .left {width:20%;}
#user-feedback .photo .right {width:80%;padding-left:15px;}

#user-feedback .clear {float:left;width:100%;clear:both;}
#user-feedback .italic {font-style:italic;}
#user-feedback .bold {font-weight:bold;}
#user-feedback .name {font-size:15px;font-weight:600;}

#user-feedback .text.name {margin-top:6px;}
#user-feedback .text .left {margin:6px 0 2px 0;}
#user-feedback .text .left, #user-feedback .text .right {width:100%;clear:both;}
#user-feedback .text .left, #user-feedback .rank .left {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

#user-feedback input[type="text"],
#user-feedback textarea {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  border: 1.5px solid #e0e0e0;
  padding: 8px 12px;
  width: 100%;
  border-radius: 8px;
  background: #fafafa;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  box-shadow: none;
}
#user-feedback input[type="text"]:focus,
#user-feedback textarea:focus {
  border-color: #f5a623;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

#user-feedback textarea {
  height: 70px;
  resize: vertical;
}

/* Star Rating Section */
#user-feedback .rank-block {
  margin: 8px 0;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
}
#user-feedback .rank-block .rank {
  margin: 2px 0;
}
#user-feedback .rank-block .left {
  width: 40%;
  font-size: 14px;
  line-height: 28px;
  color: #555;
}
#user-feedback .rank-block .right {width:60%;}

#user-feedback .del {
  width: 100%;
  float: left;
  clear: both;
  height: 0;
  margin: 0;
  border: none;
}

#user-feedback sup {margin-left:3px;color:#e74c3c;font-weight:bold;}
#user-feedback #error_list {margin:5px 0;color:#e74c3c;}

/* Close button - styled via inline on #fb-close-btn */
#user-feedback .close { display: none !important; }

/* Submit button */
#user-feedback #button,
#user-feedback button[type="submit"],
#user-feedback .button {
  display: inline-block;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #f5a623, #e8920d);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 12px;
  float: left;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
  text-shadow: none;
  text-decoration: none;
  outline: none;
  letter-spacing: 0.3px;
}
#user-feedback #button:hover,
#user-feedback button[type="submit"]:hover,
#user-feedback .button:hover {
  background: linear-gradient(135deg, #e8920d, #d4800a);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
  transform: translateY(-1px);
}
#user-feedback #button:active,
#user-feedback button[type="submit"]:active,
#user-feedback .button:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(245, 166, 35, 0.3);
}

#user-feedback .name_unchangable {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  cursor: default;
  float: left;
  clear: both;
  color: #666;
  background: #f5f5f5;
  border: 1.5px solid #e0e0e0;
  padding: 10px 14px;
  width: 100%;
  border-radius: 8px;
}

#user-feedback .feedback-warn {
  float: left;
  width: 100%;
  clear: both;
  margin: 20px 0;
  padding: 16px;
  background: #fff8e1;
  border-radius: 8px;
  border: 1px solid #ffe082;
}
#user-feedback .feedback-warn span {float:left;clear:both;width:100%;margin:3px 0;color:#6d4c00;}
#user-feedback .feedback-warn span a {font-weight:bold;color:#f5a623;}

/* Leave feedback link */
#leave_feedback {
  display: inline-block;
  cursor: pointer;
  font-size: 16px;
  color: #f5a623;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}
#leave_feedback:hover {
  color: #e8920d;
  text-decoration: underline;
}

#required_form_special {overflow:hidden;width:1px;height:1px;float:left;background:transparent;max-width:1px;max-height:1px;}

.round1 {border-radius:1px;}
.round2 {border-radius:2px;}
.round3 {border-radius:3px;}
.round4 {border-radius:4px;}
.round5 {border-radius:5px;}

/* Responsive */
@media screen and (max-width: 767px) {
  #user-feedback .inside {width:92%;margin:20px auto;}
  #user-feedback .wrap {padding:20px 18px;}
  #user-feedback .rank-block .left {width:40%;}
  #user-feedback .rank-block .right {width:60%;}
  #user-feedback .photo .left {width:30%;}
  #user-feedback .photo .right {width:70%;}
}
