/* Lilly Barber - Página Principal */

:root {
  --bg-dark: #1a2634;
  --bg-darker: #141d27;
  --gold: #c9a86c;
  --gold-light: #d4ba85;
  --gold-dark: #b08d4f;
  --white: #ffffff;
  --gray-light: #e0e0e0;
  --gray: #8a9199;
  --success: #28a745;
  --danger: #dc3545;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  min-height: 100vh;
}

/* Header */
.header {
  background: var(--bg-darker);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(201, 168, 108, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-area img {
  height: 60px;
  width: auto;
}

.header-buttons {
  display: flex;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.95rem;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--bg-dark);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-dark);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(201, 168, 108, 0.3);
}

.btn-success {
  background: var(--success);
  color: var(--white);
}

.btn-success:hover {
  background: #218838;
}

.btn-secondary {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.2);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.hero-logo {
  max-width: 220px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.hero h1 {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.hero p {
  color: var(--gray);
  font-size: 1.1rem;
}

/* Main Container */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* Section Title */
.section-title {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* Wizard Steps */
.wizard-container {
  margin-bottom: 2rem;
}

.wizard-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 140px;
}

.wizard-step::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 0;
}

.wizard-step:last-child::after {
  display: none;
}

.wizard-step.active::after,
.wizard-step.completed::after {
  background: var(--gold);
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  position: relative;
  z-index: 1;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.wizard-step.active .step-number {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(201, 168, 108, 0.4);
}

.wizard-step.completed .step-number {
  background: var(--gold);
  color: var(--bg-dark);
  border-color: var(--gold);
}

.step-label {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.5rem;
  text-align: center;
}

.wizard-step.active .step-label {
  color: var(--gold);
  font-weight: 600;
}

/* Step Content */
.step-content {
  background: var(--bg-darker);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid rgba(201, 168, 108, 0.15);
}

.step-content.hidden {
  display: none;
}

.step-title {
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-title .icon {
  color: var(--gold);
}

/* Serviços Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.service-card {
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.service-card:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 108, 0.05);
  transform: translateY(-2px);
}

.service-card.selected {
  border-color: var(--gold);
  background: rgba(201, 168, 108, 0.1);
}

.service-card.selected::after {
  content: '✓';
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 24px;
  height: 24px;
  background: var(--gold);
  color: var(--bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

.service-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.service-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
}

.service-time {
  color: var(--gray);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.service-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.15rem;
}

.service-desc {
  color: var(--gray);
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Selected Services Summary */
.selected-services {
  background: rgba(201, 168, 108, 0.1);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
}

.selected-services-title {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.selected-services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.selected-tag {
  background: var(--gold);
  color: var(--bg-dark);
  padding: 0.4rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.selected-tag .remove {
  cursor: pointer;
  font-weight: bold;
  margin-left: 0.25rem;
}

.selected-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(201, 168, 108, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  color: var(--gray-light);
}

.total-value {
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Profissionais Grid */
.profs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.prof-card {
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.prof-card:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 108, 0.05);
}

.prof-card.selected {
  border-color: var(--gold);
  background: rgba(201, 168, 108, 0.1);
}

.prof-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: bold;
  margin: 0 auto 1rem;
}

.prof-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
}

/* Data e Horários */
.date-picker-container {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: var(--gray-light);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.08);
}

.form-control::placeholder {
  color: var(--gray);
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.horarios-label {
  color: var(--gray-light);
  margin-bottom: 1rem;
  font-weight: 500;
}

.horarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
  gap: 0.75rem;
}

.horario-btn {
  padding: 0.875rem 0.5rem;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  text-align: center;
  cursor: pointer;
  font-weight: 600;
  color: var(--white);
  transition: all 0.3s;
}

.horario-btn:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 108, 0.1);
}

.horario-btn.selected {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--bg-dark);
}

.no-horarios {
  text-align: center;
  color: var(--gray);
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
}

