/* ========================================
   RESET E VARIÁVEIS
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
    --light-text: #7f8c8d;
    --border-color: #bdc3c7;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   HEADER
======================================== */
header {
    background: linear-gradient(135deg, var(--primary-color), #34495e);
    color: white;
    padding: 1rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

header h1 {
    font-size: 1.3rem;
    font-weight: 600;
}

header nav {
    display: flex;
    gap: 0.5rem;
}

header nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
}

header nav a:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ========================================
   MAIN CONTAINER
======================================== */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    min-height: calc(100vh - 180px);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.page-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-bg);
}

.page-header h2 {
    margin: 0;
    color: var(--primary-color);
}

.page-title-wrapper {
    width: 100%;
}

/* ========================================
   ALERTS
======================================== */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease;
    font-size: 0.95rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-sucesso {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--success-color);
}

.alert-erro {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger-color);
}

.alert-aviso {
    background: #fff3cd;
    color: #856404;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid var(--secondary-color);
}

.close-alert {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.3s;
    min-width: 44px;
    min-height: 44px;
}

.close-alert:hover {
    opacity: 1;
}

/* ========================================
   BUTTONS
======================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    min-width: 120px;
}

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

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--light-text);
    color: white;
}

.btn-secondary:hover {
    background: #6c7a89;
}

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

.btn-success:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

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

.btn-danger:hover {
    background: #c0392b;
}

.btn-large {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    min-height: 56px;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    min-height: 40px;
    min-width: auto;
}

/* ========================================
   HOME PAGE
======================================== */
.hero {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.hero p {
    font-size: 1.05rem;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.info {
    margin-top: 2rem;
}

.info h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

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

.info-card {
    background: white;
    padding: 1.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.info-card:active {
    transform: scale(0.98);
}

.info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* ========================================
   AGENDAMENTO - WRAPPER
======================================== */
.agendar-wrapper {
    background: white;
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.agendar-wrapper h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
    line-height: 1.3;
}

/* ========================================
   PROGRESS BAR (CORRIGIDO - RESPONSIVO)
======================================== */
.progress-bar {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 2rem;
    position: relative;
    overflow-x: auto;
    padding: 0.5rem 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.progress-bar::before {
    display: none;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    z-index: 1;
    min-width: 60px;
    flex-shrink: 0;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--light-text);
    transition: all 0.3s;
}

.progress-step.active .step-number {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

.progress-step.completed .step-number,
.progress-step.concluded .step-number {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.step-label {
    font-size: 0.65rem;
    color: var(--light-text);
    text-align: center;
    white-space: nowrap;
    max-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

@media (min-width: 768px) {
    .progress-bar {
        justify-content: space-between;
        overflow-x: visible;
    }

    .progress-bar::before {
        display: block;
        content: '';
        position: absolute;
        top: 20px;
        left: 5%;
        right: 5%;
        height: 2px;
        background: var(--border-color);
        z-index: 0;
    }

    .progress-step {
        min-width: 70px;
    }

    .step-number {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .step-label {
        font-size: 0.75rem;
        max-width: none;
    }
}

/* ========================================
   FORM
======================================== */
.agendar-form {
    width: 100%;
}

/* ========================================
   SERVIÇOS GRID (MOBILE FIRST)
======================================== */
.servicos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.servico-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    min-height: 140px;
}

.servico-card:active {
    transform: scale(0.98);
}

.servico-card:has(input:checked) {
    border-color: var(--secondary-color);
    background: #e8f4fd;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.servico-card input[type="radio"] {
    display: none;
}

.servico-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.servico-content .descricao {
    color: var(--light-text);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.servico-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.servico-details .preco {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success-color);
}

.servico-details .duracao {
    font-size: 0.85rem;
    color: var(--light-text);
}

/* ========================================
   BARBEIROS GRID (MOBILE FIRST)
======================================== */
.barbeiros-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.barbeiro-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    text-align: center;
    min-height: 140px;
}

.barbeiro-card:active {
    transform: scale(0.98);
}

.barbeiro-card:has(input:checked) {
    border-color: var(--secondary-color);
    background: #e8f4fd;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.barbeiro-card input[type="radio"] {
    display: none;
}

.barbeiro-avatar {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
}

.barbeiro-content h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.barbeiro-content .especialidade {
    color: var(--light-text);
    font-size: 0.9rem;
}

.barbeiro-foto-servico {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto 10px;
}

/* ========================================
   DATAS GRID (MOBILE FIRST)
======================================== */
.datas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-bottom: 1.5rem;
}

.data-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    text-align: center;
    min-height: 100px;
}

.data-card:active {
    transform: scale(0.98);
}

.data-card:has(input:checked) {
    border-color: var(--secondary-color);
    background: #e8f4fd;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.data-card input[type="radio"] {
    display: none;
}

.data-content .dia {
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.data-content .data-formatada {
    color: var(--light-text);
    font-size: 0.85rem;
}

/* ========================================
   NAVEGAÇÃO SEMANAL
======================================== */
.semana-navegacao {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    gap: 1rem;
    padding: 0.5rem;
}

.semana-nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s;
    flex-shrink: 0;
}

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

.semana-nav-btn.disabled {
    background: var(--border-color);
    cursor: not-allowed;
    opacity: 0.5;
}

.semana-info {
    flex: 1;
    text-align: center;
}

.semana-texto {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

/* ========================================
   GRID SEMANAL DE DATAS (CORRIGIDO - RESPONSIVO)
======================================== */
.datas-grid-semanal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    touch-action: pan-y;
}

.data-card-semanal {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 0.4rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    text-align: center;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.data-card-semanal.hoje {
    border-color: var(--warning-color);
    background: #fff9e6;
    border-width: 3px;
}

.data-card-semanal.desabilitado {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

.data-card-semanal.desabilitado input[type="radio"] {
    cursor: not-allowed;
}

.data-card-semanal:not(.desabilitado):active {
    transform: scale(0.98);
}

.data-card-semanal:not(.desabilitado):has(input:checked) {
    border-color: var(--secondary-color);
    background: #e8f4fd;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.data-card-semanal input[type="radio"] {
    display: none;
}

.data-content-semanal .dia-semana {
    font-size: 0.65rem;
    color: var(--light-text);
    text-transform: capitalize;
    margin-bottom: 0.25rem;
    font-weight: 600;
    line-height: 1.2;
}

.data-content-semanal .dia-numero {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.data-content-semanal .mes {
    font-size: 0.65rem;
    color: var(--light-text);
    text-transform: uppercase;
}

.badge-hoje {
    position: absolute;
    top: 3px;
    right: 3px;
    background: var(--warning-color);
    color: white;
    font-size: 0.55rem;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    font-weight: 600;
}

.badge-desabilitado {
    position: absolute;
    bottom: 3px;
    left: 3px;
    right: 3px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--light-text);
    font-size: 0.55rem;
    padding: 0.15rem 0.25rem;
    border-radius: 3px;
    font-weight: 600;
    line-height: 1.2;
}

.sem-datas {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--light-text);
    padding: 2rem;
}

@media (min-width: 768px) {
    .datas-grid-semanal {
        grid-template-columns: repeat(7, 1fr);
        gap: 0.75rem;
    }

    .data-card-semanal {
        padding: 1rem 0.5rem;
        min-height: 110px;
    }

    .data-content-semanal .dia-semana {
        font-size: 0.75rem;
    }

    .data-content-semanal .dia-numero {
        font-size: 1.6rem;
    }

    .data-content-semanal .mes {
        font-size: 0.7rem;
    }

    .badge-hoje {
        font-size: 0.6rem;
        padding: 0.2rem 0.4rem;
    }

    .badge-desabilitado {
        font-size: 0.6rem;
        padding: 0.2rem 0.3rem;
    }

    .data-card-semanal:not(.desabilitado):hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

    .semana-nav-btn:hover {
        background: #2980b9;
        transform: scale(1.05);
    }
}

/* ========================================
   HORÁRIOS GRID (MOBILE OPTIMIZED)
======================================== */
.horarios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.horario-card {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    text-align: center;
    min-height: 60px;
}

.horario-card:active {
    transform: scale(0.95);
}

.horario-card:has(input:checked) {
    border-color: var(--secondary-color);
    background: #e8f4fd;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.horario-card input[type="radio"] {
    display: none;
}

.horario-content .horario {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--primary-color);
}

/* ========================================
   HORÁRIOS - LAYOUT REFINADO (UX)
======================================== */
.horarios-container-refinado {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.horarios-grid-refinado {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-horario {
    border-radius: 10px;
    padding: 1rem;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    transition: all 0.3s;
}

.card-horario .hora {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
}

.card-horario.disponivel {
    background: #e9f5ff;
    border: 2px solid #37a4ff;
    cursor: pointer;
}

.card-horario.disponivel:hover {
    background: #d7eeff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(55, 164, 255, 0.25);
}

.card-horario.disponivel input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.card-horario.disponivel input[type="radio"]:checked ~ .hora {
    color: var(--secondary-color);
}

.card-horario.ocupado {
    background: #f2f2f2;
    border: 2px solid #c1c1c1;
    cursor: not-allowed;
}

.badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.disponivel-badge {
    background: #d4edda;
    color: #155724;
}

.ocupado-badge {
    background: #f8d7da;
    color: #721c24;
}

.btn-fila-refinado {
    margin-top: 0.5rem;
    background: #ff9800;
    border: none;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-fila-refinado:hover {
    background: #e68a00;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(255, 152, 0, 0.3);
}

.empty-state-refinado {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--light-text);
}

.empty-state-refinado p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* AÇÕES (BOTÕES) - CORRIGIDO PARA EMPILHAR */
.horarios-acoes-refinado {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    justify-content: center;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-color);
}

.horarios-acoes-refinado .btn {
    width: 100%;
    min-width: unset;
}

/* ========================================
   PAGAMENTO GRID (MOBILE FIRST)
======================================== */
.pagamento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.pagamento-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
    text-align: center;
    min-height: 100px;
}

.pagamento-card:active {
    transform: scale(0.98);
}

.pagamento-card:has(input:checked) {
    border-color: var(--secondary-color);
    background: #e8f4fd;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.pagamento-card input[type="radio"] {
    display: none;
}

.pagamento-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.pagamento-content p {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* ========================================
   RESUMO BOX
======================================== */
.resumo-box {
    background: #f8f9fa;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.resumo-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
    text-align: center;
}

.resumo-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
    gap: 1rem;
}

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

.resumo-item .label {
    font-weight: 600;
    color: var(--dark-text);
    font-size: 0.95rem;
    flex-shrink: 0;
}

.resumo-item .valor {
    color: var(--light-text);
    font-size: 0.95rem;
    text-align: right;
}

.resumo-item .valor.preco {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--success-color);
}

/* ========================================
   FORM GROUP
======================================== */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    min-height: 48px;
}

.form-group input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* ========================================
   FORM ACTIONS
======================================== */
.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-direction: column;
}

