/* Review Popup Modal */
.review-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.review-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.review-modal {
  background: white;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

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

.review-modal-close {
  float: right;
  font-size: 1.5rem;
  font-weight: 300;
  cursor: pointer;
  color: #999;
  border: none;
  background: none;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.review-modal-close:hover {
  color: #333;
}

.review-modal-header {
  margin-bottom: 25px;
}

.review-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.review-modal-subtitle {
  font-size: 0.95rem;
  color: #666;
}

.review-form-group {
  margin-bottom: 20px;
}

.review-form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
  font-size: 0.95rem;
}

.review-rating-input {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.review-star {
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
  filter: grayscale(100%);
  opacity: 0.4;
}

.review-star:hover,
.review-star.active {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

.review-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 100px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.review-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.review-submit-btn {
  background: #667eea;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}

.review-submit-btn:hover {
  background: #764ba2;
}

.review-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.review-skip-btn {
  background: none;
  color: #667eea;
  border: 1px solid #ddd;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  margin-top: 10px;
  width: 100%;
  transition: all 0.2s;
}

.review-skip-btn:hover {
  background: #f0f0f0;
}

.review-success {
  text-align: center;
  padding: 30px 0;
}

.review-success-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.review-success-message {
  font-size: 1.1rem;
  color: #333;
  font-weight: 600;
  margin-bottom: 10px;
}

.review-success-submessage {
  font-size: 0.95rem;
  color: #666;
}

.review-error {
  background: #fee;
  color: #c33;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.review-loading {
  text-align: center;
  padding: 20px;
}

.review-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #ddd;
  border-top: 3px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.review-name-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  color: #0a0a0a;
  outline: none;
  transition: border-color 0.15s;
}
.review-name-input:focus {
  border-color: #2563eb;
}
.review-name-input::placeholder {
  color: #adb5bd;
}
