/* 🎨 Estilos para Calendário Mobile/Telefone */

.simple-calendar-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  border-radius: 20px;
  margin: 1rem 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.simple-calendar-container h4 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  text-align: center;
  color: #fff;
  font-weight: 600;
}

/* Calendário Mobile */
.visual-calendar {
  background: #ffffff;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  border: 1px solid rgba(0,0,0,0.05);
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #0a74da 0%, #0968c5 100%);
  border-radius: 12px;
  color: white;
  box-shadow: 0 2px 10px rgba(10, 116, 218, 0.3);
}

.month-nav {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.month-nav:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.month-nav:active {
  transform: scale(0.95);
}

.month-name {
  font-weight: 600;
  font-size: 1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin-bottom: 1rem;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}

.weekdays {
  display: contents;
}

.weekdays div {
  text-align: center;
  font-weight: 600;
  font-size: 0.7rem;
  color: #666;
  padding: 0.5rem 0.25rem;
  background: #f8f9fa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calendar-days {
  display: contents;
}

.calendar-day {
  text-align: center;
  padding: 0.6rem 0.25rem;
  cursor: pointer;
  font-weight: 500;
  position: relative;
  background: white;
  border: 1px solid #f0f0f0;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day:hover:not(.disabled):not(.selected):not(.past) {
  background: #e3f2fd;
  border-color: #2196f3;
  transform: scale(1.05);
  z-index: 1;
  box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
}

.calendar-day.selected {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%) !important;
  color: white !important;
  border-color: #1976d2 !important;
  box-shadow: 0 3px 12px rgba(33, 150, 243, 0.4);
  font-weight: 600;
  transform: scale(1.05);
  z-index: 2;
}

.calendar-day.in-range {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
  border-color: #90caf9 !important;
  color: #1976d2;
}

.calendar-day.disabled {
  background: #f8f9fa !important;
  color: #ccc !important;
  cursor: not-allowed !important;
  opacity: 0.6;
  text-decoration: line-through;
}

.calendar-day.today {
  border: 2px solid #0a74da !important;
  background: #e3f2fd !important;
  font-weight: 700;
  color: #0a74da;
  box-shadow: 0 0 0 2px rgba(10, 116, 218, 0.1);
}

.calendar-day.past {
  color: #bbb !important;
  cursor: not-allowed !important;
  background: #f8f9fa !important;
  opacity: 0.5;
}

.calendar-day.weekend {
  color: #d32f2f;
  font-weight: 600;
}

.calendar-day.weekend.selected {
  color: white !important;
}

.selection-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  border: 1px solid #dee2e6;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.selected-dates {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.selected-dates span {
  font-size: 0.8rem;
  color: #495057;
  font-weight: 500;
  flex: 1;
  text-align: center;
  padding: 0.25rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #dee2e6;
}

.selected-dates span strong {
  color: #0a74da;
  font-weight: 600;
  display: block;
  font-size: 0.9rem;
  margin-top: 2px;
}

.calendar-info {
  background: rgba(255,255,255,0.15);
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
}

.calendar-info p {
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.calendar-info ul {
  margin: 0;
  padding-left: 1rem;
}

.calendar-info li {
  margin-bottom: 0.4rem;
  font-size: 0.8rem;
  opacity: 0.95;
  line-height: 1.3;
}

/* Formulário de Reservas Integrado */
.booking-integrated-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 24px 0;
  border: 1px solid #e4e4e4;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.booking-integrated-container h4 {
  text-align: center;
  color: #222222;
  margin-bottom: 32px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* Seção do Calendário */
.calendar-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #e9ecef;
}

.date-inputs-functional {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.date-input-group {
  display: flex;
  flex-direction: column;
}

.date-input-group label {
  margin-bottom: 8px;
  color: #555555;
  font-weight: 500;
  font-size: 14px;
}

.date-input-group input,
.date-input-group select {
  padding: 12px;
  border: 2px solid #e4e4e4;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: #ffffff;
}

.date-input-group input:focus,
.date-input-group select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.calendar-status {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.calendar-status p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

.calendar-status.available {
  background: #d4edda;
  border-color: #c3e6cb;
}

.calendar-status.available p {
  color: #155724;
}

.calendar-status.unavailable {
  background: #f8d7da;
  border-color: #f5c6cb;
}

.calendar-status.unavailable p {
  color: #721c24;
}

.calculate-btn {
  width: 100%;
  padding: 14px 24px;
  background: #007bff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 20px;
}

.calculate-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.calculate-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.2);
}

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

