/* Site Médico Brasileiro - Padrão Profissional */

/* Loading Skeleton Styles */
.loading-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
    min-height: 1.2em;
    display: inline-block;
    width: 100%;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.content-loaded .loading-placeholder {
    background: none;
    animation: none;
    color: inherit !important;
}

/* Hide content until loaded to prevent flash */
body:not(.content-loaded) [data-dynamic-content] {
    opacity: 0.3;
}

body.content-loaded [data-dynamic-content] {
    opacity: 1;
    transition: opacity 0.3s ease;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Cores Médicas Tradicionais Brasileiras */
  --primary-blue: #2E86AB;
  --secondary-blue: #34495E;
  --text-dark: #333333;
  --text-muted: #666666;
  --text-light: #888888;
  --bg-white: #FFFFFF;
  --bg-light: #F8F9FA;
  --bg-section: #cbd5e1b0;
  --border-light: #E5E5E5;
  --success-green: #28A745;
  --whatsapp-green: #25D366;
  
  /* Aliases para compatibilidade */
  --primary-color: var(--primary-blue);
  --secondary-color: var(--secondary-blue);
  --text-color: var(--text-dark);
  
  /* Tipografia */
  --font-main: 'Open Sans', sans-serif;
  
  /* Sombras */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  
  /* Bordas */
  --radius: 8px;
  --radius-large: 12px;
  
  /* Transições */
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #cbd5e1b0;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Prevent modal background scroll */
body.modal-open {
  overflow: hidden;
}

/* Global media reset to prevent overflow */
img, video, canvas, svg, iframe {
  max-width: 100%;
  height: auto;
}

/* Utility for full-width safe containers */
.full-bleed-safe {
  width: 100%;
  max-width: 100vw;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip Link */
.skip-to-main {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-blue);
  color: white;
  padding: 8px 12px;
  text-decoration: none;
  z-index: 9999;
  border-radius: var(--radius);
}

.skip-to-main:focus {
  top: 6px;
}

/* Header */
.header {
  background: var(--bg-white);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.logo h1 {
  color: var(--primary-blue);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.2;
}

.logo span {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.3;
}

.header-contact {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.phone-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
}

.phone-link:hover {
  color: var(--primary-blue);
  background: rgba(46, 134, 171, 0.05);
}

.whatsapp-btn, .btn-whatsapp {
  background: var(--whatsapp-green);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
  font-size: 1rem;
  min-width: 150px;
}

.whatsapp-btn:hover, .btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:active, .btn-whatsapp:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);
}

/* Hero Section */
.hero {
  background: var(--bg-section);
  padding: 60px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-text h2 {
  font-size: 1.3rem;
  color: var(--secondary-blue);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.7;
}

.credentials {
  background: white;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-light);
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.credential-item {
  font-size: 0.95rem;
  color: var(--text-dark);
}

.credential-item strong {
  color: var(--primary-blue);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
  padding: 15px 30px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1f5f85;
  transform: translateY(-1px);
}

.hero-image {
  position: relative;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
}

.image-overlay {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(46, 134, 171, 0.95);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* Hospitals Section */
.hospitals {
  padding: 60px 0;
}

.hospitals h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 10px;
  font-weight: 700;
}

.hospitals-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.hospitals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.hospital-item {
  text-align: center;
  padding: 30px 20px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: var(--transition);
}

.hospital-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-light);
}

.hospital-logo {
  width: 60px;
  height: 60px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  color: white;
  font-size: 1.5rem;
}

.hospital-item h3 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 5px;
}

.hospital-item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Especialidades Section */
.especialidades {
  padding: 60px 0;
  background: var(--bg-section);
}

.especialidades h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.especialidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
  gap: 30px;
}

.especialidade-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.especialidade-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.card-image {
  height: 200px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.especialidade-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 25px;
}

.card-content h3 {
  color: var(--primary-blue);
  font-size: 1.3rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.card-content p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Sobre Section */
.sobre {
  padding: 60px 0;
}

.sobre-content {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 60px;
  align-items: start;
}

.sobre-image img {
  width: 100%;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
}

.sobre-text h2 {
  font-size: 2.2rem;
  color: var(--primary-blue);
  margin-bottom: 5px;
  font-weight: 700;
}

.sobre-text h3 {
  color: var(--secondary-blue);
  font-size: 1.2rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.sobre-description {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 30px 0;
  padding: 25px;
  background: var(--bg-light);
  border-radius: var(--radius);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 5px;
}

.qualificacoes {
  margin-top: 30px;
}

.qualificacoes h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 15px;
}

.qualificacoes ul {
  list-style: none;
  padding-left: 0;
}

.qualificacoes li {
  padding: 8px 0;
  color: var(--text-muted);
  position: relative;
  padding-left: 20px;
}

.qualificacoes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
}

