
/* Sederhana: Modal Rating */
.rating-modal-content {
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  background: #fff;
  position: relative;
}
.rating-modal-header {
  background: #2563eb;
  color: #fff;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 18px 18px 8px 18px;
}
.title-gradient {
  font-weight: 700;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  text-shadow: none;
  animation: none;
}
.rating-subtitle {
  font-size: 0.95rem;
  opacity: 0.95;
  font-weight: 400;
  color: #e0e7ef;
  text-shadow: none;
  animation: none;
}
.subtitle-glow {
  animation: none;
}
.modal-body.rating-modal-body {
  background: #fff;
  margin: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: none;
  padding: 0;
}
.rating-container {
  padding: 18px 12px 12px 12px;
}
.greeting-section {
  margin-bottom: 12px;
}
.greeting-emoji {
  font-size: 2.5rem;
  background: none;
  color: #2563eb;
  animation: none;
}
.greeting-text-enhanced {
  color: #222;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}
.highlight-text {
  color: #2563eb;
  background: none;
  font-weight: 700;
}
.office-name {
  color: #444;
  font-weight: 500;
  font-size: 0.95em;
}
.greeting-desc-enhanced {
  color: #666;
  font-size: 0.98rem;
  margin-bottom: 0;
  font-weight: 400;
}
.rating-section-enhanced {
  margin-bottom: 12px;
}
.rating-question {
  color: #222;
  font-weight: 600;
  margin: 0 0 8px 0;
  font-size: 1.08rem;
}
.question-star {
  color: #fbbf24;
}
.rating-stars-container-enhanced {
  margin-bottom: 8px;
}
.rating-stars {
  gap: 8px;
}
.star-wrapper.ultra-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 8px 2px;
  border-radius: 8px;
  border: 2px solid transparent;
  background: none;
  transition: background 0.2s, border 0.2s;
}
.star-wrapper.ultra-modern .star {
  font-size: 1.5rem;
  color: #e0e6ed;
  transition: color 0.2s;
}
.star-wrapper.ultra-modern.active .star,
.star-wrapper.ultra-modern.selected .star {
  color: #fbbf24;
}
.star-wrapper.ultra-modern .rating-emoji {
  font-size: 1.1rem;
  margin-top: 2px;
}
.rating-feedback-enhanced {
  margin-bottom: 8px;
}
.feedback-icon-enhanced {
  color: #2563eb;
  font-size: 1.3rem;
  margin-bottom: 2px;
}
.rating-text-enhanced {
  color: #333;
  font-size: 0.98rem;
  margin-bottom: 2px;
}
.feedback-progress {
  background: #e5e7eb;
  border-radius: 6px;
  height: 7px;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.progress-bar {
  background: #2563eb;
  height: 100%;
  width: 0;
  border-radius: 6px;
  transition: width 0.3s;
}
.action-section-enhanced {
  margin-bottom: 10px;
}
.btn-rating-submit-premium {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 7px 18px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}
.btn-rating-submit-premium:disabled {
  background: #a5b4fc;
  color: #fff;
  opacity: 0.7;
}
.btn-rating-skip-premium {
  background: #e5e7eb;
  color: #222;
  border: none;
  border-radius: 6px;
  padding: 7px 16px;
  font-weight: 500;
  font-size: 1rem;
  margin-left: 6px;
  transition: background 0.2s;
}
.btn-rating-skip-premium:hover {
  background: #d1d5db;
}
.btn-content {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-icon {
  font-size: 1.1rem;
}
.btn-loader {
  display: none;
}
.btn-success-check {
  display: none;
}
.info-section-enhanced {
  margin-bottom: 8px;
}
.info-text {
  color: #666;
  font-size: 0.93rem;
}
.info-highlight {
  color: #2563eb;
  font-weight: 600;
}
.thank-you-section {
  margin-top: 10px;
}
.thank-you-title {
  color: #2563eb;
  font-weight: 700;
  margin-bottom: 4px;
}
.thank-you-desc {
  color: #333;
  font-size: 1rem;
}
/* Floating Rating Balloon - Minimize Feature (tetap dipertahankan) */
/* ...existing code... */

/* Enhanced Modal Body */
.rating-modal-body {
  background: white;
  padding: 0;
  margin: 20px;
  border-radius: 20px;
  box-shadow:
    inset 0 2px 20px rgba(0, 0, 0, 0.05),
    0 10px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 2;
}

.rating-container {
  padding: 40px 35px 35px 35px;
}

/* Ultra Enhanced Greeting Section */
.greeting-section {
  text-align: center;
  margin-bottom: 45px;
  position: relative;
}

.greeting-icon-enhanced {
  position: relative;
  display: inline-block;
  margin-bottom: 25px;
}

.icon-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border: 3px solid #667eea;
  border-radius: 50%;
  opacity: 0;
  animation: pulse-ring 2s linear infinite;
}

.ring-delay-1 {
  animation-delay: 0.5s;
  border-color: #764ba2;
}

.ring-delay-2 {
  animation-delay: 1s;
  border-color: #ffc107;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
  }
}