.form-actions .btn {
    width: 100%;
}

/* ========================================
   SUCESSO PAGE
======================================== */
.sucesso-container {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.sucesso-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.sucesso-container h2 {
    font-size: 1.6rem;
    color: var(--success-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.sucesso-mensagem {
    font-size: 1.05rem;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.sucesso-info {
    background: #f8f9fa;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.sucesso-info p {
    color: var(--light-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.sucesso-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-direction: column;
}

.sucesso-actions .btn {
    width: 100%;
}

/* ========================================
   FOOTER
======================================== */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.25rem;
    margin-top: 2rem;
    font-size: 0.9rem;
}

/* ========================================
   MEUS AGENDAMENTOS
======================================== */
.buscar-form {
    max-width: 500px;
    margin: 2rem auto;
}

.input-telefone {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
    min-height: 48px;
}

.input-telefone:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.info-cliente {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
}

.agendamentos-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.agendamento-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s;
}

.agendamento-card.status-agendado {
    border-left: 4px solid var(--secondary-color);
}

.agendamento-card.status-confirmado {
    border-left: 4px solid var(--success-color);
}

.agendamento-card.status-cancelado {
    border-left: 4px solid var(--danger-color);
    opacity: 0.7;
}

.agendamento-card.status-realizado {
    border-left: 4px solid var(--success-color);
    opacity: 0.8;
}

.agendamento-card.historico {
    opacity: 0.7;
}

.agendamento-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.badge-status {
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-agendado,
.status-agendado {
    background: #e8f4fd;
    color: var(--secondary-color);
}

.badge-confirmado,
.status-confirmado {
    background: #d4edda;
    color: var(--success-color);
}

.badge-cancelado,
.status-cancelado {
    background: #f8d7da;
    color: var(--danger-color);
}

.badge-realizado,
.status-realizado {
    background: #d4edda;
    color: var(--success-color);
}

.badge-faltou,
.status-faltou {
    background: #fff3cd;
    color: var(--warning-color);
}

.agendamento-id {
    color: var(--light-text);
    font-size: 0.85rem;
}

.agendamento-data {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.agendamento-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.agendamento-body p {
    margin-bottom: 0.5rem;
    color: var(--dark-text);
    font-size: 0.95rem;
}

.agendamento-info {
    flex: 1;
}

.info-principal {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.info-secundaria {
    color: var(--light-text);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon {
    font-size: 1rem;
}

.agendamento-acoes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.agendamento-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.agendamento-actions form {
    margin: 0;
}

.agendamento-actions .btn {
    min-width: 120px;
    padding: 0.75rem 1.25rem;
}

.sem-agendamentos {
    text-align: center;
    padding: 3rem 1.5rem;
}

.icon-grande {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.sem-agendamentos p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

/* ========================================
   LISTA DE ESPERA
======================================== */
.fila-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.fila-header {
    text-align: center;
    margin-bottom: 40px;
}

.fila-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.fila-icon svg {
    color: white;
}

.fila-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
}

.fila-subtitle {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

.fila-info,
.fila-info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}

.fila-info h3 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.info-item,
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-item:last-child,
.info-row:last-child {
    border-bottom: none;
}

.info-item .label,
.info-label {
    font-weight: 600;
    color: var(--text-color);
}

.info-item .value,
.info-value {
    color: var(--secondary-color);
    font-weight: 500;
}

.info-value.destaque {
    color: #667eea;
    font-size: 18px;
}

.fila-aviso {
    background: #e7f3ff;
    border: 2px solid var(--secondary-color);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.fila-aviso svg {
    flex-shrink: 0;
    color: #667eea;
    margin-top: 2px;
}

.fila-aviso h4 {
    margin-top: 0;
    color: var(--primary-color);
}

.fila-aviso p {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    line-height: 1.6;
}

.fila-aviso ul {
    margin: 0;
    padding-left: 1.5rem;
}

.fila-aviso li {
    margin: 0.5rem 0;
    color: var(--text-color);
    line-height: 1.6;
}

.fila-form {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group-compact,
.form-group-fila {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.form-group-compact label,
.form-group-fila label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group-fila label svg {
    color: #667eea;
}

.form-group-compact input,
.form-group-fila input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.3s;
    width: 100%;
}

.form-group-compact input:focus,
.form-group-fila input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group-compact small {
    color: var(--light-text);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.fila-actions,
.fila-acoes {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
}

.fila-actions .btn {
    min-width: 150px;
}

.btn-secondary-fila,
.btn-primary-fila {
    flex: 1;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-fila {
    background: #edf2f7;
    color: #4a5568;
}

.btn-secondary-fila:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.btn-primary-fila {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary-fila:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.sucesso-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.sucesso-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    border-top: 4px solid var(--secondary-color);
}

.sucesso-card h2 {
    color: var(--primary-color);
    margin: 0 0 1rem 0;
}

.sucesso-proximos-passos {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: left;
}

.sucesso-proximos-passos h3 {
    margin-top: 0;
    color: #856404;
}

.sucesso-proximos-passos ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    color: #856404;
}

.sucesso-proximos-passos li {
    margin: 0.5rem 0;
}

/* ========================================
   COMBOS
======================================== */
.combos-section {
    margin-bottom: 40px;
}

.combos-titulo {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.combos-subtitulo {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
}

.servicos-titulo {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.combo-card {
    border: 3px solid #6c5ce7;
    background: linear-gradient(135deg, #f8f7ff 0%, #ffffff 100%);
}

.combo-card:hover {
    border-color: #a29bfe;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.2);
}

.combo-card input[type="radio"]:checked + .servico-content {
    background: linear-gradient(135deg, #e8e5ff 0%, #f8f7ff 100%);
}

.badge-combo {
    display: inline-block;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.combo-itens {
    background: #f5f6fa;
    border-radius: 8px;
    padding: 12px;
    margin: 12px 0;
}

.combo-itens strong {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.combo-itens ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.combo-itens li {
    font-size: 14px;
    color: #444;
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
}

.combo-itens li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #6c5ce7;
    font-weight: bold;
}

.divisor-combos {
    margin: 30px 0;
    border: none;
    border-top: 2px solid #e0e0e0;
}

/* ========================================
   RESPONSIVE - TABLETS (768px+)
======================================== */
@media (min-width: 768px) {
    header h1 {
        font-size: 1.6rem;
    }

    .hero {
        padding: 3rem 2rem;
    }

    .hero h2 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .agendar-wrapper {
        padding: 2rem;
    }

    .agendar-wrapper h2 {
        font-size: 1.75rem;
    }

    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .barbeiros-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .barbeiro-foto-servico {
        width: 70px;
        height: 70px;
    }

    .datas-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .horarios-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .horarios-container-refinado {
        padding: 1.5rem;
        border-radius: 0;
    }

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

    .card-horario {
        min-height: 90px;
        padding: 0.75rem;
    }

    .card-horario .hora {
        font-size: 1.1rem;
    }

    .btn-fila-refinado {
        font-size: 0.75rem;
        padding: 0.35rem 0.6rem;
    }

    .pagamento-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .form-actions {
        flex-direction: row;
        justify-content: center;
    }

    .form-actions .btn {
        width: auto;
        min-width: 160px;
    }

    .sucesso-actions {
        flex-direction: row;
    }

    .sucesso-actions .btn {
        width: auto;
    }

    .agendamento-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
    }

    .page-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .filter-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .fila-wrapper {
        gap: 1rem;
    }

    .fila-info {
        padding: 1rem;
    }

    .fila-aviso {
        padding: 1rem;
    }

    .fila-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .fila-actions .btn {
        width: 100%;
        min-width: unset;
    }

    .sucesso-wrapper {
        margin: 1rem auto;
    }

    .sucesso-card {
        padding: 1.5rem;
    }

    .sucesso-icon {
        font-size: 2.5rem;
    }

    .sucesso-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .sucesso-actions .btn {
        width: 100%;
        min-width: unset;
    }

    .fila-info-card,
    .fila-form {
        padding: 20px;
    }

    .fila-acoes {
        flex-direction: column;
    }

    .btn-secondary-fila,
    .btn-primary-fila {
        width: 100%;
    }
}

/* ========================================
   RESPONSIVE - DESKTOP (1024px+)
======================================== */
@media (min-width: 1024px) {
    main {
        padding: 2rem;
    }

    .servicos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .horarios-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .servico-card:hover,
    .barbeiro-card:hover,
    .data-card:hover,
    .horario-card:hover,
    .pagamento-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

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

    .barbeiro-foto-servico {
        width: 80px;
        height: 80px;
    }
}

/* ========================================
   TOUCH OPTIMIZATION
======================================== */
@media (hover: none) and (pointer: coarse) {
    .servico-card:hover,
    .barbeiro-card:hover,
    .data-card:hover,
    .horario-card:hover,
    .pagamento-card:hover,
    .info-card:hover {
        transform: none;
        box-shadow: var(--shadow);
    }
}
