:root { --primary: #002347; --accent: #c5a059; --bg: #f4f7f6; }
body { font-family: 'Inter', sans-serif; background-color: #001224; margin: 0; padding: 0; overflow-x: hidden; }

/* Sidebars de Fotos */
.sidebar-photos {
    position: fixed; top: 0; width: 220px; height: 100vh;
    overflow-y: hidden; display: flex; flex-direction: column;
    gap: 15px; padding: 15px; z-index: 1; opacity: 0.7;
}
.sidebar-left { left: 0; }
.sidebar-right { right: 0; }
.sidebar-photos img {
    width: 100%; height: 160px; object-fit: cover;
    border-radius: 10px; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Galeria Mobile */
.mobile-gallery {
    display: none; overflow-x: auto; white-space: nowrap;
    padding: 15px; gap: 10px; -webkit-overflow-scrolling: touch;
}
.mobile-gallery img {
    width: 120px; height: 120px; object-fit: cover; border-radius: 10px;
    display: inline-block; margin-right: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Formulário e Wrapper */
.main-wrapper { position: relative; z-index: 10; max-width: 900px; margin: 0 auto; padding: 40px 15px; }
.form-reserva { 
    background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); border-top: 6px solid var(--accent);
}
.header-feira { background: var(--primary); color: white; padding: 30px 20px; position: relative; }
.logo-reserva { max-width: 220px; max-height: 140px; object-fit: contain; margin-top: 15px; }

.section-title { 
    font-weight: 800; color: var(--primary); border-bottom: 2px solid #eee;
    padding-bottom: 10px; margin-top: 30px; text-transform: uppercase; font-size: 0.8rem;
}

/* Opções de Vaga */
.vaga-option { 
    cursor: pointer; border: 2px solid #eee; transition: 0.3s; padding: 15px;
    text-align: center; border-radius: 12px; height: 100%; display: flex;
    flex-direction: column; align-items: center; justify-content: center;
}
.vaga-check:checked + .vaga-option { border-color: var(--primary); background: #f0f4f8; }
.vaga-check { display: none; }

.btn-premium { 
    background: var(--primary); color: white; padding: 18px; border-radius: 50px;
    font-weight: 800; text-transform: uppercase; border: none; width: 100%; transition: 0.3s;
}
.btn-premium:hover:not(:disabled) { background: var(--accent); transform: scale(1.02); }

.preview-container { width: 90px; height: 90px; border: 3px solid var(--accent); border-radius: 50%; overflow: hidden; }
.preview-container img { width: 100%; height: 100%; object-fit: cover; }
.preview-produto { width: 100%; height: 80px; border: 2px solid #eee; border-radius: 10px; overflow: hidden; margin-bottom: 5px; }
.preview-produto img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1300px) { 
    .sidebar-photos { display: none; } 
    .mobile-gallery { display: flex; }
    .main-wrapper { padding-top: 10px; }
}

.header-feira { 
    background: var(--primary); 
    color: white; 
    padding: 40px 20px 30px 20px; /* Aumentei o padding superior para dar respiro */
    position: relative; /* CRUCIAL: define que o botão 'voltar' se alinhe por aqui */
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.btn-voltar-link {
    position: absolute;
    top: 15px;
    left: 20px;
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none !important;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.3s;
    z-index: 5;
}

.btn-voltar-link:hover {
    color: var(--accent) !important;
    transform: translateX(-3px);
}