.greeting-emoji {
  font-size: 3.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 2;
  animation: emoji-bounce 3s ease-in-out infinite;
}

@keyframes emoji-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-8px); }
}

.greeting-text-enhanced {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 15px;
  line-height: 1.4;
}

.highlight-text {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.office-name {
  color: #34495e;
  font-weight: 500;
  font-size: 0.95em;
}

.greeting-desc-enhanced {
  color: #7f8c8d;
  font-size: 1rem;
  margin-bottom: 0;
  font-weight: 400;
}

/* Ultra Modern Rating Stars Section */
.rating-section-enhanced {
  margin-bottom: 35px;
  position: relative;
}

.rating-label-enhanced {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
}

.label-decoration {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, #667eea, transparent);
  margin: 0 20px;
}

.rating-question {
  color: #34495e;
  font-weight: 600;
  margin: 0;
  background: white;
  padding: 0 15px;
  font-size: 1.1rem;
  text-align: center;
  position: relative;
}

.question-star {
  color: #ffc107;
  animation: star-twinkle 2s ease-in-out infinite;
}

@keyframes star-twinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.1); }
}

.rating-stars-container-enhanced {
  display: flex;
  justify-content: center;
  margin-bottom: 25px;
  position: relative;
}

.rating-stars-wrapper {
  position: relative;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f8f9ff, #ffffff);
  box-shadow:
    0 10px 30px rgba(102, 126, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.star-background-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05), transparent);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.rating-stars-wrapper:hover .star-background-glow {
  opacity: 1;
}

.rating-stars {
  display: flex;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.star-wrapper.ultra-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 15px 2px;
  border-radius: 15px;
  position: relative;
  border: 2px solid transparent;
}

.star-wrapper.ultra-modern:hover {
  transform: translateY(-8px) scale(1.05);
}

.star-container {
  position: relative;
  margin-bottom: 12px;
}

.star-shadow {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  filter: blur(4px);
  transition: all 0.3s ease;
}

.star {
  font-size: 1.8rem;
  color: #e0e6ed;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.star-sparkle {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sparkle-1, .sparkle-2 {
  position: absolute;
  font-size: 0.8rem;
  color: #ffc107;
  animation: sparkle 1.5s ease-in-out infinite;
}

.sparkle-1 {
  top: -10px;
  right: -5px;
  animation-delay: 0s;
}

