/* 
 * CSAT - Demo de Inquérito de Satisfação
 * Estilos para a secção de demonstração multi-step
 */

.demo-section {
  padding: var(--space-xl) 0;
  background-color: var(--color-bg-light);
  position: relative;
  overflow: hidden;
}

.demo-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
  z-index: 0;
}

.demo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  position: relative;
  z-index: 1;
}

.demo-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.demo-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-sm);
  color: var(--color-text-dark);
}

.demo-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.demo-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
}

.demo-text {
  flex: 1;
  max-width: 500px;
}

.demo-text h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  color: var(--color-text-dark);
}

.demo-text p {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.demo-text ul {
  margin-bottom: var(--space-md);
}

.demo-text li {
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: flex-start;
}

.demo-text li::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2310B981' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: var(--space-sm);
  flex-shrink: 0;
}

.demo-survey {
  flex: 1;
  max-width: 450px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.survey-header {
  background-color: #1967D2;
  color: white;
  padding: var(--space-md);
  position: relative;
}

.survey-header h3 {
  font-size: var(--font-size-md);
  font-weight: 600;
  margin-bottom: 4px;
}

.survey-header p {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

.survey-progress {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.3);
  margin-top: var(--space-sm);
  border-radius: 2px;
  overflow: hidden;
}

.survey-progress-bar {
  height: 100%;
  background-color: white;
  transition: width 0.3s ease;
}

.survey-body {
  padding: var(--space-lg);
}

.survey-step {
  display: none;
}

.survey-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.survey-question {
  font-size: var(--font-size-md);
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--color-text-dark);
}

.survey-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--space-lg);
}

.survey-option {
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.survey-option:hover {
  border-color: #D1D5DB;
  background-color: #F9FAFB;
}

.survey-option.selected {
  border-color: #1967D2;
  background-color: rgba(25, 103, 210, 0.05);
}

.survey-option input[type="radio"] {
  margin-right: 12px;
}

.survey-rating {
  display: flex;
  gap: 8px;
  margin-bottom: var(--space-lg);
}

.rating-option {
  flex: 1;
  aspect-ratio: 1;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rating-option:hover {
  border-color: #D1D5DB;
  background-color: #F9FAFB;
}

.rating-option.selected {
  border-color: #1967D2;
  background-color: rgba(25, 103, 210, 0.05);
}

.rating-value {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-dark);
}

.rating-label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 4px;
}

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

.btn-survey {
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: var(--font-size-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-prev {
  color: #6B7280;
  background-color: transparent;
  border: none;
  display: flex;
  align-items: center;
}

.btn-prev svg {
  margin-right: 4px;
}

.btn-next, .btn-submit {
  background-color: #1967D2;
  color: white;
  border: none;
  display: flex;
  align-items: center;
}

.btn-next svg, .btn-submit svg {
  margin-left: 4px;
}

.btn-next:hover, .btn-submit:hover {
  background-color: #1558B6;
}

.btn-next:disabled, .btn-submit:disabled {
  background-color: #9CA3AF;
  cursor: not-allowed;
}

.btn-prev:hover {
  color: #374151;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 991px) {
  .demo-content {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .demo-text, .demo-survey {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .demo-title {
    font-size: var(--font-size-xl);
  }
  
  .demo-subtitle {
    font-size: var(--font-size-md);
  }
  
  .survey-body {
    padding: var(--space-md);
  }
}

@media (max-width: 479px) {
  .survey-rating {
    flex-wrap: wrap;
  }
  
  .rating-option {
    min-width: 60px;
  }
}
