.feedback-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  font-family: 'Gilroy-Regular', Arial, sans-serif;
}

@media (min-width: 1200px) {
  .feedback-widget {
    bottom: 40px;
    right: 40px;
  }
  
  .feedback-button {
    width: 100px;
    height: 100px;
    box-shadow: none;
  }
  
  .feedback-button:hover {
    transform: scale(1.15);
    box-shadow: none;
  }
  
  .feedback-button .animated-icon {
    width: 32px;
    height: 32px;
  }
  
  .feedback-message {
    width: 400px;
    bottom: 120px;
  }
  
  .feedback-panel {
    width: 400px;
    bottom: 110px;
  }
}

@media (min-width: 1600px) {
  .feedback-widget {
    bottom: 50px;
    right: 50px;
  }
  
  .feedback-button {
    width: 120px;
    height: 120px;
    box-shadow: none;
  }
  
  .feedback-button .animated-icon {
    width: 40px;
    height: 40px;
  }
  
  .feedback-message {
    width: 450px;
    bottom: 140px;
  }
  
  .feedback-panel {
    width: 450px;
    bottom: 130px;
  }
}

.feedback-message {
  position: absolute;
  bottom: 90px;
  right: 0;
  width: 360px;
  background: linear-gradient(135deg, #ffffff, #f8f9fa);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid #4CAC26;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feedback-message::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #4CAC26;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.feedback-message::before {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 22px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #ffffff;
}

.feedback-message.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
}

.message-content {
  display: flex;
  align-items: center;
  padding: 18px 20px;
  position: relative;
}

.message-logo {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  flex-shrink: 0;
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.message-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.message-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2px;
  line-height: 1.2;
}

.message-subtitle {
  font-size: 14px;
  color: #666;
  line-height: 1.3;
}

.message-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.message-close:hover {
  background: #f0f0f0;
  color: #666;
}

.feedback-button {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #4CAC26, #3b9d20);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feedback-button:hover {
  transform: scale(1.1);
  box-shadow: none;
}

.feedback-button .animated-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: iconSwitch 3s infinite;
}

.feedback-button .phone-icon {
  animation-delay: 0s;
}

.feedback-button .whatsapp-icon {
  animation-delay: 1.5s;
}

@keyframes iconSwitch {
  0%, 45% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
  5%, 40% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50%, 100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
  }
}

.feedback-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 360px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e0e0e0;
  overflow: hidden;
}

.feedback-panel::after {
  content: '';
  position: absolute;
  bottom: -12px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 12px solid #fff;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.feedback-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.feedback-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 15px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.feedback-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
}

.close-feedback {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-feedback:hover {
  background: #f0f0f0;
  color: #666;
}

.feedback-options {
  padding: 15px 20px 20px 20px;
}

.feedback-option {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  margin-bottom: 12px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.feedback-option::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.feedback-option:hover::before {
  left: 100%;
}

.feedback-option:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.phone-option {
  background: linear-gradient(135deg, #4CAC26, #3b9d20);
  color: white;
}

.phone-option:hover {
  background: linear-gradient(135deg, #3b9d20, #2e7d17);
}

.whatsapp-option {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
}

.whatsapp-option:hover {
  background: linear-gradient(135deg, #128C7E, #0d6b5f);
}

.option-icon {
  width: 28px;
  height: 28px;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.option-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.1));
}

.option-text {
  flex: 1;
}

.option-title {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}

.option-subtitle {
  display: block;
  font-size: 14px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .feedback-widget {
    bottom: 20px;
    right: 20px;
  }
  
  .feedback-message {
    width: 340px;
    bottom: 90px;
    right: 0;
  }
  
  .feedback-message::after {
    right: 20px;
  }
  
  .feedback-message::before {
    right: 22px;
  }
  
  .message-content {
    padding: 16px 18px;
  }
  
  .message-logo {
    width: 36px;
    height: 36px;
    margin-right: 10px;
  }
  
  .message-title {
    font-size: 13px;
  }
  
  .message-subtitle {
    font-size: 11px;
  }
  
  .feedback-button {
    width: 70px;
    height: 70px;
  }
  
  .feedback-panel {
    width: 340px;
    right: 0;
  }
  
  .feedback-panel::after {
    right: 20px;
  }
  
  .option-icon {
    width: 26px;
    height: 26px;
    margin-right: 12px;
  }
  
  .feedback-option {
    padding: 14px 16px;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .feedback-widget {
    bottom: 15px;
    right: 15px;
  }
  
  .feedback-message {
    width: 320px;
    bottom: 85px;
    right: 0;
  }
  
  .feedback-message::after {
    right: 20px;
  }
  
  .feedback-message::before {
    right: 22px;
  }
  
  .message-content {
    padding: 14px 16px;
  }
  
  .message-logo {
    width: 32px;
    height: 32px;
    margin-right: 8px;
  }
  
  .message-title {
    font-size: 12px;
  }
  
  .message-subtitle {
    font-size: 10px;
  }
  
  .feedback-button {
    width: 65px;
    height: 65px;
  }
  
  .feedback-panel {
    width: 320px;
    bottom: 75px;
    right: 0;
  }
  
  .feedback-panel::after {
    right: 20px;
  }
  
  .feedback-header {
    padding: 15px 15px 10px 15px;
  }
  
  .feedback-header h3 {
    font-size: 15px;
  }
  
  .feedback-options {
    padding: 12px 15px 15px 15px;
  }
  
  .feedback-option {
    padding: 12px 14px;
    margin-bottom: 8px;
  }
  
  .option-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
  }
  
  .option-title {
    font-size: 13px;
  }
  
  .option-subtitle {
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .feedback-widget {
    bottom: 10px;
    right: 10px;
  }
  
  .feedback-message {
    width: 300px;
    right: 0;
    bottom: 80px;
  }
  
  .feedback-message::after {
    right: 20px;
  }
  
  .feedback-message::before {
    right: 22px;
  }
  
  .message-logo {
    width: 30px;
    height: 30px;
    margin-right: 8px;
  }
  
  .feedback-button {
    width: 60px;
    height: 60px;
  }
  
  .feedback-panel {
    width: 300px;
    right: 0;
    bottom: 70px;
  }
  
  .feedback-panel::after {
    right: 20px;
  }
  
  .option-icon {
    width: 22px;
    height: 22px;
    margin-right: 8px;
  }
  
  .feedback-option {
    padding: 10px 12px;
  }
}