.sparkle-2 {
  bottom: -10px;
  left: -5px;
  animation-delay: 0.7s;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.star-wrapper.ultra-modern:hover .star,
.star-wrapper.ultra-modern.active .star {
  color: #ffc107;
  text-shadow:
    0 0 25px rgba(255, 193, 7, 0.6),
    0 2px 15px rgba(255, 193, 7, 0.4);
  transform: scale(1.15) rotateY(15deg);
}

.star-wrapper.ultra-modern:hover .star-sparkle,
.star-wrapper.ultra-modern.active .star-sparkle {
  opacity: 1;
}

.star-wrapper.ultra-modern:hover .star-shadow,
.star-wrapper.ultra-modern.active .star-shadow {
  background: rgba(255, 193, 7, 0.3);
  width: 50px;
  height: 12px;
}

.star-wrapper.ultra-modern.active .star {
  animation: star-celebration 0.8s ease;
}

@keyframes star-celebration {
  0% { transform: scale(1); }
  30% { transform: scale(1.4) rotateY(20deg); }
  60% { transform: scale(1.1) rotateY(-10deg); }
  100% { transform: scale(1.15) rotateY(15deg); }
}

.modern-label {
  font-size: 0.8rem;
  color: #7f8c8d;
  font-weight: 500;
  transition: all 0.3s ease;
  margin-bottom: 8px;
  text-align: center;
}

.star-wrapper.ultra-modern:hover .modern-label,
.star-wrapper.ultra-modern.active .modern-label {
  color: #2c3e50;
  font-weight: 600;
  transform: scale(1.05);
}

.rating-emoji {
  font-size: 1.5rem;
  opacity: 0;
  transition: all 0.3s ease;
  transform: scale(0.5);
}

.star-wrapper.ultra-modern:hover .rating-emoji,
.star-wrapper.ultra-modern.active .rating-emoji {
  opacity: 1;
  transform: scale(1);
  animation: emoji-pop 0.5s ease;
}

@keyframes emoji-pop {
  0% { transform: scale(0.5) rotate(-10deg); }
  50% { transform: scale(1.2) rotate(5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Enhanced Rating Feedback */
.rating-feedback-enhanced {
  margin-bottom: 35px;
}

.feedback-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: linear-gradient(135deg, #f8f9fa, #ffffff);
  border-radius: 18px;
  border: 2px solid #e9ecef;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.feedback-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.6s ease;
}

.feedback-container.has-rating::before {
  left: 100%;
}

.feedback-icon-enhanced {
  position: relative;
  margin-right: 20px;
}

.icon-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  transition: all 0.4s ease;
}

.feedback-main-icon {
  font-size: 1.8rem;
  color: #6c757d;
  transition: all 0.4s ease;
  position: relative;
  z-index: 2;
}

.feedback-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 50px;
}

.rating-text-enhanced {
  margin: 0;
  color: #6c757d;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.4s ease;
  line-height: 1.4;
  text-align: left;
}

.feedback-progress {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.4s ease;
  position: relative;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #667eea, #764ba2);
  width: 0%;
  transition: width 0.6s ease;
  border-radius: 3px;
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: progress-shine 2s ease-in-out infinite;
}

@keyframes progress-shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* States for feedback container */
.feedback-container.has-rating {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: #667eea;
  color: white;
  transform: scale(1.02);
  box-shadow:
    0 15px 35px rgba(102, 126, 234, 0.3),
    0 5px 15px rgba(0, 0, 0, 0.1);
}

.feedback-container.has-rating .rating-text-enhanced {
  color: white;
  font-weight: 600;
}

.feedback-container.has-rating .feedback-main-icon {
  color: white;
  animation: feedback-celebration 0.8s ease;
}

.feedback-container.has-rating .icon-ring {
  border-color: rgba(255, 255, 255, 0.5);
  animation: ring-expand 0.6s ease;
}

.feedback-container.has-rating .feedback-progress {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.feedback-container.show-feedback .feedback-progress {
  opacity: 1;
}

.feedback-container.has-rating .feedback-progress {
  opacity: 1;
}

.feedback-container.has-rating .progress-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.3);
}

@keyframes feedback-celebration {
  0% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.2) rotate(-10deg); }
  50% { transform: scale(1.3) rotate(10deg); }
  75% { transform: scale(1.1) rotate(-5deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@keyframes ring-expand {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.3); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

/* Premium Action Buttons */
.action-section-enhanced {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 0 20px;
}

.btn-rating-submit-premium {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  background-size: 200% 200%;
  border: none;
  color: white;
  padding: 18px 45px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 8px 25px rgba(102, 126, 234, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  min-width: 220px;
  width: 100%;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
}

.btn-background-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-rating-submit-premium:hover:not(:disabled) .btn-background-effect {
  transform: translateX(100%);
}

.btn-rating-submit-premium:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 15px 40px rgba(102, 126, 234, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background-position: 100% 0;
  animation: gradient-pulse 2s ease infinite;
}

@keyframes gradient-pulse {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.btn-icon {
  margin-right: 10px;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.btn-rating-submit-premium:hover:not(:disabled) .btn-icon {
  animation: icon-rocket 0.6s ease;
}

@keyframes icon-rocket {
  0% { transform: translateX(0); }
  50% { transform: translateX(5px) scale(1.1); }
  100% { transform: translateX(0); }
}

.btn-loader {
  position: absolute;
  display: none;
}

.loader-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.btn-success-check {
  position: absolute;
  display: none;
  font-size: 1.2rem;
}

.btn-rating-submit-premium:disabled {
  background: linear-gradient(135deg, #e9ecef, #f8f9fa);
  color: #6c757d;
  box-shadow: none;
  cursor: not-allowed;
  transform: none !important;
}

.btn-rating-submit-premium.loading .btn-content {
  opacity: 0;
}

.btn-rating-submit-premium.loading .btn-loader {
  display: block;
}

.btn-rating-submit-premium.success .btn-content {
  opacity: 0;
}

.btn-rating-submit-premium.success .btn-success-check {
  display: block;
  animation: success-bounce 0.6s ease;
}

@keyframes success-bounce {
  0% { transform: scale(0); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.btn-rating-skip-premium {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid #dee2e6;
  color: #6c757d;
  padding: 18px 35px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  min-width: 220px;
  width: 100%;
  max-width: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
}

.skip-btn-effect {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(108, 117, 125, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-rating-skip-premium:hover {
  border-color: #adb5bd;
  color: #495057;
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-rating-skip-premium:hover .skip-btn-effect {
  opacity: 1;
}

/* Enhanced Info Section */
.info-section-enhanced {
  margin-bottom: 20px;
}

.info-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #f8f9ff, #ffffff);
  border-radius: 15px;
  border: 1px solid #e3e6f0;
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.1);
}

.info-icon {
  margin-right: 15px;
  color: #667eea;
  font-size: 1.3rem;
}

.info-content {
  flex: 1;
}

.info-text {
  margin: 0;
  color: #6c757d;
  font-size: 0.9rem;
  line-height: 1.4;
}

.info-highlight {
  color: #667eea;
  font-weight: 600;
}

/* Thank You Section */
.thank-you-section {
  text-align: center;
  padding: 40px 20px;
  position: relative;
}

.thank-you-animation {
  position: relative;
}

.success-checkmark-container {
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
}

.checkmark-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #28a745;
  position: relative;
  animation: checkmark-circle-scale 0.6s ease;
}

.checkmark-background {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #28a745, #20c997);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: checkmark-bg-appear 0.4s ease 0.2s both;
}

.checkmark-check {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 15px;
  border-left: 4px solid white;
  border-bottom: 4px solid white;
  transform: translate(-50%, -60%) rotate(-45deg);
  animation: checkmark-appear 0.4s ease 0.4s both;
  opacity: 0;
}

@keyframes checkmark-circle-scale {
  0% { transform: scale(0); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@keyframes checkmark-bg-appear {
  0% { transform: translate(-50%, -50%) scale(0); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

@keyframes checkmark-appear {
  0% { opacity: 0; transform: translate(-50%, -60%) rotate(-45deg) scale(0); }
  100% { opacity: 1; transform: translate(-50%, -60%) rotate(-45deg) scale(1); }
}

.thank-you-title {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 15px;
  animation: title-fade-in 0.6s ease 0.6s both;
  opacity: 0;
}

.thank-you-desc {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin-bottom: 0;
  animation: desc-fade-in 0.6s ease 0.8s both;
  opacity: 0;
}

@keyframes title-fade-in {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes desc-fade-in {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

/**************************\
  Basic Modal Styles
\**************************/

.modal {
  font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal__container {
  background-color: #fff;
  padding: 30px;
  max-width: 500px;
  max-height: 100vh;
  border-radius: 4px;
  overflow-y: auto;
  box-sizing: border-box;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__title {
  margin-top: 0;
  margin-bottom: 0;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  color: #00449e;
  box-sizing: border-box;
}

.modal__close {
  background: transparent;
  border: 0;
}

.modal__header .modal__close:before {
  content: "\2715";
}

.modal__content {
  margin-top: 2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  color: rgba(0,0,0,.8);
}

.modal__btn {
  font-size: .875rem;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: .5rem;
  padding-bottom: .5rem;
  background-color: #e6e6e6;
  color: rgba(0,0,0,.8);
  border-radius: .25rem;
  border-style: none;
  border-width: 0;
  cursor: pointer;
  -webkit-appearance: button;
  appearance: button;
  text-transform: none;
  overflow: visible;
  line-height: 1.15;
  margin: 0;
  will-change: transform;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: -webkit-transform .25s ease-out;
  transition: transform .25s ease-out;
  transition: transform .25s ease-out,-webkit-transform .25s ease-out;
}

.modal__btn:focus, .modal__btn:hover {
  -webkit-transform: scale(1.05);
  transform: scale(1.05);
}

.modal__btn-primary {
  background-color: #00449e;
  color: #fff;
}

/**************************\
  Demo Animation Style
\**************************/
@keyframes mmfadeIn {
    from { opacity: 0; }
      to { opacity: 1; }
}

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

@keyframes mmslideIn {
  from { transform: translateY(15%); }
    to { transform: translateY(0); }
}

@keyframes mmslideOut {
    from { transform: translateY(0); }
    to { transform: translateY(-10%); }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden="false"] .modal__overlay {
  animation: mmfadeIn .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="false"] .modal__container {
  animation: mmslideIn .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__overlay {
  animation: mmfadeOut .3s cubic-bezier(0.0, 0.0, 0.2, 1);
}

.micromodal-slide[aria-hidden="true"] .modal__container {
  animation: mmslideOut .3s cubic-bezier(0, 0, .2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}

/* Floating Rating Balloon - Minimize Feature */
.floating-rating-balloon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  box-shadow:
    0 10px 30px rgba(102, 126, 234, 0.4),
    0 5px 15px rgba(0, 0, 0, 0.2),
    0 0 0 0 rgba(102, 126, 234, 0.7);
  cursor: pointer;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: balloon-float 3s ease-in-out infinite, balloon-pulse 2s ease-in-out infinite;
}

.floating-rating-balloon:hover {
  transform: scale(1.15);
  box-shadow:
    0 15px 40px rgba(102, 126, 234, 0.6),
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 0 0 20px rgba(102, 126, 234, 0.1);
  animation-play-state: paused;
}

.floating-rating-balloon.show {
  display: flex;
  animation: balloon-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
             balloon-float 3s ease-in-out infinite 0.6s,
             balloon-pulse 2s ease-in-out infinite 2s;
}

.floating-rating-balloon.hide {
  animation: balloon-disappear 0.4s ease-in forwards;
}

@keyframes balloon-float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

@keyframes balloon-pulse {
  0%, 100% {
    box-shadow:
      0 10px 30px rgba(102, 126, 234, 0.4),
      0 5px 15px rgba(0, 0, 0, 0.2),
      0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  50% {
    box-shadow:
      0 10px 30px rgba(102, 126, 234, 0.4),
      0 5px 15px rgba(0, 0, 0, 0.2),
      0 0 0 15px rgba(102, 126, 234, 0.3);
  }
}

@keyframes balloon-appear {
  0% {
    transform: scale(0) translateY(100px) rotate(180deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.3) translateY(-10px) rotate(-10deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(1) translateY(0px) rotate(0deg);
    opacity: 1;
  }
}

@keyframes balloon-disappear {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(0.3) translateY(50px) rotate(90deg);
    opacity: 0;
  }
}

.balloon-icon {
  color: white;
  font-size: 26px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: icon-sparkle 2s ease-in-out infinite;
}

.floating-rating-balloon:hover .balloon-icon {
  transform: scale(1.2) rotate(15deg);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

@keyframes icon-sparkle {
  0%, 100% {
    filter: brightness(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.3);
    transform: scale(1.05);
  }
}

/* Balloon with notification badge */
.floating-rating-balloon::before {
  content: '';
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(238, 90, 82, 0.4);
  animation: notification-pulse 2s ease-in-out infinite;
}

@keyframes notification-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

/* Balloon tooltip */
.floating-rating-balloon .balloon-tooltip {
  position: absolute;
  bottom: 75px;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-rating-balloon .balloon-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 15px;
  border: 5px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.floating-rating-balloon:hover .balloon-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .floating-rating-balloon {
    bottom: 15px;
    right: 15px;
    width: 55px;
    height: 55px;
  }

  .balloon-icon {
    font-size: 20px;
  }

  .floating-rating-balloon .balloon-tooltip {
    bottom: 70px;
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* Enhanced minimize animation for modal */
.rating-modal-minimize {
  animation: modal-minimize 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes modal-minimize {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.8);
    opacity: 0.7;
  }
  100% {
    transform: scale(0.3) translate(400px, 300px);
    opacity: 0;
  }
}

/* Enhanced maximize animation for modal */
.rating-modal-maximize {
  animation: modal-maximize 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes modal-maximize {
  0% {
    transform: scale(0.3) translate(400px, 300px);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
