/* Estilos para Sistema de Planos */

.plan-selection-section {
  margin: 0;
  padding: 0 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 10px;
  margin: 10px 0;
}

.plan-card {
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.plan-card.selected {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.plan-card.featured {
  border-color: #007bff;
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
}

.plan-header {
  text-align: center;
  margin-bottom: 10px;
}

.plan-header i {
  font-size: 2.5rem;
  color: #007bff;
  margin-bottom: 10px;
}

.plan-card.featured .plan-header i {
  color: #ffc107;
}

.plan-header h3 {
  font-size: 1.5rem;
  margin: 0;
  color: #333;
}

.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 8px;
}

.plan-badge.trial {
  background: #28a745;
  color: white;
}

.plan-badge.popular {
  background: #ffc107;
  color: #000;
}

.plan-price {
  text-align: center;
  margin: 10px 0;
  padding: 10px 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.price-value {
  font-size: 2rem;
  font-weight: bold;
  color: #007bff;
}

.price-period {
  font-size: 0.9rem;
  color: #666;
}

.plan-features {
  margin-top: 10px;
}

.plan-features .feature {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #555;
}

.plan-features .feature i {
  color: #28a745;
  font-size: 1rem;
}

/* Configuração do Plano */
#plan-config {
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

#plan-config h4 {
  margin-top: 0;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Resumo de Preço */
.price-summary {
  background: #f8f9fa;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 10px;
}

.price-breakdown h4 {
  margin-top: 0;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.price-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.price-item:last-of-type {
  border-bottom: none;
}

.price-item.subtotal {
  font-weight: 600;
  color: #555;
  border-top: 2px solid #007bff;
  margin-top: 10px;
  padding-top: 5px;
}

.price-item.discount {
  color: #28a745;
}

.price-item.discount span:last-child {
  font-weight: 600;
}

.price-item.total {
  font-size: 1.2rem;
  color: #007bff;
  border-top: 2px solid #007bff;
  margin-top: 10px;
  padding-top: 15px;
}

.trial-notice,
.payment-notice {
  background: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: 6px;
  padding: 12px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #004085;
}

.trial-notice {
  background: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.trial-notice i,
.payment-notice i {
  font-size: 1.2rem;
}

/* Status da Assinatura */
.subscription-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.subscription-status.trial {
  background: #d1ecf1;
  color: #0c5460;
}

.subscription-status.active {
  background: #d4edda;
  color: #155724;
}

.subscription-status.expiring {
  background: #fff3cd;
  color: #856404;
}

.subscription-status.expired,
.subscription-status.inactive {
  background: #f8d7da;
  color: #721c24;
}

.subscription-status.pending_payment {
  background: #fff3cd;
  color: #856404;
}

/* Bloqueio de Agendamento */
.booking-blocked-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.booking-blocked-content {
  background: white;
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  text-align: center;
}

.booking-blocked-content i {
  font-size: 4rem;
  color: #dc3545;
  margin-bottom: 20px;
}

.booking-blocked-content h2 {
  color: #333;
  margin-bottom: 15px;
}

.booking-blocked-content p {
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    padding: 10px 20px;
  }

  .price-value {
    font-size: 1.5rem;
  }
}

