/* ==========================================================================
   PUVIMA Consultancy — Customer Reviews & Rotating Carousel Stylesheet
   Matches site light theme UI: rounded cards, clean typography, monogram avatars
   ========================================================================== */

.section-reviews {
  padding: clamp(32px, 4vw, 50px) 0;
  background: #F8FAFC;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.reviews-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 20px;
}

.reviews-subtitle {
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.6;
  margin-top: 8px;
}

.btn-write-review {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: linear-gradient(135deg, #0072CE 0%, #083670 100%);
  border: 1px solid rgba(0, 114, 206, 0.3);
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 114, 206, 0.25);
}

.btn-write-review:hover {
  background: linear-gradient(135deg, #005FA8 0%, #062B59 100%);
  border-color: rgba(0, 114, 206, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 114, 206, 0.4);
}

/* ==========================================================================
   INFINITE ROTATING CAROUSEL (MOVE LEFT SIDEWAYS)
   ========================================================================== */
.reviews-marquee-viewport {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0 28px 0;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.reviews-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: moveLeftSideways 90s linear infinite;
  will-change: transform;
}

.reviews-marquee-viewport:hover .reviews-marquee-track {
  animation-play-state: paused;
}

@keyframes moveLeftSideways {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   REVIEW CARD (MATCHING PUVIMA CLEAN ENTERPRISE UI)
   ========================================================================== */
.customer-review-card {
  width: 360px;
  min-width: 360px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  user-select: none;
}

.customer-review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 114, 206, 0.12);
  border-color: rgba(0, 114, 206, 0.35);
}

/* Card Top: Avatar, Name, Date, Platform Icon */
.review-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.reviewer-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviewer-avatar-monogram {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 114, 206, 0.25);
}

.reviewer-info-wrap {
  display: flex;
  flex-direction: column;
}

.reviewer-name {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.reviewer-meta {
  font-size: 0.78rem;
  color: var(--accent-blue);
  margin-top: 3px;
  font-weight: 500;
  font-family: var(--font-mono);
}

/* Platform Badges (Google, Facebook, LinkedIn) */
.review-platform-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.platform-google {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
}

.platform-facebook {
  background: #1877F2;
  color: #FFFFFF;
}

.platform-linkedin {
  background: #0A66C2;
  color: #FFFFFF;
}

/* Rating Stars Row */
.review-stars-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}

.review-star {
  color: #F59E0B;
  width: 19px;
  height: 19px;
}

/* Review Text */
.review-body-text {
  font-family: var(--font-sans);
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-secondary);
  flex-grow: 1;
  margin: 0;
}

/* Optional company tag */
.review-company-tag {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}


/* ==========================================================================
   WRITE A REVIEW MODAL (PREMIUM ENTERPRISE LIGHT THEME)
   ========================================================================== */
.review-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalOverlayFadeIn 0.25s ease-out;
}

@keyframes modalOverlayFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.review-modal-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  width: 100%;
  max-width: 500px;
  padding: 34px 30px 30px 30px;
  box-shadow: 0 25px 60px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.04);
  position: relative;
  color: #0F172A;
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.review-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  gap: 16px;
}

.review-modal-title {
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.25;
}

.review-modal-subtitle {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.88rem;
  color: #64748B;
  margin: 6px 0 0 0;
  line-height: 1.5;
}

.review-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #64748B;
  font-size: 1.35rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.review-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: scale(1.06);
}

/* Modal Form Controls */
.review-modal-card .form-group {
  margin-bottom: 18px;
}

.review-modal-card .form-label {
  display: block;
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-size: 0.86rem;
  font-weight: 600;
  color: #1E293B;
  margin-bottom: 7px;
}

.review-modal-card .form-control,
.review-modal-card .form-input,
.review-modal-card .form-textarea,
.review-modal-card input[type="text"],
.review-modal-card textarea {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 12px 16px !important;
  background: #F8FAFC !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 10px !important;
  font-family: var(--font-sans, 'Inter', -apple-system, BlinkMacSystemFont, sans-serif) !important;
  font-size: 0.95rem !important;
  color: #0F172A !important;
  outline: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) inset !important;
}

.review-modal-card .form-control::placeholder,
.review-modal-card .form-input::placeholder,
.review-modal-card .form-textarea::placeholder,
.review-modal-card input::placeholder,
.review-modal-card textarea::placeholder {
  color: #94A3B8 !important;
  font-style: normal !important;
}

.review-modal-card .form-control:hover,
.review-modal-card .form-input:hover,
.review-modal-card .form-textarea:hover,
.review-modal-card input[type="text"]:hover,
.review-modal-card textarea:hover {
  border-color: #CBD5E1 !important;
  background: #FFFFFF !important;
}