/* Dados do Cliente */
.form-group {
  margin-bottom: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.input-with-status {
  position: relative;
}

.input-status {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
}

.input-status.found {
  color: var(--success);
}

.input-status.new {
  color: var(--gold);
}

.client-found-msg {
  background: rgba(40, 167, 69, 0.15);
  border: 1px solid var(--success);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
  color: var(--success);
  font-size: 0.9rem;
}

/* Resumo */
.booking-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-title {
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.summary-item:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--gray);
}

.summary-value {
  color: var(--white);
  font-weight: 500;
}

.summary-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-total .summary-label {
  font-size: 1.1rem;
  color: var(--white);
}

.summary-total .summary-value {
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 700;
}

/* Services Summary in Confirmation */
.services-list-summary {
  margin: 0.5rem 0;
}

.service-summary-item {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

/* Sucesso */
.success-container {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  width: 100px;
  height: 100px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 3rem;
  color: white;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.success-title {
  font-size: 1.75rem;
  color: var(--success);
  margin-bottom: 0.5rem;
}

.success-msg {
  color: var(--gray);
  margin-bottom: 2rem;
}

.success-details {
  background: rgba(255,255,255,0.03);
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 400px;
  margin: 0 auto 2rem;
  text-align: left;
}

/* Navegação entre steps */
.step-nav {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.step-nav .btn {
  flex: 1;
}

/* Loading */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(201, 168, 108, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
}

.toast {
  background: var(--bg-darker);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  display: none;
  animation: slideIn 0.3s ease;
  max-width: 350px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.toast.show {
  display: block;
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast.success {
  border-color: var(--success);
}

.toast.error {
  border-color: var(--danger);
}

.toast-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--white);
}

/* Modal Cadastro */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: var(--bg-darker);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(201, 168, 108, 0.2);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 1.25rem;
  color: var(--gold);
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--gray);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.modal-close:hover {
  color: var(--white);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem 1.5rem;
}

/* ==================== SEÇÃO DE INFORMAÇÕES ==================== */

.info-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(201, 168, 108, 0.2);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.info-card {
  background: var(--bg-darker);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(201, 168, 108, 0.15);
}

.info-card-title {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.info-card-content {
  color: var(--gray-light);
  line-height: 1.7;
}

.info-card-content p {
  margin-bottom: 0.5rem;
}

.info-card-content a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.3s;
}

.info-card-content a:hover {
  color: var(--gold-light);
}

/* Horários de funcionamento */
.horarios-lista {
  list-style: none;
}

.horarios-lista li {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.horarios-lista li:last-child {
  border-bottom: none;
}

.horarios-lista .dia {
  color: var(--gray);
}

.horarios-lista .hora {
  color: var(--white);
  font-weight: 500;
}

.horarios-lista .fechado {
  color: var(--danger);
}

/* Contato buttons */
.contato-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contato-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s;
}

.contato-btn:hover {
  background: rgba(201, 168, 108, 0.1);
  border-color: var(--gold);
}

.contato-btn .icon {
  font-size: 1.25rem;
}

.contato-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
}

.contato-btn.instagram:hover {
  background: rgba(225, 48, 108, 0.15);
  border-color: #e1306c;
}

/* Mapa */
.mapa-container {
  margin-top: 1rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.mapa-container iframe {
  width: 100%;
  height: 200px;
  border: none;
}

/* Footer */
.footer {
  background: var(--bg-darker);
  border-top: 1px solid rgba(201, 168, 108, 0.1);
  padding: 2rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

.footer p {
  color: var(--gray);
  font-size: 0.9rem;
}

/* Responsivo */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .wizard-step {
    max-width: 80px;
  }
  
  .step-label {
    font-size: 0.7rem;
  }
  
  .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .step-content {
    padding: 1.25rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .profs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .horarios-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .step-nav {
    flex-direction: column-reverse;
  }
  
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  
  .toast {
    max-width: none;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
}
