:root {
    --primary: #1A2A40;
    --accent: #C5A059;
    --bg: #F9F5F0;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Roboto', sans-serif; background: var(--bg); margin: 0; padding: 10px; overflow-x: hidden; }

/* HEADER ORIGINAL */
.barbershop-header { text-align: center; padding: 30px 0; }
.barbershop-header h1 { font-family: 'Oswald', sans-serif; font-size: 2.5rem; color: var(--primary); text-transform: uppercase; margin: 0; }
.subtitle { color: var(--accent); font-weight: bold; letter-spacing: 2px; }

/* TITULOS PASSOS */
.step-card h2 { font-family: 'Oswald', sans-serif; color: var(--primary); font-size: 1.4rem; text-transform: uppercase; display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.step-idx { color: var(--accent); }

/* BOTÃO INICIAL */
.center-content { display: flex; justify-content: center; padding: 50px 0; }
.btn-main { background: var(--primary); color: white; padding: 18px 40px; border: none; border-radius: 50px; cursor: pointer; font-family: 'Oswald'; font-size: 1.2rem; text-transform: uppercase; transition: 0.3s; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.btn-main:hover { background: var(--accent); transform: translateY(-3px); }

/* LAYOUT GRID */
.appointment-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 30px; max-width: 1200px; margin: 0 auto; align-items: start; }

/* CARDS E SCROLL */
.step-card { background: white; padding: 25px; border-radius: 20px; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.02); }

/* CONTAINER DE DATAS (Mantém seu scroll lateral original) */
.horizontal-scroll-container { 
    display: flex; 
    gap: 12px; 
    overflow-x: auto; 
    padding: 10px 5px; 
    -webkit-overflow-scrolling: touch; 
}
.horizontal-scroll-container::-webkit-scrollbar { display: none; }

/* CONTAINER DE HORÁRIOS (AJUSTADO PARA QUEBRA DE LINHA NO PC) */
#time-selector { 
    display: flex; 
    flex-wrap: wrap; /* Faz os horários irem para baixo se não couberem */
    gap: 12px; 
    padding: 10px 5px;
}

/* CARDS DE DATA E HORA */
.date-card, .time-card {
    flex: 0 0 auto;
    width: 85px;
    padding: 15px 0;
    background: white;
    border: 2px solid #eee;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

/* Ajuste específico para os cards de hora no GRID */
.time-card {
    flex: 0 0 calc(20% - 12px); /* 5 por linha no PC */
    min-width: 90px;
}

.date-card small, .time-card small { font-size: 0.7rem; text-transform: uppercase; color: #888; margin-bottom: 4px; }
.date-card strong, .time-card strong { font-size: 1.3rem; font-family: 'Oswald'; color: var(--primary); display: block; }

/* BARBEIRO E SERVIÇO (ORIGINAIS) */
.barber-card { flex: 0 0 auto; width: 120px; padding: 15px; text-align: center; border: 2px solid #eee; border-radius: 15px; transition: 0.3s; cursor: pointer; }
.barber-card img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }

.service-item-card { display: flex; align-items: center; padding: 15px; border: 2px solid #eee; border-radius: 15px; margin-bottom: 10px; cursor: pointer; transition: 0.3s; }
.service-item-card img { width: 55px; height: 55px; border-radius: 10px; margin-right: 15px; object-fit: cover; }

.selected { border-color: var(--accent) !important; background: #fffcf5 !important; transform: translateY(-3px); }
.btn-link {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
}

/* SIDEBAR (ORIGINAL) */
.sidebar-summary { background: white; padding: 25px; border-radius: 20px; position: sticky; top: 20px; border: 1px solid #eee; }
.summary-item { background: var(--bg); padding: 12px; border-radius: 12px; margin-bottom: 10px; }
.summary-label { font-size: 0.7rem; color: #888; text-transform: uppercase; font-weight: bold; }
.summary-value { font-weight: bold; color: var(--primary); margin-top: 2px; }
.total-price { font-size: 1.4rem; font-weight: bold; color: var(--accent); }
.btn-confirm { width: 100%; padding: 18px; background: var(--primary); color: white; border: none; border-radius: 50px; font-weight: bold; cursor: pointer; margin-top: 15px; }

/* INPUTS E MODAL (ORIGINAIS) */
input[type="text"] { width: 100%; padding: 15px; margin: 10px 0; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; font-family: 'Roboto', sans-serif; box-sizing: border-box; transition: border-color 0.3s ease; }
input[type="text"]:focus { border-color: var(--accent); outline: none; }

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 42, 64, 0.95); display: flex; justify-content: center; align-items: center; z-index: 9999; padding: 20px; }
.modal-content { background: white; padding: 35px; border-radius: 25px; text-align: center; max-width: 450px; width: 100%; }
.success-details { background: var(--bg); padding: 20px; border-radius: 15px; margin: 20px 0; text-align: left; line-height: 1.6; border-left: 5px solid var(--accent); }
.btn-whatsapp { width: 100%; padding: 18px; background: #25D366; color: white; border: none; border-radius: 50px; font-weight: bold; cursor: pointer; }

/* RESPONSIVIDADE */
@media (max-width: 1024px) { 
    .appointment-layout { grid-template-columns: 100%; } 
    .sidebar-summary { position: static; width: 100%; } 
}

@media (max-width: 600px) {
    .time-card {
        flex: 0 0 calc(33.33% - 12px); /* 3 por linha no celular */
    }
}


.hidden { display: none !important; }