.review-modal-card .form-control:focus,
.review-modal-card .form-input:focus,
.review-modal-card .form-textarea:focus,
.review-modal-card input[type="text"]:focus,
.review-modal-card textarea:focus {
  background: #FFFFFF !important;
  border-color: #0072CE !important;
  box-shadow: 0 0 0 4px rgba(0, 114, 206, 0.15) !important;
}

.review-modal-card textarea,
.review-modal-card .form-textarea {
  min-height: 110px !important;
  line-height: 1.6 !important;
  resize: vertical !important;
}

/* Star Rating Picker Box */
.review-modal-card .star-rating-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  margin-top: 4px;
}

.star-rating-picker {
  display: flex;
  gap: 6px;
  cursor: pointer;
}

.star-rating-picker svg {
  width: 28px;
  height: 28px;
  fill: #E2E8F0;
  color: #E2E8F0;
  transition: transform 0.15s ease, fill 0.15s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
}

.star-rating-picker svg.active,
.star-rating-picker svg.hover {
  fill: #F59E0B;
  color: #F59E0B;
  transform: scale(1.12);
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.35));
}

.rating-score-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.85rem;
  font-weight: 700;
  color: #D97706;
  background: #FEF3C7;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* Submit Review Button */
.review-modal-card #submitReviewBtn {
  width: 100% !important;
  padding: 14px 22px !important;
  background: linear-gradient(135deg, #0072CE 0%, #05488F 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #FFFFFF !important;
  font-family: var(--font-display, 'Manrope', sans-serif) !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(0, 114, 206, 0.3) !important;
  transition: all 0.2s ease !important;
  margin-top: 8px !important;
}

.review-modal-card #submitReviewBtn:hover {
  background: linear-gradient(135deg, #005FA8 0%, #03346B 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 114, 206, 0.42) !important;
}

.review-modal-card #submitReviewBtn:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 6px rgba(0, 114, 206, 0.25) !important;
}

.review-modal-card #submitReviewBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}

@media (max-width: 640px) {
  .reviews-header-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .btn-write-review {
    width: 100%;
    justify-content: center;
  }

  .customer-review-card {
    width: 290px;
    min-width: 290px;
    padding: 20px 18px;
  }

  .review-modal-card {
    padding: 24px 20px;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .customer-review-card {
    width: 270px;
    min-width: 270px;
    padding: 18px 16px;
  }

  .reviewer-name {
    font-size: 0.95rem;
  }

  .review-body-text {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .review-modal-card {
    padding: 20px 16px;
  }
}



/* ==========================================================================
   REVIEW MODAL PROFILE AVATAR UPLOAD
   ========================================================================== */
.review-avatar-uploader-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: 12px;
  margin-top: 4px;
  transition: all 0.2s ease;
}

.review-avatar-uploader-row:hover,
.review-avatar-uploader-row.dragover {
  border-color: #0072CE;
  background: #F0F7FF;
}

.review-avatar-preview-box {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #0072CE 0%, #0284C7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 114, 206, 0.25);
  border: 2px solid #FFFFFF;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.review-avatar-preview-box:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(0, 114, 206, 0.35);
}

.review-avatar-initials {
  color: #FFFFFF;
  font-weight: 700;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  user-select: none;
}

.review-avatar-img-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.review-avatar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 50%;
}

.review-avatar-preview-box:hover .review-avatar-overlay {
  opacity: 1;
}

.review-avatar-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-grow: 1;
}

.review-avatar-btn-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-avatar-upload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 0.82rem;
  font-weight: 600;
  color: #1E293B;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-avatar-upload:hover {
  background: #F1F5F9;
  border-color: #0072CE;
  color: #0072CE;
}

.btn-avatar-remove {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  background: #FEE2E2;
  border: 1.5px solid #FECACA;
  border-radius: 8px;
  font-family: var(--font-display, 'Manrope', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  color: #DC2626;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-avatar-remove:hover {
  background: #FCA5A5;
  color: #991B1B;
}

.review-avatar-hint {
  font-size: 0.74rem;
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-avatar-url-toggle {
  background: none;
  border: none;
  color: #0072CE;
  padding: 0;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.review-avatar-url-toggle:hover {
  color: #00569c;
}

.review-avatar-url-row {
  margin-top: 8px;
}

.reviewer-avatar-img {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 114, 206, 0.2);
  border: 2px solid rgba(0, 114, 206, 0.25);
  display: block;
}
