/* ==========================================================================
   SMP Reviews – Frontend Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.smp-rev-form-wrap {
  max-width: 560px;
}

.smp-review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.smp-rev-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.smp-rev-field label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.smp-rev-field input[type="text"],
.smp-rev-field input[type="email"],
.smp-rev-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 15px;
  color: #111827;
  background: #fff;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.smp-rev-field input:focus,
.smp-rev-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

.smp-rev-field textarea {
  resize: vertical;
  min-height: 110px;
}

/* --------------------------------------------------------------------------
   Star picker
   -------------------------------------------------------------------------- */

.smp-star-picker {
  display: flex;
  gap: 4px;
  align-items: center;
}

.smp-star {
  font-size: 34px;
  color: #d1d5db;
  cursor: pointer;
  line-height: 1;
  transition: color .12s, transform .1s;
  user-select: none;
}

.smp-star.hover,
.smp-star.selected {
  color: #f59e0b;
}

.smp-star:hover {
  transform: scale(1.15);
}

/* --------------------------------------------------------------------------
   Messages
   -------------------------------------------------------------------------- */

.smp-rev-msg {
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}

.smp-rev-msg--error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.smp-rev-msg--success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  font-size: 16px;
  padding: 20px;
}

/* --------------------------------------------------------------------------
   Submit button
   -------------------------------------------------------------------------- */

.smp-rev-submit {
  align-self: flex-start;
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 11px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s, transform .1s;
}

.smp-rev-submit:hover   { background: #1d4ed8; }
.smp-rev-submit:active  { transform: scale(.98); }
.smp-rev-submit:disabled { background: #93c5fd; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Carousel wrapper
   -------------------------------------------------------------------------- */

.smp-carousel-wrap {
  width: 100%;
  position: relative;
}

.smp-carousel {
  overflow: hidden;
  border-radius: 12px;
}

.smp-carousel-track {
  display: flex;
  transition: transform .45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.smp-carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 4px 6px;
}

/* --------------------------------------------------------------------------
   Review card
   -------------------------------------------------------------------------- */

.smp-review-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .06);
}

.smp-review-stars {
  display: flex;
  gap: 3px;
}

.smp-star-filled { font-size: 22px; color: #f59e0b; }
.smp-star-empty  { font-size: 22px; color: #d1d5db; }

.smp-review-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: #374151;
  font-style: italic;
}

.smp-review-text::before { content: "\201C"; }
.smp-review-text::after  { content: "\201D"; }

.smp-review-footer {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-top: 1px solid #f3f4f6;
  padding-top: 14px;
}

.smp-review-name {
  font-weight: 700;
  color: #111827;
  font-size: 15px;
}

.smp-review-date {
  font-size: 13px;
  color: #9ca3af;
}

/* --------------------------------------------------------------------------
   Carousel navigation
   -------------------------------------------------------------------------- */

.smp-carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.smp-carousel-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  transition: background .15s, border-color .15s;
  line-height: 1;
}

.smp-carousel-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.smp-carousel-dots {
  display: flex;
  gap: 6px;
}

.smp-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #d1d5db;
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.smp-carousel-dot.active {
  background: #2563eb;
  transform: scale(1.3);
}

/* --------------------------------------------------------------------------
   Misc
   -------------------------------------------------------------------------- */

.smp-no-reviews {
  color: #9ca3af;
  font-style: italic;
}

@media (max-width: 480px) {
  .smp-review-card {
    padding: 20px 18px;
  }
}