/* Depoimentos Section */
.depoimentos {
  padding: 60px 0;
  background: var(--bg-section);
}

.depoimentos h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 700;
}

.reviews-container {
  max-width: 800px;
  margin: 40px auto;
}

.reviews-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}

.reviews-loading i {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.reviews-error {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 20px;
}

/* Contato Section */
.contato {
  padding: 60px 0;
  background: white;
}

.contato-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contato-info h2 {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 15px;
  font-weight: 700;
}

.contato-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 40px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.info-icon {
  width: 45px;
  height: 45px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.info-content h4 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 5px;
}

.info-content p {
  color: var(--text-muted);
  margin: 0;
}

.contact-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Form */
.contato-form {
  background: var(--bg-light);
  padding: 40px;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-light);
}

.contato-form h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 25px;
  font-weight: 600;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(46, 134, 171, 0.1);
}

.btn-submit {
  width: 100%;
  background: var(--primary-blue);
  color: white;
  padding: 15px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background: #1f5f85;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 40px 0 20px;
}

.footer-info h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.footer-info p {
  margin-bottom: 5px;
  opacity: 0.9;
}

.footer-contact {
  margin-top: 20px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-contact i {
  width: 18px;
  color: var(--primary-blue);
}

.footer-bottom {
  border-top: 1px solid #444;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  opacity: 0.8;
}

/* Assistente Virtual Float */
.assistente-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(56, 128, 255, 0.4);
  z-index: 1000;
  transition: var(--transition);
  animation: pulseBlue 2s infinite;
  border: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.assistente-float:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(56, 128, 255, 0.5);
}

@keyframes pulseBlue {
  0% {
    box-shadow: 0 4px 16px rgba(56, 128, 255, 0.4);
  }
  50% {
    box-shadow: 0 4px 16px rgba(56, 128, 255, 0.6);
  }
  100% {
    box-shadow: 0 4px 16px rgba(56, 128, 255, 0.4);
  }
}

.assistente-float .tooltip {
  position: absolute;
  right: 70px;
  background: var(--text-dark);
  color: white;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: var(--transition);
  pointer-events: none;
}

.assistente-float:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background: white;
  margin: 10% auto;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-medium);
  max-width: 500px;
  width: 90%;
  max-height: 70vh;
  overflow-y: auto;
  position: relative;
}

/* Mobile Bottom Sheet Design */
@media (max-width: 768px) {
  .modal-content {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    margin: 0;
    width: 100vw;
    max-width: 100%;
    height: min(100%, calc(var(--vh, 1vh) * 90));
    max-height: 90vh;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(0);
    animation: slideUp 0.3s ease-out;
  }
  
  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }
    to {
      transform: translateY(0);
    }
  }
}

.chatbot-header {
  padding: 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--primary-blue);
  color: white;
  border-radius: var(--radius-large) var(--radius-large) 0 0;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.2rem;
}

.close {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
  padding: 20px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
  overscroll-behavior: contain;
}

