/* ===================================
   CALCULADORA DE PREÇOS MODERNA
   =================================== */

.pricing-calculator {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 32px;
  margin: 24px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-calculator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #ff6b6b);
  background-size: 300% 100%;
  animation: rainbow-border 8s ease-in-out infinite;
}

@keyframes rainbow-border {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Header */
.pricing-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  color: white;
}

.pricing-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.pricing-icon svg {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.pricing-title h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pricing-subtitle {
  margin: 4px 0 0 0;
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
}

/* Display Principal */
.pricing-display {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pricing-display:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.pricing-main {
  margin-bottom: 16px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pricing-currency {
  font-size: 32px;
  font-weight: 600;
  color: #667eea;
  opacity: 0.8;
}

.pricing-value {
  font-size: 56px;
  font-weight: 800;
  color: #2d3748;
  line-height: 1;
  transition: all 0.3s ease;
}

.pricing-value.calculated {
  animation: price-pulse 0.6s ease;
}

@keyframes price-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); color: #667eea; }
  100% { transform: scale(1); }
}

.pricing-period {
  font-size: 16px;
  color: #718096;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Status */
.pricing-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd5e0;
  transition: all 0.3s ease;
}

.status-indicator.active {
  background: #48bb78;
  box-shadow: 0 0 0 4px rgba(72, 187, 120, 0.2);
  animation: pulse-indicator 2s infinite;
}

@keyframes pulse-indicator {
  0% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.4); }
  70% { box-shadow: 0 0 0 8px rgba(72, 187, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0); }
}

.status-text {
  font-size: 14px;
  font-weight: 500;
  color: #4a5568;
}

/* Detalhes */
.pricing-details {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.details-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.details-header:hover {
  background: rgba(255, 255, 255, 0.7);
}

.details-header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
}

.details-toggle {
  background: none;
  border: none;
  color: #667eea;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.details-toggle:hover {
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.1);
}

.details-toggle.expanded svg {
  transform: rotate(180deg);
}

.details-toggle svg {
  transition: transform 0.3s ease;
}

.details-content {
  padding: 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.details-content.expanded {
  max-height: 600px;
  padding: 24px;
}

.details-section {
  margin-bottom: 24px;
}

.details-section:last-child {
  margin-bottom: 0;
}

.details-section h5 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #4a5568;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 14px;
  color: #718096;
  font-weight: 500;
}

.detail-value {
  font-size: 14px;
  color: #2d3748;
  font-weight: 600;
}

/* Price Breakdown */
.price-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.breakdown-item:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
}

.breakdown-item.extra-guests {
  border-left-color: #f56565;
  background: rgba(245, 101, 101, 0.05);
}

.breakdown-label {
  font-size: 14px;
  color: #4a5568;
  font-weight: 500;
}

.breakdown-value {
  font-size: 14px;
  color: #2d3748;
  font-weight: 600;
}

/* Totals */
.totals-section {
  background: rgba(102, 126, 234, 0.05);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
}

.total-row:not(.final-total) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.final-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 2px solid #667eea;
}

.total-label {
  font-size: 16px;
  color: #4a5568;
  font-weight: 600;
}

.final-total .total-label {
  font-size: 18px;
  color: #2d3748;
}

.total-value {
  font-size: 16px;
  color: #2d3748;
  font-weight: 700;
}

.final-total .total-value {
  font-size: 20px;
  color: #667eea;
}

/* Ações */
.pricing-actions {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.btn-calculate, .btn-reset {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-calculate {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-calculate:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-calculate:disabled {
  background: #cbd5e0;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-reset {
  background: rgba(255, 255, 255, 0.9);
  color: #718096;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-reset:hover {
  background: white;
  color: #4a5568;
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

/* Loading */
.pricing-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(102, 126, 234, 0.2);
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.pricing-loading span {
  font-size: 16px;
  font-weight: 600;
  color: #667eea;
}

/* Estados da Calculadora */
.pricing-calculator.loading {
  pointer-events: none;
}

.pricing-calculator.loading .pricing-display {
  opacity: 0.7;
}

.pricing-calculator.success .pricing-display {
  background: rgba(72, 187, 120, 0.1);
  border-color: rgba(72, 187, 120, 0.3);
}

.pricing-calculator.success .status-indicator {
  background: #48bb78;
}

.pricing-calculator.error .pricing-display {
  background: rgba(245, 101, 101, 0.1);
  border-color: rgba(245, 101, 101, 0.3);
}

.pricing-calculator.error .status-indicator {
  background: #f56565;
}

/* Responsividade */
@media (max-width: 768px) {
  .pricing-calculator {
    padding: 24px 20px;
    margin: 16px 0;
  }
  
  .pricing-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  .pricing-display {
    padding: 24px 20px;
  }
  
  .pricing-value {
    font-size: 42px;
  }
  
  .pricing-currency {
    font-size: 24px;
  }
  
  .details-header {
    padding: 16px 20px;
  }
  
  .details-content {
    padding: 20px;
  }
  
  .pricing-actions {
    flex-direction: column;
  }
  
  .btn-calculate, .btn-reset {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .pricing-calculator {
    padding: 20px 16px;
  }
  
  .pricing-value {
    font-size: 36px;
  }
  
  .pricing-currency {
    font-size: 20px;
  }
  
  .pricing-amount {
    flex-direction: column;
    gap: 4px;
  }
  
  .details-header h4 {
    font-size: 16px;
  }
  
  .total-value {
    font-size: 14px;
  }
  
  .final-total .total-value {
    font-size: 18px;
  }
}

/* Animações de Entrada */
.pricing-calculator {
  animation: slideInUp 0.6s ease-out;
}

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

.pricing-display {
  animation: fadeInScale 0.8s ease-out 0.2s both;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.pricing-details {
  animation: fadeInScale 0.8s ease-out 0.4s both;
}

.pricing-actions {
  animation: fadeInScale 0.8s ease-out 0.6s both;
}

/* Focus States */
.btn-calculate:focus,
.btn-reset:focus,
.details-toggle:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .pricing-calculator {
    background: #000;
    border: 2px solid #fff;
  }
  
  .pricing-display {
    background: #fff;
    border: 2px solid #000;
  }
  
  .pricing-value {
    color: #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .pricing-calculator,
  .pricing-display,
  .pricing-details,
  .pricing-actions {
    animation: none;
  }
  
  .loading-spinner {
    animation: none;
  }
  
  .pricing-value.calculated {
    animation: none;
  }
}
