
/* ========================== */
/* ESTILOS BASE E UTILITÁRIOS */
/* ========================== */
* { box-sizing: border-box; margin:0; padding:0; font-family:"Poppins",sans-serif; }

body {
  background:#f3f4f6;
  padding-top:70px;
  min-height: 100vh; /* Garante que o footer fique no final */
  display: flex;
  flex-direction: column;
}

.container-a {
  max-width:680px;
  width: 95%; /* Responsividade */
  margin:20px auto;
  background:#fff;
  border-radius:12px;
  padding:28px;
  box-shadow:0 8px 30px rgba(0,0,0,.08);
  flex-grow: 1; /* Permite que o conteúdo se expanda */
}

h1 {
  text-align:center;
  color:#b32169;
  font-size:1.7rem;
  margin-bottom:25px;
}

.campo { margin-bottom:16px; }

label { font-weight:600; margin-bottom:6px; display:block; }

input, select {
  width:100%; padding:12px; border-radius:8px;
  border:1px solid #d1d5db; font-size:1rem;
}

/* ========================== */
/* STEPPER / FLUXO DE PASSOS  */
/* ========================== */
#progresso-passos {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    overflow-x: auto; /* Para garantir responsividade em telas muito pequenas */
}

.passo {
    flex-grow: 1;
    text-align: center;
    padding: 5px 10px;
    font-size: 0.85rem;
    color: #999;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.passo.ativo {
    color: #b32169;
    border-bottom-color: #b32169;
    font-weight: 700;
}

.bloco-formulario {
    display: none;
    animation: fadeIn 0.5s ease-out;
}
.bloco-formulario.ativo {
    display: block;
}

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

/* ========================== */
/* SERVIÇOS E PROFISSIONAIS (CARDS) */
/* ========================== */
.opcoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.servico-card, .profissional-card {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}
.servico-card:hover, .profissional-card:hover {
    border-color: #b32169;
    box-shadow: 0 2px 8px rgba(179,33,105,0.1);
}

.servico-card.selecionado, .profissional-card.selecionado {
    background-color: #fce4ec; /* Rosa claro */
    border-color: #b32169;
    color: #b32169;
    font-weight: 700;
}

/* ========================== */
/* HORÁRIOS */
/* ========================== */
.data-horario-group {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.lista-horarios {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(80px,1fr));
  gap:8px;
  margin-top: 15px;
}

.horario-slot {
  padding:10px 5px;
  background:#f2f2f2;
  text-align:center;
  border-radius:6px;
  font-weight:600;
  cursor:pointer;
  transition:.15s;
  font-size: 0.9rem;
}

.horario-slot:hover { background:#b32169; color:#fff; transform:translateY(-2px); }

.horario-slot.ocupado {
  background:#999; color:#fff; cursor:not-allowed;
  opacity: 0.6;
}

.horario-slot.selecionado {
  background:#b32169;
  color:#fff;
  box-shadow:0 4px 10px rgba(179,33,105,0.3);
}

/* ========================== */
/* BOTÕES DE NAVEGAÇÃO / RESUMOS */
/* ========================== */
.botoes-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

.btn-principal, .btn-agendar {
    flex-grow: 1;
    padding:14px; margin-top:0;
    border:none; border-radius:10px;
    font-weight:700; color:#fff; font-size:1.05rem;
    background:linear-gradient(90deg,#ff0048,#b32169,#6a00ff);
    background-size:300% 300%;
    animation:rgbMove 5s infinite;
    cursor:pointer;
    transition: transform 0.1s;
}

.btn-principal:disabled, .btn-agendar:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
    background-color: #ccc !important;
}

.btn-voltar {
    flex-basis: 30%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: none;
    color: #666;
    font-weight: 600;
    cursor: pointer;
}

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

.resumo-duracao {
    text-align: center;
    font-weight: 700;
    margin: 15px 0;
    padding: 10px;
    background-color: #fff3cd; /* Amarelo claro para destaque */
    border-radius: 6px;
    color: #856404;
}
.resumo-atual {
    font-size: 1.05rem;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}
.revisao-titulo {
    margin-top: 25px;
    margin-bottom: 15px;
    color: #b32169;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 8px;
}
.revisao-detalhes {
    background-color: #f7f7f7;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.6;
}

/* ========================== */
/* ESTILOS EXISTENTES (MANTIDOS) */
/* ========================== */
/* HEADER / NAVBAR */
.container {
    background-color:#473b94;
    display: flex;
    padding: 12px 20px;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    top:0;
}

.logo { width: 55px; cursor: pointer; }

.navbar { display: flex; gap: 25px; }

.navbar a {
    text-decoration: none;
    color: aliceblue;
    font-size: 1.2rem;
    text-transform: uppercase;
}

/* FOOTER */
.footer {
    width: 100%;
    background-color: #473b94;
    color: #ffffff;
    text-align: center;
    padding: 20px 10px;
    margin-top: auto; /* Empurra para o final da página */
    font-size: 0.95rem;
}

.footer .dev {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    opacity: 0.9;
}

.footer .dev strong { color: #d63384; }
.dev a{ text-decoration:none; }

/* MENU HAMBURGUER MOBILE */
.menu-btn {
    width: 35px;
    height: 28px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 2000;
}

.menu-btn span {
    display: block;
    height: 4px;
    background: #ffffff;
    border-radius: 3px;
    transition: 0.3s ease;
}

.menu-btn.active span:nth-child(1) { transform: translateY(12px) rotate(45deg); }
.menu-btn.active span:nth-child(2) { opacity: 0; }
.menu-btn.active span:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }

.navbar.mobile-show {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(71, 59, 148, 0.90);
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding: 25px 0;
    animation: slideDown .3s ease forwards;
    z-index: 1500;
}

@keyframes slideDown {
    from { top: -200px; }
    to { top: 60px; }
}

@media (max-width: 600px) {
    .menu-btn {
        display: flex;
    }
    .navbar {
        position: absolute;
        top: -300px;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }
    /* Responsividade para Stepper em Mobile */
    .passo {
        font-size: 0.75rem; /* Fonte menor no mobile */
        padding: 5px 5px;
    }
    .botoes-nav {
        flex-direction: column;
    }
    .btn-voltar {
        flex-basis: auto;
    }
}