@media (max-width: 768px) {
  .chatbot-messages {
    flex: 1;
    padding: 15px;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .modal-content {
    display: flex;
    flex-direction: column;
  }
}

.chatbot-input {
  padding: 20px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .chatbot-input {
    padding: 15px;
    padding-bottom: max(15px, env(safe-area-inset-bottom));
    background: white;
    border-top: 1px solid var(--border-light);
  }
}

.chatbot-input input {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 1rem;
  width: 80%;
}

.chatbot-input button {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-input button:hover {
  background: #1f5f85;
}

/* Estilos do Chatbot - Mensagens e Botões */
.bot-message {
  margin-bottom: 15px;
  text-align: left;
}

.bot-message .message-text,
.user-message .message-text {
  word-break: break-word;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.bot-message img,
.bot-message video,
.bot-message iframe {
  max-width: 100%;
  height: auto;
}

.user-message {
  margin-bottom: 15px;
  text-align: right;
}

.bot-message p,
.user-message p {
  display: inline-block;
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
}

.bot-message p {
  background: #f1f3f4;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.user-message p {
  background: var(--primary-blue);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Container dos botões de resposta rápida */
.quick-questions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  margin-bottom: 5px;
}

/* Botões de resposta rápida */
.quick-btn {
  background: white;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 12px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  text-align: left;
  min-height: 44px; /* Altura mínima para facilitar toque em mobile */
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.quick-btn:hover {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(46, 134, 171, 0.3);
}

.quick-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Admin (oculto) */
.admin {
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  /* Header mobile melhorado */
  .header {
    padding: 12px 0;
  }
  
  .header-content {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .logo h1 {
    font-size: 1.6rem;
  }
  
  .logo span {
    font-size: 0.85rem;
  }
  
  .header-contact {
    width: 100%;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .phone-link {
    font-size: 0.9rem;
    padding: 10px 15px;
    border-radius: 10px;
    min-height: 48px;
    white-space: nowrap;
  }
  
  .whatsapp-btn, .btn-whatsapp {
    font-size: 0.9rem;
    padding: 12px 20px;
    min-height: 48px;
    min-width: 140px;
  }
  
  .admin-link {
    font-size: 0.8rem;
    padding: 8px 12px;
    min-height: 40px;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .credentials {
    grid-template-columns: 1fr;
  }
  
  .hospitals-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .especialidades-grid {
    grid-template-columns: 1fr;
  }
  
  .sobre-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }
  
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .contato-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .hero-buttons,
  .contact-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Melhorias do Chatbot para Mobile */
  /* Removed - replaced with mobile bottom sheet design above */

  /* Botões de resposta rápida - Mobile */
  .quick-btn {
    padding: 16px 20px;
    font-size: 15px;
    min-height: 50px; /* Maior altura para facilitar toque */
    border-radius: 25px;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    min-width: 44px; /* Minimum touch target size */
  }
  
  /* Quick buttons container mobile */
  .quick-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }
  
  .quick-buttons .quick-btn {
    flex: 1;
    min-width: auto;
  }

  .quick-questions {
    gap: 12px; /* Maior espaçamento entre botões */
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .btn-primary,
  .whatsapp-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    min-height: 44px; /* Better touch target */
    padding: 16px 24px;
    font-size: 16px;
  }
  
  /* All buttons get better touch targets */
  button, .btn, .btn-primary, .btn-submit, .whatsapp-btn, input[type="button"], input[type="submit"] {
    min-height: 44px !important;
    min-width: 44px;
    padding: 16px 24px;
  }
  
  /* Active states for better mobile feedback */
  .btn:active, button:active, .quick-btn:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .contato-form {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }
  
  .hero-text h2 {
    font-size: 1.1rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
  }
  
  .stats {
    grid-template-columns: 1fr !important;
    gap: 15px;
  }
  
  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-btn, .btn-whatsapp {
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: 120px;
  }
}

/* =====================================
   SISTEMA DE AGENDAMENTO DE CONSULTAS
   ===================================== */

.appointment-section {
  padding: 80px 0;
  position: relative;
}

.appointment-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.appointment-header {
  text-align: center;
  margin-bottom: 60px;
}

.appointment-header h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.appointment-header h2 i {
  color: var(--secondary-color);
  font-size: 2.2rem;
}

.appointment-subtitle {
  font-size: 1.2rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

.appointment-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Card de Informações */
.info-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

.info-header i {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.info-header h3 {
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid var(--secondary-color);
}

.info-item i {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-top: 2px;
  min-width: 20px;
}

.info-item strong {
  display: block;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 5px;
}

.info-item p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.emergency-contact {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 2px solid #f1f5f9;
}

.emergency-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Formulário de Agendamento */
.form-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.form-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 2px solid #f1f5f9;
}

.form-header i {
  color: var(--secondary-color);
  font-size: 1.8rem;
}

.form-header h3 {
  color: var(--text-color);
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}

.form-section {
  margin-bottom: 40px;
}

.form-section h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.form-section h4 i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-row.single {
  grid-template-columns: 1fr;
}

.form-group {
  position: relative;
}

.form-group label {
  display: block;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 15px 18px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  background: white;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.1);
}

.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.field-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.field-error::before {
  content: "⚠";
  font-size: 0.9rem;
}

/* Opções de Serviço */
.service-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.service-option {
  cursor: pointer;
  position: relative;
}

.service-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.service-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(46, 134, 171, 0.15);
  transform: translateY(-2px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-option input:checked + .service-card {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  box-shadow: 0 8px 25px rgba(46, 134, 171, 0.2);
}

.service-option input:checked + .service-card::before {
  transform: scaleX(1);
}

.service-card i {
  color: var(--secondary-color);
  font-size: 2rem;
  margin-bottom: 10px;
}

.service-card h5 {
  color: var(--text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.service-card p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.service-card .duration {
  background: var(--primary-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
}

/* Seletor de Data e Hora */
.datetime-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.calendar-container,
.time-slots-container {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 15px;
  padding: 25px;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f5f9;
}

.calendar-header h5 {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.calendar-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: var(--secondary-color);
  transform: scale(1.05);
}

#current-month {
  font-weight: 600;
  color: var(--text-color);
  min-width: 150px;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  color: #64748b;
  font-size: 0.85rem;
  padding: 10px 5px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.calendar-day.available {
  color: var(--text-color);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.calendar-day.available:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(46, 134, 171, 0.3);
}

.calendar-day.selected {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(46, 134, 171, 0.4);
}

.calendar-day.today {
  background: var(--secondary-color);
  color: white;
  font-weight: 700;
}

.calendar-day.today.selected {
  background: var(--primary-color);
}

.calendar-day.other-month {
  color: #cbd5e1;
  background: transparent;
}

.calendar-day.weekend,
.calendar-day.past {
  color: #cbd5e1;
  background: #f8f9fa;
  cursor: not-allowed;
}

.calendar-day.weekend::after {
  content: '🚫';
  position: absolute;
  font-size: 0.6rem;
  top: 2px;
  right: 2px;
}

/* Horários Disponíveis */
.time-slots-container h5 {
  color: var(--text-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f5f9;
}

.time-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.time-slot {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.time-slot:hover {
  border-color: var(--primary-color);
  background: #f0f9ff;
  transform: translateY(-1px);
}

.time-slot.selected {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(46, 134, 171, 0.3);
}

.time-slot.unavailable {
  background: #f8f9fa;
  color: #cbd5e1;
  border-color: #e2e8f0;
  cursor: not-allowed;
}

.no-date-selected,
.no-slots {
  text-align: center;
  color: #64748b;
  font-style: italic;
  padding: 20px;
  grid-column: 1 / -1;
}

/* Botões de Ação */
.form-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-end;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #f1f5f9;
}

.btn-secondary {
  background: #f8fafc;
  color: var(--text-color);
  border: 2px solid #e2e8f0;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.btn-primary {
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(46, 134, 171, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 134, 171, 0.4);
}

/* Status do Formulário */
.form-status {
  margin-top: 20px;
  padding: 15px 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.form-status.success {
  background: #f0fdf4;
  color: #16a34a;
  border: 2px solid #bbf7d0;
}

.form-status.error {
  background: #fef2f2;
  color: #dc2626;
  border: 2px solid #fecaca;
}

.form-status.loading {
  background: #f0f9ff;
  color: var(--primary-color);
  border: 2px solid #bae6fd;
}

.form-status i {
  font-size: 1.2rem;
}

/* Informações Importantes */
.appointment-footer {
  margin-top: 50px;
}

.important-info {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-left: 5px solid #f59e0b;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.info-box i {
  color: #f59e0b;
  font-size: 2rem;
  margin-top: 5px;
  min-width: 40px;
}

.info-box h4 {
  color: var(--text-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 15px 0;
}

.info-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-box li {
  color: #64748b;
  padding: 8px 0;
  position: relative;
  padding-left: 25px;
}

.info-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: bold;
}

/* Loading Animation */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--primary-color);
  font-weight: 500;
  padding: 20px;
}

.loading i {
  font-size: 1.2rem;
}

/* Responsividade */
@media (max-width: 1024px) {
  .appointment-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .info-card {
    position: static;
  }
  
  .datetime-picker {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-options {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .appointment-section {
    padding: 40px 0;
  }
  
  .appointment-content {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
  }
  
  .info-card {
    position: static;
    margin-bottom: 20px;
  }
  
  .datetime-picker {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .appointment-header {
    margin-bottom: 40px;
  }
  
  .appointment-header h2 {
    font-size: 2rem;
    flex-direction: column;
    gap: 10px;
  }
  
  .appointment-subtitle {
    font-size: 1.1rem;
    padding: 0 10px;
  }
  
  .info-card,
  .form-card {
    padding: 20px;
    margin: 0 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  
  /* Melhorias no calendário para mobile */
  .calendar-container {
    overflow-x: auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
  }
  
  .calendar-header {
    padding: 20px 15px;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 2px solid #f1f5f9;
    background: #fafbfc;
    border-radius: 15px 15px 0 0;
  }
  
  .calendar-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
  }
  
  .calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .calendar-nav button,
  .nav-btn {
    min-width: 48px !important;
    min-height: 48px !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0;
    font-size: 1.2rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(46, 134, 171, 0.3);
  }
  
  .calendar-nav button:hover,
  .nav-btn:hover {
    background: #1f5f85;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 134, 171, 0.4);
  }
  
  .calendar-nav button:active,
  .nav-btn:active {
    transform: translateY(0);
  }
  
  #current-month {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    min-width: 140px;
    text-align: center;
  }
  
  .calendar-grid {
    gap: 3px;
    padding: 15px;
    grid-template-columns: repeat(7, minmax(48px, 1fr));
    background: white;
  }
  
  .calendar-day {
    font-size: 0.9rem;
    min-height: 48px;
    min-width: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid transparent;
  }
  
  .calendar-day.available:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.05);
  }
  
  .calendar-day.selected {
    background: var(--primary-blue);
    color: white;
    border-color: #1f5f85;
    box-shadow: 0 2px 8px rgba(46, 134, 171, 0.4);
  }
  
  .calendar-day.today {
    border-color: var(--whatsapp-green);
    background: rgba(37, 211, 102, 0.1);
    color: var(--whatsapp-green);
    font-weight: 600;
  }
  
  .calendar-day-header {
    font-size: 0.85rem;
    padding: 12px 5px;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    background: #f8fafc;
  }
  
  /* Melhorias nos horários para mobile */
  .time-slots-container {
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  }
  
  .time-slots-container h5 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
  }
  
  .time-slots {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
  }
  
  .time-slot {
    padding: 16px 12px;
    font-size: 0.95rem;
    min-height: 52px;
    min-width: 48px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .time-slot:hover {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 134, 171, 0.3);
  }
  
  .time-slot.selected {
    background: var(--primary-blue);
    color: white;
    border-color: #1f5f85;
    box-shadow: 0 2px 8px rgba(46, 134, 171, 0.4);
  }
  
  .time-slot.unavailable {
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
    cursor: not-allowed;
  }
  
  .time-slot:active {
    transform: scale(0.98);
  }
  
  .no-date-selected,
  .no-slots {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
  }
  
  /* Melhorias nos botões de ação */
  .form-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
    margin-top: 25px;
  }
  
  .form-actions .btn {
    padding: 18px 24px;
    font-size: 1rem;
    min-height: 56px;
    border-radius: 15px;
    font-weight: 600;
  }
  
  .info-box {
    flex-direction: column;
    gap: 15px;
  }
  
  /* Cards de serviço mobile melhorados */
  .service-options {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .service-option {
    width: 100%;
  }
  
  .service-card {
    height: auto;
    padding: 20px;
    min-height: 80px;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    background: #fafbfc;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  .service-card:hover {
    border-color: var(--primary-blue);
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 134, 171, 0.15);
  }
  
  .service-option input[type="radio"]:checked + .service-card {
    border-color: var(--primary-blue);
    background: rgba(46, 134, 171, 0.05);
    box-shadow: 0 0 0 1px var(--primary-blue);
  }
  
  .service-card i {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
  }
  
  .service-card h5 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    font-weight: 600;
    color: var(--text-dark);
  }
  
  .service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0 0 10px 0;
    flex-grow: 1;
  }
  
  .service-card .duration {
    font-size: 0.85rem;
    background: var(--primary-blue);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    align-self: flex-start;
    font-weight: 500;
  }
  
  /* Melhorias nos inputs e forms mobile */
  .form-group input,
  .form-group textarea,
  .form-group select {
    min-height: 52px;
    padding: 16px 18px;
    font-size: 16px; /* Previne zoom no iOS */
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    transition: all 0.2s ease;
  }
  
  .form-group input:focus,
  .form-group textarea:focus,
  .form-group select:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.1);
    outline: none;
  }
  
  .form-group label {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    display: block;
  }
  
  .form-row {
    gap: 20px;
  }
  
  .form-section {
    margin-bottom: 25px;
    padding: 20px;
    background: #fafbfc;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
  }
  
  .form-section h4 {
    margin: 0 0 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .form-section h4 i {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .appointment-section {
    padding: 20px 0;
  }
  
  .appointment-header h2 {
    font-size: 1.6rem;
    flex-direction: column;
    gap: 8px;
  }
  
  .appointment-subtitle {
    font-size: 0.95rem;
    padding: 0 10px;
    line-height: 1.5;
  }
  
  .info-card,
  .form-card {
    padding: 15px;
    margin: 0 10px;
    border-radius: 15px;
  }
  
  /* Calendário mobile extra pequeno */
  .calendar-container {
    margin: 0 -5px;
  }
  
  .calendar-header {
    padding: 15px 10px;
    gap: 10px;
  }
  
  .calendar-header h5 {
    font-size: 1rem;
  }
  
  .calendar-nav button,
  .nav-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    width: 44px !important;
    height: 44px !important;
    font-size: 1.1rem;
  }
  
  #current-month {
    font-size: 1rem;
    min-width: 120px;
  }
  
  .calendar-grid {
    gap: 2px;
    padding: 10px;
    grid-template-columns: repeat(7, minmax(44px, 1fr));
  }
  
  .calendar-day-header {
    font-size: 0.75rem;
    padding: 8px 2px;
  }
  
  .calendar-day {
    font-size: 0.8rem;
    min-height: 44px;
    min-width: 44px;
    border-radius: 10px;
  }
  
  /* Horários mobile extra pequeno */
  .time-slots-container {
    padding: 15px;
    margin: 0 -5px;
  }
  
  .time-slots {
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
  }
  
  .time-slot {
    padding: 14px 10px;
    font-size: 0.9rem;
    min-height: 50px;
    border-radius: 10px;
  }
  
  /* Botões de ação menores */
  .form-actions .btn {
    padding: 16px 20px;
    font-size: 0.95rem;
    min-height: 52px;
    border-radius: 12px;
  }
  
  /* Cards de serviço otimizados */
  .service-card {
    padding: 18px;
    min-height: 60px;
    border-radius: 12px;
  }
  
  .service-card h5 {
    font-size: 1rem;
    margin-bottom: 8px;
  }
  
  .service-card p {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  
  .service-card .duration {
    font-size: 0.8rem;
    padding: 4px 8px;
  }
  
  /* Ajustes extras para telas muito pequenas */
  .form-group input,
  .form-group textarea,
  .form-group select {
    min-height: 50px;
    font-size: 16px; /* Previne zoom no iOS */
    padding: 15px;
    border-radius: 10px;
  }
  
  .form-group label {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }
  
  .container {
    padding: 0 15px;
  }
}

/* =====================================
   ADMIN SYSTEM STYLES
   ===================================== */

.admin-link {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white !important;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-left: 15px;
  box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.admin-link:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.admin-link i {
  margin-right: 5px;
}

.admin {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 0;
  border-top: 3px solid #e74c3c;
}

.admin-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.admin-content h2 {
  color: #2c3e50;
  font-size: 2rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.admin-content h2 i {
  color: #e74c3c;
}

.admin-subtitle {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 30px;
  text-align: center;
}

.admin-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.admin-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.admin-btn.primary {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
}

.admin-btn.primary:hover {
  background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.admin-btn.secondary {
  background: #f8f9fa;
  color: #2c3e50;
  border: 2px solid #e9ecef;
}

.admin-btn.secondary:hover {
  background: #e9ecef;
  border-color: #e74c3c;
  color: #e74c3c;
  transform: translateY(-1px);
}

.admin-info {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid #e74c3c;
}

.admin-info h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.admin-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-info li {
  padding: 8px 0;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-info li i {
  color: #27ae60;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .admin-panel {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .admin-content {
    padding: 25px;
  }
  
  .admin-content h2 {
    font-size: 1.6rem;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  
  .admin-link {
    margin-left: 0;
    margin-top: 10px;
  }
}