/* Customer Reviews Plugin Styles - Updated to match Figma design */

/* Review Form Styles */
.form-evaluate {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #eeeeee;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.06);
}

/* Hide scrollbar for form textarea but keep scroll functionality */
.form-evaluate textarea {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.form-evaluate textarea::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.star__rating {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  justify-content: center;
}

.star {
  font-size: 24px;
  color: #d9d9d9;
  cursor: pointer;
  transition: color 0.2s ease;
}

.star.active,
.star:hover {
  color: #FFBC48;
}

.form-group {
  margin-bottom: 16px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #0000001a;
  border-radius: 10px;
  font-size: 16px;
  font-family: "Noto Sans", sans-serif;
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #FFBC48;
}

.form-check {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-check-input {
  margin: 0;
}

.form-check-label {
  font-size: 14px;
  color: #616161;
}

.form-label {
  font-family: "Noto Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: #212121;
  margin-bottom: 8px;
  display: block;
}

.form-text {
  font-family: "Noto Sans", sans-serif;
  font-size: 12px;
  color: #9e9e9e;
  margin-top: 4px;
  line-height: 1.4;
}

.text-muted {
  color: #9e9e9e !important;
}

.commit {
  font-size: 12px;
  color: #9e9e9e;
  margin-bottom: 16px;
  line-height: 1.4;
}

.commit a {
  color: #FFBC48;
  text-decoration: none;
}

.commit a:hover {
  text-decoration: underline;
}

.evaluate-erro {
  display: none;
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  align-items: center;
  gap: 8px;
}

.evaluate-erro.show {
  display: flex;
}

.evaluate-erro img,
.error-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
  color: #856404;
}

.evaluate-erro p {
  margin: 0;
  color: #856404;
  font-size: 14px;
}

.submit-evaluate-main {
  text-align: center;
}

.submit-evaluate {
  background: #FFBC48;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-evaluate:hover:not(:disabled) {
  background: #FFBC48;
}

.submit-evaluate:disabled {
  background: #d9d9d9;
  cursor: not-allowed;
}

/* Swiper Carousel Styles */
.reviews-swiper {
  width: 100%;
  padding: 20px 60px 60px 60px;
}

.reviews-swiper .swiper-wrapper {
  align-items: stretch;
}

.reviews-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.reviews-swiper .swiper-slide .review-card {
  width: 100%;
  height: 100%;
}

/* Swiper Navigation Buttons */
.reviews-swiper .swiper-button-next,
.reviews-swiper .swiper-button-prev {
  color: #FFBC48;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.reviews-swiper .swiper-button-next:hover,
.reviews-swiper .swiper-button-prev:hover {
  background: #FFBC48;
  color: white;
  transform: scale(1.1);
}

.reviews-swiper .swiper-button-next:after,
.reviews-swiper .swiper-button-prev:after {
  font-size: 18px;
  font-weight: bold;
}

.reviews-swiper .swiper-button-next {
  right: 0px;
}

.reviews-swiper .swiper-button-prev {
  left: 0px;
}

/* Swiper Pagination */
.reviews-swiper .swiper-pagination {
  bottom: 20px;
}

.reviews-swiper .swiper-pagination-bullet {
  background: #d9d9d9;
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.reviews-swiper .swiper-pagination-bullet-active {
  background: #FFBC48;
  transform: scale(1.2);
}

/* Review Card Styles */
.review-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 30px 0px rgba(0, 0, 0, 0.1);
}

.review-header {
  margin-bottom: 16px;
}

.reviewer-info {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.avatar {
  flex-shrink: 0;
}

.avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.reviewer-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rating-stars {
  margin-bottom: 4px;
}

.stars-img {
  height: 16px;
  width: auto;
}

.reviewer-name {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #212121;
  margin: 0;
}

.reviewer-position {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.36;
  color: #616161;
  opacity: 0.7;
  margin: 0;
}

.review-content {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #616161;
  flex: 1;
}

.review-content p {
  margin: 0 0 16px 0;
}

.review-content p:last-child {
  margin-bottom: 0;
}

/* Review Summary Card */
.review-summary-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 24px;
  padding: 12px 20px;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.06);
  display: inline-block;
}

.summary-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.summary-text {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #212121;
}

.summary-stars {
  flex-shrink: 0;
}

.summary-stars-img {
  height: 18px;
  width: auto;
}

.summary-rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rating-value {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: #212121;
}

.rating-count {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.36;
  color: #9e9e9e;
}

/* No Reviews Message */
.no-reviews {
  text-align: center;
  color: #616161;
  font-size: 16px;
  padding: 40px 20px;
  background: #f8f9fa;
  border-radius: 12px;
  border: 1px dashed #d9d9d9;
}

/* View More Reviews Section */
.view-more-reviews {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.view-more-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #9e9e9e;
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.view-more-link:hover {
  color: #FFBC48;
}

.view-more-text {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
}

.arrow-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
}

.view-more-link:hover .arrow-icon {
  transform: translateX(4px);
}

/* Rating Summary Tags */
.rating-summary-tags {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.customer-reviews-complete-section .reviews-swiper {
  width: 100%;
  padding: 20px 60px 60px 60px;
}

.customer-reviews-complete-section .reviews-swiper .swiper-wrapper {
  align-items: stretch;
}

.customer-reviews-complete-section .reviews-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.customer-reviews-complete-section .reviews-swiper .swiper-slide .review-card {
  width: 100%;
  height: 100%;
}

/* Responsive Design for Complete Section */
@media (max-width: 768px) {
  .reviews-swiper {
    padding: 20px 50px 50px 50px;
  }

  .customer-reviews-complete-section .reviews-swiper {
    padding: 20px 50px 50px 50px;
  }

  .view-more-reviews {
    margin: 16px 0;
  }

  .rating-summary-tags {
    margin-top: 16px;
  }

  .reviews-swiper .swiper-button-next,
  .reviews-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  .reviews-swiper .swiper-button-next:after,
  .reviews-swiper .swiper-button-prev:after {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .reviews-swiper {
    padding: 20px 40px 50px 40px;
  }

  .customer-reviews-complete-section .reviews-swiper {
    padding: 20px 40px 50px 40px;
  }

  .customer-reviews-complete-section .review-card {
    padding: 24px;
  }

  .customer-reviews-complete-section .reviewer-info {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .customer-reviews-complete-section .reviewer-details {
    align-items: center;
  }

  .view-more-text {
    font-size: 14px;
  }

  .arrow-icon {
    width: 20px;
    height: 20px;
  }

  /* Mobile responsive for rating summary */
  .review-summary-card {
    padding: 12px 16px;
    border-radius: 20px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .summary-content {
    flex-direction: row;
    gap: 16px;
    text-align: left;
    align-items: center;
    justify-content: space-between;
  }

  .summary-text {
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
  }

  .summary-stars {
    flex-shrink: 0;
  }

  .summary-stars-img {
    height: 14px;
  }

  .summary-rating {
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
  }

  .rating-value {
    font-size: 16px;
    font-weight: 600;
    color: #ff7a30;
  }

  .rating-count {
    font-size: 12px;
    color: #9e9e9e;
    text-align: right;
  }
}

/* Animation for smooth transitions */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.review-card {
  animation: fadeInUp 0.6s ease-out;
}

.review-card:nth-child(2) {
  animation-delay: 0.1s;
}

.review-card:nth-child(3) {
  animation-delay: 0.2s;
}

.review-card:nth-child(4) {
  animation-delay: 0.3s;
}

.review-card:nth-child(5) {
  animation-delay: 0.4s;
}

/* Modal Styles for Review Form */
.review-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.review-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-modal-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 0;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0px 20px 60px rgba(0, 0, 0, 0.2);
  animation: slideInUp 0.3s ease-out;
  display: flex;
  flex-direction: column;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari, Edge) */
.review-modal-content::-webkit-scrollbar {
  display: none;
}

.review-modal-header {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 32px 16px 32px;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  flex-shrink: 0;
}

.review-modal-title {
  font-family: "Noto Sans", sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #212121;
  margin: 0;
}

.review-modal-close {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #eeeeee;
  font-size: 24px;
  color: #616161;
  cursor: pointer;
  padding: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.review-modal-close:hover {
  background: #FFBC48;
  color: #ffffff;
  border-color: #FFBC48;
  transform: scale(1.1);
  box-shadow: 0px 4px 12px rgba(255, 122, 48, 0.3);
}

.review-modal-close:active {
  transform: scale(0.95);
}

.review-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 32px 32px 32px;

  /* Hide scrollbar but keep scroll functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */

  /* Smooth scrolling */
  scroll-behavior: smooth;
}

/* Hide scrollbar for Webkit browsers (Chrome, Safari, Edge) */
.review-modal-body::-webkit-scrollbar {
  display: none;
}

/* Success State Styles */
.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.success-state.show {
  opacity: 1;
  transform: translateY(0);
}

.success-icon {
  margin-bottom: 24px;
}

.checkmark-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  animation: successPulse 0.6s ease-out;
}

.checkmark {
  width: 30px;
  height: 20px;
  border-left: 3px solid #ffffff;
  border-bottom: 3px solid #ffffff;
  transform: rotate(-45deg);
  animation: checkmarkDraw 0.5s ease-out 0.3s both;
}

.success-title {
  font-family: "Noto Sans", sans-serif;
  font-weight: 600;
  font-size: 24px;
  color: #212121;
  margin: 0 0 16px 0;
}

.success-message {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #616161;
  line-height: 1.5;
  margin: 0 0 32px 0;
  max-width: 400px;
}

/* Nam custom */

.box-quote-mark-left{
  
  display: flex;
  align-items: start;
  justify-content: start;
  
}
.box-quote-mark{
  
  display: flex;
  align-items: end;
  justify-content: end;
  
}

.quote-mark-left{
  position: absolute;
  left: -5%;
}

.quote-mark-right{
  position: absolute;
  right: -5%;
}

.rating-stars {
  display: flex;
  gap: 4px;
}

.rating-stars .star {
  font-size: 16px;
  color: #E0E0E0; /* sao rỗng */
}

.rating-stars .star.filled {
  color: #FFC107; /* sao vàng */
}
.rating-stars .star {
  font-size: 18px;
}


/* Success Animations */
@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkmarkDraw {
  0% {
    width: 0;
    height: 0;
    opacity: 0;
  }
  50% {
    width: 15px;
    height: 10px;
    opacity: 0.5;
  }
  100% {
    width: 30px;
    height: 20px;
    opacity: 1;
  }
}

/* Make rating summary clickable */
.review-summary-card.clickable {
  cursor: pointer;
  transition: all 0.2s ease;
}

.review-summary-card.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0px 8px 30px 0px rgba(0, 0, 0, 0.12);
  border-color: #FFBC48;
}

/* Modal animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Responsive modal - Large Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .review-modal-content {
    max-width: 550px;
  }

  .review-modal-header {
    padding: 28px 28px 14px 28px;
  }

  .review-modal-body {
    padding: 14px 28px 28px 28px;
  }

  .review-modal-title {
    font-size: 22px;
  }

  .review-modal-header {
    padding: 14px 0;
  }

  .review-modal-close {
    width: 34px;
    height: 34px;
    font-size: 22px;
  }
}

/* Responsive modal - Tablet */
@media (max-width: 768px) {
  .review-modal {
    padding: 20px;
  }

  .review-modal-content {
    width: 100%;
    max-width: 500px;
    margin: 0;
    max-height: 85vh;
  }

  .review-modal-title {
    font-size: 20px;
  }

  .review-modal-header {
    padding: 24px 24px 12px 24px;
  }

  .review-modal-body {
    padding: 12px 24px 24px 24px;
  }

  .review-modal-close {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  /* Success state responsive for tablet */
  .success-state {
    padding: 32px 16px;
  }

  .checkmark-circle {
    width: 70px;
    height: 70px;
  }

  .checkmark {
    width: 26px;
    height: 18px;
  }

  .success-title {
    font-size: 22px;
  }

  .success-message {
    font-size: 15px;
    margin-bottom: 32px;
  }

  /* Form adjustments for tablet */
  .form-evaluate {
    padding: 16px;
  }

  .star__rating {
    gap: 4px;
    margin-bottom: 16px;
  }

  .star {
    font-size: 20px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .form-control {
    padding: 10px 14px;
    font-size: 15px;
  }
}

/* Responsive modal - Mobile */
@media (max-width: 480px) {
  .review-modal {
    padding: 0;
    align-items: flex-start;
  }

  .review-modal-content {
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .review-modal-title {
    font-size: 18px;
    font-weight: 600;
  }

  .review-modal-header {
    padding: 16px 16px 8px 16px;
  }

  .review-modal-close {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }

  .review-modal-body {
    padding: 8px 16px 16px 16px;
  }

  /* Success state responsive for mobile */
  .success-state {
    padding: 24px 12px;
  }

  .checkmark-circle {
    width: 60px;
    height: 60px;
  }

  .checkmark {
    width: 22px;
    height: 16px;
  }

  .success-title {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .success-message {
    font-size: 14px;
    margin-bottom: 32px;
  }

  /* Form adjustments for mobile */

  /* Form adjustments for mobile */
  .form-evaluate {
    padding: 12px;
    margin: 0;
    border-radius: 16px;
  }

  .star__rating {
    gap: 3px;
    margin-bottom: 14px;
    justify-content: center;
  }

  .star {
    font-size: 18px;
  }

  .form-group {
    margin-bottom: 12px;
  }

  .form-control {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 8px;
  }

  .form-check {
    margin-bottom: 12px;
  }

  .form-check-label {
    font-size: 13px;
  }

  .commit {
    font-size: 11px;
    margin-bottom: 12px;
    line-height: 1.3;
  }

  .submit-evaluate {
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 6px;
  }

  .evaluate-erro {
    padding: 8px;
    margin-bottom: 12px;
    border-radius: 6px;
  }

  .evaluate-erro img,
  .error-icon {
    width: 16px;
    height: 16px;
    font-size: 14px;
  }

  .evaluate-erro p {
    font-size: 12px;
  }
}

/* Responsive modal - Small Mobile */
@media (max-width: 360px) {
  .review-modal-header {
    padding: 12px 12px 6px 12px;
  }

  .review-modal-body {
    padding: 6px 12px 12px 12px;
  }

  .review-modal-title {
    font-size: 16px;
  }

  .review-modal-close {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  /* Success state responsive for small mobile */
  .success-state {
    padding: 20px 8px;
  }

  .checkmark-circle {
    width: 50px;
    height: 50px;
  }

  .checkmark {
    width: 18px;
    height: 14px;
  }

  .success-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .success-message {
    font-size: 13px;
    margin-bottom: 32px;
  }

  .form-evaluate {
    padding: 10px;
    border-radius: 12px;
  }

  .star {
    font-size: 16px;
  }

  .form-control {
    padding: 6px 10px;
    font-size: 13px;
  }

  .submit-evaluate {
    padding: 8px 16px;
    font-size: 13px;
  }
}