/* Container do Total Estimado - Design Moderno */
.price-summary-container {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.price-summary-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #ffeaa7, #dfe6e9);
  background-size: 300% 100%;
  animation: gradient-shift 8s ease infinite;
}

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

.price-header {
  text-align: center;
  margin-bottom: 16px;
}

.price-header h3 {
  color: white;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
}

.price-display {
  text-align: center;
  margin-bottom: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.price-currency {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin-right: 4px;
}

.price-amount {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.price-details {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-details p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
}

.price-details .calculation-breakdown {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  line-height: 1.3;
}

.price-details .highlight {
  color: #ffeaa7;
  font-weight: 600;
}

/* Animações do preço */
.price-display {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-display.calculating {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.price-display.calculated {
  animation: price-success 0.6s ease-out;
}

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

/* Estado de carregamento */
.price-summary-container.loading {
  opacity: 0.7;
}

.price-summary-container.loading .price-display {
  background: rgba(255, 255, 255, 0.1);
}

.price-summary-container.loading .price-amount::after {
  content: '...';
  animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
  0%, 20% { content: '.'; }
  40% { content: '..'; }
  60% { content: '...'; }
  80% { content: '...'; }
 100% { content: '...'; }
}

/* Estado de erro */
.price-summary-container.error {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392a 100%);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.price-summary-container.error .price-header h3 {
  color: #ffffff;
}

.price-summary-container.error .price-display {
  background: rgba(255, 255, 255, 0.1);
}

.price-summary-container.error .price-amount {
  color: #ffffff;
}

.price-summary-container.error .price-details {
  background: rgba(255, 255, 255, 0.1);
}

/* Estado de sucesso */
.price-summary-container.success {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  animation: success-pulse 0.6s ease-out;
}

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

/* Responsividade */
@media (max-width: 768px) {
  .price-summary-container {
    padding: 20px;
    margin: 16px 0;
  }
  
  .price-header h3 {
    font-size: 18px;
    margin-bottom: 12px;
  }
  
  .price-display {
    padding: 16px;
    margin-bottom: 12px;
  }
  
  .price-currency {
    font-size: 20px;
    margin-right: 3px;
  }
  
  .price-amount {
    font-size: 28px;
  }
  
  .price-details {
    padding: 12px;
  }
  
  .price-details p {
    font-size: 13px;
  }
  
  .price-details .calculation-breakdown {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .price-summary-container {
    padding: 16px;
    margin: 12px 0;
  }
  
  .price-header h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .price-display {
    padding: 12px;
    margin-bottom: 10px;
  }
  
  .price-currency {
    font-size: 18px;
    margin-right: 2px;
  }
  
  .price-amount {
    font-size: 24px;
  }
  
  .price-details {
    padding: 10px;
  }
  
  .price-details p {
    font-size: 12px;
  }
  
  .price-details .calculation-breakdown {
    font-size: 10px;
  }
}

/* Efeitos hover */
.price-summary-container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.price-summary-container:hover .price-display {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.4);
}

/* Destaque de campos que precisam ser preenchidos */
.highlight-field {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2) !important;
  animation: highlight-pulse 1.5s ease-in-out;
}

@keyframes highlight-pulse {
  0% { border-color: #e4e4e4; }
  50% { border-color: #e74c3c; box-shadow: 0 0 0 5px rgba(231, 76, 60, 0.4); }
  100% { border-color: #e4e4e4; }
}

/* Mensagem de sucesso no total */
.success-message {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  margin-top: 8px;
  text-align: center;
  font-weight: 600;
  color: #28a745;
}

/* Estados de preenchimento dos dados */
.booking-integrated-container .customer-input-group input:valid,
.booking-integrated-container .customer-input-group textarea:valid {
  border-color: #28a745;
}

.booking-integrated-container .customer-input-group input:focus:valid,
.booking-integrated-container .customer-input-group textarea:focus:valid {
  border-color: #28a745;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.booking-integrated-container .customer-input-group input:invalid:not(:placeholder-shown),
.booking-integrated-container .customer-input-group textarea:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
}

.booking-integrated-container .customer-input-group input:focus:invalid:not(:placeholder-shown),
.booking-integrated-container .customer-input-group textarea:focus:invalid:not(:placeholder-shown) {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

/* Indicadores de preenchimento */
.customer-input-group {
  position: relative;
}

.customer-input-group.filled::after {
  content: '✓';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #28a745;
  font-weight: bold;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.customer-input-group.filled input:focus,
.customer-input-group.filled textarea:focus {
  padding-right: 32px;
}

.customer-input-group.filled::after {
  opacity: 1;
}

/* Integração com o formulário */
.booking-integrated-container .price-summary-container {
  margin-top: 24px;
  margin-bottom: 24px;
}

.booking-integrated-container .price-summary-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
}

/* Seção de Dados do Cliente */
.customer-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #e9ecef;
}

.customer-section h5 {
  margin: 0 0 20px 0;
  color: #222222;
  font-size: 18px;
  font-weight: 600;
}

.customer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.customer-input-group {
  display: flex;
  flex-direction: column;
}

.customer-input-group.full-width {
  grid-column: 1 / -1;
}

.customer-input-group label {
  margin-bottom: 8px;
  color: #555555;
  font-weight: 500;
  font-size: 14px;
}

.customer-input-group input,
.customer-input-group textarea {
  padding: 12px;
  border: 2px solid #e4e4e4;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
  background: #ffffff;
  font-family: inherit;
}

.customer-input-group input:focus,
.customer-input-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.customer-input-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Informações Importantes */
.booking-info {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.booking-info h5 {
  margin: 0 0 16px 0;
  color: #856404;
  font-size: 16px;
  font-weight: 600;
}

.booking-info ul {
  margin: 0;
  padding-left: 20px;
  color: #856404;
}

.booking-info li {
  margin-bottom: 8px;
  line-height: 1.4;
  font-size: 14px;
}

.booking-info li strong {
  color: #856404;
  font-weight: 600;
}

/* Status de Disponibilidade */
.availability {
  text-align: center;
  font-size: 16px;
  margin: 20px 0;
  padding: 16px;
  border-radius: 8px;
  font-weight: 500;
}

.availability.available {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.availability.unavailable {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Botão Final de Reserva */
.submit-booking-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 24px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.submit-booking-btn:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.submit-booking-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.submit-booking-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Responsividade */
@media (max-width: 768px) {
  .booking-integrated-container {
    padding: 20px;
    margin: 16px 0;
  }
  
  .booking-integrated-container h4 {
    font-size: 20px;
    margin-bottom: 24px;
  }
  
  .date-inputs-functional {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .calendar-section,
  .customer-section {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .customer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .calculate-btn,
  .submit-booking-btn {
    font-size: 14px;
    padding: 12px 20px;
  }
  
  .price-summary {
    font-size: 16px;
    padding: 16px;
  }
  
  .price-summary strong {
    font-size: 20px;
  }
  
  .booking-info {
    padding: 16px;
  }
  
  .booking-info h5 {
    font-size: 14px;
  }
  
  .booking-info li {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .booking-integrated-container {
    padding: 16px;
    margin: 12px 0;
  }
  
  .booking-integrated-container h4 {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .date-input-group input,
  .date-input-group select,
  .customer-input-group input,
  .customer-input-group textarea {
    font-size: 14px;
    padding: 10px;
  }
  
  .calculate-btn,
  .submit-booking-btn {
    font-size: 13px;
    padding: 10px 16px;
  }
  
  .price-summary {
    font-size: 14px;
    padding: 12px;
  }
  
  .price-summary strong {
    font-size: 18px;
  }
}

/* Botão de calcular */
.calculate-btn {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #0a74da 0%, #0056b3 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 1rem 0;
  box-shadow: 0 4px 15px rgba(10, 116, 218, 0.3);
}

.calculate-btn:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 116, 218, 0.4);
}

.calculate-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(10, 116, 218, 0.3);
}

.calculate-btn:disabled {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Botão Confirmar Reserva */
.confirm-reservation-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 16px;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

.confirm-reservation-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.confirm-reservation-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
  box-shadow: none;
}

/* Price summary */
.price-summary {
  text-align: center;
  font-size: 1.2rem;
  color: #374151;
  margin: 1rem 0;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.price-summary strong {
  color: #059669;
  font-size: 1.4rem;
}

/* Calendar info */
.calendar-info {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1rem;
}

.calendar-info p {
  margin: 0 0 0.5rem 0;
  color: #0c4a6e;
}

.calendar-info ul {
  margin: 0;
  padding-left: 1.2rem;
  color: #0c4a6e;
}

.calendar-info li {
  margin-bottom: 0.25rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .calendar-visual-container {
    padding: 1rem;
    margin: 1rem 0;
  }
  
  .calendar-nav {
    padding: 0 0.5rem;
  }
  
  .calendar-nav h5 {
    font-size: 1rem;
  }
  
  .calendar-nav-btn {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .calendar-grid {
    padding: 0.5rem;
  }
  
  .calendar-weekday {
    font-size: 0.75rem;
    padding: 6px 2px;
  }
  
  .calendar-day {
    font-size: 0.75rem;
  }
  
  .calendar-legend {
    gap: 1rem;
    padding: 0.75rem;
  }
  
  .legend-item {
    font-size: 0.8rem;
  }
  
  .legend-color {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .calendar-visual-container {
    padding: 0.75rem;
  }
  
  .calendar-weekday {
    font-size: 0.7rem;
    padding: 4px 1px;
  }
  
  .calendar-day {
    font-size: 0.7rem;
  }
  
  .calendar-legend {
    gap: 0.75rem;
    padding: 0.5rem;
  }
  
  .legend-item {
    font-size: 0.75rem;
  }
  
  .legend-color {
    width: 12px;
    height: 12px;
  }
}

/* Fallback inputs */
.date-inputs-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.date-inputs-simple .date-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.date-inputs-simple label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

.date-inputs-simple input[type="date"] {
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  color: #333;
  transition: all 0.3s ease;
}

.date-inputs-simple input[type="date"]:focus {
  outline: none;
  border-color: #0a74da;
  box-shadow: 0 0 0 3px rgba(10, 116, 218, 0.1);
}

/* Mobile First - Responsivo */
@media (max-width: 768px) {
  .simple-calendar-container {
    padding: 0.75rem;
    margin: 0.5rem;
    border-radius: 16px;
  }
  
  .visual-calendar {
    padding: 0.75rem;
  }
  
  .calendar-day {
    padding: 0.5rem 0.2rem;
    font-size: 0.8rem;
    min-height: 28px;
  }
  
  .selected-dates {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .selected-dates span {
    font-size: 0.75rem;
  }
  
  .simple-calendar-container h4 {
    font-size: 1rem;
  }
  
  .month-name {
    font-size: 0.9rem;
  }
}

/* Tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  .simple-calendar-container {
    max-width: 450px;
  }
  
  .calendar-day {
    padding: 0.7rem 0.3rem;
    font-size: 0.9rem;
    min-height: 36px;
  }
}

/* Desktop */
@media (min-width: 1025px) {
  .simple-calendar-container {
    max-width: 500px;
    padding: 1.5rem;
  }
  
  .calendar-day {
    padding: 0.8rem 0.4rem;
    font-size: 0.95rem;
    min-height: 40px;
  }
}

/* Animação de entrada mobile */
.visual-calendar {
  animation: slideUp 0.5s ease-out;
}

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

/* Efeito de toque mobile */
.calendar-day:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

/* Indicador de fim de semana mobile */
.calendar-day.weekend::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: #d32f2f;
  border-radius: 50%;
}

.calendar-day.weekend.selected::after {
  background: white;
}

/* Status indicator mobile */
.availability {
  font-size: 0.85rem;
  padding: 0.75rem;
  border-radius: 8px;
  text-align: center;
  margin: 0.5rem 0;
  font-weight: 500;
}

/* Botões estilo mobile */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

/* Form inputs mobile */
input, select, textarea {
  font-size: 16px; /* Previne zoom no iOS */
  border-radius: 8px;
  padding: 0.75rem;
}

/* Safe area para mobile com notch */
@supports (padding: max(0px)) {
  .simple-calendar-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}
